text
stringlengths
705
1.65k
English Query
stringlengths
22
123
synonyms
sequencelengths
0
6
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: Show all records for columns that have the term 'prod' in them.[/INST] SQL query: select * from node_table where short_name like '%prod%';
Show all records for columns that have the term 'prod' in them.
[ [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; English query: For each classification that has 'water' as a prefix, how many columns are associated with it?[/INST] SQL query: select t1.node_id, t1.short_name, count(*) from node_classification as t1 join edge_assoc_class_col as t2 on t1.node_id = t2.source_node_id group by t1.node_id, t1.short_name having t1.short_name like 'water%';
For each classification that has 'water' as a prefix, how many columns are associated with it?
[ [ "edge_has", "has" ], [ "edge_assoc", "associate" ], [ "edge_assoc", "association" ], [ "node_column", "column" ], [ "node_classification", "classification" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: How many subfolders does each folder have?[/INST] SQL query: select t1.node_id, t1.short_name, count(*) from node_directory as t1 join edge_has_dir_dir as t2 on t1.node_id = t2.source_node_id group by source_node_id;
How many subfolders does each folder have?
[ [ "node_directory", "folder" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; English query: List directories that have the word 'weather' in their name or description.[/INST] SQL query: select short_name, description from node_directory where short_name like '%weather%' or description like '%weather%';
List directories that have the word 'weather' in their name or description.
[ [ "node_directory", "directory" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; English query: Name the 5 earliest created folders in the data lake that have a size greater than 1Mb.[/INST] SQL query: select short_name, creation_date from node_directory where dsize > 1024 order by creation_date asc limit 5;
Name the 5 earliest created folders in the data lake that have a size greater than 1Mb.
[ [ "node_directory", "folder" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the name, long name and description for the start date column in the bill of materials table.[/INST] SQL query: select t3.short_name, t3.long_name, t3.description from node_table as t1 join edge_has_table_col as t2 on t1.node_id = t2.source_node_id join node_column as t3 on t2.target_node_id = t3.node_id where t1.short_name = 'bill_of_materials' and t3.short_name = 's_date';
Show the name, long name and description for the start date column in the bill of materials table.
[ [ "bill_of_materials", "bill of materials" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: List the top 10 people who own the most relational databases.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1 from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_rdbms as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name order by c1 limit 10;
List the top 10 people who own the most relational databases.
[ [ "edge", "relation" ], [ "edge", "related" ], [ "edge_own", "own" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node: node_id type_id short_name long_name description creation_date modified_date ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Print all records for a sample of 5 rdbms.[/INST] SQL query: select * from node_rdbms limit 5;
Print all records for a sample of 5 rdbms.
[]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: How many rows and columns does the credit card table have?[/INST] SQL query: select num_rows, num_cols from node_table where short_name = 'person_credit_card';
How many rows and columns does the credit card table have?
[ [ "node_table", "table" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: How many classifications are owned by each user?[/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1 from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_classification as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name;
How many classifications are owned by each user?
[ [ "edge_own", "own" ], [ "node_classification", "classification" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Count the total number of relational databases in the lake.[/INST] SQL query: select count(*) from node_rdbms;
Count the total number of relational databases in the lake.
[ [ "edge", "relation" ], [ "edge", "related" ], [ "node_database", "database" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the names and descriptions for the last 10 directories that were modified.[/INST] SQL query: select short_name, description, modified_date from node_directory order by modified_date desc limit 10;
Show the names and descriptions for the last 10 directories that were modified.
[ [ "node_directory", "directory" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Count the number of columns of each type present in the lake.[/INST] SQL query: select col_type, count(*) from node_column group by col_type;
Count the number of columns of each type present in the lake.
[ [ "node_column", "column" ], [ "node_classification", "type" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Find all columns whose name or description contains the term 'id'.[/INST] SQL query: select short_name, description from node_column where short_name like '%id%' or description like '%id%';
Find all columns whose name or description contains the term 'id'.
[ [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: How many owner accounts does the lake contain?[/INST] SQL query: select count(*) from node_owner;
How many owner accounts does the lake contain?
[ [ "node_owner", "owner" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the column types for all columns in the lake.[/INST] SQL query: select short_name, col_type from node_column;
Show the column types for all columns in the lake.
[ [ "node_column", "column" ], [ "node_classification", "type" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; English query: Show the creation date and description for all labels and order the records by creation date.[/INST] SQL query: select short_name, creation_date, description from node_label order by creation_date asc;
Show the creation date and description for all labels and order the records by creation date.
[ [ "node_label", "label" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_label: node_id type_id short_name long_name description creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show me all the relational databases present in the lake.[/INST] SQL query: select short_name from node_rdbms;
Show me all the relational databases present in the lake.
[ [ "edge", "relation" ], [ "edge", "related" ], [ "node_database", "database" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; English query: Find all tables in the lake derived from csv files.[/INST] SQL query: select t3.short_name from node_file as t1 join edge_has_file_table as t2 on t1.node_id = t2.source_node_id join node_table as t3 on t2.target_node_id = t3.node_id where t1.extension = 'csv';
Find all tables in the lake derived from csv files.
[ [ "node_table", "table" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node: node_id type_id short_name long_name description creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the description and number of tables for all rdbms in the lake.[/INST] SQL query: select short_name, description, num_tables from node_rdbms;
Show the description and number of tables for all rdbms in the lake.
[ [ "node_table", "table" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node: node_id type_id short_name long_name description creation_date modified_date ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; English query: Name the 5 earliest created folders in the data lake that have a size greater than 1Mb.[/INST] SQL query: select short_name, creation_date from node_directory where dsize > 1024 order by creation_date asc limit 5;
Name the 5 earliest created folders in the data lake that have a size greater than 1Mb.
[ [ "node_directory", "folder" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node: node_id type_id short_name long_name description creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Show the number of rows in each table.[/INST] SQL query: select short_name, num_rows from node_table;
Show the number of rows in each table.
[]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Count the total number of tables in the lake.[/INST] SQL query: select count(*) from node_table;
Count the total number of tables in the lake.
[ [ "node_table", "table" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Show the creation date for the 5 biggest tables by the number of columns that contain the term 'enterprise' in their names.[/INST] SQL query: select short_name, creation_date, num_cols from node_table where short_name like '%enterprise%' order by num_cols desc limit 5;
Show the creation date for the 5 biggest tables by the number of columns that contain the term 'enterprise' in their names.
[ [ "node_table", "table" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Count the columns linked with the classification label 'address' in each table.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) from node_table as t1 join edge_has_table_col as t2 on t1.node_id = t2.source_node_id join edge_assoc_class_col as t3 on t2.target_node_id = t3.target_node_id join node_classification as t4 on t3.source_node_id = t4.node_id group by t1.node_id, t1.short_name where t4.short_name = 'address';
Count the columns linked with the classification label 'address' in each table.
[ [ "edge", "link" ], [ "node_column", "column" ], [ "node_label", "label" ], [ "node_classification", "classification" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_label: node_id type_id short_name long_name description creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; English query: Print the column name and description for all columns that contain a description.[/INST] SQL query: select short_name, description from node_column where description <> '';
Print the column name and description for all columns that contain a description.
[ [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; English query: How many nodes are there in the schema graph for the lake?[/INST] SQL query: select count(*) from node;
How many nodes are there in the schema graph for the lake?
[ [ "node", "node" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show metadata records for any 3 relational databases.[/INST] SQL query: select * from node_rdbms limit 3;
Show metadata records for any 3 relational databases.
[ [ "edge", "relation" ], [ "edge", "related" ], [ "node_label", "metadata" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; English query: Find all classifications associated with a column whose description contains the term 'knowledge'.[/INST] SQL query: select t1.short_name from node_classification as t1 join edge_assoc_class_col as t2 on t1.node_id = t2.source_node_id join node_column as t3 on t2.target_node_id = t3.node_id where t3.description like '%knowledge%';
Find all classifications associated with a column whose description contains the term 'knowledge'.
[ [ "edge_assoc", "associate" ], [ "edge_assoc", "association" ], [ "node_column", "column" ], [ "node_classification", "classification" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_label: node_id type_id short_name long_name description creation_date modified_date ; English query: Calculate the average size of a subfolder within each folder.[/INST] SQL query: select t1.node_id, t1.short_name, avg(t3.dsize) from node_directory as t1 join edge_has_dir_dir as t2 on t1.node_id = t2.source_node_id join node_directory as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name;
Calculate the average size of a subfolder within each folder.
[ [ "node_directory", "folder" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: What is the total size of files owned by each user?[/INST] SQL query: select t1.node_id, t1.short_name, sum(t3.fsize) from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_file as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name;
What is the total size of files owned by each user?
[ [ "edge_own", "own" ], [ "node_file", "file" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; English query: Name the last 5 directories that were modified.[/INST] SQL query: select short_name, modified_date from node_directory order by modified_date desc limit 5;
Name the last 5 directories that were modified.
[ [ "node_directory", "directory" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Count the number of assets owned by each account having more than 30 assets.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1 from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id group by t1.node_id, t1.short_name having c1 > 30 ;
Count the number of assets owned by each account having more than 30 assets.
[ [ "edge_own", "own" ], [ "node", "asset" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: List ids for all folders that contain more than 100 files.[/INST] SQL query: select source_node_id, count(*) as c1 from edge_has_dir_file group by source_node_id having c1 > 100;
List ids for all folders that contain more than 100 files.
[ [ "node_directory", "folder" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; English query: Which are the columns related to business terms created in the past year.[/INST] SQL query: select t3.short_name from node_business_term as t1 join edge_assoc_term_col as t2 on t1.node_id = t2.source_node_id join node_column as t3 on t2.target_node_id = t3.node_id where t1.creation_date >= datetime('now', '-365 days');
Which are the columns related to business terms created in the past year.
[ [ "edge", "relation" ], [ "edge", "related" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; English query: For each folder, count the number of assets immediately inside it.[/INST] SQL query: select t3.short_name, count(*) from node_directory as t1 join edge_has as t2 on t1.node_id = t2.source_node_id join node as t3 on t2.target_node_id = t3.node_id;
For each folder, count the number of assets immediately inside it.
[ [ "node", "asset" ], [ "node_directory", "folder" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Calculate the mean size of a file for owner account that own more than 20 files.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1, avg(t3.fsize) from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_file as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name having c1 > 20;
Calculate the mean size of a file for owner account that own more than 20 files.
[ [ "edge_own", "own" ], [ "node_file", "file" ], [ "node_owner", "owner" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; English query: Which folders have more than 100 files?[/INST] SQL query: select t1.short_name, count(*) as c1 from node_directory as t1 join edge_has_dir_file as t2 on t1.node_id = t2.source_node_id group by t2.source_node_id having c1 > 100;
Which folders have more than 100 files?
[ [ "node_directory", "folder" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: Which are the tables contain a column that includes the word 'borough' in it's name?[/INST] SQL query: select t1.short_name from node_table as t1 join edge_has_table_col as t2 on t1.node_id = t2.source_node_id join node_column as t3 on t2.target_node_id = t3.node_id where t3.short_name like '%borough%';
Which are the tables contain a column that includes the word 'borough' in it's name?
[ [ "edge_has", "include" ], [ "node_table", "table" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Find all columns associated with the business term 'model_id'.[/INST] SQL query: select t3.short_name from node_business_term as t1 join edge_assoc_term_col as t2 on t1.node_id = t2.source_node_id join node_column as t3 on t2.target_asset_id = t3.node_id where t1.short_name = 'model_id';
Find all columns associated with the business term 'model_id'.
[ [ "edge_assoc", "associate" ], [ "edge_assoc", "association" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the average size of a file owned by each user for all users who own more than 10 files.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1, avg(t3.fsize) from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_file as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name having c1 > 10;
Show the average size of a file owned by each user for all users who own more than 10 files.
[ [ "edge_own", "own" ], [ "node_file", "file" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Show the number of database instance present for each database asset type id.[/INST] SQL query: select type_id, count(*) from node_database group by type_id;
Show the number of database instance present for each database asset type id.
[ [ "type_id", "type id" ], [ "type_id", "asset type id" ], [ "node", "asset" ], [ "node_database", "database" ], [ "node_classification", "type" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; English query: What are the total number of assets possessed by each account?[/INST] SQL query: select t1.node_id, t1.short_name, count(*) from node as t1 join edge_own as t2 on t1.node_id = t2.source_node_id group by t1.node_id;
What are the total number of assets possessed by each account?
[ [ "node", "asset" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: List all unique file names in the data lake.[/INST] SQL query: select distinct short_name from node_file;
List all unique file names in the data lake.
[ [ "node_file", "file" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the name and description for all business terms.[/INST] SQL query: select long_name, description from node_business_term;
Show the name and description for all business terms.
[]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: For each table, show the number of tables derived from it.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) from node_table as t1 join edge_derive_table_table as t2 on t1.node_id = t2.source_node_id group by t1.node_id;
For each table, show the number of tables derived from it.
[ [ "node_table", "table" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; English query: Show all file names and sizes for files with size greater than 500K.[/INST] SQL query: select short_name, fsize from node_file where fsize > 500;
Show all file names and sizes for files with size greater than 500K.
[ [ "node_file", "file" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; English query: Display the name, long name, description and last modification date for the column named 'doc_owr'?[/INST] SQL query: select short_name, long_name, description, modified_date from node_column where short_name = 'doc_owr';
Display the name, long name, description and last modification date for the column named 'doc_owr'?
[ [ "m_date", "last modification" ], [ "mod_date", "last modification" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Print names for all directories that were created in the past day.[/INST] SQL query: select short_name, creation_date from node_directory where creation_date >= datetime('now', '-24 hours');
Print names for all directories that were created in the past day.
[ [ "node_directory", "directory" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Which are the relational databases in the lake owned by 'cslab'?[/INST] SQL query: select t3.short_name from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_rdbms as t3 on t2.target_node_id = t3.node_id where t1.short_name = 'cslab';
Which are the relational databases in the lake owned by 'cslab'?
[ [ "edge", "relation" ], [ "edge", "related" ], [ "edge_own", "own" ], [ "node_database", "database" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: For each type_id, how many edges are present in the lake?[/INST] SQL query: select type_id, count(*) from edge group by type_id;
For each type_id, how many edges are present in the lake?
[]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: Show all directories that contain the term 'weather' in it's name or description.[/INST] SQL query: select short_name, description from node_directory where short_name like '%weather%' or description like '%weather%';
Show all directories that contain the term 'weather' in it's name or description.
[ [ "node_directory", "directory" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: What is the total size of files owned by each user?[/INST] SQL query: select t1.node_id, t1.short_name, sum(t3.fsize) from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_file as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name;
What is the total size of files owned by each user?
[ [ "edge_own", "own" ], [ "node_file", "file" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; English query: Find all tables in the lake derived from xlsx files.[/INST] SQL query: select t3.short_name from node_file as t1 join edge_has_file_table as t2 on t1.node_id = t2.source_node_id join node_table as t3 on t2.target_node_id = t3.node_id where t1.extension = 'xlsx';
Find all tables in the lake derived from xlsx files.
[ [ "node_table", "table" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Count the number of relational databases owned by each asset owner.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1 from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_rdbms as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name;
Count the number of relational databases owned by each asset owner.
[ [ "edge", "relation" ], [ "edge", "related" ], [ "edge_own", "own" ], [ "node", "asset" ], [ "node_database", "database" ], [ "node_owner", "owner" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_classification: node_id type_id short_name long_name description creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id 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 query: select short_name, long_name, description from node_directory as t1 join edge_has_dir_file as t2 on t1.node_id = t2.source_node_id ;
Show the name, long name and description for all folders that contain at least one file directly inside them.
[ [ "node_directory", "folder" ], [ "node_file", "file" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Find all tables with 'workforce' in the name or description[/INST] SQL query: select * from node_table where short_name like '%workforce%' or description like '%workforce%';
Find all tables with 'workforce' in the name or description
[ [ "node_table", "table" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; English query: List all asset nodes in the lake created in the past 2 days.[/INST] SQL query: select short_name, creation_date from node where creation_date >= datetime('now', '-2 days');
List all asset nodes in the lake created in the past 2 days.
[ [ "node", "asset" ], [ "node", "node" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node: node_id type_id short_name long_name description creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the number of columns that each business term has been assigned to in the past 10 days.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) from node_business_term as t1 join edge_assoc_term_col as t2 on t1.node_id = t2.source_node_id group by t1.node_id, t1.short_name where t2.creation_date >= datetime('now', '-10 days');
Show the number of columns that each business term has been assigned to in the past 10 days.
[ [ "edge_has", "has" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; node: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the ids and columns of all columns associated with business terms.[/INST] SQL query: select distinct t1.node_id, t1.short_name from node_column as t1 join edge_assoc_term_col as t2 on t1.node_id = t2.target_node_id;
Show the ids and columns of all columns associated with business terms.
[ [ "edge_assoc", "associate" ], [ "edge_assoc", "association" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: Show the number of columns for all tables that have been modified in the past month.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) from node_table as t1 join edge_has_table_col as t2 on t1.node_id = t2.source_node_id group by t1.node_id, t1.short_name where t1.modified_date >= datetime('now', '-30 days');
Show the number of columns for all tables that have been modified in the past month.
[ [ "node_table", "table" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; English query: Show the size of the 10 biggest csv files in the lake sorted in descending order of their sizes.[/INST] SQL query: select short_name, fsize from node_file where extension = 'csv' order by fsize desc limit 10;
Show the size of the 10 biggest csv files in the lake sorted in descending order of their sizes.
[ [ "node_file", "file" ], [ "node_table", "csv file" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: How many tables can be unioned with each table in the lake?[/INST] SQL query: select t1.node_id, t1.short_name from node_table as t1 join edge_unionable_table_table as t2 on t1.node_id = t2.source_node_id group by t1.node_id;
How many tables can be unioned with each table in the lake?
[ [ "edge_unionable_table_table", "union" ], [ "node_table", "table" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; English query: How many directory in directory relations are there in the lake that were created in the past 5 days?[/INST] SQL query: select count(*) from edge_has_dir_dir where creation_date >= datetime('now', '-5 days');
How many directory in directory relations are there in the lake that were created in the past 5 days?
[ [ "edge", "relation" ], [ "edge", "related" ], [ "node_directory", "directory" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_label: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Sort the relational databases in the lake by the number of tables they contain.[/INST] SQL query: select short_name from node_rdbms order by num_tables;
Sort the relational databases in the lake by the number of tables they contain.
[ [ "edge", "relation" ], [ "edge", "related" ], [ "node_table", "table" ], [ "node_database", "database" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_label: node_id type_id short_name long_name description creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Count the number of columns of each type present in tables in that contain the word 'water' in their names.[/INST] SQL query: select t3.col_type, count(*) from node_table as t1 join edge_has_table_col as t2 on t1.node_id = t2.source_node_id join node_column as t3 on t2.target_node_id = t3.node_id group by t3.col_type where t1.short_name like '%water%';
Count the number of columns of each type present in tables in that contain the word 'water' in their names.
[ [ "node_table", "table" ], [ "node_column", "column" ], [ "node_classification", "type" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: List the creation date of every single nosql database with 'vehicle' in it's description.[/INST] SQL query: select short_name, creation_date, description from node_nosql where description like '%vehicle%';
List the creation date of every single nosql database with 'vehicle' in it's description.
[ [ "node_database", "database" ], [ "node_nosql", "NoSQL database" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Count the number of nosql databases in the lake.[/INST] SQL query: select count(*) from node_nosql;
Count the number of nosql databases in the lake.
[ [ "node_database", "database" ], [ "node_nosql", "NoSQL database" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the names and creation date of the 5 oldest derived tables.[/INST] SQL query: select short_name, creation_date from node_table as t1 join edge_derive_table_table as t2 on t1.node_id = t2.target_node_id order by t2.creation_date asc limit 5;
Show the names and creation date of the 5 oldest derived tables.
[]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Display all the records for 10 oldest assets in the lake by modified date.[/INST] SQL query: select * from node order by modified_date asc limit 10;
Display all the records for 10 oldest assets in the lake by modified date.
[ [ "node", "asset" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; English query: Find the total size of files owned by each asset owner that owns 5 files or more. [/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1, avg(t3.fsize) from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_file as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name having c1 >= 5;
Find the total size of files owned by each asset owner that owns 5 files or more.
[ [ "edge_own", "own" ], [ "node", "asset" ], [ "node_file", "file" ], [ "node_owner", "owner" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; English query: Print all metadata records for ownership relations.[/INST] SQL query: select * from edge_own;
Print all metadata records for ownership relations.
[ [ "node_label", "metadata" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node: node_id type_id short_name long_name description creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the last modified date for all columns in the lake.[/INST] SQL query: select short_name, modified_date from node_column;
Show the last modified date for all columns in the lake.
[ [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the number of related assets for each asset.[/INST] SQL query: select t1.short_name, count(*) from node as t1 join edge as t2 on t1.node_id;
Show the number of related assets for each asset.
[ [ "edge", "relation" ], [ "edge", "related" ], [ "node", "asset" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_label: node_id type_id short_name long_name description creation_date modified_date ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; English query: Display short name, long name and description for the password salt column.[/INST] SQL query: select short_name, long_name, description from node_column where short_name = 'passwd_salt';
Display short name, long name and description for the password salt column.
[ [ "passwd_salt", "password salt" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Give me 10 asset names from the data lake.[/INST] SQL query: select short_name from node limit 10;
Give me 10 asset names from the data lake.
[ [ "node", "asset" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: List the creation date of every single nosql database with 'vehicle' in it's description.[/INST] SQL query: select short_name, creation_date, description from node_nosql where description like '%vehicle%';
List the creation date of every single nosql database with 'vehicle' in it's description.
[ [ "node_database", "database" ], [ "node_nosql", "NoSQL database" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; English query: Give me the id and name for columns which have business terms associated with them.[/INST] SQL query: select distinct t1.node_id, t1.short_name from node_column as t1 join edge_assoc_term_col as t2 on t1.node_id = t2.target_node_id;
Give me the id and name for columns which have business terms associated with them.
[ [ "edge_assoc", "associate" ], [ "edge_assoc", "association" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the description, number of rows and number of columns for every single table.[/INST] SQL query: select short_name, description, num_rows, num_cols from node_table;
Show the description, number of rows and number of columns for every single table.
[ [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Name any 5 directories that were modified in the past 10 days.[/INST] SQL query: select short_name, modified_date from node_directory where modified_date >= datetime('now', '-10 days') limit 5;
Name any 5 directories that were modified in the past 10 days.
[ [ "node_directory", "directory" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: When was each owner account created?[/INST] SQL query: select short_name, creation_date from node_owner;
When was each owner account created?
[ [ "node_owner", "owner" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_label: node_id type_id short_name long_name description creation_date modified_date ; English query: Find the number of columns inside each table that have a classification label that contains the term 'phone' in it.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) from node_table as t1 join edge_has_table_col as t2 on t1.node_id = t2.source_node_id join edge_assoc_class_col as t3 on t2.target_node_id = t3.target_node_id join node_classification as t4 on t3.source_node_id = t4.node_id group by t1.node_id, t1.short_name where t4.short_name = 'phone';
Find the number of columns inside each table that have a classification label that contains the term 'phone' in it.
[ [ "node_table", "table" ], [ "node_column", "column" ], [ "node_label", "label" ], [ "node_classification", "classification" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Print description of table count for relational databases that have 25 tables or more.[/INST] SQL query: select short_name, description, num_tables from node_rdbms where num_tables >= 25;
Print description of table count for relational databases that have 25 tables or more.
[ [ "edge", "relation" ], [ "edge", "related" ], [ "node_table", "table" ], [ "node_database", "database" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the last modified timestamp and creation date for the column named 'a_type_id'.[/INST] SQL query: select modified_date, creation_date from node_column where short_name = 'a_type_id';
Show the last modified timestamp and creation date for the column named 'a_type_id'.
[ [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_label: node_id type_id short_name long_name description creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; English query: Show all metadata records for the DDG table.[/INST] SQL query: select * from node_table where short_name = 'dim_department_group';
Show all metadata records for the DDG table.
[ [ "node_label", "metadata" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; English query: List the extension, creation date and last modified date for all files in the lake.[/INST] SQL query: select short_name, creation_date, modified date from node_file;
List the extension, creation date and last modified date for all files in the lake.
[ [ "node_file", "file" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node: node_id type_id short_name long_name description creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Which are the columns that are associated with the classification 'enterprise'?[/INST] SQL query: select t3.node_id, t3.short_name from node_classification as t1 join edge_assoc_class_col as t2 on t1.node_id = t2.source_node_id join node_column as t3 on t2.target_node_id = t3.node_id where t1.short_name = 'enterprise';
Which are the columns that are associated with the classification 'enterprise'?
[ [ "edge_assoc", "associate" ], [ "edge_assoc", "association" ], [ "node_column", "column" ], [ "node_classification", "classification" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: List creation timestamps for directories with size greater than 100Kb.[/INST] SQL query: select short_name, creation_date from node_directory where dsize > 100;
List creation timestamps for directories with size greater than 100Kb.
[ [ "node_directory", "directory" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node: node_id type_id short_name long_name description creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Find all tables derived from files with prefix 'dot_vzv'.[/INST] SQL query: select t3.short_name from node_file as t1 join edge_has_file_table as t2 on t1.node_id = t2.source_node_id join node_table as t3 on t2.target_node_id = t3.node_id where t1.short_name like 'dot_vzv%';
Find all tables derived from files with prefix 'dot_vzv'.
[ [ "node_file", "file" ], [ "node_table", "table" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the names of all the columns in the data lake along with the table that they belong to.[/INST] SQL query: select t3.short_name, t1.short_name from node_table as t1 join edge_has_table_col as t2 on t1.node_id = t2.source_node_id join node_column as t3 on t2.target_node_id = t3.node_id;
Show the names of all the columns in the data lake along with the table that they belong to.
[ [ "node_table", "table" ], [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the last modified timestamp for all the tables.[/INST] SQL query: select short_name, last_modified from node_table;
Show the last modified timestamp for all the tables.
[]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; English query: List the files and folder immediately under the folder 'part4'.[/INST] SQL query: select t3.short_name from node_directory as t1 join edge_has as t2 on t1.node_id = t2.source_node_id join node as t3 on t2.target_node_id = t3.node_id where t1.short_name = 'part4';
List the files and folder immediately under the folder 'part4'.
[ [ "node_directory", "folder" ], [ "node_file", "file" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: List all tables owned by 'jdoe' along with it's creation date.[/INST] SQL query: select t3.short_name, t3.creation_date from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_table as t3 on t2.target_node_id = t3.node_id where t1.short_name = 'jdoe';
List all tables owned by 'jdoe' along with it's creation date.
[ [ "edge_own", "own" ], [ "node_table", "table" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show me all metadata for a sample of 5 business terms.[/INST] SQL query: select * from node_business_term limit 5;
Show me all metadata for a sample of 5 business terms.
[ [ "node_label", "metadata" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Print all metadata records for the table named 'fact_reseller_sales'.[/INST] SQL query: select * from node_table where short_name = 'fact_reseller_sales';
Print all metadata records for the table named 'fact_reseller_sales'.
[ [ "node_table", "table" ], [ "node_label", "metadata" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Display all the metadata for all databases in the lake.[/INST] SQL query: select * from node_database;
Display all the metadata for all databases in the lake.
[ [ "node_database", "database" ], [ "node_label", "metadata" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: What is the average file size for each asset owner?[/INST] SQL query: select t1.node_id, t1.short_name, avg(t3.fsize) from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_file as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name;
What is the average file size for each asset owner?
[ [ "node", "asset" ], [ "node_file", "file" ], [ "node_owner", "owner" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node: node_id type_id short_name long_name description creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: How many columns with descriptions are present in each of the tables?[/INST] SQL query: select t1.node_id, t1.short_name, count(*) from node_table as t1 join edge_has_table_col as t2 on t1.node_id = t2.source_node_id group by t1.node_id, t1.short_name where t1.description <> '';
How many columns with descriptions are present in each of the tables?
[ [ "node_column", "column" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the names of all the derived tables in the lake.[/INST] SQL query: select distinct t1.short_name from node as t1 join edge_derive_table_table as t2 on t1.node_id = t2.target_node_id;
Show the names of all the derived tables in the lake.
[ [ "node_table", "table" ] ]
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: Count the number of columns of each type in the 'nycc' table.[/INST] SQL query: select col_type, count(*) from node_column where short_name = 'nycc';
Count the number of columns of each type in the 'nycc' table.
[ [ "node_column", "column" ], [ "node_classification", "type" ] ]