jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE buildings (Height VARCHAR, name VARCHAR)
user: 以建筑物高度降序列出建筑物名称。

assistant: SELECT name FROM buildings ORDER BY Height DESC
Schema: CREATE TABLE buildings (Height VARCHAR, name VARCHAR)
user: 建筑高度按降序排列的建筑物名称是什么？

assistant: SELECT name FROM buildings ORDER BY Height DESC
Schema: CREATE TABLE buildings (Height VARCHAR, Stories VARCHAR)
user: 找出最大高度的建筑物的故事。

assistant: SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1
Schema: CREATE TABLE buildings (Height VARCHAR, Stories VARCHAR)
user: 最高建筑物的故事是什么？

assistant: SELECT Stories FROM buildings ORDER BY Height DESC LIMIT 1
Schema: CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR), CREATE TABLE buildings (id VARCHAR, name VARCHAR), CREATE TABLE Companies (id VARCHAR, name VARCHAR)
user: 列出办公室所在建筑物的名称以及公司的名称。

assistant: SELECT T3.name ,  T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id
Schema: CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR), CREATE TABLE buildings (id VARCHAR, name VARCHAR), CREATE TABLE Companies (id VARCHAR, name VARCHAR)
user: 对于每个公司，返回其办公室所在的建筑物的名称和公司名称。

assistant: SELECT T3.name ,  T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id
Schema: CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR), CREATE TABLE buildings (id VARCHAR, name VARCHAR), CREATE TABLE Companies (id VARCHAR)
user: 显示有超过一个公司办公室的建筑物的名称。

assistant: SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id HAVING COUNT(*)  >  1
Schema: CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR), CREATE TABLE buildings (id VARCHAR, name VARCHAR), CREATE TABLE Companies (id VARCHAR)
user: 哪些建筑物有一个以上的公司办公室？给出建筑物名称。

assistant: SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id HAVING COUNT(*)  >  1
Schema: CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR), CREATE TABLE buildings (id VARCHAR, name VARCHAR), CREATE TABLE Companies (id VARCHAR)
user: 显示拥有公司办公室最多的建筑的名称。

assistant: SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1
Schema: CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR), CREATE TABLE buildings (id VARCHAR, name VARCHAR), CREATE TABLE Companies (id VARCHAR)
user: 哪家公司拥有最多的公司办公室？给出建筑物名称。

assistant: SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id  =  T2.id JOIN Companies AS T3 ON T1.company_id  =  T3.id GROUP BY T1.building_id ORDER BY COUNT(*) DESC LIMIT 1
Schema: CREATE TABLE buildings (Status VARCHAR, name VARCHAR, Stories VARCHAR)
user: 请按楼层升序列出“值班”状态的建筑物的名称。

assistant: SELECT name FROM buildings WHERE Status  =  "值班" ORDER BY Stories ASC
Schema: CREATE TABLE buildings (Status VARCHAR, name VARCHAR, Stories VARCHAR)
user: 找出处于“值班”状态的建筑物的名称，并按照建筑物层级的升序对其进行排序。

assistant: SELECT name FROM buildings WHERE Status  =  "值班" ORDER BY Stories ASC
Schema: CREATE TABLE Companies (Industry VARCHAR)
user: 请显示每个行业的名称以及该行业相应的公司数量。

assistant: SELECT Industry ,  COUNT(*) FROM Companies GROUP BY Industry
Schema: CREATE TABLE Companies (Industry VARCHAR)
user: 每个行业的名称和每个行业中对应的公司数量是什么？

assistant: SELECT Industry ,  COUNT(*) FROM Companies GROUP BY Industry
Schema: CREATE TABLE Companies (Industry VARCHAR)
user: 请按照公司数量的降序显示公司的行业。

assistant: SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC
Schema: CREATE TABLE Companies (Industry VARCHAR)
user: 按每个行业的公司数量的降序对所有行业进行排序

assistant: SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC
Schema: CREATE TABLE Companies (Industry VARCHAR)
user: 列出大多数公司共享的行业。

