jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE products (product_id VARCHAR, product_price INTEGER, product_name VARCHAR)
user: 返回所有价格在600到700之间的产品的名称和ID。

assistant: SELECT product_name ,  product_id FROM products WHERE product_price BETWEEN 600 AND 700
Schema: CREATE TABLE products (product_id VARCHAR, product_price INTEGER, product_name VARCHAR)
user: 所有价格在600到700之间的产品的名称和ID是什么？

assistant: SELECT product_name ,  product_id FROM products WHERE product_price BETWEEN 600 AND 700
Schema: CREATE TABLE Customer_Orders (order_date INTEGER, order_status_code VARCHAR, customer_id VARCHAR)
user: 查找所有在“取消”某些订单后又有订购的不同客户的ID。

assistant: SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date  >  (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code  =  "取消")
Schema: CREATE TABLE Customer_Orders (order_date INTEGER, order_status_code VARCHAR, customer_id VARCHAR)
user: 在“取消”某些订单后又有订购的不同客户的ID是什么？

assistant: SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date  >  (SELECT min(order_date) FROM Customer_Orders WHERE order_status_code  =  "取消")
Schema: CREATE TABLE Staff_Department_Assignments (date_assigned_to INTEGER, staff_id VARCHAR, job_title_code VARCHAR)
user: 那些比“文书职员”更早被分配到职员部的职员的id是什么？

assistant: SELECT staff_id FROM Staff_Department_Assignments WHERE date_assigned_to  <  (SELECT max(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code  =  '文书职员')
Schema: CREATE TABLE Staff_Department_Assignments (date_assigned_to INTEGER, staff_id VARCHAR, job_title_code VARCHAR)
user: 返回比“文书职员”更早被分配到职员部的职员的id。

assistant: SELECT staff_id FROM Staff_Department_Assignments WHERE date_assigned_to  <  (SELECT max(date_assigned_to) FROM Staff_Department_Assignments WHERE job_title_code  =  '文书职员')
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR, customer_address VARCHAR)
user: 地址包含“巷”的客户名称和ID是什么？

assistant: SELECT customer_name ,  customer_id FROM customers WHERE customer_address LIKE "巷"
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR, customer_address VARCHAR)
user: 返回地址包含“巷”的客户名称和ID。

assistant: SELECT customer_name ,  customer_id FROM customers WHERE customer_address LIKE "巷"
Schema: CREATE TABLE staff (staff_id VARCHAR, staff_gender VARCHAR, staff_name VARCHAR), CREATE TABLE staff_department_assignments (staff_id VARCHAR, date_assigned_from VARCHAR)
user: 返回在“2016”年被指派的工作人员的姓名和性别。

assistant: SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.date_assigned_from LIKE "2016"
Schema: CREATE TABLE staff (staff_id VARCHAR, staff_gender VARCHAR, staff_name VARCHAR), CREATE TABLE staff_department_assignments (staff_id VARCHAR, date_assigned_from VARCHAR)
user: 在“2016”年被指派的工作人员的姓名和性别是什么？

assistant: SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.date_assigned_from LIKE "2016"
Schema: CREATE TABLE staff (staff_id VARCHAR, staff_name VARCHAR), CREATE TABLE staff_department_assignments (staff_id VARCHAR)
user: 列出被指派多个工作岗位的员工的姓名。

assistant: SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id GROUP BY T2.staff_id HAVING COUNT (*)  >  1
Schema: CREATE TABLE staff (staff_id VARCHAR, staff_name VARCHAR), CREATE TABLE staff_department_assignments (staff_id VARCHAR)
user: 被指派了多个工作岗位的员工的姓名是什么？

assistant: SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id  =  T2.staff_id GROUP BY T2.staff_id HAVING COUNT (*)  >  1
Schema: CREATE TABLE Suppliers (supplier_id VARCHAR, supplier_name VARCHAR, supplier_phone VARCHAR), CREATE TABLE supplier_addresses (supplier_id VARCHAR, address_id VARCHAR), CREATE TABLE addresses (address_id VARCHAR, address_details VARCHAR)
user: 按地址的字母顺序列出所有供应商的名称和电话号码。

