text
stringlengths 273
878
|
---|
[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 ; relation_has_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description 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_table: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date num_cols num_rows ; English query: List all columns of type integer.[/INST] SQL query: |
[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 ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; relation_derive_table_table: 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 ; 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: Show metadata records for all folders in the lake.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_business_term: 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_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; 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 classifications associated with a column whose description contains the term 'knowledge'.[/INST] SQL query: |
[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 ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; relation_has_dir_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_classification: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: Show the total size of all files added in the last 30 days for each owner account.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_derive_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; 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 ; relation_has_dir_file: 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 the tables that were derived from excel files.[/INST] SQL query: |
[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: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; English query: How many asset owner accounts does the lake have?[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_derive_table_table: 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 ; asset_nosql: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; asset_database: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type ; relation_joinable_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: List 5 derived tables.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_label: asset_id asset_type_id asset_short_name asset_long_name description synonyms 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 ; asset_nosql: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; English query: Which are the tables belonging to the account 'lakeadmin'?[/INST] SQL query: |
[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 ; asset_nosql: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; asset_database: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type ; relation_joinable_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_unionable_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Count all possible joinable tables for each table in the lake.[/INST] SQL query: |
[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: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; 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 the business terms in the lake.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_business_term: asset_id asset_type_id asset_short_name asset_long_name description synonyms 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 ; relation_assoc_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: What are the columns associated with at least one classification term?[/INST] SQL query: |
[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 ; asset_classification: 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_table: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date num_cols num_rows ; asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: Show the number of assets owned by all accounts that have been modified in the past 1 day.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_label: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; 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: For each asset, list whom it belongs to.[/INST] SQL query: |
[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_dir_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_file_table: 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 ; 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: How many different types of files are there in the lake?[/INST] SQL query: |
[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 ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; relation_has_dir_dir: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_assoc_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_dir_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Show the names of the last 5 modified directories.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; asset_business_term: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_has_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_assoc_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Find records for all columns that have address in their name or description.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_owner: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; relation: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Show all owner account that own 3 relational databases or more.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_dir_file: 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 ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; 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: Find all files which contain a table whose name starts with the the phrase 'verified_locations'.[/INST] SQL query: |
[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 ; asset_classification: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_dir_dir: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Show the creation date, last modified date and descriptions for all labels in the data lake.[/INST] SQL query: |
[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 ; 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 ; relation_has_dir_file: 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: Find tables obtained from the file 'nycc.csv'.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_has_dir_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; asset_database: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; English query: Show the 10 most recent files by modification date.[/INST] SQL query: |
[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_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description 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_database: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type ; English query: Print the type, description and creation date for a sample of 10 columns.[/INST] SQL query: |
[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 ; asset_nosql: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; asset_business_term: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; asset_database: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type ; English query: Which are the tables that are unionable with the 'taxi_zones' table?[/INST] SQL query: |
[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_derive_table_table: relation_id relation_type_id source_asset_id target_asset_id description 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: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; English query: Sort all folders by their last modified timestamp and show their names, ids and description.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_derive_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; relation_has_dir_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_business_term: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: Show all folders which have total file size greater than 100Kb.[/INST] SQL query: |
[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 ; asset_label: 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: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; English query: How many labels are owned by each asset owner that owns more than 10 labels[/INST] SQL query: |
[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: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; English query: How many assets of each type id were created in the last 3 days?[/INST] SQL query: |
[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_has_dir_dir: relation_id relation_type_id source_asset_id target_asset_id description 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_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; relation_has_dir_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Show the names and descriptions for the last 10 directories that were modified.[/INST] SQL query: |
[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 ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; relation: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: How many association relationships are recorded in the data lake?[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_joinable_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_business_term: asset_id asset_type_id asset_short_name asset_long_name description synonyms 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 ; asset_nosql: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; asset_database: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type ; English query: How many tables can be joined with each table in the lake?[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_label: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; 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: Sort all classification labels by creation timestamp.[/INST] SQL query: |
[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 ; relation_has_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description 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_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 columns of type bool.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_label: asset_id asset_type_id asset_short_name asset_long_name description synonyms 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 ; asset_rdbms: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; asset_nosql: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; asset_database: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type ; English query: List every column in the database along with the table that it belongs to.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_derive_table_table: 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 ; relation_has_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_assoc_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Order all columns in the lake by their creation date.[/INST] SQL query: |
[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 ; asset_label: 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: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; English query: List all assets owned by 'cslab'.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; asset_owner: asset_id asset_type_id asset_short_name asset_long_name description synonyms 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 ; relation: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Show the creation date and description for all owner accounts.[/INST] SQL query: |
[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 ; relation_has_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_assoc_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: List all columns linked with business terms that were added in the past 20 days.[/INST] SQL query: |
[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 ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; relation_has_dir_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: What is the total size of files owned by each user?[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: 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 ; asset_business_term: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_has_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_assoc_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Count the columns associated with each classification asset in the lake that has 'water' as a prefix.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_derive_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; 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: Give the count of assets for each asset type.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; relation_has_dir_dir: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_dir_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_classification: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; relation_derive_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: How many sub directories are under each directory identified by it's id.[/INST] SQL query: |
[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 ; asset_column: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date col_type col_length ; relation_has_table_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_assoc_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: List the number of rows and columns in each table in the lake.[/INST] SQL query: |
[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 ; asset_rdbms: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; asset_nosql: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type num_tables ; relation: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Display all the metadata for all tables.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_has_dir_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; relation_derive_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; 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 ; English query: List all files immediately under the directory 'part1'[/INST] SQL query: |
[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: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; English query: How many assets does the account 'uwmadison' own that were created in the past one week?[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_derive_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; relation_has_dir_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Show the ids for all folders that contain more than 10 files and were created in the past one week.[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_has_dir_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: For each file extension, what is the average size of a file?[/INST] SQL query: |
[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_has_dir_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has_file_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; asset_label: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: Calculate the sum of all file sizes belonging to each owner account.[/INST] SQL query: |
[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: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_directory: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date dsize ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; English query: How many assets does each user account own?[/INST] SQL query: |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset_label: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; asset_file: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date extension fsize ; asset_database: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date database_type ; relation: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; relation_has: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Print the description and creation dates for all labels.[/INST] SQL query: |