assistant: SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1
Schema: CREATE TABLE Companies (Industry VARCHAR)
user: 哪个行业有最多的公司？

assistant: SELECT Industry FROM Companies GROUP BY Industry ORDER BY COUNT(*) DESC LIMIT 1
Schema: CREATE TABLE buildings (building_id VARCHAR, id VARCHAR, name VARCHAR), CREATE TABLE Office_locations (building_id VARCHAR, id VARCHAR, name VARCHAR)
user: 列出没有公司办公室的建筑名称。

assistant: SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations)
Schema: CREATE TABLE buildings (building_id VARCHAR, id VARCHAR, name VARCHAR), CREATE TABLE Office_locations (building_id VARCHAR, id VARCHAR, name VARCHAR)
user: 哪些建筑物没有公司的办公室？给出建筑的名称。

assistant: SELECT name FROM buildings WHERE id NOT IN (SELECT building_id FROM Office_locations)
Schema: CREATE TABLE Companies (Industry VARCHAR, Headquarters VARCHAR)
user: 显示总部设在“中国”的公司和总部设在“中国”的公司所共有的行业。

assistant: SELECT Industry FROM Companies WHERE Headquarters  =  "中国" INTERSECT SELECT Industry FROM Companies WHERE Headquarters  =  "中国"
Schema: CREATE TABLE Companies (Industry VARCHAR, Headquarters VARCHAR)
user: 总部设在“中国”的公司和总部设在“中国”的公司所共有的行业是那些？

assistant: SELECT Industry FROM Companies WHERE Headquarters  =  "中国" INTERSECT SELECT Industry FROM Companies WHERE Headquarters  =  "中国"
Schema: CREATE TABLE Companies (Industry VARCHAR)
user: 找出其行业是“银行业”或“综合”的公司。

assistant: SELECT count(*) FROM Companies WHERE Industry  =  "银行业" OR Industry  =  "综合"
Schema: CREATE TABLE Companies (Industry VARCHAR)
user: 行业是“银行业”或“综合”的公司有多少家？

assistant: SELECT count(*) FROM Companies WHERE Industry  =  "银行业" OR Industry  =  "综合"
Schema: CREATE TABLE Companies (Headquarters VARCHAR)
user: 显示超过两家公司所共享的总部地点。

assistant: SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*)  >  2
Schema: CREATE TABLE Companies (Headquarters VARCHAR)
user: 那个总部位置被超过2家公司所共享？

assistant: SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*)  >  2
Schema: CREATE TABLE Products (Id VARCHAR)
user: 有多少产品？

assistant: SELECT count(*) FROM Products
Schema: CREATE TABLE Products (Product_Price VARCHAR, Product_Name VARCHAR)
user: 按价格升序列出产品名称。

assistant: SELECT Product_Name FROM Products ORDER BY Product_Price ASC
Schema: CREATE TABLE Products (Product_Type_Code VARCHAR, Product_Name VARCHAR)
user: 产品名称和型号代码是什么？

assistant: SELECT Product_Name ,  Product_Type_Code FROM Products
Schema: CREATE TABLE Products (Product_Price VARCHAR, Product_Name VARCHAR)
user: 名字是“快餐”或“交易守则”的产品的价格。

assistant: SELECT Product_Price FROM Products WHERE Product_Name  =  "快餐" OR Product_Name  =  "交易守则"
Schema: CREATE TABLE Products (Product_Price INTEGER)
user: 产品的平均价格是多少？

assistant: SELECT avg(Product_Price) FROM Products
Schema: CREATE TABLE Products (Product_Price VARCHAR, Product_Name VARCHAR)
user: 价格最高的产品叫什么名字？

assistant: SELECT Product_Name FROM Products ORDER BY Product_Price DESC LIMIT 1
Schema: CREATE TABLE Products (Product_Type_Code VARCHAR)
user: 显示不同的产品类型代码以及每个类型代码的产品数量。

assistant: SELECT Product_Type_Code ,  COUNT(*) FROM Products GROUP BY Product_Type_Code
Schema: CREATE TABLE Products (Product_Type_Code VARCHAR)
user: 显示跨产品间最常见类型代码。

assistant: SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code ORDER BY COUNT(*) DESC LIMIT 1
Schema: CREATE TABLE Products (Product_Type_Code VARCHAR)
user: 显示具有至少两个产品的产品类型代码。

assistant: SELECT Product_Type_Code FROM Products GROUP BY Product_Type_Code HAVING COUNT(*)  >=  2
Schema: CREATE TABLE Products (Product_Type_Code VARCHAR, Product_Price INTEGER)
user: 展示产品价格高于4500和产品价格低于3000的产品型号代码。

assistant: SELECT Product_Type_Code FROM Products WHERE Product_Price  >  4500 INTERSECT SELECT Product_Type_Code FROM Products WHERE Product_Price  <  3000
Schema: CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR), CREATE TABLE Products_in_Events (Product_ID VARCHAR)
user: 显示产品的名称和事件的数量。

assistant: SELECT T1.Product_Name ,  COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name
Schema: CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR), CREATE TABLE Products_in_Events (Product_ID VARCHAR)
user: 按照事件的数量按降序排序显示产品的名称和它们对应的事件数量。

assistant: SELECT T1.Product_Name ,  COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name ORDER BY COUNT(*) DESC
Schema: CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR), CREATE TABLE Products_in_Events (Product_ID VARCHAR)
user: 显示至少有两个事件中的产品名称。

assistant: SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*)  >=  2
Schema: CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR), CREATE TABLE Products_in_Events (Product_ID VARCHAR)
user: 按照产品名称字母升序显示至少包含两个事件中的产品名称。

assistant: SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID  =  T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*)  >=  2 ORDER BY T1.Product_Name
Schema: CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR), CREATE TABLE Products_in_Events (Product_Name VARCHAR, Product_ID VARCHAR)
user: 列出没有任何事件的产品名称。

assistant: SELECT Product_Name FROM Products WHERE Product_ID NOT IN (SELECT Product_ID FROM Products_in_Events)
Schema: CREATE TABLE artwork (Id VARCHAR)
user: 有多少艺术品？

assistant: SELECT count(*) FROM artwork
Schema: CREATE TABLE artwork (Name VARCHAR)
user: 按字母顺序升序排列艺术品名称。

assistant: SELECT Name FROM artwork ORDER BY Name ASC
Schema: CREATE TABLE artwork (Name VARCHAR, TYPE VARCHAR)
user: 列出不属于“抽象”类型的作品名称。

assistant: SELECT Name FROM artwork WHERE TYPE != "抽象"
Schema: CREATE TABLE festival_detail (LOCATION VARCHAR, Festival_Name VARCHAR)
user: 艺术节的名称和地点是什么？

assistant: SELECT Festival_Name ,  LOCATION FROM festival_detail
Schema: CREATE TABLE festival_detail (Chair_Name VARCHAR, YEAR VARCHAR)
user: 按照每年的升序排列的艺术节主席的名字是什么？

assistant: SELECT Chair_Name FROM festival_detail ORDER BY YEAR ASC
Schema: CREATE TABLE festival_detail (LOCATION VARCHAR, Num_of_Audience VARCHAR)
user: 观众人数最多的艺术节地点是什么？

assistant: SELECT LOCATION FROM festival_detail ORDER BY Num_of_Audience DESC LIMIT 1
Schema: CREATE TABLE festival_detail (Festival_Name VARCHAR, YEAR VARCHAR)
user: 2007年度的艺术节名称是什么？

assistant: SELECT Festival_Name FROM festival_detail WHERE YEAR  =  2007
Schema: CREATE TABLE festival_detail (Num_of_Audience INTEGER)
user: 艺术节观众的平均人数是多少？

assistant: SELECT avg(Num_of_Audience) FROM festival_detail
Schema: CREATE TABLE festival_detail (Festival_Name VARCHAR, YEAR VARCHAR)
user: 展示最近三个艺术节的名称。

assistant: SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3
Schema: CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR), CREATE TABLE artwork (Artwork_ID VARCHAR, Name VARCHAR), CREATE TABLE festival_detail (Festival_ID VARCHAR, Festival_Name VARCHAR)
user: 对于每个提名，显示作品的名称和提名它的艺术节名称。

assistant: SELECT T2.Name ,  T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID
Schema: CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR), CREATE TABLE artwork (Artwork_ID VARCHAR, Type VARCHAR), CREATE TABLE festival_detail (Festival_ID VARCHAR, Year VARCHAR)
user: 展示不同类型在2007的艺术节中被提名的艺术品。

assistant: SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID WHERE T3.Year  =  2007
Schema: CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR), CREATE TABLE artwork (Artwork_ID VARCHAR, Name VARCHAR), CREATE TABLE festival_detail (Festival_ID VARCHAR, Year VARCHAR)
user: 按提名年度的升序显示艺术品名称。

assistant: SELECT T2.Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID ORDER BY T3.Year
Schema: CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR), CREATE TABLE artwork (Artwork_ID VARCHAR, Type VARCHAR), CREATE TABLE festival_detail (Festival_ID VARCHAR, Festival_Name VARCHAR)
user: 显示提及“抽象”类型的艺术品的艺术节名称。

assistant: SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID WHERE T2.Type  =  "抽象"
Schema: CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR), CREATE TABLE artwork (Artwork_ID VARCHAR), CREATE TABLE festival_detail (Festival_ID VARCHAR, Festival_Name VARCHAR)
user: 展示至少有两项艺术品提名的艺术节的名称和标识。

assistant: SELECT T1.Festival_ID ,  T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*)  >=  2
Schema: CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR), CREATE TABLE artwork (Artwork_ID VARCHAR), CREATE TABLE festival_detail (Festival_ID VARCHAR, Festival_Name VARCHAR)
user: 显示每一个艺术节的ID、名字和它所提名的艺术品数量。

assistant: SELECT T1.Festival_ID ,  T3.Festival_Name ,  COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID  =  T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID  =  T3.Festival_ID GROUP BY T1.Festival_ID
Schema: CREATE TABLE artwork (TYPE VARCHAR)
user: 显示不同类型的艺术品及每种类型的艺术品对应的数量。

assistant: SELECT TYPE ,  COUNT(*) FROM artwork GROUP BY TYPE
Schema: CREATE TABLE artwork (TYPE VARCHAR)
user: 列出最常见的艺术品类型。

assistant: SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
Schema: CREATE TABLE festival_detail (YEAR VARCHAR)
user: 列出有一个以上艺术节的年份。

assistant: SELECT YEAR FROM festival_detail GROUP BY YEAR HAVING COUNT(*)  >  1
Schema: CREATE TABLE Artwork (Artwork_ID VARCHAR, Name VARCHAR), CREATE TABLE nomination (Artwork_ID VARCHAR, Name VARCHAR)
user: 列出未被提名的作品名称。

assistant: SELECT Name FROM Artwork WHERE Artwork_ID NOT IN (SELECT Artwork_ID FROM nomination)
Schema: CREATE TABLE festival_detail (Num_of_Audience VARCHAR, YEAR VARCHAR)
user: 显示2008或2010年的观众数量。

assistant: SELECT Num_of_Audience FROM festival_detail WHERE YEAR  =  2008 OR YEAR  =  2010
Schema: CREATE TABLE festival_detail (Num_of_Audience INTEGER)
user: 参观这些艺术节的观众总数是多少？

assistant: SELECT sum(Num_of_Audience) FROM festival_detail
Schema: CREATE TABLE festival_detail (LOCATION VARCHAR, YEAR VARCHAR)
user: 哪一年“美国”国内和“美国”国外都有艺术节？

assistant: SELECT YEAR FROM festival_detail WHERE LOCATION  =  '美国' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION != '美国'
Schema: CREATE TABLE premises (Id VARCHAR)
user: 有多少处建筑物？

assistant: SELECT count(*) FROM premises
Schema: CREATE TABLE premises (premises_type VARCHAR)
user: 什么是不同的建筑物的类型？