assistant: SELECT T1.supplier_name ,  T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id  =  T2.supplier_id JOIN addresses AS T3 ON T2.address_id  =  T3.address_id ORDER BY T3.address_details
Schema: CREATE TABLE Suppliers (supplier_id VARCHAR, supplier_name VARCHAR, supplier_phone VARCHAR), CREATE TABLE supplier_addresses (supplier_id VARCHAR, address_id VARCHAR), CREATE TABLE addresses (address_id VARCHAR, address_details VARCHAR)
user: 按地址的字母顺序排列的所有供应商的姓名和电话号码是什么？

assistant: SELECT T1.supplier_name ,  T1.supplier_phone FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id  =  T2.supplier_id JOIN addresses AS T3 ON T2.address_id  =  T3.address_id ORDER BY T3.address_details
Schema: CREATE TABLE customers (customer_phone VARCHAR, supplier_phone VARCHAR), CREATE TABLE suppliers (customer_phone VARCHAR, supplier_phone VARCHAR)
user: 所有客户和供应商的电话号码是多少？

assistant: SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers
Schema: CREATE TABLE customers (customer_phone VARCHAR, supplier_phone VARCHAR), CREATE TABLE suppliers (customer_phone VARCHAR, supplier_phone VARCHAR)
user: 返回所有客户和供应商的电话号码。

assistant: SELECT customer_phone FROM customers UNION SELECT supplier_phone FROM suppliers
Schema: CREATE TABLE Order_Items (product_id VARCHAR, total_amount_purchased INTEGER), CREATE TABLE Product_Suppliers (product_id VARCHAR, total_amount_purchased INTEGER)
user: 返回所有订购三次以上或购买金额为80000以上的产品的标识。

assistant: SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*)  >  3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased)  >  80000
Schema: CREATE TABLE Order_Items (product_id VARCHAR, total_amount_purchased INTEGER), CREATE TABLE Product_Suppliers (product_id VARCHAR, total_amount_purchased INTEGER)
user: 订购次数超过3次或累计购买金额超过80000的所有产品的标识是什么？

assistant: SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*)  >  3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased)  >  80000
Schema: CREATE TABLE products (product_id VARCHAR, product_price INTEGER, product_name VARCHAR)
user: 价格低于600或高于900的产品的id和名称是什么？

assistant: SELECT product_id ,  product_name FROM products WHERE product_price  <  600 OR product_price  >  900
Schema: CREATE TABLE products (product_id VARCHAR, product_price INTEGER, product_name VARCHAR)
user: 给出价格低于600或高于900的产品的ID和名称。

assistant: SELECT product_id ,  product_name FROM products WHERE product_price  <  600 OR product_price  >  900
Schema: CREATE TABLE Product_Suppliers (supplier_id VARCHAR, total_amount_purchased INTEGER)
user: 查找平均每件产品购买量在50000以上或低于30000的供应商的ID。

assistant: SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased)  >  50000 OR avg(total_amount_purchased)  <  30000
Schema: CREATE TABLE Product_Suppliers (supplier_id VARCHAR, total_amount_purchased INTEGER)
user: 平均购买量在50000以上或低于30000的供应商的id是什么？

assistant: SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased)  >  50000 OR avg(total_amount_purchased)  <  30000
Schema: CREATE TABLE Product_Suppliers (supplier_id VARCHAR, total_value_purchased INTEGER, total_amount_purchased INTEGER)
user: 供应最多产品的供应商购买的平均数量和购买的金额是多少？

assistant: SELECT avg(total_amount_purchased) ,  avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id  =  (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1)
Schema: CREATE TABLE Product_Suppliers (supplier_id VARCHAR, total_value_purchased INTEGER, total_amount_purchased INTEGER)
user: 返回供应最多产品的供应商购买的平均数量和购买的金额。

