jtjt520j/cspider_for_chinese_llama2_1.3b huggingface dataset:
Schema: CREATE TABLE catalog_contents (price_in_dollars VARCHAR, catalog_entry_name VARCHAR)
user: 以最高价格（美元）查找目录的条目名称。

assistant: SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1
Schema: CREATE TABLE catalog_contents (catalog_level_number VARCHAR, price_in_dollars VARCHAR), CREATE TABLE catalog_structure (catalog_level_name VARCHAR, catalog_level_number VARCHAR)
user: 最便宜的目录（美元）的级别名称是什么？

assistant: SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number  =  t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1
Schema: CREATE TABLE catalog_contents (catalog_level_number VARCHAR, price_in_dollars VARCHAR), CREATE TABLE catalog_structure (catalog_level_name VARCHAR, catalog_level_number VARCHAR)
user: 查找价格最低的（美元）目录的级别名称。

assistant: SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number  =  t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1
Schema: CREATE TABLE catalog_contents (price_in_euros INTEGER)
user: 所有产品的平均价格和最低价格（欧元）是多少？

assistant: SELECT avg(price_in_euros) ,  min(price_in_euros) FROM catalog_contents
Schema: CREATE TABLE catalog_contents (price_in_euros INTEGER)
user: 给我产品的平均价格和最低价格（欧元）。

assistant: SELECT avg(price_in_euros) ,  min(price_in_euros) FROM catalog_contents
Schema: CREATE TABLE catalog_contents (height VARCHAR, catalog_entry_name VARCHAR)
user: 最高的产品是什么？给我目录条目名称。

assistant: SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1
Schema: CREATE TABLE catalog_contents (height VARCHAR, catalog_entry_name VARCHAR)
user: 哪个目录内容最高？给我目录条目名称。

assistant: SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1
Schema: CREATE TABLE catalog_contents (capacity VARCHAR, catalog_entry_name VARCHAR)
user: 找出容量最小的产品的名称。

assistant: SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1
Schema: CREATE TABLE catalog_contents (capacity VARCHAR, catalog_entry_name VARCHAR)
user: 哪个目录内容的容量最小？返回目录条目名称。

assistant: SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1
Schema: CREATE TABLE catalog_contents (product_stock_number VARCHAR, catalog_entry_name VARCHAR)
user: 找出所有产品的名称，其库存号以“2”开头。

assistant: SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE "2"
Schema: CREATE TABLE catalog_contents (product_stock_number VARCHAR, catalog_entry_name VARCHAR)
user: 哪些目录内容有从“2”开始的产品库存号？显示目录项名称。

assistant: SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE "2"
Schema: CREATE TABLE Catalog_Contents (catalog_entry_id VARCHAR, catalog_entry_name VARCHAR), CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_level_number VARCHAR, catalog_entry_id VARCHAR)
user: 查找级别为“8”的目录条目名称。

assistant: SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.catalog_level_number  =  "8"
Schema: CREATE TABLE Catalog_Contents (catalog_entry_id VARCHAR, catalog_entry_name VARCHAR), CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_level_number VARCHAR, catalog_entry_id VARCHAR)
user: 级别为“8”的目录条目名称是什么？

assistant: SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.catalog_level_number  =  "8"
Schema: CREATE TABLE catalog_contents (width INTEGER, LENGTH INTEGER, catalog_entry_name VARCHAR)
user: 查找长度小于3或高度大于5的产品的名称。

assistant: SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH  <  3 OR width  >  5
Schema: CREATE TABLE catalog_contents (width INTEGER, LENGTH INTEGER, catalog_entry_name VARCHAR)
user: 哪些目录内容的长度低于3或大于5？查找目录条目名称。

assistant: SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH  <  3 OR width  >  5
Schema: CREATE TABLE Attribute_Definitions (attribute_name VARCHAR, attribute_id VARCHAR), CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_value VARCHAR, attribute_id VARCHAR)
user: 找到属性值为0的属性定义的名称和属性ID。

assistant: SELECT t1.attribute_name ,  t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id  =  t2.attribute_id WHERE t2.attribute_value  =  0
Schema: CREATE TABLE Attribute_Definitions (attribute_name VARCHAR, attribute_id VARCHAR), CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_value VARCHAR, attribute_id VARCHAR)
user: 哪些属性定义具有属性值0？给我属性名和属性ID。

assistant: SELECT t1.attribute_name ,  t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id  =  t2.attribute_id WHERE t2.attribute_value  =  0
Schema: CREATE TABLE Catalog_Contents (capacity VARCHAR, catalog_entry_name VARCHAR, price_in_dollars INTEGER)
user: 查找价格大于700（美元）的产品名称和容量。

assistant: SELECT catalog_entry_name ,  capacity FROM Catalog_Contents WHERE price_in_dollars  >  700
Schema: CREATE TABLE Catalog_Contents (capacity VARCHAR, catalog_entry_name VARCHAR, price_in_dollars INTEGER)
user: 哪些目录内容的价格超过700美元？显示他们的目录条目名称和容量。

assistant: SELECT catalog_entry_name ,  capacity FROM Catalog_Contents WHERE price_in_dollars  >  700
Schema: CREATE TABLE Catalogs (date_of_latest_revision VARCHAR)
user: 找出修订超过一次的日期。

assistant: SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*)  >  1
Schema: CREATE TABLE Catalogs (date_of_latest_revision VARCHAR)
user: 在哪几天内对目录进行了一次以上的修改。

assistant: SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*)  >  1
Schema: CREATE TABLE catalog_contents (Id VARCHAR)
user: 记录中有多少种产品？

assistant: SELECT count(*) FROM catalog_contents
Schema: CREATE TABLE catalog_contents (Id VARCHAR)
user: 查找目录内容的总数。

assistant: SELECT count(*) FROM catalog_contents
Schema: CREATE TABLE catalog_contents (next_entry_id INTEGER, catalog_entry_name VARCHAR)
user: 找到下一个条目ID大于8的所有产品的名字。

assistant: SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id  >  8
Schema: CREATE TABLE catalog_contents (next_entry_id INTEGER, catalog_entry_name VARCHAR)
user: 下一个条目ID在8以上的产品的目录条目名称是什么？

assistant: SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id  >  8
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 (distance VARCHAR, name VARCHAR)
user: 显示所有飞机的名称和距离。

assistant: SELECT name ,  distance FROM Aircraft
Schema: CREATE TABLE Aircraft (distance VARCHAR, name VARCHAR)
user: 所有飞机的名称和距离是多少？

assistant: SELECT name ,  distance FROM Aircraft
Schema: CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER)
user: 显示所有距离超过1000的飞机的ID。

assistant: SELECT aid FROM Aircraft WHERE distance  >  1000
Schema: CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER)
user: 能覆盖超过1000距离的所有飞行器的ID是什么？

assistant: SELECT aid FROM Aircraft WHERE distance  >  1000
Schema: CREATE TABLE Aircraft (distance INTEGER)
user: 有多少架飞机有1000到5000的距离？

assistant: SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000
Schema: CREATE TABLE Aircraft (distance INTEGER)
user: 距离在1000到5000之间的飞机的有多少台？

assistant: SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000
Schema: CREATE TABLE Aircraft (aid VARCHAR, distance VARCHAR, name VARCHAR)
user: ID是12的飞机的名称和距离是多少？

assistant: SELECT name ,  distance FROM Aircraft WHERE aid  =  12
Schema: CREATE TABLE Aircraft (distance INTEGER)
user: 所有飞机的最小、平均和最大距离是多少？

assistant: SELECT min(distance) ,  avg(distance) ,  max(distance) FROM Aircraft
Schema: CREATE TABLE Aircraft (distance INTEGER)
user: 返回所有飞行器的最小、平均和最大距离。

assistant: SELECT min(distance) ,  avg(distance) ,  max(distance) FROM Aircraft
Schema: CREATE TABLE Aircraft (aid VARCHAR, distance VARCHAR, name VARCHAR)
user: 显示最大距离的飞机的ID和名称。

assistant: SELECT aid ,  name FROM Aircraft ORDER BY distance DESC LIMIT 1
Schema: CREATE TABLE Aircraft (aid VARCHAR, distance VARCHAR, name VARCHAR)
user: 可以覆盖最大距离的飞机的ID和名称是什么？

assistant: SELECT aid ,  name FROM Aircraft ORDER BY distance DESC LIMIT 1
Schema: CREATE TABLE Aircraft (distance VARCHAR, name VARCHAR)
user: 显示前三个最低距离的飞机的名称。

assistant: SELECT name FROM Aircraft ORDER BY distance LIMIT 3
Schema: CREATE TABLE Aircraft (distance VARCHAR, name VARCHAR)
user: 最短距离前3的飞机是什么？列出他们的名字。

assistant: SELECT name FROM Aircraft ORDER BY distance LIMIT 3
Schema: CREATE TABLE Aircraft (name VARCHAR, distance INTEGER)
user: 显示所有飞机的名称，其距离超过平均值。

assistant: SELECT name FROM Aircraft WHERE distance  >  (SELECT avg(distance) FROM Aircraft)
Schema: CREATE TABLE Aircraft (name VARCHAR, distance INTEGER)
user: 所有能覆盖平均距离的飞机的名称是什么？

assistant: SELECT name FROM Aircraft WHERE distance  >  (SELECT avg(distance) FROM Aircraft)
Schema: CREATE TABLE Employee (Id VARCHAR)
user: 我们有多少员工？

assistant: SELECT count(*) FROM Employee
Schema: CREATE TABLE Employee (Id VARCHAR)
user: 员工人数是多少？

assistant: SELECT count(*) FROM Employee
Schema: CREATE TABLE Employee (name VARCHAR, salary VARCHAR)
user: 为所有员工按薪资排序，并显示姓名和薪金。

assistant: SELECT name ,  salary FROM Employee ORDER BY salary
Schema: CREATE TABLE Employee (name VARCHAR, salary VARCHAR)
user: 所有员工的姓名和薪水是多少？

assistant: SELECT name ,  salary FROM Employee ORDER BY salary
Schema: CREATE TABLE Employee (salary INTEGER, eid VARCHAR)
user: 显示所有工资至少有100000的工资员工。

assistant: SELECT eid FROM Employee WHERE salary  >  100000
Schema: CREATE TABLE Employee (salary INTEGER, eid VARCHAR)
user: 每一个工资至少有100000的员工的ID是多少？

assistant: SELECT eid FROM Employee WHERE salary  >  100000
Schema: CREATE TABLE Employee (salary INTEGER)
user: 薪水在100000到200000的员工有多少？

assistant: SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000
Schema: CREATE TABLE Employee (salary INTEGER)
user: 员工工资在100000到200000的人数是多少？

assistant: SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR)
user: ID为242518965的员工的姓名和薪水是多少？

assistant: SELECT name ,  salary FROM Employee WHERE eid  =  242518965
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR)
user: ID242518965的雇员的姓名和薪金是多少？

assistant: SELECT name ,  salary FROM Employee WHERE eid  =  242518965
Schema: CREATE TABLE Employee (salary INTEGER)
user: 所有员工的平均工资和最高工资是多少？

assistant: SELECT avg(salary) ,  max(salary) FROM Employee
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR)
user: 显示平均工资最高的员工的ID和姓名。

assistant: SELECT eid ,  name FROM Employee ORDER BY salary DESC LIMIT 1
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR)
user: 工资最高的员工的ID和姓名是什么？

assistant: SELECT eid ,  name FROM Employee ORDER BY salary DESC LIMIT 1
Schema: CREATE TABLE Employee (name VARCHAR, salary VARCHAR)
user: 显示工资最低的三名员工的姓名。

assistant: SELECT name FROM Employee ORDER BY salary ASC LIMIT 3
Schema: CREATE TABLE Employee (name VARCHAR, salary VARCHAR)
user: 哪3个员工的薪水最少？