assistant: SELECT DISTINCT premises_type FROM premises
Schema: CREATE TABLE premises (premise_details VARCHAR, premises_type VARCHAR)
user: 通过建筑物类型查找所有房屋和订单的类型和细节。

assistant: SELECT premises_type ,  premise_details FROM premises ORDER BY premises_type
Schema: CREATE TABLE premises (premises_type VARCHAR)
user: 显示每个建筑物类型和该类型的建筑物数。

assistant: SELECT premises_type ,  count(*) FROM premises GROUP BY premises_type
Schema: CREATE TABLE mailshot_campaigns (product_category VARCHAR)
user: 显示所有不同的产品类别以及每个类别中的邮件的数量。

assistant: SELECT product_category ,  count(*) FROM mailshot_campaigns GROUP BY product_category
Schema: CREATE TABLE customers (customer_phone VARCHAR, customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE mailshot_customers (customer_phone VARCHAR, customer_name VARCHAR, customer_id VARCHAR)
user: 在没有任何邮件的情况下显示客户的姓名和电话。

assistant: SELECT customer_name ,  customer_phone FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM mailshot_customers)
Schema: CREATE TABLE customers (customer_phone VARCHAR, customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE mailshot_customers (outcome_code VARCHAR, customer_id VARCHAR)
user: 显示用带有“无回应”结果代码的发放邮件客户的姓名和电话。

assistant: SELECT T1.customer_name ,  T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T2.outcome_code  =  '无回应'
Schema: CREATE TABLE mailshot_customers (outcome_code VARCHAR)
user: 显示邮件快照的结果代码以及每个结果代码中的邮件快照数量。

assistant: SELECT outcome_code ,  count(*) FROM mailshot_customers GROUP BY outcome_code
Schema: CREATE TABLE mailshot_customers (customer_id VARCHAR), CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
user: 显示至少有2个邮件的客户且结果代码是“预定”的客户姓名。

assistant: SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE outcome_code  =  '预定' GROUP BY T1.customer_id HAVING count(*)  >=  2
Schema: CREATE TABLE mailshot_customers (customer_id VARCHAR), CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
user: 显示邮件最多的客户的名字。

assistant: SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE mailshot_customers (outcome_code VARCHAR, customer_id VARCHAR), CREATE TABLE customers (payment_method VARCHAR, customer_name VARCHAR, customer_id VARCHAR)
user: 在邮件结果中同时具有“预定”邮件快照和具有“无回应”邮件快照的客户的姓名和支付方法是什么？

assistant: SELECT T2.customer_name ,  T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.outcome_code  =  '预定' INTERSECT SELECT T2.customer_name ,  T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id  =  T2.customer_id WHERE T1.outcome_code  =  '无回应'
Schema: CREATE TABLE customer_addresses (address_type_code VARCHAR, premise_id VARCHAR), CREATE TABLE premises (premise_id VARCHAR, premises_type VARCHAR)
user: 针对所有客户地址显示建筑物类型和地址类型代码。

assistant: SELECT T2.premises_type ,  T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id  =  T2.premise_id
Schema: CREATE TABLE customer_addresses (address_type_code VARCHAR)
user: 对于所有的客户地址，有什么不同的地址类型代码？

assistant: SELECT DISTINCT address_type_code FROM customer_addresses
Schema: CREATE TABLE customer_orders (order_status_code VARCHAR, customer_id VARCHAR, order_shipping_charges VARCHAR)
user: 显示“取消”或“付款”订单状态的客户订单的装运费和客户ID。

assistant: SELECT order_shipping_charges ,  customer_id FROM customer_orders WHERE order_status_code  =  '取消' OR order_status_code  =  '付款'
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customer_orders (customer_id VARCHAR)
user: 显示具有配送方法是“顺丰快递”和订单状态“付款”的订单客户的名称。

assistant: SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id WHERE shipping_method_code  =  '顺丰快递' AND order_status_code  =  '付款'
Schema: CREATE TABLE COURSE (Id VARCHAR)
user: 一共有多少门课？

assistant: SELECT count(*) FROM COURSE
Schema: CREATE TABLE COURSE (Id VARCHAR)
user: 统计课程的数量。

assistant: SELECT count(*) FROM COURSE
Schema: CREATE TABLE COURSE (Credits INTEGER)
user: 有多少课程有超过2学分？

assistant: SELECT count(*) FROM COURSE WHERE Credits  >  2
Schema: CREATE TABLE COURSE (Credits INTEGER)
user: 统计超过2学分的课程数。

assistant: SELECT count(*) FROM COURSE WHERE Credits  >  2
Schema: CREATE TABLE COURSE (Credits VARCHAR, CName VARCHAR)
user: 列出1学分的课程名称。

assistant: SELECT CName FROM COURSE WHERE Credits  =  1
Schema: CREATE TABLE COURSE (Credits VARCHAR, CName VARCHAR)
user: 1学分的课程名称是什么？

assistant: SELECT CName FROM COURSE WHERE Credits  =  1
Schema: CREATE TABLE COURSE (CName VARCHAR, Days VARCHAR)
user: 哪些课程是在“星期一”那一天教授的？

assistant: SELECT CName FROM COURSE WHERE Days  =  "星期一"
Schema: CREATE TABLE COURSE (CName VARCHAR, Days VARCHAR)
user: 在“星期一”那一天教授的课程名称是什么？

assistant: SELECT CName FROM COURSE WHERE Days  =  "星期一"
Schema: CREATE TABLE DEPARTMENT (Division VARCHAR)
user: 在分公司“管理部”的部门数量是多少？

assistant: SELECT count(*) FROM DEPARTMENT WHERE Division  =  "管理部"
Schema: CREATE TABLE DEPARTMENT (Division VARCHAR)
user: 在分公司“管理部”有多少个部门？

assistant: SELECT count(*) FROM DEPARTMENT WHERE Division  =  "管理部"
Schema: CREATE TABLE DEPARTMENT (DPhone VARCHAR, Room VARCHAR)
user: 268号房的电话是什么？

assistant: SELECT DPhone FROM DEPARTMENT WHERE Room  =  268
Schema: CREATE TABLE DEPARTMENT (DPhone VARCHAR, Room VARCHAR)
user: 给位置在268号房间内的部门打电话。

assistant: SELECT DPhone FROM DEPARTMENT WHERE Room  =  268
Schema: CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR)
user: 找到至少有一个成绩为“B”的学生人数。

