db_id
stringlengths
4
31
text
stringlengths
398
4.9k
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the numbers of the shortest flights? | flight : flno , origin , destination , distance , departure_date , arrival...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the average distance and average price for flights from Los Angeles. | flight : flno , origin , destination , dist...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the average distance and price for all flights from LA? | flight : flno , origin , destination , distance , depart...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all origins and the number of flights from each origin. | flight : flno , origin , destination , distance , departure...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each origin, how many flights came from there? | flight : flno , origin , destination , distance , departure_date , ar...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all destinations and the number of flights to each destination. | flight : flno , origin , destination , distance , d...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the destinations and number of flights to each one? | flight : flno , origin , destination , distance , departure...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which origin has most number of flights? | flight : flno , origin , destination , distance , departure_date , arrival_date...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What place has the most flights coming from there? | flight : flno , origin , destination , distance , departure_date , ar...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which destination has least number of flights? | flight : flno , origin , destination , distance , departure_date , arriva...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What destination has the fewest number of flights? | flight : flno , origin , destination , distance , departure_date , ar...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the aircraft name for the flight with number 99 | flight : flno , origin , destination , distance , departure_date...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the name of the aircraft that was on flight number 99? | flight : flno , origin , destination , distance , departu...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all flight numbers with aircraft Airbus A340-300. | flight : flno , origin , destination , distance , departure_date ...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the flight numbers for the aircraft Airbus A340-300? | flight : flno , origin , destination , distance , departur...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show aircraft names and number of flights for each aircraft. | flight : flno , origin , destination , distance , departure...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the name of each aircraft and how many flights does each one complete? | flight : flno , origin , destination , di...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show names for all aircraft with at least two flights. | flight : flno , origin , destination , distance , departure_date ...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names for all aircrafts with at least 2 flights? | flight : flno , origin , destination , distance , departur...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many employees have certificate. | flight : flno , origin , destination , distance , departure_date , arrival_date , p...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the count of distinct employees with certificates? | flight : flno , origin , destination , distance , departure_d...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show ids for all employees who don't have a certificate. | flight : flno , origin , destination , distance , departure_dat...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the ids of all employees that don't have certificates? | flight : flno , origin , destination , distance , depart...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show names for all aircrafts of which John Williams has certificates. | flight : flno , origin , destination , distance , ...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of all aircrafts that John Williams have certificates to be able to fly? | flight : flno , origin , des...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show names for all employees who have certificate of Boeing 737-800. | flight : flno , origin , destination , distance , d...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of all employees who have a certificate to fly Boeing 737-800? | flight : flno , origin , destination ,...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300. | flight : flno , origin , ...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of all employees who can fly both the Boeing 737-800 and the Airbus A340-300? | flight : flno , origin ...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show names for all employees who do not have certificate of Boeing 737-800. | flight : flno , origin , destination , dista...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of all employees who are not certified to fly Boeing 737-800s? | flight : flno , origin , destination ,...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show the name of aircraft which fewest people have its certificate. | flight : flno , origin , destination , distance , de...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of the aircraft that the least people are certified to fly? | flight : flno , origin , destination , di...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate....
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the name and distance of every aircraft that can cover a distance of more than 5000 and which at least 5 people ca...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: what is the salary and name of the employee who has the most number of aircraft certificates? | flight : flno , origin , d...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the salaray and name of the employee that is certified to fly the most planes? | flight : flno , origin , destinat...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5...
flight_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the salaray and name of the employee with the most certificates to fly planes more than 5000? | flight : flno , or...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many allergies are there? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stuid , l...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many allergy entries are there? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stu...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many different allergy types exist? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student :...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many distinct allergies are there? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : ...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all allergy types. | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stuid , lname ,...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the different allergy types? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : s...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all allergies and their types. | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stu...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the allergies and their types? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student :...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all allergies with type food. | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stui...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are all the different food allergies? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | studen...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the type of allergy Cat? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stuid ...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is allergy type of a cat allergy? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : ...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many allergies have type animal? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : st...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many animal type allergies exist? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : s...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all allergy types and the number of allergies in each type. | allergy_type : allergy , allergytype | has_allergy : st...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the allergy types and how many allergies correspond to each one? | allergy_type : allergy , allergytype | has_all...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which allergy type has most number of allergies? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | ...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which allergy type is most common? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stui...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which allergy type has least number of allergies? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy |...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which allergy type is the least common? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student :...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many students are there? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stuid , ln...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the total number of students? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : s...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show first name and last name for all students. | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | s...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the full names of all students | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student :...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many different advisors are listed? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student :...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many advisors are there? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stuid , ln...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all majors. | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stuid , lname , fname ...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the different majors? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stuid , ...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all cities where students live. | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : st...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What cities do students live in? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stuid ...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show first name, last name, age for all female students. Their sex is F. | allergy_type : allergy , allergytype | has_alle...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the full names and ages for all female students whose sex is F? | allergy_type : allergy , allergytype | has_alle...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show student ids for all male students. | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student :...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the student ids for all male students? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | s...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many students are age 18? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stuid , l...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many students are 18 years old? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stu...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all student ids who are older than 20. | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | stude...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the student ids for students over 20 years old? | allergy_type : allergy , allergytype | has_allergy : stuid , al...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which city does the student whose last name is "Kim" live in? | allergy_type : allergy , allergytype | has_allergy : stuid...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Give the city that the student whose family name is Kim lives in. | allergy_type : allergy , allergytype | has_allergy : s...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Who is the advisor of student with ID 1004? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | stude...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Who advises student 1004? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stuid , lname...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many students live in HKG or CHI? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : s...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Give the number of students living in either HKG or CHI. | allergy_type : allergy , allergytype | has_allergy : stuid , al...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show the minimum, average, and maximum age of all students. | allergy_type : allergy , allergytype | has_allergy : stuid ,...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the minimum, mean, and maximum age across all students? | allergy_type : allergy , allergytype | has_allergy : stu...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the last name of the youngest student? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | st...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Provide the last name of the youngest student. | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | st...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show the student id of the oldest student. | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | studen...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What student id corresponds to the oldest student? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy ...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all majors and corresponding number of students. | allergy_type : allergy , allergytype | has_allergy : stuid , aller...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many students are there for each major? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | stude...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which major has most number of students? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student ...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the largest major? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : stuid , lnam...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all ages and corresponding number of students. | allergy_type : allergy , allergytype | has_allergy : stuid , allergy...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How old is each student and how many students are each age? | allergy_type : allergy , allergytype | has_allergy : stuid ,...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show the average age for male and female students. | allergy_type : allergy , allergytype | has_allergy : stuid , allergy ...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the average ages for male and female students? | allergy_type : allergy , allergytype | has_allergy : stuid , all...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all cities and corresponding number of students. | allergy_type : allergy , allergytype | has_allergy : stuid , aller...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many students live in each city? | allergy_type : allergy , allergytype | has_allergy : stuid , allergy | student : st...
allergy_1
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Show all advisors and corresponding number of students. | allergy_type : allergy , allergytype | has_allergy : stuid , all...