text
stringlengths
146
731
[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 ; English query: Show all directories that contain the term 'weather' in it's name or description.[/INST] SQL:
[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 ; English query: List directories that have the word 'weather' in their name or description.[/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 ; English query: List all tables that have more than 25 rows.[/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 ; English query: Show all tables that have 10 columns or more.[/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 ; English query: Find all tables in the lake that have 5 columns or more.[/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 ; English query: Which tables in the data lake have more than 25 columns?[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: For each type_id, how many assets are present in the lake?[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_has_dir_dir: 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:
[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 ; English query: For each directory id, list the number of files directly under it.[/INST] SQL:
[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 ; English query: Count the number of assets owned by each owner id.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_assoc_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: For each column id, show the number of classifications associated with it.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: How many assets of each type are present in the lake?[/INST] SQL:
[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 ; English query: For each table id, show the number of tables derived from it.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Show the number of instances for each relation type id.[/INST] SQL:
[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 ; English query: How many assets are present in the lake for each label asset type id?[/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 number of database instance present for each database asset type id.[/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: What is the average size of a file with each extension type?[/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: Compute the mean size of a file for each different extension.[/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: For each file extension, what is the average size of a file?[/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: What is the average size of files with each different extension?[/INST] SQL:
[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 ; English query: List ids for all folders that contain more than 100 files.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: Show the type ids and counts for each asset type that contains more than 25 instances.[/INST] SQL:
[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 ; English query: Show all ids for directories that have more than 10 files directly inside them.[/INST] SQL:
[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 ; English query: Which asset owner account ids own more than 5 assets?[/INST] SQL:
[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 ; English query: List all column ids and the number of associated business terms for all columns associated with at least 1 business term.[/INST] SQL:
[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 ; English query: Among assets created in the past one day, show the number of assets owned by each user account id.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: How many assets of each type id were created in the last 3 days?[/INST] SQL:
[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 ; English query: Show the ids for all folders that contain more than 10 files and were created in the past one week.[/INST] SQL:
[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 ; English query: Show the ids of users who own more than 20 assets.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: relation_has_dir_dir: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: List ids for directories that contain more than 20 immediate subdirectories.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: 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: Show the names of all the derived tables 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 ; relation_assoc: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: List all column names that have labels associated with them.[/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 ; relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Which columns have at least one business term associated with them?[/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 ; relation_assoc_class_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:
[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_assoc_class_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 label?[/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 ; relation_assoc_term_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 business term?[/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 ; relation_assoc: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Give me the id and name for all columns with at least one label.[/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 ; relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Give me the id and name for columns which have business terms associated with them.[/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 ; relation_assoc_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Select id and names of columns are associated with classifications.[/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 ; relation_assoc_term_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Show the ids and columns of all columns associated with business terms.[/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_unionable_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Show the names of all tables that are unionable with other tables.[/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_joinable_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Which are the tables in the lake that are joinable with other tables.[/INST] SQL:
[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 ; English query: Show the name, long name and description for all folders that contain at least one file directly inside them.[/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_derive_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Show the names and creation date of the 5 oldest derived tables.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: 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 ; English query: List the source assets for the 20 oldest relations 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_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: List the owner id for every 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_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: For each file, show me the file name, description and owner id.[/INST] SQL:
[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_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: For each directory, list the directory name, owner id and last modified timestamp.[/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 ; English query: How many assets does the user ‘jdoe’ own?[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: 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 ; English query: What are all the assets that belong to the user with asset id 3?[/INST] SQL:
[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_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: How many files were added to the directory 'part4' in the last one year?[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: 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 ; English query: List all assets owned by the user with user id '7'.[/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 ; English query: How many assets does the account 'uwmadison' own that were created in the past one week?[/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_own: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: List sizes and descriptions for all files belonging to owner id 3.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: 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 ; English query: List the number of assets owned by each user.[/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 ; English query: What are the top 10 classifications which are associated with the most columns?[/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_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Show the number of columns associated with each business term.[/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_class_col: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: How many columns are associated with each business terms in the data lake?[/INST] SQL:
[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 ; relation_assoc: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: How many columns are associated with each label?[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: 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 ; English query: Show the number of related assets for each asset.[/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_derive_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: For each table, show the number of tables derived from it.[/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_derive_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: List the number of tables derived from each table in the lake.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: For each asset type, how many assets are present in the lake?[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: How many assets of each type are there in the lake?[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: asset_id asset_type_id asset_short_name asset_long_name description synonyms creation_date modified_date ; English query: Give the count of assets for each asset type.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: 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 ; English query: How many assets does each owner account own?[/INST] SQL:
[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 ; English query: How many subfolders does each folder have?[/INST] SQL:
[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 ; English query: Show the top 10 directories that contain the most subdirectories.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: 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 ; English query: List the top 10 user accounts with the most assets.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: 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 ; English query: Who are the top 10 people who own the most assets?[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: 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 ; English query: How many assets does each user account own?[/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_unionable_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Count all possible unionable tables for each table.[/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_joinable_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: How many tables can be joined with each table 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_joinable_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: For each table, how many other tables can be joined with it?[/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_joinable_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Count the number of joinable tables for each table in the lake.[/INST] SQL:
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: asset: 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 ; English query: What are the total number of assets possessed by each account?[/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_unionable_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Count the number unionable tables for each table 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_unionable_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: How many tables can be unioned with each table 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_joinable_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:
[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_derive_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Count the number of tables derived from each table 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_derive_table_table: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: For each table, show the number of tables derived from it.[/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 ; English query: Show the number of columns that each classification is associated with.[/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 ; English query: How many columns is each classification associated with?[/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 ; English query: Count the number of columns that each business term is associated with.[/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 ; English query: Show the number of assets owned by each user that owns more than 50 assets.[/INST] SQL:
[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_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: Which folders have more than 100 files?[/INST] SQL:
[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_file: relation_id relation_type_id source_asset_id target_asset_id description creation_date modified_date ; English query: How many files were added to each directory in the past 1 year?[/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 ; English query: Show the number of assets owned by all users who have the term 'uwmadison' in their username.[/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 ; English query: How many assets are owned by each user account created in the past week?[/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 ; English query: Count the number of assets owned by each owner account that contains the term 'nyc' in it's name or description.[/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 ; English query: For each asset owner that owns more than 10 assets, show the total number of assets owned.[/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 ; English query: Show the number of assets owned by each owner account created in the past year.[/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 ; English query: How many assets are owned by each account older than 2 years?[/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 ; English query: Count the number of assets owned by each account older than a week.[/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 ; English query: Count the number of assets owned by each account having more than 30 assets.[/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 ; English query: Show the count of assets owned by all account that own no more than 10 assets.[/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 ; English query: List the number of assets owned by all users with 5 assets 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 ; English query: List all users who own exactly 5 assets[/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 ; English query: Show the number of assets owned by all accounts that have a description.[/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 ; English query: Show the number of assets owned by all accounts that have been modified in the past 1 day.[/INST] SQL: