jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE mountain (state_name VARCHAR, mountain_name VARCHAR)
user: “泰山”在什么省？

assistant: SELECT state_name FROM mountain WHERE mountain_name  =  "泰山";
Schema: CREATE TABLE mountain (state_name VARCHAR, mountain_name VARCHAR)
user: “泰山”在哪里？

assistant: SELECT state_name FROM mountain WHERE mountain_name  =  "泰山";
Schema: CREATE TABLE mountain (state_name VARCHAR, mountain_name VARCHAR)
user: “惠特尼山”位于哪里？

assistant: SELECT state_name FROM mountain WHERE mountain_name  =  "whitney";
Schema: CREATE TABLE river (traverse VARCHAR)
user: 哪个省有一条河

assistant: SELECT traverse FROM river;
Schema: CREATE TABLE river (traverse VARCHAR)
user: 哪些省有河流穿过它们？

assistant: SELECT traverse FROM river;
Schema: CREATE TABLE city (state_name VARCHAR, population INTEGER, city_name VARCHAR)
user: 哪些省有一个名叫“长沙”的大城市

assistant: SELECT state_name FROM city WHERE city_name  =  "长沙" AND population  >  150000;
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR, border VARCHAR, population INTEGER), CREATE TABLE border_info (state_name VARCHAR, city_name VARCHAR, border VARCHAR, population INTEGER)
user: 与“浙江”临近省的最大的城市是什么？

assistant: SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "浙江" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "浙江" );
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR, border VARCHAR, population INTEGER), CREATE TABLE border_info (state_name VARCHAR, city_name VARCHAR, border VARCHAR, population INTEGER)
user: “浙江”接壤省的最大的城市是什么？

assistant: SELECT city_name FROM city WHERE population  =  ( SELECT MAX ( population ) FROM city WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "浙江" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "浙江" );
Schema: CREATE TABLE river (state_name VARCHAR, river_name VARCHAR, capital VARCHAR, traverse VARCHAR), CREATE TABLE state (state_name VARCHAR, river_name VARCHAR, capital VARCHAR, traverse VARCHAR)
user: 有多少河流不穿越省会是“郑州”的省

assistant: SELECT COUNT ( river_name ) FROM river WHERE traverse NOT IN ( SELECT state_name FROM state WHERE capital  =  "郑州" );
Schema: CREATE TABLE river (river_name VARCHAR, traverse VARCHAR, LENGTH INTEGER)
user: “四川”最短的河流是什么？

assistant: SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river WHERE traverse  =  "四川" ) AND traverse  =  "四川";
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR, area INTEGER, population INTEGER), CREATE TABLE state (state_name VARCHAR, city_name VARCHAR, area INTEGER, population INTEGER)
user: 中国最小的省的主要城市是什么？

assistant: SELECT city_name FROM city WHERE population  >  150000 AND state_name  =  ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) );
Schema: CREATE TABLE city (population VARCHAR, city_name VARCHAR, area INTEGER, capital VARCHAR), CREATE TABLE state (state_name VARCHAR, area INTEGER), CREATE TABLE river (river_name VARCHAR, traverse VARCHAR)
user: “长江”流经的最大省的省会的人口是多少？

assistant: SELECT population FROM city WHERE city_name  =  ( SELECT capital FROM state WHERE area  =  ( SELECT MAX ( t1.area ) FROM state AS t1 JOIN river AS t2 ON t1.state_name  =  t2.traverse WHERE t2.river_name  =  "长江" ) );
Schema: CREATE TABLE river (river_name VARCHAR, LENGTH INTEGER)
user: 中国最短的河流是什么？

assistant: SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );
Schema: CREATE TABLE river (river_name VARCHAR, LENGTH INTEGER)
user: 最短的河流是什么？

assistant: SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );
Schema: CREATE TABLE river (river_name VARCHAR, LENGTH INTEGER)
user: 中国距离最短的河流是什么？

assistant: SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );
Schema: CREATE TABLE river (river_name VARCHAR, LENGTH INTEGER)
user: 在中国最短的河流是什么？

assistant: SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );
Schema: CREATE TABLE river (river_name VARCHAR, LENGTH INTEGER)
user: 哪条河流最短

assistant: SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );
Schema: CREATE TABLE state (state_name VARCHAR, capital VARCHAR, border VARCHAR), CREATE TABLE border_info (state_name VARCHAR, capital VARCHAR, border VARCHAR)
user: 与“四川”接壤的省的省会是什么？

