db_id
stringlengths
4
31
text
stringlengths
370
4.84k
twitter_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: Find the maximum and total number of followers of all users. | follows : f1 , f2 | tweets : id , uid , text , createdate | user_profiles : uid , name , email , partitionid , followers | follows.f2 = user_profiles.uid | follows.f1 = user_profiles.uid | tweets.uid = user_profiles.uid | ### Response: select max ( followers ) , sum ( followers ) from user_profiles
product_catalog
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: Find the names of all the catalog entries. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select distinct ( catalog_entry_name ) from catalog_contents
product_catalog
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 catalog entry names? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select distinct ( catalog_entry_name ) from catalog_contents
product_catalog
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: Find the list of attribute data types possessed by more than 3 attribute definitions. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select attribute_data_type from attribute_definitions group by attribute_data_type having count ( * ) > 3
product_catalog
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 attribute data types with more than 3 attribute definitions? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select attribute_data_type from attribute_definitions group by attribute_data_type having count ( * ) > 3
product_catalog
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 attribute data type of the attribute with name "Green"? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select attribute_data_type from attribute_definitions where attribute_name = 'Green'
product_catalog
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: Find the attribute data type for the attribute named "Green". | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select attribute_data_type from attribute_definitions where attribute_name = 'Green'
product_catalog
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: Find the name and level of catalog structure with level between 5 and 10. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_level_name , catalog_level_number from catalog_structure where catalog_level_number between 5 and 10
product_catalog
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 name and level of catalog structure with level number between 5 and 10 | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_level_name , catalog_level_number from catalog_structure where catalog_level_number between 5 and 10
product_catalog
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: Find all the catalog publishers whose name contains "Murray" | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select distinct ( catalog_publisher ) from catalogs where catalog_publisher like '%Murray%'
product_catalog
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 catalog publishers have substring "Murray" in their names? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select distinct ( catalog_publisher ) from catalogs where catalog_publisher like '%Murray%'
product_catalog
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 catalog publisher has published the most catalogs? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_publisher from catalogs group by catalog_publisher order by count ( * ) desc limit 1
product_catalog
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: Find the catalog publisher that has the most catalogs. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_publisher from catalogs group by catalog_publisher order by count ( * ) desc limit 1
product_catalog
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: Find the names and publication dates of all catalogs that have catalog level number greater than 5. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalogs.catalog_name , catalogs.date_of_publication from catalogs join catalog_structure on catalogs.catalog_id = catalog_structure.catalog_id where catalog_level_number > 5
product_catalog
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 name and publication date of the catalogs with catalog level number above 5? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalogs.catalog_name , catalogs.date_of_publication from catalogs join catalog_structure on catalogs.catalog_id = catalog_structure.catalog_id where catalog_level_number > 5
product_catalog
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 entry names of catalog with the attribute possessed by most entries. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_contents.catalog_entry_name from catalog_contents join catalog_contents_additional_attributes on catalog_contents.catalog_entry_id = catalog_contents_additional_attributes.catalog_entry_id where catalog_contents_additional_attributes.attribute_value = ( select attribute_value from catalog_contents_additional_attributes group by attribute_value order by count ( * ) desc limit 1 )
product_catalog
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: Find the entry names of the catalog with the attribute that have the most entries. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_contents.catalog_entry_name from catalog_contents join catalog_contents_additional_attributes on catalog_contents.catalog_entry_id = catalog_contents_additional_attributes.catalog_entry_id where catalog_contents_additional_attributes.attribute_value = ( select attribute_value from catalog_contents_additional_attributes group by attribute_value order by count ( * ) desc limit 1 )
product_catalog
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 entry name of the most expensive catalog (in USD)? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name from catalog_contents order by price_in_dollars desc limit 1
product_catalog
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: Find the entry name of the catalog with the highest price (in USD). | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name from catalog_contents order by price_in_dollars desc limit 1
product_catalog
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 level name of the cheapest catalog (in USD)? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_structure.catalog_level_name from catalog_contents join catalog_structure on catalog_contents.catalog_level_number = catalog_structure.catalog_level_number order by catalog_contents.price_in_dollars asc limit 1
product_catalog
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: Find the level name of the catalog with the lowest price (in USD). | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_structure.catalog_level_name from catalog_contents join catalog_structure on catalog_contents.catalog_level_number = catalog_structure.catalog_level_number order by catalog_contents.price_in_dollars asc limit 1
product_catalog
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 and minimum price (in Euro) of all products? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select avg ( price_in_euros ) , min ( price_in_euros ) from catalog_contents
product_catalog
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 me the average and minimum price (in Euro) of the products. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select avg ( price_in_euros ) , min ( price_in_euros ) from catalog_contents
product_catalog
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 product with the highest height? Give me the catalog entry name. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name from catalog_contents order by height desc limit 1
product_catalog
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 catalog content has the highest height? Give me the catalog entry name. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name from catalog_contents order by height desc limit 1
product_catalog
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: Find the name of the product that has the smallest capacity. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name from catalog_contents order by capacity asc limit 1
product_catalog
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 catalog content has the smallest capacity? Return the catalog entry name. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name from catalog_contents order by capacity asc limit 1
product_catalog
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: Find the names of all the products whose stock number starts with "2". | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name from catalog_contents where product_stock_number like '2%'
product_catalog
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 catalog contents have a product stock number that starts from "2"? Show the catalog entry names. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name from catalog_contents where product_stock_number like '2%'
product_catalog
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: Find the names of catalog entries with level number 8. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_contents.catalog_entry_name from catalog_contents join catalog_contents_additional_attributes on catalog_contents.catalog_entry_id = catalog_contents_additional_attributes.catalog_entry_id where catalog_contents_additional_attributes.catalog_level_number = '8'
product_catalog
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 catalog entries with level number 8? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_contents.catalog_entry_name from catalog_contents join catalog_contents_additional_attributes on catalog_contents.catalog_entry_id = catalog_contents_additional_attributes.catalog_entry_id where catalog_contents_additional_attributes.catalog_level_number = '8'
product_catalog
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: Find the names of the products with length smaller than 3 or height greater than 5. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name from catalog_contents where length < 3 or width > 5
product_catalog
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 catalog contents have length below 3 or above 5? Find the catalog entry names. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name from catalog_contents where length < 3 or width > 5
product_catalog
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: Find the name and attribute ID of the attribute definitions with attribute value 0. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select attribute_definitions.attribute_name , attribute_definitions.attribute_id from attribute_definitions join catalog_contents_additional_attributes on attribute_definitions.attribute_id = catalog_contents_additional_attributes.attribute_id where catalog_contents_additional_attributes.attribute_value = 0
product_catalog
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 attribute definitions have attribute value 0? Give me the attribute name and attribute ID. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select attribute_definitions.attribute_name , attribute_definitions.attribute_id from attribute_definitions join catalog_contents_additional_attributes on attribute_definitions.attribute_id = catalog_contents_additional_attributes.attribute_id where catalog_contents_additional_attributes.attribute_value = 0
product_catalog
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: Find the name and capacity of products with price greater than 700 (in USD). | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name , capacity from catalog_contents where price_in_dollars > 700
product_catalog
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 catalog contents has price above 700 dollars? Show their catalog entry names and capacities. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name , capacity from catalog_contents where price_in_dollars > 700
product_catalog
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: Find the dates on which more than one revisions were made. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select date_of_latest_revision from catalogs group by date_of_latest_revision having count ( * ) > 1
product_catalog
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: On which days more than one revisions were made on catalogs. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select date_of_latest_revision from catalogs group by date_of_latest_revision having count ( * ) > 1
product_catalog
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 products are there in the records? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select count ( * ) from catalog_contents
product_catalog
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: Find the total number of catalog contents. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select count ( * ) from catalog_contents
product_catalog
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: Name all the products with next entry ID greater than 8. | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name from catalog_contents where next_entry_id > 8
product_catalog
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 catalog entry names of the products with next entry ID above 8? | attribute_definitions : attribute_id , attribute_name , attribute_data_type | catalogs : catalog_id , catalog_name , catalog_publisher , date_of_publication , date_of_latest_revision | catalog_structure : catalog_level_number , catalog_id , catalog_level_name | catalog_contents : catalog_entry_id , catalog_level_number , parent_entry_id , previous_entry_id , next_entry_id , catalog_entry_name , product_stock_number , price_in_dollars , price_in_euros , price_in_pounds , capacity , length , height , width | catalog_contents_additional_attributes : catalog_entry_id , catalog_level_number , attribute_id , attribute_value | catalog_structure.catalog_id = catalogs.catalog_id | catalog_contents.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_level_number = catalog_structure.catalog_level_number | catalog_contents_additional_attributes.catalog_entry_id = catalog_contents.catalog_entry_id | ### Response: select catalog_entry_name from catalog_contents where next_entry_id > 8
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 aircrafts do we have? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select count ( * ) from aircraft
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 aircrafts exist in the database? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select count ( * ) from aircraft
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 name and distance for all aircrafts. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name , distance from aircraft
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 and distances for all airplanes? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name , distance from aircraft
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 aircrafts with more than 1000 distance. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select aid from aircraft where distance > 1000
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 aircrafts that can cover a distance of more than 1000? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select aid from aircraft where distance > 1000
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 aircrafts have distance between 1000 and 5000? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select count ( * ) from aircraft where distance between 1000 and 5000
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 aircrafts that have a distance between 1000 and 5000? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select count ( * ) from aircraft where distance between 1000 and 5000
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 for aircraft with id 12? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name , distance from aircraft where aid = 12
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 for the aircraft that has an id of 12? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name , distance from aircraft where aid = 12
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 minimum, average, and maximum distance of all aircrafts. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select min ( distance ) , avg ( distance ) , max ( distance ) from aircraft
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: Return the minimum, average and maximum distances traveled across all aircrafts. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select min ( distance ) , avg ( distance ) , max ( distance ) from aircraft
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 id and name of the aircraft with the maximum distance. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select aid , name from aircraft order by distance desc limit 1
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 id and name of the aircraft that can cover the maximum distance? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select aid , name from aircraft order by distance desc limit 1
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 aircrafts with top three lowest distances. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name from aircraft order by distance asc limit 3
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 aircrafts with top 3 shortest lengthes? List their names. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name from aircraft order by distance asc limit 3
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 with distances more than the average. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name from aircraft where distance > ( select avg ( distance ) from aircraft )
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 can cover more distances than average? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name from aircraft where distance > ( select avg ( distance ) from aircraft )
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 do we have? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select count ( * ) from employee
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 number of employees? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select count ( * ) from employee
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 name and salary for all employees sorted by salary. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name , salary from employee order by salary asc
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 salary of all employees in order of salary? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name , salary from employee order by salary asc
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 with at least 100000 salary. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select eid from employee where salary > 100000
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 id of every employee who has at least a salary of 100000? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select eid from employee where salary > 100000
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 salary between 100000 and 200000? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select count ( * ) from employee where salary between 100000 and 200000
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 number of employees that have a salary between 100000 and 200000? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select count ( * ) from employee where salary between 100000 and 200000
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 salary for employee with id 242518965? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name , salary from employee where eid = 242518965
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 salary of the employee with the id 242518965? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name , salary from employee where eid = 242518965
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 average and maximum salary of all employees. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select avg ( salary ) , max ( salary ) from employee
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 and largest salary of all employees? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select avg ( salary ) , max ( salary ) from employee
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 id and name of the employee with maximum salary. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select eid , name from employee order by salary desc limit 1
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 id and name of the employee with the highest salary? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select eid , name from employee order by salary desc limit 1
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 employees with three lowest salaries. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name from employee order by salary asc limit 3
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 3 employees who get paid the least? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name from employee order by salary asc limit 3
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 with salary more than the average. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name from employee where salary > ( select avg ( salary ) from employee )
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 salary higher than average? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select name from employee where salary > ( select avg ( salary ) from employee )
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 id and salary of Mark Young. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select eid , salary from employee where name = 'Mark Young'
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 id and salary of the employee named Mark Young? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select eid , salary from employee where name = 'Mark Young'
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 flights do we have? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select count ( * ) from flight
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 number of flights? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select count ( * ) from flight
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 flight number, origin, destination of all flights in the alphabetical order of the departure cities. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select flno , origin , destination from flight order by origin asc
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 flight number, origin, and destination for all flights in alphabetical order by departure cities? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select flno , origin , destination from flight order by origin asc
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 number from Los Angeles. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select flno from flight where origin = 'Los Angeles'
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 all flights coming from Los Angeles? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select flno from flight where origin = 'Los Angeles'
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 origins of all flights with destination Honolulu. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select origin from flight where destination = 'Honolulu'
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 origins of all flights that are headed to Honolulu? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select origin from flight where destination = 'Honolulu'
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 me the departure date and arrival date for all flights from Los Angeles to Honolulu. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select departure_date , arrival_date from flight where origin = 'Los Angeles' and destination = 'Honolulu'
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 departure and arrival dates of all flights from LA to Honolulu? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select departure_date , arrival_date from flight where origin = 'Los Angeles' and destination = 'Honolulu'
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 flight number for all flights with more than 2000 distance. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select flno from flight where distance > 2000
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 all flights that can cover a distance of more than 2000? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select flno from flight where distance > 2000
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 price for flights from Los Angeles to Honolulu. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select avg ( price ) from flight where origin = 'Los Angeles' and destination = 'Honolulu'
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 price for flights from LA to Honolulu? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select avg ( price ) from flight where origin = 'Los Angeles' and destination = 'Honolulu'
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 origin and destination for flights with price higher than 300. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select origin , destination from flight where price > 300
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 origin and destination for all flights whose price is higher than 300? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select origin , destination from flight where price > 300
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 flight number and distance of the flight with maximum price. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select flno , distance from flight order by price desc limit 1
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 flight number and its distance for the one with the maximum price? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select flno , distance from flight order by price desc limit 1
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 flight number of flights with three lowest distances. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | ### Response: select flno from flight order by distance asc limit 3