assistant: SELECT avg(total_amount_purchased) ,  avg(total_value_purchased) FROM Product_Suppliers WHERE supplier_id  =  (SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id ORDER BY count(*) DESC LIMIT 1)
Schema: CREATE TABLE Customers (customer_code INTEGER)
user: 最大和最小的客户代码是什么？

assistant: SELECT max(customer_code) ,  min(customer_code) FROM Customers
Schema: CREATE TABLE Customers (customer_code INTEGER)
user: 返回客户代码的最大值和最小值。

assistant: SELECT max(customer_code) ,  min(customer_code) FROM Customers
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customer_orders (order_id VARCHAR, customer_id VARCHAR), CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR), CREATE TABLE products (product_id VARCHAR, product_name VARCHAR)
user: 列出所有购买“键盘”的不同客户的名字。

assistant: SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T2.order_id  =  T3.order_id JOIN products AS T4 ON T3.product_id  =  T4.product_id WHERE T4.product_name  =  "键盘"
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customer_orders (order_id VARCHAR, customer_id VARCHAR), CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR), CREATE TABLE products (product_id VARCHAR, product_name VARCHAR)
user: 购买“键盘”的客户不同的名字是什么？

assistant: SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T2.order_id  =  T3.order_id JOIN products AS T4 ON T3.product_id  =  T4.product_id WHERE T4.product_name  =  "键盘"
Schema: CREATE TABLE suppliers (supplier_id VARCHAR, supplier_name VARCHAR, supplier_phone VARCHAR), CREATE TABLE product_suppliers (product_id VARCHAR, supplier_id VARCHAR), CREATE TABLE products (product_id VARCHAR, product_name VARCHAR)
user: 列出所有供应“红色牛仔裤”的不同供应商的名字和电话号码。

assistant: SELECT DISTINCT T1.supplier_name ,  T1.supplier_phone FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id  =  T2.supplier_id JOIN products AS T3 ON T2.product_id  =  T3.product_id WHERE T3.product_name  =  "红色牛仔裤"
Schema: CREATE TABLE suppliers (supplier_id VARCHAR, supplier_name VARCHAR, supplier_phone VARCHAR), CREATE TABLE product_suppliers (product_id VARCHAR, supplier_id VARCHAR), CREATE TABLE products (product_id VARCHAR, product_name VARCHAR)
user: 供应“红色牛仔裤”的供应商的名字和电话号码是什么？

assistant: SELECT DISTINCT T1.supplier_name ,  T1.supplier_phone FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id  =  T2.supplier_id JOIN products AS T3 ON T2.product_id  =  T3.product_id WHERE T3.product_name  =  "红色牛仔裤"
Schema: CREATE TABLE products (product_price INTEGER, product_type_code VARCHAR)
user: 按产品类型分组并按字母顺序排序的产品的最高和最低价格是什么？

assistant: SELECT max(product_price) ,  min(product_price) ,  product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code
Schema: CREATE TABLE products (product_price INTEGER, product_type_code VARCHAR)
user: 按产品类型分组和排序并给出每个产品类型的最高和最低产品价格。

assistant: SELECT max(product_price) ,  min(product_price) ,  product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code
Schema: CREATE TABLE customer_orders (order_id VARCHAR, order_status_code VARCHAR, order_date VARCHAR, customer_id VARCHAR)
user: 列出按订单日期排序的、处于“取消”状态的订单的订单id、客户id。

assistant: SELECT order_id ,  customer_id FROM customer_orders WHERE order_status_code  =   "取消" ORDER BY order_date
Schema: CREATE TABLE customer_orders (order_id VARCHAR, order_status_code VARCHAR, order_date VARCHAR, customer_id VARCHAR)
user: 对于已经“取消”状态的订单，按订单日期排序的订单id和客户id是什么？

assistant: SELECT order_id ,  customer_id FROM customer_orders WHERE order_status_code  =   "取消" ORDER BY order_date
Schema: CREATE TABLE customer_orders (order_id VARCHAR, customer_id VARCHAR), CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR), CREATE TABLE products (product_id VARCHAR, product_name VARCHAR)
user: 找出至少由两个不同客户购买的产品名称。