assistant: SELECT capital FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "四川" ) );
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR, area INTEGER, population INTEGER), CREATE TABLE state (state_name VARCHAR, city_name VARCHAR, area INTEGER, population INTEGER)
user: 中国最小的省中的最小的城市是什么？

assistant: SELECT city_name FROM city WHERE population  =  ( SELECT MIN ( population ) FROM city WHERE state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) ) ) AND state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) );
Schema: CREATE TABLE state (population VARCHAR, state_name VARCHAR, border VARCHAR, area INTEGER), CREATE TABLE border_info (population VARCHAR, state_name VARCHAR, border VARCHAR, area INTEGER)
user: 与“四川”临近的最大的省人口是多少？

assistant: SELECT population FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "四川" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "四川" );
Schema: CREATE TABLE state (state_name VARCHAR, capital VARCHAR)
user: “南昌”是什么省的省会？

assistant: SELECT state_name FROM state WHERE capital  =  "南昌";
Schema: CREATE TABLE state (state_name VARCHAR, capital VARCHAR)
user: 什么省的省会是“南昌”？

assistant: SELECT state_name FROM state WHERE capital  =  "南昌";
Schema: CREATE TABLE state (state_name VARCHAR, capital VARCHAR)
user: “南昌”是哪个省的省会

assistant: SELECT state_name FROM state WHERE capital  =  "南昌";
Schema: CREATE TABLE state (state_name VARCHAR, capital VARCHAR)
user: 首都是“南昌”的省是什么？

assistant: SELECT state_name FROM state WHERE capital  =  "南昌";
Schema: CREATE TABLE river (state_name VARCHAR, river_name VARCHAR, population INTEGER, traverse VARCHAR), CREATE TABLE state (state_name VARCHAR, river_name VARCHAR, population INTEGER, traverse VARCHAR)
user: 什么河流流经人口数最多的省

assistant: SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) );
Schema: CREATE TABLE state (state_name VARCHAR, border VARCHAR, population INTEGER, area INTEGER), CREATE TABLE border_info (state_name VARCHAR, border VARCHAR, population INTEGER, area INTEGER)
user: 与人口最多的省接壤的最大的省是什么？

assistant: SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT state_name FROM border_info WHERE border IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) ) ) ) AND state_name IN ( SELECT state_name FROM border_info WHERE border IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) ) );
Schema: CREATE TABLE river (river_name VARCHAR)
user: 中国有多少条的河流

assistant: SELECT COUNT ( river_name ) FROM river;
Schema: CREATE TABLE state (capital VARCHAR)
user: 说出中国的所有的省会

assistant: SELECT DISTINCT capital FROM state;
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR)
user: 有多少个省有一个名字叫“昆明”的城市？

assistant: SELECT COUNT ( state_name ) FROM city WHERE city_name  =  "昆明";
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR)
user: 有多少个省有一个叫做“昆明”的城市

assistant: SELECT COUNT ( state_name ) FROM city WHERE city_name  =  "昆明";
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR)
user: 有多少省有名字叫“昆明”的城市？

assistant: SELECT COUNT ( state_name ) FROM city WHERE city_name  =  "昆明";
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR)
user: “昆明”有多少个省有城镇？

assistant: SELECT COUNT ( state_name ) FROM city WHERE city_name  =  "昆明";
Schema: CREATE TABLE border_info (state_name VARCHAR, border VARCHAR, population INTEGER), CREATE TABLE state (state_name VARCHAR, border VARCHAR, population INTEGER)
user: 什么省与人口最少的省接壤？

assistant: SELECT border FROM border_info WHERE state_name IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MIN ( population ) FROM state ) );
Schema: CREATE TABLE lake (state_name VARCHAR, lake_name VARCHAR, border VARCHAR), CREATE TABLE border_info (state_name VARCHAR, lake_name VARCHAR, border VARCHAR)
user: 与“四川”接壤省的湖泊是什么？

assistant: SELECT lake_name FROM lake WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "四川" );
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR, population INTEGER)
user: “四川”有多少个主要城市

assistant: SELECT COUNT ( city_name ) FROM city WHERE population  >  150000 AND state_name  =  "四川";
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR, population INTEGER)
user: “四川”有多少大城市

assistant: SELECT COUNT ( city_name ) FROM city WHERE population  >  150000 AND state_name  =  "四川";
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR, population INTEGER)
user: “四川”有多少主要的大城市？

