text
stringlengths
146
731
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_business_term: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Show all columns associated with business terms created in the last 10 days.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_business_term: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Which are the columns related to business terms created in the past year.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_business_term: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: List all columns linked with business terms that were added in the past 20 days.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Show all columns that have 10 or more rows, 10 or more columns and were created in the last 10 days.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Count the number of columns of each type present in the lake.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_table: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date num_cols num_rows ; relation_has_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Print the type and description for all columns in the table named 'work_order_management_module'.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_table: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date num_cols num_rows ; relation_has_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Print the type and description for all columns in the table named 'weights_measurements_and_other_tests'.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_table: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date num_cols num_rows ; relation_has_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Count the number of columns of each type present in tables in that contain the word 'water' in their names.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: List all the different types of columns present in the lake.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: What are the different column types?[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Among all the columns in the lake, count the occurences of each column type.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Show the type and length of all columns in the data lake.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_table: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date num_cols num_rows ; relation_has_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Show the type and length for all columns in the lake within tables that have the word 'vehicle' in their names.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Print the type, description and creation date for a sample of 10 columns.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_database: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type ; English query: Show the type and creation date for all databases in the lake.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_database: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type ; English query: Print the creation timestamp and description for every database.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_owner: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_database: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type ; English query: List the top 10 people who own the most databases.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_owner: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_rdbms: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; English query: List the top 10 people who own the most relational databases.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_owner: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_rdbms: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; English query: List the top 10 people who own the most SQL databases.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_owner: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_nosql: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; English query: Sort all nosql database owners by the number of nosql databases they own.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_owner: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_rdbms: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; English query: Order all relational database owners by the number of relational databases they own.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_owner: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_rdbms: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; English query: Show all owner account that own 3 relational databases or more.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_owner: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_rdbms: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; English query: Which owner accounts own more than 5 relational databases?[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_rdbms: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; English query: List all relational databases that contain more than 10 tables and were created in the past year.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_classification: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_assoc_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Find all columns associated with the classification 'enterprise'.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_classification: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_assoc_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Which are the columns that are associated with the classification 'enterprise'?[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Find all columns whose name or description contains the term 'id'.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Find all columns that were created in the past one year and contains the term 'id' in it's name.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: List all columns of type integer.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: List all string columns created in the past 3 days.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: How many boolean columns were added in the last 10 days?[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Print all integer columns in the data lake.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Show all columns of type integer.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Show all columns of type bool.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Show all columns of type boolean.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Show all columns of type string.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Count the number of string columns in the lake.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Count the number of integer columns in the lake.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Count the number of boolean columns in the lake.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; English query: Count the number of columns of each type in the 'nyss' table.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_table: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date num_cols num_rows ; English query: Find all tables in the lake derived from csv files.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_table: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date num_cols num_rows ; English query: Find all tables in the lake derived from json files.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_table: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date num_cols num_rows ; English query: Find all tables in the lake derived from excel files.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_table: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date num_cols num_rows ; English query: Find all tables in the lake derived from xlsx files.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_table: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date num_cols num_rows ; English query: Show all the tables that were derived from excel files.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; English query: Show all csv files that have 'nyc' in their names.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; English query: Order all csv files by their creation date.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; English query: Order all csv files by their creation date from the oldest to the newest.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; English query: Order all csv files by their creation date from the newest to the oldest.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_owner: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: Find all asset owners whose full name is John Smith.[/INST] SQL: