system
stringlengths 30
393
| conversations
list |
---|---|
CREATE TABLE user_profiles (followers INTEGER) | [
{
"from": "user",
"value": "查找所有用户的追随者的最大数量和总数。"
},
{
"from": "assistant",
"value": "SELECT max(followers) , sum(followers) FROM user_profiles"
}
] |
CREATE TABLE catalog_contents (catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "查找所有目录项的名称。"
},
{
"from": "assistant",
"value": "SELECT distinct(catalog_entry_name) FROM catalog_contents"
}
] |
CREATE TABLE catalog_contents (catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "所有目录项名称是什么?"
},
{
"from": "assistant",
"value": "SELECT distinct(catalog_entry_name) FROM catalog_contents"
}
] |
CREATE TABLE Attribute_Definitions (attribute_data_type VARCHAR) | [
{
"from": "user",
"value": "查找拥有多于3个属性定义的属性数据类型的列表。"
},
{
"from": "assistant",
"value": "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3"
}
] |
CREATE TABLE Attribute_Definitions (attribute_data_type VARCHAR) | [
{
"from": "user",
"value": "哪些属性数据类型有超过3个属性定义?"
},
{
"from": "assistant",
"value": "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3"
}
] |
CREATE TABLE Attribute_Definitions (attribute_name VARCHAR, attribute_data_type VARCHAR) | [
{
"from": "user",
"value": "属性名为“绿色”的属性数据类型是什么?"
},
{
"from": "assistant",
"value": "SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name = \"绿色\""
}
] |
CREATE TABLE Attribute_Definitions (attribute_name VARCHAR, attribute_data_type VARCHAR) | [
{
"from": "user",
"value": "查找属性名为“绿色”的属性数据类型。"
},
{
"from": "assistant",
"value": "SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name = \"绿色\""
}
] |
CREATE TABLE Catalog_Structure (catalog_level_name VARCHAR, catalog_level_number INTEGER) | [
{
"from": "user",
"value": "查找级别在5到10之间的目录结构的名称和级别。"
},
{
"from": "assistant",
"value": "SELECT catalog_level_name , catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10"
}
] |
CREATE TABLE Catalog_Structure (catalog_level_name VARCHAR, catalog_level_number INTEGER) | [
{
"from": "user",
"value": "级别在5到10之间的目录结构的名称和级别是什么?"
},
{
"from": "assistant",
"value": "SELECT catalog_level_name , catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10"
}
] |
CREATE TABLE catalogs (catalog_publisher VARCHAR) | [
{
"from": "user",
"value": "查找所有名字包含“小刚”的目录出版商。"
},
{
"from": "assistant",
"value": "SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE \"小刚\""
}
] |
CREATE TABLE catalogs (catalog_publisher VARCHAR) | [
{
"from": "user",
"value": "哪些目录出版商的名字内包含\"小刚\"这个子串?"
},
{
"from": "assistant",
"value": "SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE \"小刚\""
}
] |
CREATE TABLE catalogs (catalog_publisher VARCHAR) | [
{
"from": "user",
"value": "哪个目录出版商出版了最多的目录?"
},
{
"from": "assistant",
"value": "SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1"
}
] |
CREATE TABLE catalogs (catalog_publisher VARCHAR) | [
{
"from": "user",
"value": "查找目录最多的目录出版商。"
},
{
"from": "assistant",
"value": "SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1"
}
] |
CREATE TABLE catalogs (date_of_publication VARCHAR, catalog_id VARCHAR, catalog_name VARCHAR), CREATE TABLE catalog_structure (catalog_id VARCHAR) | [
{
"from": "user",
"value": "查找目录级别号大于5的所有目录的名称和发布日期。"
},
{
"from": "assistant",
"value": "SELECT t1.catalog_name , t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5"
}
] |
CREATE TABLE catalogs (date_of_publication VARCHAR, catalog_id VARCHAR, catalog_name VARCHAR), CREATE TABLE catalog_structure (catalog_id VARCHAR) | [
{
"from": "user",
"value": "级别号在5以上的目录的名称和发布日期是什么?"
},
{
"from": "assistant",
"value": "SELECT t1.catalog_name , t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5"
}
] |
CREATE TABLE Catalog_Contents (catalog_entry_id VARCHAR, catalog_entry_name VARCHAR), CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_value VARCHAR) | [
{
"from": "user",
"value": "具有最多条目所具有的属性所属的目录的条目名称是什么?"
},
{
"from": "assistant",
"value": "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.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1)"
}
] |
CREATE TABLE Catalog_Contents (catalog_entry_id VARCHAR, catalog_entry_name VARCHAR), CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_value VARCHAR) | [
{
"from": "user",
"value": "查找具有最多条目的属性所属的目录的条目名称。"
},
{
"from": "assistant",
"value": "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.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1)"
}
] |
CREATE TABLE catalog_contents (price_in_dollars VARCHAR, catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "最贵的目录(美元)的条目名称是什么?"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1"
}
] |
CREATE TABLE catalog_contents (price_in_dollars VARCHAR, catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "以最高价格(美元)查找目录的条目名称。"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1"
}
] |
CREATE TABLE catalog_contents (catalog_level_number VARCHAR, price_in_dollars VARCHAR), CREATE TABLE catalog_structure (catalog_level_name VARCHAR, catalog_level_number VARCHAR) | [
{
"from": "user",
"value": "最便宜的目录(美元)的级别名称是什么?"
},
{
"from": "assistant",
"value": "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"
}
] |
CREATE TABLE catalog_contents (catalog_level_number VARCHAR, price_in_dollars VARCHAR), CREATE TABLE catalog_structure (catalog_level_name VARCHAR, catalog_level_number VARCHAR) | [
{
"from": "user",
"value": "查找价格最低的(美元)目录的级别名称。"
},
{
"from": "assistant",
"value": "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"
}
] |
CREATE TABLE catalog_contents (price_in_euros INTEGER) | [
{
"from": "user",
"value": "所有产品的平均价格和最低价格(欧元)是多少?"
},
{
"from": "assistant",
"value": "SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents"
}
] |
CREATE TABLE catalog_contents (price_in_euros INTEGER) | [
{
"from": "user",
"value": "给我产品的平均价格和最低价格(欧元)。"
},
{
"from": "assistant",
"value": "SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents"
}
] |
CREATE TABLE catalog_contents (height VARCHAR, catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "最高的产品是什么?给我目录条目名称。"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1"
}
] |
CREATE TABLE catalog_contents (height VARCHAR, catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "哪个目录内容最高?给我目录条目名称。"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1"
}
] |
CREATE TABLE catalog_contents (capacity VARCHAR, catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "找出容量最小的产品的名称。"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1"
}
] |
CREATE TABLE catalog_contents (capacity VARCHAR, catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "哪个目录内容的容量最小?返回目录条目名称。"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1"
}
] |
CREATE TABLE catalog_contents (product_stock_number VARCHAR, catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "找出所有产品的名称,其库存号以“2”开头。"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE \"2\""
}
] |
CREATE TABLE catalog_contents (product_stock_number VARCHAR, catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "哪些目录内容有从“2”开始的产品库存号?显示目录项名称。"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE \"2\""
}
] |
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) | [
{
"from": "user",
"value": "查找级别为“8”的目录条目名称。"
},
{
"from": "assistant",
"value": "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\""
}
] |
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) | [
{
"from": "user",
"value": "级别为“8”的目录条目名称是什么?"
},
{
"from": "assistant",
"value": "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\""
}
] |
CREATE TABLE catalog_contents (width INTEGER, LENGTH INTEGER, catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "查找长度小于3或高度大于5的产品的名称。"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5"
}
] |
CREATE TABLE catalog_contents (width INTEGER, LENGTH INTEGER, catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "哪些目录内容的长度低于3或大于5?查找目录条目名称。"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5"
}
] |
CREATE TABLE Attribute_Definitions (attribute_name VARCHAR, attribute_id VARCHAR), CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_value VARCHAR, attribute_id VARCHAR) | [
{
"from": "user",
"value": "找到属性值为0的属性定义的名称和属性ID。"
},
{
"from": "assistant",
"value": "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"
}
] |
CREATE TABLE Attribute_Definitions (attribute_name VARCHAR, attribute_id VARCHAR), CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_value VARCHAR, attribute_id VARCHAR) | [
{
"from": "user",
"value": "哪些属性定义具有属性值0?给我属性名和属性ID。"
},
{
"from": "assistant",
"value": "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"
}
] |
CREATE TABLE Catalog_Contents (capacity VARCHAR, catalog_entry_name VARCHAR, price_in_dollars INTEGER) | [
{
"from": "user",
"value": "查找价格大于700(美元)的产品名称和容量。"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name , capacity FROM Catalog_Contents WHERE price_in_dollars > 700"
}
] |
CREATE TABLE Catalog_Contents (capacity VARCHAR, catalog_entry_name VARCHAR, price_in_dollars INTEGER) | [
{
"from": "user",
"value": "哪些目录内容的价格超过700美元?显示他们的目录条目名称和容量。"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name , capacity FROM Catalog_Contents WHERE price_in_dollars > 700"
}
] |
CREATE TABLE Catalogs (date_of_latest_revision VARCHAR) | [
{
"from": "user",
"value": "找出修订超过一次的日期。"
},
{
"from": "assistant",
"value": "SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*) > 1"
}
] |
CREATE TABLE Catalogs (date_of_latest_revision VARCHAR) | [
{
"from": "user",
"value": "在哪几天内对目录进行了一次以上的修改。"
},
{
"from": "assistant",
"value": "SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*) > 1"
}
] |
CREATE TABLE catalog_contents (Id VARCHAR) | [
{
"from": "user",
"value": "记录中有多少种产品?"
},
{
"from": "assistant",
"value": "SELECT count(*) FROM catalog_contents"
}
] |
CREATE TABLE catalog_contents (Id VARCHAR) | [
{
"from": "user",
"value": "查找目录内容的总数。"
},
{
"from": "assistant",
"value": "SELECT count(*) FROM catalog_contents"
}
] |
CREATE TABLE catalog_contents (next_entry_id INTEGER, catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "找到下一个条目ID大于8的所有产品的名字。"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8"
}
] |
CREATE TABLE catalog_contents (next_entry_id INTEGER, catalog_entry_name VARCHAR) | [
{
"from": "user",
"value": "下一个条目ID在8以上的产品的目录条目名称是什么?"
},
{
"from": "assistant",
"value": "SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8"
}
] |
CREATE TABLE Aircraft (Id VARCHAR) | [
{
"from": "user",
"value": "我们有多少架飞机?"
},
{
"from": "assistant",
"value": "SELECT count(*) FROM Aircraft"
}
] |
CREATE TABLE Aircraft (Id VARCHAR) | [
{
"from": "user",
"value": "数据库中有多少飞机?"
},
{
"from": "assistant",
"value": "SELECT count(*) FROM Aircraft"
}
] |
CREATE TABLE Aircraft (distance VARCHAR, name VARCHAR) | [
{
"from": "user",
"value": "显示所有飞机的名称和距离。"
},
{
"from": "assistant",
"value": "SELECT name , distance FROM Aircraft"
}
] |
CREATE TABLE Aircraft (distance VARCHAR, name VARCHAR) | [
{
"from": "user",
"value": "所有飞机的名称和距离是多少?"
},
{
"from": "assistant",
"value": "SELECT name , distance FROM Aircraft"
}
] |
CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER) | [
{
"from": "user",
"value": "显示所有距离超过1000的飞机的ID。"
},
{
"from": "assistant",
"value": "SELECT aid FROM Aircraft WHERE distance > 1000"
}
] |
CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER) | [
{
"from": "user",
"value": "能覆盖超过1000距离的所有飞行器的ID是什么?"
},
{
"from": "assistant",
"value": "SELECT aid FROM Aircraft WHERE distance > 1000"
}
] |
CREATE TABLE Aircraft (distance INTEGER) | [
{
"from": "user",
"value": "有多少架飞机有1000到5000的距离?"
},
{
"from": "assistant",
"value": "SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000"
}
] |
CREATE TABLE Aircraft (distance INTEGER) | [
{
"from": "user",
"value": "距离在1000到5000之间的飞机的有多少台?"
},
{
"from": "assistant",
"value": "SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000"
}
] |
CREATE TABLE Aircraft (aid VARCHAR, distance VARCHAR, name VARCHAR) | [
{
"from": "user",
"value": "ID是12的飞机的名称和距离是多少?"
},
{
"from": "assistant",
"value": "SELECT name , distance FROM Aircraft WHERE aid = 12"
}
] |
CREATE TABLE Aircraft (aid VARCHAR, distance VARCHAR, name VARCHAR) | [
{
"from": "user",
"value": "ID是12的飞机的名称和距离是多少?"
},
{
"from": "assistant",
"value": "SELECT name , distance FROM Aircraft WHERE aid = 12"
}
] |
CREATE TABLE Aircraft (distance INTEGER) | [
{
"from": "user",
"value": "所有飞机的最小、平均和最大距离是多少?"
},
{
"from": "assistant",
"value": "SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft"
}
] |
CREATE TABLE Aircraft (distance INTEGER) | [
{
"from": "user",
"value": "返回所有飞行器的最小、平均和最大距离。"
},
{
"from": "assistant",
"value": "SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft"
}
] |
CREATE TABLE Aircraft (aid VARCHAR, distance VARCHAR, name VARCHAR) | [
{
"from": "user",
"value": "显示最大距离的飞机的ID和名称。"
},
{
"from": "assistant",
"value": "SELECT aid , name FROM Aircraft ORDER BY distance DESC LIMIT 1"
}
] |
CREATE TABLE Aircraft (aid VARCHAR, distance VARCHAR, name VARCHAR) | [
{
"from": "user",
"value": "可以覆盖最大距离的飞机的ID和名称是什么?"
},
{
"from": "assistant",
"value": "SELECT aid , name FROM Aircraft ORDER BY distance DESC LIMIT 1"
}
] |
CREATE TABLE Aircraft (distance VARCHAR, name VARCHAR) | [
{
"from": "user",
"value": "显示前三个最低距离的飞机的名称。"
},
{
"from": "assistant",
"value": "SELECT name FROM Aircraft ORDER BY distance LIMIT 3"
}
] |
CREATE TABLE Aircraft (distance VARCHAR, name VARCHAR) | [
{
"from": "user",
"value": "最短距离前3的飞机是什么?列出他们的名字。"
},
{
"from": "assistant",
"value": "SELECT name FROM Aircraft ORDER BY distance LIMIT 3"
}
] |
CREATE TABLE Aircraft (name VARCHAR, distance INTEGER) | [
{
"from": "user",
"value": "显示所有飞机的名称,其距离超过平均值。"
},
{
"from": "assistant",
"value": "SELECT name FROM Aircraft WHERE distance > (SELECT avg(distance) FROM Aircraft)"
}
] |
CREATE TABLE Aircraft (name VARCHAR, distance INTEGER) | [
{
"from": "user",
"value": "所有能覆盖平均距离的飞机的名称是什么?"
},
{
"from": "assistant",
"value": "SELECT name FROM Aircraft WHERE distance > (SELECT avg(distance) FROM Aircraft)"
}
] |
CREATE TABLE Employee (Id VARCHAR) | [
{
"from": "user",
"value": "我们有多少员工?"
},
{
"from": "assistant",
"value": "SELECT count(*) FROM Employee"
}
] |
CREATE TABLE Employee (Id VARCHAR) | [
{
"from": "user",
"value": "员工人数是多少?"
},
{
"from": "assistant",
"value": "SELECT count(*) FROM Employee"
}
] |
CREATE TABLE Employee (name VARCHAR, salary VARCHAR) | [
{
"from": "user",
"value": "为所有员工按薪资排序,并显示姓名和薪金。"
},
{
"from": "assistant",
"value": "SELECT name , salary FROM Employee ORDER BY salary"
}
] |
CREATE TABLE Employee (name VARCHAR, salary VARCHAR) | [
{
"from": "user",
"value": "所有员工的姓名和薪水是多少?"
},
{
"from": "assistant",
"value": "SELECT name , salary FROM Employee ORDER BY salary"
}
] |
CREATE TABLE Employee (salary INTEGER, eid VARCHAR) | [
{
"from": "user",
"value": "显示所有工资至少有100000的工资员工。"
},
{
"from": "assistant",
"value": "SELECT eid FROM Employee WHERE salary > 100000"
}
] |
CREATE TABLE Employee (salary INTEGER, eid VARCHAR) | [
{
"from": "user",
"value": "每一个工资至少有100000的员工的ID是多少?"
},
{
"from": "assistant",
"value": "SELECT eid FROM Employee WHERE salary > 100000"
}
] |
CREATE TABLE Employee (salary INTEGER) | [
{
"from": "user",
"value": "薪水在100000到200000的员工有多少?"
},
{
"from": "assistant",
"value": "SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000"
}
] |
CREATE TABLE Employee (salary INTEGER) | [
{
"from": "user",
"value": "员工工资在100000到200000的人数是多少?"
},
{
"from": "assistant",
"value": "SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000"
}
] |
CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR) | [
{
"from": "user",
"value": "ID为242518965的员工的姓名和薪水是多少?"
},
{
"from": "assistant",
"value": "SELECT name , salary FROM Employee WHERE eid = 242518965"
}
] |
CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR) | [
{
"from": "user",
"value": "ID242518965的雇员的姓名和薪金是多少?"
},
{
"from": "assistant",
"value": "SELECT name , salary FROM Employee WHERE eid = 242518965"
}
] |
CREATE TABLE Employee (salary INTEGER) | [
{
"from": "user",
"value": "所有员工的平均工资和最高工资是多少?"
},
{
"from": "assistant",
"value": "SELECT avg(salary) , max(salary) FROM Employee"
}
] |
CREATE TABLE Employee (salary INTEGER) | [
{
"from": "user",
"value": "所有员工的平均工资和最高工资是多少?"
},
{
"from": "assistant",
"value": "SELECT avg(salary) , max(salary) FROM Employee"
}
] |
CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR) | [
{
"from": "user",
"value": "显示平均工资最高的员工的ID和姓名。"
},
{
"from": "assistant",
"value": "SELECT eid , name FROM Employee ORDER BY salary DESC LIMIT 1"
}
] |
CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR) | [
{
"from": "user",
"value": "工资最高的员工的ID和姓名是什么?"
},
{
"from": "assistant",
"value": "SELECT eid , name FROM Employee ORDER BY salary DESC LIMIT 1"
}
] |
CREATE TABLE Employee (name VARCHAR, salary VARCHAR) | [
{
"from": "user",
"value": "显示工资最低的三名员工的姓名。"
},
{
"from": "assistant",
"value": "SELECT name FROM Employee ORDER BY salary ASC LIMIT 3"
}
] |
CREATE TABLE Employee (name VARCHAR, salary VARCHAR) | [
{
"from": "user",
"value": "哪3个员工的薪水最少?"
},
{
"from": "assistant",
"value": "SELECT name FROM Employee ORDER BY salary ASC LIMIT 3"
}
] |
CREATE TABLE Employee (salary INTEGER, name VARCHAR) | [
{
"from": "user",
"value": "显示所有薪水高于平均水平的员工。"
},
{
"from": "assistant",
"value": "SELECT name FROM Employee WHERE salary > (SELECT avg(salary) FROM Employee)"
}
] |
CREATE TABLE Employee (salary INTEGER, name VARCHAR) | [
{
"from": "user",
"value": "工资高于平均水平的所有员工的姓名是什么?"
},
{
"from": "assistant",
"value": "SELECT name FROM Employee WHERE salary > (SELECT avg(salary) FROM Employee)"
}
] |
CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR) | [
{
"from": "user",
"value": "显示“张晓梅”的ID和薪水。"
},
{
"from": "assistant",
"value": "SELECT eid , salary FROM Employee WHERE name = '张晓梅'"
}
] |
CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR) | [
{
"from": "user",
"value": "那个叫“张晓梅”的员工的ID和薪水是多少?"
},
{
"from": "assistant",
"value": "SELECT eid , salary FROM Employee WHERE name = '张晓梅'"
}
] |
CREATE TABLE Flight (Id VARCHAR) | [
{
"from": "user",
"value": "我们有多少班次?"
},
{
"from": "assistant",
"value": "SELECT count(*) FROM Flight"
}
] |
CREATE TABLE Flight (Id VARCHAR) | [
{
"from": "user",
"value": "航班的数量是多少?"
},
{
"from": "assistant",
"value": "SELECT count(*) FROM Flight"
}
] |
CREATE TABLE Flight (origin VARCHAR, flno VARCHAR, destination VARCHAR) | [
{
"from": "user",
"value": "按照起飞城市的字母顺序显示所有航班的航班号、起点、目的地。"
},
{
"from": "assistant",
"value": "SELECT flno , origin , destination FROM Flight ORDER BY origin"
}
] |
CREATE TABLE Flight (origin VARCHAR, flno VARCHAR, destination VARCHAR) | [
{
"from": "user",
"value": "按起飞城市的字母顺序排列的所有航班的航班号、起点和目的地是什么?"
},
{
"from": "assistant",
"value": "SELECT flno , origin , destination FROM Flight ORDER BY origin"
}
] |
CREATE TABLE Flight (origin VARCHAR, flno VARCHAR) | [
{
"from": "user",
"value": "显示所有从“上海”起飞的航班号。"
},
{
"from": "assistant",
"value": "SELECT flno FROM Flight WHERE origin = \"上海\""
}
] |
CREATE TABLE Flight (origin VARCHAR, flno VARCHAR) | [
{
"from": "user",
"value": "从“上海”来的所有航班的号码是多少?"
},
{
"from": "assistant",
"value": "SELECT flno FROM Flight WHERE origin = \"上海\""
}
] |
CREATE TABLE Flight (origin VARCHAR, destination VARCHAR) | [
{
"from": "user",
"value": "显示所有以“海口”为目的地航班的出发地。"
},
{
"from": "assistant",
"value": "SELECT origin FROM Flight WHERE destination = \"海口\""
}
] |
CREATE TABLE Flight (origin VARCHAR, destination VARCHAR) | [
{
"from": "user",
"value": "飞往“海口”的所有航班的出发地是什么?"
},
{
"from": "assistant",
"value": "SELECT origin FROM Flight WHERE destination = \"海口\""
}
] |
CREATE TABLE Flight (origin VARCHAR, destination VARCHAR, arrival_date VARCHAR, departure_date VARCHAR) | [
{
"from": "user",
"value": "告诉我从“上海”到“海口”的所有航班的出发日期和到达日期。"
},
{
"from": "assistant",
"value": "SELECT departure_date , arrival_date FROM Flight WHERE origin = \"上海\" AND destination = \"海口\""
}
] |
CREATE TABLE Flight (origin VARCHAR, destination VARCHAR, arrival_date VARCHAR, departure_date VARCHAR) | [
{
"from": "user",
"value": "从“上海”到“海口”的所有航班的起飞和到达日期是什么?"
},
{
"from": "assistant",
"value": "SELECT departure_date , arrival_date FROM Flight WHERE origin = \"上海\" AND destination = \"海口\""
}
] |
CREATE TABLE Flight (flno VARCHAR, distance INTEGER) | [
{
"from": "user",
"value": "显示超过2000距离的所有航班的航班号。"
},
{
"from": "assistant",
"value": "SELECT flno FROM Flight WHERE distance > 2000"
}
] |
CREATE TABLE Flight (flno VARCHAR, distance INTEGER) | [
{
"from": "user",
"value": "能覆盖超过2000的距离的所有航班的号码是多少?"
},
{
"from": "assistant",
"value": "SELECT flno FROM Flight WHERE distance > 2000"
}
] |
CREATE TABLE Flight (price INTEGER, origin VARCHAR, destination VARCHAR) | [
{
"from": "user",
"value": "从“上海”到“海口”的航班平均价格是多少?"
},
{
"from": "assistant",
"value": "SELECT avg(price) FROM Flight WHERE origin = \"上海\" AND destination = \"海口\""
}
] |
CREATE TABLE Flight (price INTEGER, origin VARCHAR, destination VARCHAR) | [
{
"from": "user",
"value": "从“上海”到“海口”的航班平均价格是多少?"
},
{
"from": "assistant",
"value": "SELECT avg(price) FROM Flight WHERE origin = \"上海\" AND destination = \"海口\""
}
] |
CREATE TABLE Flight (price INTEGER, origin VARCHAR, destination VARCHAR) | [
{
"from": "user",
"value": "显示价格高于300的航班的出发地和目的地。"
},
{
"from": "assistant",
"value": "SELECT origin , destination FROM Flight WHERE price > 300"
}
] |
CREATE TABLE Flight (price INTEGER, origin VARCHAR, destination VARCHAR) | [
{
"from": "user",
"value": "价格高于300的航班的起点和目的地是什么?"
},
{
"from": "assistant",
"value": "SELECT origin , destination FROM Flight WHERE price > 300"
}
] |
CREATE TABLE Flight (distance VARCHAR, flno VARCHAR, price VARCHAR) | [
{
"from": "user",
"value": "显示最高价航班的航班号和飞行距离。"
},
{
"from": "assistant",
"value": "SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1"
}
] |
CREATE TABLE Flight (distance VARCHAR, flno VARCHAR, price VARCHAR) | [
{
"from": "user",
"value": "最高价航班的航班号和距离是多少?"
},
{
"from": "assistant",
"value": "SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1"
}
] |
CREATE TABLE Flight (distance VARCHAR, flno VARCHAR) | [
{
"from": "user",
"value": "显示三个最低距离的航班号。"
},
{
"from": "assistant",
"value": "SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3"
}
] |