assistant: SELECT name FROM Employee ORDER BY salary ASC LIMIT 3
Schema: CREATE TABLE Employee (salary INTEGER, name VARCHAR)
user: 显示所有薪水高于平均水平的员工。

assistant: SELECT name FROM Employee WHERE salary  >  (SELECT avg(salary) FROM Employee)
Schema: CREATE TABLE Employee (salary INTEGER, name VARCHAR)
user: 工资高于平均水平的所有员工的姓名是什么？

assistant: SELECT name FROM Employee WHERE salary  >  (SELECT avg(salary) FROM Employee)
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR)
user: 显示“张晓梅”的ID和薪水。

assistant: SELECT eid ,  salary FROM Employee WHERE name  =  '张晓梅'
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR)
user: 那个叫“张晓梅”的员工的ID和薪水是多少？

assistant: SELECT eid ,  salary FROM Employee WHERE name  =  '张晓梅'
Schema: CREATE TABLE Flight (Id VARCHAR)
user: 我们有多少班次？

assistant: SELECT count(*) FROM Flight
Schema: CREATE TABLE Flight (Id VARCHAR)
user: 航班的数量是多少？

assistant: SELECT count(*) FROM Flight
Schema: CREATE TABLE Flight (origin VARCHAR, flno VARCHAR, destination VARCHAR)
user: 按照起飞城市的字母顺序显示所有航班的航班号、起点、目的地。

assistant: SELECT flno ,  origin ,  destination FROM Flight ORDER BY origin
Schema: CREATE TABLE Flight (origin VARCHAR, flno VARCHAR, destination VARCHAR)
user: 按起飞城市的字母顺序排列的所有航班的航班号、起点和目的地是什么？

assistant: SELECT flno ,  origin ,  destination FROM Flight ORDER BY origin
Schema: CREATE TABLE Flight (origin VARCHAR, flno VARCHAR)
user: 显示所有从“上海”起飞的航班号。

assistant: SELECT flno FROM Flight WHERE origin  =  "上海"
Schema: CREATE TABLE Flight (origin VARCHAR, flno VARCHAR)
user: 从“上海”来的所有航班的号码是多少？

assistant: SELECT flno FROM Flight WHERE origin  =  "上海"
Schema: CREATE TABLE Flight (origin VARCHAR, destination VARCHAR)
user: 显示所有以“海口”为目的地航班的出发地。

assistant: SELECT origin FROM Flight WHERE destination  =  "海口"
Schema: CREATE TABLE Flight (origin VARCHAR, destination VARCHAR)
user: 飞往“海口”的所有航班的出发地是什么？

assistant: SELECT origin FROM Flight WHERE destination  =  "海口"
Schema: CREATE TABLE Flight (origin VARCHAR, destination VARCHAR, arrival_date VARCHAR, departure_date VARCHAR)
user: 告诉我从“上海”到“海口”的所有航班的出发日期和到达日期。

assistant: SELECT departure_date ,  arrival_date FROM Flight WHERE origin  =  "上海" AND destination  =  "海口"
Schema: CREATE TABLE Flight (origin VARCHAR, destination VARCHAR, arrival_date VARCHAR, departure_date VARCHAR)
user: 从“上海”到“海口”的所有航班的起飞和到达日期是什么？

assistant: SELECT departure_date ,  arrival_date FROM Flight WHERE origin  =  "上海" AND destination  =  "海口"
Schema: CREATE TABLE Flight (flno VARCHAR, distance INTEGER)
user: 显示超过2000距离的所有航班的航班号。

assistant: SELECT flno FROM Flight WHERE distance  >  2000
Schema: CREATE TABLE Flight (flno VARCHAR, distance INTEGER)
user: 能覆盖超过2000的距离的所有航班的号码是多少？

assistant: SELECT flno FROM Flight WHERE distance  >  2000
Schema: CREATE TABLE Flight (price INTEGER, origin VARCHAR, destination VARCHAR)
user: 从“上海”到“海口”的航班平均价格是多少？