assistant: SELECT COUNT ( city_name ) FROM city WHERE population  >  150000 AND state_name  =  "四川";
Schema: CREATE TABLE highlow (highest_elevation VARCHAR)
user: 所有省的最高点有多高？

assistant: SELECT highest_elevation FROM highlow;
Schema: CREATE TABLE river (river_name VARCHAR, traverse VARCHAR)
user: “珠江”经历了多少个省？

assistant: SELECT COUNT ( traverse ) FROM river WHERE river_name  =  "珠江";
Schema: CREATE TABLE river (river_name VARCHAR, traverse VARCHAR)
user: “珠江”流经多少省？

assistant: SELECT COUNT ( traverse ) FROM river WHERE river_name  =  "珠江";
Schema: CREATE TABLE river (river_name VARCHAR, traverse VARCHAR)
user: 有多少省流经“珠江”？

assistant: SELECT COUNT ( traverse ) FROM river WHERE river_name  =  "珠江";
Schema: CREATE TABLE river (state_name VARCHAR, river_name VARCHAR, traverse VARCHAR, LENGTH INTEGER, area INTEGER), CREATE TABLE state (state_name VARCHAR, river_name VARCHAR, traverse VARCHAR, LENGTH INTEGER, area INTEGER)
user: 中国最小的河流中最长的河流是什么？

assistant: SELECT river_name FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river WHERE traverse IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) ) ) AND traverse IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) );
Schema: CREATE TABLE state (population VARCHAR, area VARCHAR, state_name VARCHAR)
user: “黑龙江”平均每平方公里人口是多少？

assistant: SELECT population / area FROM state WHERE state_name  =  "黑龙江";
Schema: CREATE TABLE border_info (state_name VARCHAR, border VARCHAR)
user: 哪个省的边境是“河南”

assistant: SELECT border FROM border_info WHERE state_name IN ( SELECT border FROM border_info WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "河南" ) );
Schema: CREATE TABLE border_info (state_name VARCHAR)
user: 有多少省至少有一个省？

assistant: SELECT COUNT ( DISTINCT state_name ) FROM border_info;
Schema: CREATE TABLE highlow (state_name VARCHAR, highest_elevation VARCHAR)
user: “四川”最高的山峰是什么高度？

assistant: SELECT MAX ( DISTINCT highest_elevation ) FROM highlow WHERE state_name  =  "四川";
Schema: CREATE TABLE border_info (state_name VARCHAR, border VARCHAR)
user: 有多少省划界“贵州”和“湖南”边界

assistant: SELECT COUNT ( border ) FROM border_info WHERE border IN ( SELECT border FROM border_info WHERE state_name  =  "贵州" ) AND state_name  =  "湖南";
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR, border VARCHAR, population INTEGER), CREATE TABLE border_info (state_name VARCHAR, city_name VARCHAR, border VARCHAR, population INTEGER)
user: 与“四川”省接壤的省有多少个主要城市

assistant: SELECT COUNT ( city_name ) FROM city WHERE population  >  150000 AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "四川" );
Schema: CREATE TABLE state (state_name VARCHAR, population INTEGER), CREATE TABLE border_info (state_name VARCHAR, border VARCHAR)
user: 与“四川”接壤的省的总人口是多少？

assistant: SELECT SUM ( t2.population ) FROM state AS t2 JOIN border_info AS t1 ON t2.state_name  =  t1.border WHERE t1.state_name  =  "四川";
Schema: CREATE TABLE lake (lake_name VARCHAR, area INTEGER)
user: 中国的主要湖泊是什么？

assistant: SELECT lake_name FROM lake WHERE area  >  750;
Schema: CREATE TABLE lake (lake_name VARCHAR, area INTEGER)
user: 给我看看中国所有的主要湖泊

assistant: SELECT lake_name FROM lake WHERE area  >  750;
Schema: CREATE TABLE lake (lake_name VARCHAR)
user: 说出我们所有的湖泊

assistant: SELECT lake_name FROM lake;
Schema: CREATE TABLE river (river_name VARCHAR, traverse VARCHAR, LENGTH INTEGER)
user: “湖北”有多少条主要河流

assistant: SELECT COUNT ( river_name ) FROM river WHERE LENGTH  >  750 AND traverse  =  "湖北";
Schema: CREATE TABLE river (LENGTH VARCHAR, traverse VARCHAR)
user: 什么省有最短的河流