assistant: SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade  =  "B"
Schema: CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR)
user: 有多少学生至少有一门成绩是“B”级？

assistant: SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade  =  "B"
Schema: CREATE TABLE GRADECONVERSION (gradepoint INTEGER)
user: 在所有字母分数中找出所有字母等级的最大和最小等级点。

assistant: SELECT max(gradepoint) ,  min(gradepoint) FROM GRADECONVERSION
Schema: CREATE TABLE GRADECONVERSION (gradepoint INTEGER)
user: 分数的最大值和最小值是多少？

assistant: SELECT max(gradepoint) ,  min(gradepoint) FROM GRADECONVERSION
Schema: CREATE TABLE STUDENT (Fname VARCHAR)
user: 找出名字包含“安”字的学生的名字。

assistant: SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE 'a'
Schema: CREATE TABLE STUDENT (Fname VARCHAR)
user: 名字中包含“安”的学生的名字是什么？

assistant: SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE 'a'
Schema: CREATE TABLE FACULTY (sex VARCHAR, Lname VARCHAR, Building VARCHAR, Fname VARCHAR)
user: 查找住在“行政”大楼的男性（性别是“男”）教职员工的名字和姓氏。

assistant: SELECT Fname ,  Lname FROM FACULTY WHERE sex  =  "男" AND Building  =  "行政"
Schema: CREATE TABLE FACULTY (sex VARCHAR, Lname VARCHAR, Building VARCHAR, Fname VARCHAR)
user: 住在“行政”大楼的男性（性别是“男”）教职员工的名字和姓氏是什么？

assistant: SELECT Fname ,  Lname FROM FACULTY WHERE sex  =  "男" AND Building  =  "行政"
Schema: CREATE TABLE FACULTY (Rank VARCHAR, Building VARCHAR, Room VARCHAR)
user: 找到居住在“行政”大楼的高级教授的房间。

