prompt
stringlengths
155
8.09k
answer
stringlengths
18
577
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the maximum and total number of followers of all users., schema:NA
SELECT max(followers) , sum(followers) FROM user_profiles
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the names of all the catalog entries., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(10)); CREATE TABLE...
SELECT distinct(catalog_entry_name) FROM catalog_contents
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are all the catalog entry names?, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(10)); CREATE TABLE `Cat...
SELECT distinct(catalog_entry_name) FROM catalog_contents
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the list of attribute data types possessed by more than 3 attribute definitions., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attr...
SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the attribute data types with more than 3 attribute definitions?, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_t...
SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the attribute data type of the attribute with name "Green"?, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` V...
SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name = "Green"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the attribute data type for the attribute named "Green"., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR...
SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name = "Green"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the name and level of catalog structure with level between 5 and 10., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_t...
SELECT catalog_level_name , catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the name and level of catalog structure with level number between 5 and 10, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attrib...
SELECT catalog_level_name , catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find all the catalog publishers whose name contains "Murray", schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(...
SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE "%Murray%"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Which catalog publishers have substring "Murray" in their names?, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARC...
SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE "%Murray%"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Which catalog publisher has published the most catalogs?, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(10))...
SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the catalog publisher that has the most catalogs., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(10)); ...
SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the names and publication dates of all catalogs that have catalog level number greater than 5., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VAR...
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
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the name and publication date of the catalogs with catalog level number above 5?, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`...
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
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the entry names of catalog with the attribute possessed by most entries., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribut...
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)
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the entry names of the catalog with the attribute that have the most entries., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribu...
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)
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the entry name of the most expensive catalog (in USD)?, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHA...
SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the entry name of the catalog with the highest price (in USD)., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` V...
SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the level name of the cheapest catalog (in USD)?, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(10))...
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
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the level name of the catalog with the lowest price (in USD)., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VA...
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
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the average and minimum price (in Euro) of all products?, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VAR...
SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Give me the average and minimum price (in Euro) of the products., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARC...
SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the product with the highest height? Give me the catalog entry name., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_dat...
SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Which catalog content has the highest height? Give me the catalog entry name., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_da...
SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the name of the product that has the smallest capacity., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(...
SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Which catalog content has the smallest capacity? Return the catalog entry name., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_...
SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the names of all the products whose stock number starts with "2"., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type...
SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE "2%"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Which catalog contents have a product stock number that starts from "2"? Show the catalog entry names., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` ...
SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE "2%"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the names of catalog entries with level number 8., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(10)); ...
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"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the names of catalog entries with level number 8?, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(10...
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"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the names of the products with length smaller than 3 or height greater than 5., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attrib...
SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Which catalog contents have length below 3 or above 5? Find the catalog entry names., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attri...
SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the name and attribute ID of the attribute definitions with attribute value 0., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attrib...
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
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Which attribute definitions have attribute value 0? Give me the attribute name and attribute ID., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHA...
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
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the name and capacity of products with price greater than 700 (in USD)., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_dat...
SELECT catalog_entry_name , capacity FROM Catalog_Contents WHERE price_in_dollars > 700
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARC...
SELECT catalog_entry_name , capacity FROM Catalog_Contents WHERE price_in_dollars > 700
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the dates on which more than one revisions were made., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(10...
SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*) > 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:On which days more than one revisions were made on catalogs., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(...
SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*) > 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:How many products are there in the records?, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(10)); CREATE TABL...
SELECT count(*) FROM catalog_contents
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Find the total number of catalog contents., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(10)); CREATE TABLE...
SELECT count(*) FROM catalog_contents
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Name all the products with next entry ID greater than 8., schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_data_type` VARCHAR(10))...
SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the catalog entry names of the products with next entry ID above 8?, schema:CREATE TABLE `Attribute_Definitions` (`attribute_id` INTEGER PRIMARY KEY,`attribute_name` VARCHAR(30),`attribute_dat...
SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:How many aircrafts do we have?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_date date, pr...
SELECT count(*) FROM Aircraft
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:How many aircrafts exist in the database?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_da...
SELECT count(*) FROM Aircraft
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show name and distance for all aircrafts., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_da...
SELECT name , distance FROM Aircraft
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the names and distances for all airplanes?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, ...
SELECT name , distance FROM Aircraft
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show ids for all aircrafts with more than 1000 distance., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date d...
SELECT aid FROM Aircraft WHERE distance > 1000
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the ids of all aircrafts that can cover a distance of more than 1000?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(...
SELECT aid FROM Aircraft WHERE distance > 1000
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:How many aircrafts have distance between 1000 and 5000?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date da...
SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the count of aircrafts that have a distance between 1000 and 5000?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0)...
SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the name and distance for aircraft with id 12?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date dat...
SELECT name , distance FROM Aircraft WHERE aid = 12
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the name and distance for the aircraft that has an id of 12?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), depa...
SELECT name , distance FROM Aircraft WHERE aid = 12
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the minimum, average, and maximum distance of all aircrafts., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), depa...
SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Return the minimum, average and maximum distances traveled across all aircrafts., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance numbe...
SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show the id and name of the aircraft with the maximum distance., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure...
SELECT aid , name FROM Aircraft ORDER BY distance DESC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the id and name of the aircraft that can cover the maximum distance?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,...
SELECT aid , name FROM Aircraft ORDER BY distance DESC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show the name of aircrafts with top three lowest distances., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_dat...
SELECT name FROM Aircraft ORDER BY distance LIMIT 3
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the aircrafts with top 3 shortest lengthes? List their names., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), de...
SELECT name FROM Aircraft ORDER BY distance LIMIT 3
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show names for all aircrafts with distances more than the average., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), depart...
SELECT name FROM Aircraft WHERE distance > (SELECT avg(distance) FROM Aircraft)
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the names of all aircrafts that can cover more distances than average?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number...
SELECT name FROM Aircraft WHERE distance > (SELECT avg(distance) FROM Aircraft)
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:How many employees do we have?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_date date, pr...
SELECT count(*) FROM Employee
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the number of employees?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_date date, ...
SELECT count(*) FROM Employee
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show name and salary for all employees sorted by salary., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date d...
SELECT name , salary FROM Employee ORDER BY salary
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the name and salary of all employees in order of salary?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departur...
SELECT name , salary FROM Employee ORDER BY salary
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show ids for all employees with at least 100000 salary., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date da...
SELECT eid FROM Employee WHERE salary > 100000
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the id of every employee who has at least a salary of 100000?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), de...
SELECT eid FROM Employee WHERE salary > 100000
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:How many employees have salary between 100000 and 200000?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date ...
SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the number of employees that have a salary between 100000 and 200000?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6...
SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the name and salary for employee with id 242518965?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_dat...
SELECT name , salary FROM Employee WHERE eid = 242518965
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the name and salary of the employee with the id 242518965?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), depart...
SELECT name , salary FROM Employee WHERE eid = 242518965
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is average and maximum salary of all employees., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date,...
SELECT avg(salary) , max(salary) FROM Employee
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the average and largest salary of all employees?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date d...
SELECT avg(salary) , max(salary) FROM Employee
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show the id and name of the employee with maximum salary., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date ...
SELECT eid , name FROM Employee ORDER BY salary DESC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the id and name of the employee with the highest salary?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departur...
SELECT eid , name FROM Employee ORDER BY salary DESC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show the name of employees with three lowest salaries., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date dat...
SELECT name FROM Employee ORDER BY salary ASC LIMIT 3
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the name of the 3 employees who get paid the least?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_dat...
SELECT name FROM Employee ORDER BY salary ASC LIMIT 3
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show names for all employees with salary more than the average., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure...
SELECT name FROM Employee WHERE salary > (SELECT avg(salary) FROM Employee)
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the names of all employees who have a salary higher than average?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0)...
SELECT name FROM Employee WHERE salary > (SELECT avg(salary) FROM Employee)
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show the id and salary of Mark Young., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_date d...
SELECT eid , salary FROM Employee WHERE name = 'Mark Young'
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the id and salary of the employee named Mark Young?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_dat...
SELECT eid , salary FROM Employee WHERE name = 'Mark Young'
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:How many flights do we have?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_date date, pric...
SELECT count(*) FROM Flight
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the number of flights?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_date date, pr...
SELECT count(*) FROM Flight
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show flight number, origin, destination of all flights in the alphabetical order of the departure cities., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination var...
SELECT flno , origin , destination FROM Flight ORDER BY origin
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the flight number, origin, and destination for all flights in alphabetical order by departure cities?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination...
SELECT flno , origin , destination FROM Flight ORDER BY origin
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show all flight number from Los Angeles., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_dat...
SELECT flno FROM Flight WHERE origin = "Los Angeles"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the numbers of all flights coming from Los Angeles?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_da...
SELECT flno FROM Flight WHERE origin = "Los Angeles"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show origins of all flights with destination Honolulu., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date dat...
SELECT origin FROM Flight WHERE destination = "Honolulu"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the origins of all flights that are headed to Honolulu?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departur...
SELECT origin FROM Flight WHERE destination = "Honolulu"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show me the departure date and arrival date for all flights from Los Angeles to Honolulu., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), dista...
SELECT departure_date , arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the departure and arrival dates of all flights from LA to Honolulu?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,...
SELECT departure_date , arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show flight number for all flights with more than 2000 distance., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departur...
SELECT flno FROM Flight WHERE distance > 2000
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What are the numbers of all flights that can cover a distance of more than 2000?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance numbe...
SELECT flno FROM Flight WHERE distance > 2000
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the average price for flights from Los Angeles to Honolulu., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), depar...
SELECT avg(price) FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the average price for flights from LA to Honolulu?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date...
SELECT avg(price) FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu"
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show origin and destination for flights with price higher than 300., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), depar...
SELECT origin , destination FROM Flight WHERE price > 300
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the origin and destination for all flights whose price is higher than 300?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance num...
SELECT origin , destination FROM Flight WHERE price > 300
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show the flight number and distance of the flight with maximum price., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), dep...
SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:What is the flight number and its distance for the one with the maximum price?, schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(...
SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1
You are an excellent developer. Please make an SQL query based on the instructions and the provided schema.Instruction:Show the flight number of flights with three lowest distances., schema:create table flight( flno number(4,0) primary key, origin varchar2(20), destination varchar2(20), distance number(6,0), departure_...
SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3