assistant: SELECT DISTINCT traverse FROM river WHERE LENGTH  =  ( SELECT MIN ( DISTINCT LENGTH ) FROM river );
Schema: CREATE TABLE river (LENGTH INTEGER, traverse VARCHAR)
user: 主要河流旁边有多少个省

assistant: SELECT COUNT ( DISTINCT traverse ) FROM river WHERE LENGTH  >  750;
Schema: CREATE TABLE mountain (mountain_altitude VARCHAR, mountain_name VARCHAR)
user: “黄山”的高度是多少？

assistant: SELECT mountain_altitude FROM mountain WHERE mountain_name  =  "黄山";
Schema: CREATE TABLE river (LENGTH INTEGER, traverse VARCHAR)
user: 最短的河流经过哪些省？

assistant: SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );
Schema: CREATE TABLE state (state_name VARCHAR, population INTEGER), CREATE TABLE highlow (state_name VARCHAR, highest_point VARCHAR)
user: 人口最小的国家的最高点是什么？

assistant: SELECT t2.highest_point FROM state AS t1 JOIN highlow AS t2 ON t1.state_name  =  t2.state_name WHERE t1.state_name IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MIN ( population ) FROM state ) );
Schema: CREATE TABLE river (state_name VARCHAR, river_name VARCHAR, lowest_elevation INTEGER, traverse VARCHAR), CREATE TABLE highlow (state_name VARCHAR, river_name VARCHAR, lowest_elevation INTEGER, traverse VARCHAR)
user: 哪些河流流经中国海拔最低的省？

assistant: SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM highlow WHERE lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow ) );
Schema: CREATE TABLE river (state_name VARCHAR, river_name VARCHAR, lowest_elevation INTEGER, traverse VARCHAR), CREATE TABLE highlow (state_name VARCHAR, river_name VARCHAR, lowest_elevation INTEGER, traverse VARCHAR)
user: 什么河流流经中国最低点所在的省

assistant: SELECT river_name FROM river WHERE traverse IN ( SELECT state_name FROM highlow WHERE lowest_elevation  =  ( SELECT MIN ( lowest_elevation ) FROM highlow ) );
Schema: CREATE TABLE mountain (state_name VARCHAR, mountain_name VARCHAR)
user: “辽宁”有什么山

assistant: SELECT mountain_name FROM mountain WHERE state_name  =  "辽宁";
Schema: CREATE TABLE river (LENGTH INTEGER, traverse VARCHAR)
user: 有多少省有主要河流？

assistant: SELECT COUNT ( traverse ) FROM river WHERE LENGTH  >  750;
Schema: CREATE TABLE state (traverse VARCHAR, state_name VARCHAR, area INTEGER, LENGTH INTEGER), CREATE TABLE river (traverse VARCHAR, state_name VARCHAR, area INTEGER, LENGTH INTEGER)
user: 最长的河流运行的最小状态是什么？

assistant: SELECT state_name FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river ) ) ) AND state_name IN ( SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river ) );
Schema: CREATE TABLE state (traverse VARCHAR, state_name VARCHAR, area INTEGER, river_name VARCHAR), CREATE TABLE river (traverse VARCHAR, state_name VARCHAR, area INTEGER, river_name VARCHAR)
user: “湄公河”最大的省是哪一个省？

assistant: SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "湄公河" ) ) AND state_name IN ( SELECT traverse FROM river WHERE river_name  =  "湄公河" );
Schema: CREATE TABLE state (traverse VARCHAR, state_name VARCHAR, area INTEGER, river_name VARCHAR), CREATE TABLE river (traverse VARCHAR, state_name VARCHAR, area INTEGER, river_name VARCHAR)
user: “湄公河”所经历的最大的省是什么？

assistant: SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "湄公河" ) ) AND state_name IN ( SELECT traverse FROM river WHERE river_name  =  "湄公河" );
Schema: CREATE TABLE river (state_name VARCHAR, river_name VARCHAR, border VARCHAR, traverse VARCHAR), CREATE TABLE border_info (state_name VARCHAR, river_name VARCHAR, border VARCHAR, traverse VARCHAR)
user: 有多少河流流经“贵州”接壤的省

assistant: SELECT COUNT ( river_name ) FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name  =  "贵州" );
Schema: CREATE TABLE state (state_name VARCHAR, traverse VARCHAR), CREATE TABLE river (state_name VARCHAR, traverse VARCHAR)
user: 什么省没有河流

assistant: SELECT state_name FROM state WHERE state_name NOT IN ( SELECT traverse FROM river );
Schema: CREATE TABLE state (capital VARCHAR, area INTEGER)
user: 面积最大的省的省会是什么？