assistant: SELECT DISTINCT T3.product_name FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id  =  T2.order_id JOIN products AS T3 ON T2.product_id  =  T3.product_id GROUP BY T3.product_id HAVING COUNT (DISTINCT T1.customer_id)  >=  2
Schema: CREATE TABLE customer_orders (order_id VARCHAR, customer_id VARCHAR), CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR), CREATE TABLE products (product_id VARCHAR, product_name VARCHAR)
user: 由至少两个不同的客户购买的产品的名称是什么？

assistant: SELECT DISTINCT T3.product_name FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id  =  T2.order_id JOIN products AS T3 ON T2.product_id  =  T3.product_id GROUP BY T3.product_id HAVING COUNT (DISTINCT T1.customer_id)  >=  2
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customer_orders (order_id VARCHAR, customer_id VARCHAR), CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR)
user: 找出至少购买三种不同产品的客户的名字。

assistant: SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T2.order_id  =  T3.order_id GROUP BY T1.customer_id HAVING COUNT (DISTINCT T3.product_id)  >=  3
Schema: CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR), CREATE TABLE customer_orders (order_id VARCHAR, customer_id VARCHAR), CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR)
user: 购买了至少三种不同产品的客户不同名字是什么？

assistant: SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T2.order_id  =  T3.order_id GROUP BY T1.customer_id HAVING COUNT (DISTINCT T3.product_id)  >=  3
Schema: CREATE TABLE staff (staff_id VARCHAR, staff_gender VARCHAR, staff_name VARCHAR), CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR, job_title_code VARCHAR)
user: 找出被任命为“销售员”，但从未担任“文书职员”的员工的姓名和性别。

assistant: SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.job_title_code  =  "销售员" EXCEPT SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.job_title_code  =  "文书职员"
Schema: CREATE TABLE staff (staff_id VARCHAR, staff_gender VARCHAR, staff_name VARCHAR), CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR, job_title_code VARCHAR)
user: 拥有“销售员”头衔，但从未担任过“文书职员”的职员的姓名和性别是什么？

assistant: SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.job_title_code  =  "销售员" EXCEPT SELECT T1.staff_name ,  T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id  =  T2.staff_id WHERE T2.job_title_code  =  "文书职员"
Schema: CREATE TABLE customers (customer_name VARCHAR, payment_method_code VARCHAR, customer_id VARCHAR, customer_address VARCHAR)
user: 查找地址包含“湖南”省且不使用“信用卡”付款的客户的ID和名字。

assistant: SELECT customer_id ,  customer_name FROM customers WHERE customer_address LIKE "湖南" AND payment_method_code != "信用卡"
Schema: CREATE TABLE customers (customer_name VARCHAR, payment_method_code VARCHAR, customer_id VARCHAR, customer_address VARCHAR)
user: 地址包含“湖南”省且不使用“信用卡”付款的客户的ID和名字是什么？

assistant: SELECT customer_id ,  customer_name FROM customers WHERE customer_address LIKE "湖南" AND payment_method_code != "信用卡"
Schema: CREATE TABLE products (product_price INTEGER, product_type_code VARCHAR)
user: 找出所有“服装”产品的平均价格。

assistant: SELECT avg(product_price) FROM products WHERE product_type_code  =  '服装'
Schema: CREATE TABLE products (product_price INTEGER, product_type_code VARCHAR)
user: “服装”的平均价格是多少？

assistant: SELECT avg(product_price) FROM products WHERE product_type_code  =  '服装'
Schema: CREATE TABLE products (product_name VARCHAR, product_price VARCHAR, product_type_code VARCHAR)
user: 找到最贵的“硬件”产品的名称。

assistant: SELECT product_name FROM products WHERE product_type_code  =  '硬件' ORDER BY product_price DESC LIMIT 1
Schema: CREATE TABLE products (product_name VARCHAR, product_price VARCHAR, product_type_code VARCHAR)
user: 最昂贵的“硬件”产品的名称是什么？

assistant: SELECT product_name FROM products WHERE product_type_code  =  '硬件' ORDER BY product_price DESC LIMIT 1
Schema: CREATE TABLE aircraft (Id VARCHAR)
user: 有多少架飞机？