assistant: SELECT avg(price) FROM Flight WHERE origin  =  "上海" AND destination  =  "海口"
Schema: CREATE TABLE Flight (price INTEGER, origin VARCHAR, destination VARCHAR)
user: 显示价格高于300的航班的出发地和目的地。

assistant: SELECT origin ,  destination FROM Flight WHERE price  >  300
Schema: CREATE TABLE Flight (price INTEGER, origin VARCHAR, destination VARCHAR)
user: 价格高于300的航班的起点和目的地是什么？

assistant: SELECT origin ,  destination FROM Flight WHERE price  >  300
Schema: CREATE TABLE Flight (distance VARCHAR, flno VARCHAR, price VARCHAR)
user: 显示最高价航班的航班号和飞行距离。

assistant: SELECT flno ,  distance FROM Flight ORDER BY price DESC LIMIT 1
Schema: CREATE TABLE Flight (distance VARCHAR, flno VARCHAR, price VARCHAR)
user: 最高价航班的航班号和距离是多少？

assistant: SELECT flno ,  distance FROM Flight ORDER BY price DESC LIMIT 1
Schema: CREATE TABLE Flight (distance VARCHAR, flno VARCHAR)
user: 显示三个最低距离的航班号。

assistant: SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3
Schema: CREATE TABLE Flight (distance VARCHAR, flno VARCHAR)
user: 最短航班的号码是多少？

assistant: SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3
Schema: CREATE TABLE Flight (price INTEGER, origin VARCHAR, distance INTEGER)
user: 从“上海”起飞的航班的平均距离和平均价格是多少？

assistant: SELECT avg(distance) ,  avg(price) FROM Flight WHERE origin  =  "上海"
Schema: CREATE TABLE Flight (price INTEGER, origin VARCHAR, distance INTEGER)
user: 从“上海”起飞的所有航班的平均距离和价格是多少？

assistant: SELECT avg(distance) ,  avg(price) FROM Flight WHERE origin  =  "上海"
Schema: CREATE TABLE Flight (origin VARCHAR)
user: 显示所有出发地和每个出发地的航班的数量。

assistant: SELECT origin ,  count(*) FROM Flight GROUP BY origin
Schema: CREATE TABLE Flight (origin VARCHAR)
user: 对于每一个出发地，有多少航班来自那里？

assistant: SELECT origin ,  count(*) FROM Flight GROUP BY origin
Schema: CREATE TABLE Flight (destination VARCHAR)
user: 显示所有目的地和飞往每个目的地的航班数。

assistant: SELECT destination ,  count(*) FROM Flight GROUP BY destination
Schema: CREATE TABLE Flight (destination VARCHAR)
user: 目的地有哪些？飞往每个目的地的航班数量是多少？

assistant: SELECT destination ,  count(*) FROM Flight GROUP BY destination
Schema: CREATE TABLE Flight (origin VARCHAR)
user: 哪个出发地的航班最多？

assistant: SELECT origin FROM Flight GROUP BY origin ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Flight (origin VARCHAR)
user: 从哪里来的航班最多？

assistant: SELECT origin FROM Flight GROUP BY origin ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Flight (destination VARCHAR)
user: 哪个目的地的航班最少？

assistant: SELECT destination FROM Flight GROUP BY destination ORDER BY count(*) LIMIT 1
Schema: CREATE TABLE Flight (aid VARCHAR, flno VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 99号航班的飞机名称是什么？

assistant: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid WHERE T1.flno  =  99
Schema: CREATE TABLE Flight (aid VARCHAR, flno VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 99号班机叫什么名字？

assistant: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid WHERE T1.flno  =  99
Schema: CREATE TABLE Flight (aid VARCHAR, flno VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 显示使用“空客”飞机的所有航班号。

assistant: SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid WHERE T2.name  =  "空客"
Schema: CREATE TABLE Flight (aid VARCHAR, flno VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: “空客”飞机的航班号是多少？

assistant: SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid WHERE T2.name  =  "空客"
Schema: CREATE TABLE Flight (aid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 显示每架飞机的飞机名称和航班号。

assistant: SELECT T2.name ,  count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid
Schema: CREATE TABLE Flight (aid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 每架飞机的名字是什么，每个飞机有多少个航班？

assistant: SELECT T2.name ,  count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid
Schema: CREATE TABLE Flight (aid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 显示至少有两个航班的所有飞机的名称。

assistant: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid HAVING count(*)  >= 2
Schema: CREATE TABLE Flight (aid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 至少有2个航班的所有飞机的名字是什么？

assistant: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid HAVING count(*)  >= 2
Schema: CREATE TABLE Certificate (eid VARCHAR)
user: 有多少员工有证书？

assistant: SELECT count(DISTINCT eid) FROM Certificate
Schema: CREATE TABLE Certificate (eid VARCHAR)
user: 拥有证书的不同雇员的总数是多少？

assistant: SELECT count(DISTINCT eid) FROM Certificate
Schema: CREATE TABLE Employee (eid VARCHAR), CREATE TABLE Certificate (eid VARCHAR)
user: 显示所有没有证书的员工ID。

assistant: SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate
Schema: CREATE TABLE Employee (eid VARCHAR), CREATE TABLE Certificate (eid VARCHAR)
user: 没有证书的所有员工的ID是什么？

assistant: SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR), CREATE TABLE Certificate (aid VARCHAR, eid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 显示“赵强”所拥有证件的所有飞机名称。

assistant: SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T1.name  =  "赵强"
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR), CREATE TABLE Certificate (aid VARCHAR, eid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: “赵强”有驾驶执照的所有飞机的名字是什么？

assistant: SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T1.name  =  "赵强"
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR), CREATE TABLE Certificate (aid VARCHAR, eid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 显示所有拥有“波音 733-800”证书的员工姓名。

assistant: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "波音"
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR), CREATE TABLE Certificate (aid VARCHAR, eid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 所有持有“波音”飞行证书的员工的名字是什么？

assistant: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "波音"
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR), CREATE TABLE Certificate (aid VARCHAR, eid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 显示所有拥有“波音”和“空客”证书的员工的姓名。

assistant: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "波音" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "空客"
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR), CREATE TABLE Certificate (aid VARCHAR, eid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 所有能同时驾驶“波音”和“空客”的员工的名字是什么？

assistant: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "波音" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "空客"
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR), CREATE TABLE Certificate (aid VARCHAR, eid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 显示所有没有“波音 733-800”证书的员工的姓名。

assistant: SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "波音"
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR), CREATE TABLE Certificate (aid VARCHAR, eid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 所有未获得驾驶“波音”认证的雇员的姓名是什么？

assistant: SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "波音"
Schema: CREATE TABLE Certificate (aid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 显示最少人拥有的飞机证书名字。

assistant: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid GROUP BY T1.aid ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Certificate (aid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
user: 被认证最少的飞机名称是什么？

assistant: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid GROUP BY T1.aid ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Certificate (aid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR, distance INTEGER)
user: 显示距离超过5000并且至少有5人拥有其证书的飞机的名称和距离。

assistant: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid WHERE T2.distance  >  5000 GROUP BY T1.aid ORDER BY count(*)  >=  5
Schema: CREATE TABLE Certificate (aid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR, distance INTEGER)
user: 能飞5000距离、至少5人能飞的飞机的名字和距离是多少？

assistant: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid WHERE T2.distance  >  5000 GROUP BY T1.aid ORDER BY count(*)  >=  5
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR), CREATE TABLE Certificate (eid VARCHAR)
user: 持有飞机证件最多的员工的工资和姓名是什么？

assistant: SELECT T1.name ,  T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR), CREATE TABLE Certificate (eid VARCHAR)
user: 拥有最多飞机证件的员工的薪资和姓名是什么？

assistant: SELECT T1.name ,  T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1
Schema: CREATE TABLE Employee (eid VARCHAR, name VARCHAR), CREATE TABLE Certificate (aid VARCHAR, eid VARCHAR), CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER)
user: 持有最多的距离超过5000的飞机证书的员工的工资和姓名是什么？

assistant: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.distance  >  5000 GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1