assistant: SELECT capital FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );
Schema: CREATE TABLE state (capital VARCHAR, area INTEGER)
user: 中国最大的省会是什么？

assistant: SELECT capital FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state );
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR)
user: “四川”有多少城市

assistant: SELECT COUNT ( city_name ) FROM city WHERE state_name  =  "四川";
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR)
user: “四川”的城市数量是多少？

assistant: SELECT COUNT ( city_name ) FROM city WHERE state_name  =  "四川";
Schema: CREATE TABLE state (area VARCHAR)
user: 所有省的面积是多少？

assistant: SELECT area FROM state;
Schema: CREATE TABLE river (LENGTH VARCHAR, traverse VARCHAR)
user: 中国有多少省流经最短的河流

assistant: SELECT COUNT ( DISTINCT traverse ) FROM river WHERE LENGTH  =  ( SELECT MIN ( DISTINCT LENGTH ) FROM river );
Schema: CREATE TABLE river (state_name VARCHAR, river_name VARCHAR, border VARCHAR, traverse VARCHAR, population INTEGER), CREATE TABLE border_info (state_name VARCHAR, river_name VARCHAR, border VARCHAR, traverse VARCHAR, population INTEGER), CREATE TABLE state (state_name VARCHAR, river_name VARCHAR, border VARCHAR, traverse VARCHAR, population INTEGER)
user: 什么河流流经人口最多的省？

assistant: SELECT river_name FROM river WHERE traverse IN ( SELECT border FROM border_info WHERE state_name IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) ) );
Schema: CREATE TABLE city (state_name VARCHAR, city_name VARCHAR, area INTEGER, population INTEGER), CREATE TABLE state (state_name VARCHAR, city_name VARCHAR, area INTEGER, population INTEGER)
user: 最大城市的主要城市是什么？

assistant: SELECT city_name FROM city WHERE population  >  150000 AND state_name  =  ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );
Schema: CREATE TABLE state (area INTEGER)
user: 最小省的面积是多少？

assistant: SELECT area FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state );
Schema: CREATE TABLE border_info (state_name VARCHAR, border VARCHAR, traverse VARCHAR, LENGTH INTEGER), CREATE TABLE river (state_name VARCHAR, border VARCHAR, traverse VARCHAR, LENGTH INTEGER)
user: 哪些省接近中国最长的河流

assistant: SELECT border FROM border_info WHERE state_name IN ( SELECT traverse FROM river WHERE LENGTH  =  ( SELECT MAX ( LENGTH ) FROM river ) );
Schema: CREATE TABLE state (density VARCHAR, population INTEGER)
user: 人口最少的省的人口密度是多少？

assistant: SELECT density FROM state WHERE population  =  ( SELECT MIN ( population ) FROM state );
Schema: CREATE TABLE border_info (state_name VARCHAR, border VARCHAR, traverse VARCHAR, river_name VARCHAR), CREATE TABLE river (state_name VARCHAR, border VARCHAR, traverse VARCHAR, river_name VARCHAR)
user: 有多少省临近“长江”

assistant: SELECT COUNT ( DISTINCT border ) FROM border_info WHERE state_name IN ( SELECT traverse FROM river WHERE river_name  =  "长江" );
Schema: CREATE TABLE state (state_name VARCHAR, capital VARCHAR), CREATE TABLE highlow (highest_point VARCHAR)
user: 哪些省的资本是国家的最高点？

assistant: SELECT t1.state_name FROM state AS t1 JOIN highlow AS t2 ON t1.capital  =  t2.highest_point;
Schema: CREATE TABLE city (population VARCHAR, city_name VARCHAR, area INTEGER, capital VARCHAR), CREATE TABLE state (population VARCHAR, city_name VARCHAR, area INTEGER, capital VARCHAR)
user: 最小省的省会人口是多少？

assistant: SELECT population FROM city WHERE city_name  =  ( SELECT capital FROM state WHERE area  =  ( SELECT MIN ( area ) FROM state ) );
Schema: CREATE TABLE city (population VARCHAR, city_name VARCHAR, area INTEGER, capital VARCHAR), CREATE TABLE state (population VARCHAR, city_name VARCHAR, area INTEGER, capital VARCHAR)
user: 最大省的省会人口是多少？