assistant: SELECT count(*) FROM aircraft
Schema: CREATE TABLE aircraft (Id VARCHAR)
user: 飞机的数量是多少？

assistant: SELECT count(*) FROM aircraft
Schema: CREATE TABLE aircraft (Description VARCHAR)
user: 列出所有飞机的描述。

assistant: SELECT Description FROM aircraft
Schema: CREATE TABLE aircraft (Description VARCHAR)
user: 飞机的描述是什么？

assistant: SELECT Description FROM aircraft
Schema: CREATE TABLE airport (International_Passengers INTEGER)
user: 所有机场的国际旅客平均人数是多少？

assistant: SELECT avg(International_Passengers) FROM airport
Schema: CREATE TABLE airport (International_Passengers INTEGER)
user: 机场的国际旅客平均人数是多少？

assistant: SELECT avg(International_Passengers) FROM airport
Schema: CREATE TABLE airport (International_Passengers VARCHAR, Domestic_Passengers VARCHAR, Airport_Name VARCHAR)
user: “北京首都机场”机场的国际和国内旅客人数是多少？

assistant: SELECT International_Passengers ,  Domestic_Passengers FROM airport WHERE Airport_Name  =  "北京首都机场"
Schema: CREATE TABLE airport (International_Passengers VARCHAR, Domestic_Passengers VARCHAR, Airport_Name VARCHAR)
user: “北京首都机场”机场有多少国际旅客和国内旅客？

assistant: SELECT International_Passengers ,  Domestic_Passengers FROM airport WHERE Airport_Name  =  "北京首都机场"
Schema: CREATE TABLE airport (Airport_Name VARCHAR, Domestic_Passengers INTEGER)
user: 包含“北京”这个词的机场的国内旅客总数是多少？

assistant: SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE "北京"
Schema: CREATE TABLE airport (Airport_Name VARCHAR, Domestic_Passengers INTEGER)
user: “北京”机场的国内旅客总数是多少？

assistant: SELECT sum(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE "北京"
Schema: CREATE TABLE airport (Transit_Passengers INTEGER)
user: 所有机场的过境旅客的最大和最小数量是多少？

assistant: SELECT max(Transit_Passengers) ,  min(Transit_Passengers) FROM airport
Schema: CREATE TABLE airport (Transit_Passengers INTEGER)
user: 所有机场过境旅客的最大值和最小值是多少？

assistant: SELECT max(Transit_Passengers) ,  min(Transit_Passengers) FROM airport
Schema: CREATE TABLE pilot (Name VARCHAR, Age INTEGER)
user: 25岁或以上的飞行员叫什么名字？

assistant: SELECT Name FROM pilot WHERE Age  >=  25
Schema: CREATE TABLE pilot (Name VARCHAR, Age INTEGER)
user: 至少25岁的每名飞行员的名字是什么？

assistant: SELECT Name FROM pilot WHERE Age  >=  25
Schema: CREATE TABLE pilot (Name VARCHAR)
user: 按字母升序顺序列出所有的飞行员的名字。

assistant: SELECT Name FROM pilot ORDER BY Name ASC
Schema: CREATE TABLE pilot (Name VARCHAR)
user: 飞行员按字母顺序排列的名字是什么？

assistant: SELECT Name FROM pilot ORDER BY Name ASC
Schema: CREATE TABLE pilot (Name VARCHAR, Age INTEGER)
user: 按降序字母顺序列出所有30岁或以下的飞行员的名字。

assistant: SELECT Name FROM pilot WHERE Age  <=  30 ORDER BY Name DESC
Schema: CREATE TABLE pilot (Name VARCHAR, Age INTEGER)
user: 按字母降序排列的所有30岁或30岁的飞行员的名字是什么？

assistant: SELECT Name FROM pilot WHERE Age  <=  30 ORDER BY Name DESC
Schema: CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR), CREATE TABLE airport (Airport_Name VARCHAR, Airport_ID VARCHAR)
user: 请显示与“北京南苑”机场有关的飞机的名称。