assistant: SELECT Room FROM FACULTY WHERE Rank  =  "教授" AND Building  =  "行政"
Schema: CREATE TABLE FACULTY (Rank VARCHAR, Building VARCHAR, Room VARCHAR)
user: 居住在“行政”大楼的高级教授的房间是什么？

assistant: SELECT Room FROM FACULTY WHERE Rank  =  "教授" AND Building  =  "行政"
Schema: CREATE TABLE DEPARTMENT (DName VARCHAR, Building VARCHAR)
user: 找到位置在“逸夫”大楼的部门的名称。

assistant: SELECT DName FROM DEPARTMENT WHERE Building  =  "逸夫"
Schema: CREATE TABLE DEPARTMENT (DName VARCHAR, Building VARCHAR)
user: 在“逸夫”大楼内的部门名称是什么？

assistant: SELECT DName FROM DEPARTMENT WHERE Building  =  "逸夫"
Schema: CREATE TABLE COURSE (Credits VARCHAR)
user: 列出以学分升序排列的所有课程信息。

assistant: SELECT * FROM COURSE ORDER BY Credits
Schema: CREATE TABLE COURSE (Credits VARCHAR)
user: 以学分升序排列的所有课程信息是什么？

assistant: SELECT * FROM COURSE ORDER BY Credits
Schema: CREATE TABLE COURSE (Credits VARCHAR, CName VARCHAR)
user: 按学分排序列出的课程名称。

assistant: SELECT CName FROM COURSE ORDER BY Credits
Schema: CREATE TABLE COURSE (Credits VARCHAR, CName VARCHAR)
user: 按学分排序的课程名称是什么？

assistant: SELECT CName FROM COURSE ORDER BY Credits
Schema: CREATE TABLE STUDENT (Age VARCHAR, Fname VARCHAR)
user: 按年龄递减顺序查找学生的名字。

assistant: SELECT Fname FROM STUDENT ORDER BY Age DESC
Schema: CREATE TABLE STUDENT (Age VARCHAR, Fname VARCHAR)
user: 按年龄顺序从最大到最小排列的学生的名字是什么？

assistant: SELECT Fname FROM STUDENT ORDER BY Age DESC
Schema: CREATE TABLE STUDENT (Age VARCHAR, LName VARCHAR, Sex VARCHAR)
user: 按年龄递减顺序查找女性学生的姓氏（性别为“女性”）。

assistant: SELECT LName FROM STUDENT WHERE Sex  =  "F" ORDER BY Age DESC
Schema: CREATE TABLE STUDENT (Age VARCHAR, LName VARCHAR, Sex VARCHAR)
user: 按年龄降序顺序排序的“女性”学生的姓氏是什么？

assistant: SELECT LName FROM STUDENT WHERE Sex  =  "F" ORDER BY Age DESC
Schema: CREATE TABLE FACULTY (Lname VARCHAR, Building VARCHAR)
user: 根据字母顺序找出在“行政楼”建筑中机构工作的工作人员的姓氏。

assistant: SELECT Lname FROM FACULTY WHERE Building  =  "行政楼" ORDER BY Lname
Schema: CREATE TABLE FACULTY (Lname VARCHAR, Building VARCHAR)
user: 根据字母顺序的在“行政楼”建筑中机构工作的工作人员的姓氏是什么？

assistant: SELECT Lname FROM FACULTY WHERE Building  =  "行政楼" ORDER BY Lname
Schema: CREATE TABLE FACULTY (Rank VARCHAR, Fname VARCHAR)
user: 按字母顺序查找职级是“教授”的职工的名字。

assistant: SELECT Fname FROM FACULTY WHERE Rank  =  "教授" ORDER BY Fname
Schema: CREATE TABLE FACULTY (Rank VARCHAR, Fname VARCHAR)
user: 按字母顺序排列的职级是“教授”的职工的名字是什么？

assistant: SELECT Fname FROM FACULTY WHERE Rank  =  "教授" ORDER BY Fname