assistant: SELECT population FROM city WHERE city_name  =  ( SELECT capital FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );
Schema: CREATE TABLE state (state_name VARCHAR, area INTEGER), CREATE TABLE highlow (state_name VARCHAR, lowest_point VARCHAR)
user: 最大面积的省的最低点是什么？

assistant: SELECT t2.lowest_point FROM state AS t1 JOIN highlow AS t2 ON t1.state_name  =  t2.state_name WHERE t1.state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );
Schema: CREATE TABLE border_info (state_name VARCHAR, border VARCHAR), CREATE TABLE state (state_name VARCHAR, population INTEGER)
user: 哪些省与人口最多的省接壤？

assistant: SELECT t1.border FROM border_info AS t2 JOIN border_info AS t1 ON t2.border  =  t1.state_name WHERE t2.state_name IN ( SELECT state_name FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state ) );
Schema: CREATE TABLE state (area INTEGER)
user: 中国最大的省的大小是多少？

assistant: SELECT MAX ( area ) FROM state;
Schema: CREATE TABLE state (area INTEGER)
user: 最大省的面积是多少？

assistant: SELECT MAX ( area ) FROM state;
Schema: CREATE TABLE state (capital VARCHAR), CREATE TABLE city (city_name VARCHAR, population INTEGER)
user: 哪些省会不是主要城市

assistant: SELECT t2.capital FROM state AS t2 JOIN city AS t1 ON t2.capital  =  t1.city_name WHERE t1.population  <=  150000;
Schema: CREATE TABLE city (city_name VARCHAR)
user: 给我中国的城市

assistant: SELECT city_name FROM city;
Schema: CREATE TABLE state (state_name VARCHAR, area INTEGER), CREATE TABLE highlow (state_name VARCHAR, highest_point VARCHAR)
user: 面积最大的国家的最高点是什么？

assistant: SELECT t2.highest_point FROM state AS t1 JOIN highlow AS t2 ON t1.state_name  =  t2.state_name WHERE t1.state_name IN ( SELECT state_name FROM state WHERE area  =  ( SELECT MAX ( area ) FROM state ) );
Schema: CREATE TABLE state (country_name VARCHAR, state_name VARCHAR)
user: “广东”省在哪里

assistant: SELECT country_name FROM state WHERE state_name  =  "广东";
Schema: CREATE TABLE city (state_name VARCHAR, population INTEGER)
user: 哪个国家拥有最大的城市人口？

assistant: SELECT state_name FROM city GROUP BY state_name ORDER BY SUM ( population ) DESC LIMIT 1;
Schema: CREATE TABLE river (river_name VARCHAR)
user: 中国的主要河流是什么？

assistant: SELECT river_name FROM river;
Schema: CREATE TABLE city (city_name VARCHAR)
user: 中国有多少个叫“长沙”的城市？

assistant: SELECT COUNT ( city_name ) FROM city WHERE city_name  =  "长沙";
Schema: CREATE TABLE state (state_name VARCHAR, border VARCHAR, population INTEGER), CREATE TABLE border_info (state_name VARCHAR, border VARCHAR, population INTEGER)
user: 有多少人生活在与“山东”接壤的最小的省？

assistant: SELECT population FROM state WHERE population  =  ( SELECT MAX ( population ) FROM state WHERE state_name IN ( SELECT border FROM border_info WHERE state_name  =  "山东" ) ) AND state_name IN ( SELECT border FROM border_info WHERE state_name  =  "山东" );
Schema: CREATE TABLE river (traverse VARCHAR, river_name VARCHAR, LENGTH VARCHAR)
user: “四川”的“金沙江” 的长度是多少？

assistant: SELECT LENGTH FROM river WHERE river_name  =  "金沙江" AND traverse  =  "四川";
Schema: CREATE TABLE state (capital VARCHAR, density VARCHAR)
user: 省会是“长沙”的省份的人口密度是多少？

assistant: SELECT density FROM state WHERE capital  =  "长沙";
Schema: CREATE TABLE river (LENGTH INTEGER)
user: 中国最短的河流有多长？

assistant: SELECT LENGTH FROM river WHERE LENGTH  =  ( SELECT MIN ( LENGTH ) FROM river );
Schema: CREATE TABLE highlow (lowest_elevation VARCHAR, lowest_point VARCHAR)
user: “衡山”的海拔是多少？

assistant: SELECT lowest_elevation FROM highlow WHERE lowest_point  =  "衡山";
Schema: CREATE TABLE state (population INTEGER)
user: 中国的平均人口是多少？

assistant: SELECT AVG ( population ) FROM state;