assistant: SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  "北京南苑"
Schema: CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR), CREATE TABLE airport (Airport_Name VARCHAR, Airport_ID VARCHAR)
user: “北京南苑”机场的所有飞机的名称是什么？

assistant: SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Airport_Name  =  "北京南苑"
Schema: CREATE TABLE aircraft (Description VARCHAR, Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR), CREATE TABLE airport (Total_Passengers INTEGER, Airport_ID VARCHAR)
user: 请出示与总旅客数超过10万人的机场有关的飞机的名称和说明。

assistant: SELECT T1.Aircraft ,  T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Total_Passengers  >  10000000
Schema: CREATE TABLE aircraft (Description VARCHAR, Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR), CREATE TABLE airport (Total_Passengers INTEGER, Airport_ID VARCHAR)
user: 与总旅客数超过10万人的机场有关的飞机的名称和描述是什么？

assistant: SELECT T1.Aircraft ,  T1.Description FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T3.Total_Passengers  >  10000000
Schema: CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR), CREATE TABLE airport (Total_Passengers INTEGER, Airport_ID VARCHAR)
user: 与“歼-10”飞机有关的机场的平均旅客总数是多少？

assistant: SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T1.Aircraft  =  "歼-10"
Schema: CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR), CREATE TABLE airport (Total_Passengers INTEGER, Airport_ID VARCHAR)
user: “歼-10”飞机访问的所有机场的平均旅客总数是多少？

assistant: SELECT avg(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID  =  T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID  =  T3.Airport_ID WHERE T1.Aircraft  =  "歼-10"
Schema: CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE MATCH (Location VARCHAR, Winning_Aircraft VARCHAR)
user: 请列出地点和获奖的飞机名称。

assistant: SELECT T2.Location ,  T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft
Schema: CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE MATCH (Location VARCHAR, Winning_Aircraft VARCHAR)
user: 获奖的飞机的位置和名称是什么？

assistant: SELECT T2.Location ,  T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft
Schema: CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE MATCH (Winning_Aircraft VARCHAR)
user: 列出被评为获奖飞机次数最多的飞机的名称。

assistant: SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1
Schema: CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE MATCH (Winning_Aircraft VARCHAR)
user: 得奖次数最多的飞机叫什么名字？

assistant: SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1
Schema: CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE MATCH (Winning_Aircraft VARCHAR)
user: 列出飞机的名称和赢得比赛的次数。

assistant: SELECT T1.Aircraft ,  COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft
Schema: CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE MATCH (Winning_Aircraft VARCHAR)
user: 每架获奖的飞机叫什么名字？获奖多少次？

assistant: SELECT T1.Aircraft ,  COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft
Schema: CREATE TABLE pilot (Age VARCHAR, Name VARCHAR)
user: 按年龄递减顺序列出所有飞行员的姓名。

assistant: SELECT Name FROM pilot ORDER BY Age DESC
Schema: CREATE TABLE pilot (Age VARCHAR, Name VARCHAR)
user: 按降序列出的所有飞行员的名字是什么？

assistant: SELECT Name FROM pilot ORDER BY Age DESC
Schema: CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE MATCH (Winning_Aircraft VARCHAR)
user: 列出至少赢得两次比赛飞机的名称。

assistant: SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*)  >=  2
Schema: CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE MATCH (Winning_Aircraft VARCHAR)
user: 所有赢得至少两场比赛的飞机的名字是什么？

assistant: SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID  =  T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft HAVING COUNT(*)  >=  2
Schema: CREATE TABLE aircraft (Winning_Aircraft VARCHAR, Aircraft_ID VARCHAR, Aircraft VARCHAR), CREATE TABLE MATCH (Winning_Aircraft VARCHAR, Aircraft_ID VARCHAR, Aircraft VARCHAR)
user: 列出没有赢得任何比赛的飞机名字。

assistant: SELECT Aircraft FROM aircraft WHERE Aircraft_ID NOT IN (SELECT Winning_Aircraft FROM MATCH)