text
stringlengths 705
1.65k
| English Query
stringlengths 22
123
| synonyms
sequencelengths 0
6
|
---|---|---|
[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 ; 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: 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_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: How many rows and columns does the popular baby names table have?[/INST] SQL query: select num_rows, num_cols from node_table where short_name = 'popular_baby_names'; | How many rows and columns does the popular baby names table have? | [
[
"node_table",
"table"
],
[
"node_column",
"column"
]
] |
[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 ; 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_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_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 ; 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 ; English query: Count the number of folder belonging to each owner account.[/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_directory as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name; | Count the number of folder belonging to each owner account. | [
[
"node_directory",
"folder"
],
[
"node_owner",
"owner"
]
] |
[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 ; 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_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: Which tables in the data lake have more than 25 columns?[/INST] SQL query: select short_name, num_cols from node_table where num_cols > 25; | Which tables in the data lake have more than 25 columns? | [
[
"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_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 ; 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 ; 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: Which tables contain the word 'work' in their names a column that contains the word 'hours' 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 t1.short_name like '%work%' and t3.short_name like '%hours%'; | Which tables contain the word 'work' in their names a column that contains the word 'hours' in it's name? | [
[
"node_table",
"table"
],
[
"node_column",
"column"
]
] |
[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: 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 ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: Show me the number of columns in each table whose name contains the prefix 'vehicle'.[/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.short_name like 'vehicle%'; | Show me the number of columns in each table whose name contains the prefix 'vehicle'. | [
[
"node_table",
"table"
],
[
"node_column",
"column"
]
] |
[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 ; 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_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 ; node_business_term: 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 ; 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 ; English query: Show all columns of type string.[/INST] SQL query: select short_name from node_column where col_type = 'string'; | Show all columns of type string. | [
[
"node_column",
"column"
],
[
"node_classification",
"type"
]
] |
[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 ; node_classification: 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_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 ; 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 ; English query: Show the name and descriptions for all columns associated with the classification 'timestamp'.[/INST] SQL query: select t3.short_name, t3.description 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 = 'timestamp'; | Show the name and descriptions for all columns associated with the classification 'timestamp'. | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"node_column",
"column"
],
[
"node_classification",
"classification"
]
] |
[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 ; edge_has: 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_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_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 ; English query: List the creation date and description for all columns in the lake.[/INST] SQL query: select short_name, creation_date, description from node_column; | List the creation date and description for all columns in the lake. | [
[
"node_column",
"column"
]
] |
[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_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 ; 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_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_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 ; English query: Count the columns associated with each classification asset in the lake that has 'water' as a prefix.[/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%'; | Count the columns associated with each classification asset in the lake that has 'water' as a prefix. | [
[
"edge_has",
"has"
],
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"node",
"asset"
],
[
"node_column",
"column"
],
[
"node_classification",
"classification"
]
] |
[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_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 ; 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 ; 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: How many columns are associated with each label?[/INST] SQL query: select t1.short_name, count(*) from node_label as t1 join edge_assoc as t2 on t1.node_id = t2.source_node_id group by t2.source_node_id; | How many columns are associated with each label? | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"node_column",
"column"
],
[
"node_label",
"label"
]
] |
[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: 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_joinable_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_has_dir_dir: 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: 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 ; 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_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the count of assets owned by all account that own no more than 10 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 <= 10 ; | Show the count of assets owned by all account that own no more than 10 assets. | [
[
"edge_own",
"own"
],
[
"node",
"asset"
]
] |
[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_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_dir_dir: 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: 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: node_id type_id short_name long_name description 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: 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_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; 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_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 ; 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 mean size of a subdirectory within each directory.[/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; | Show the mean size of a subdirectory within each 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 ; 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 ; 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 ; edge_derive_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 ; 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_database: node_id type_id short_name long_name description creation_date modified_date database_type ; English query: How many rows and columns does the edh table have?[/INST] SQL query: select num_rows, num_cols from node_table where short_name = 'employee_department_history'; | How many rows and columns does the edh table have? | [
[
"employee_department_history",
"edh"
],
[
"node_table",
"table"
],
[
"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 ; 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_unionable_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 ; 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_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; English query: Find all columns 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'; | Find all columns 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: 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_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 ; 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_derive_table_table: 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 within each table associated with the classification 'zipcode'.[/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 = 'zipcode'; | Count the number of columns within each table associated with the classification 'zipcode'. | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"node_table",
"table"
],
[
"node_column",
"column"
],
[
"node_classification",
"classification"
]
] |
[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: 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_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; 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_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_classification: 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 ; English query: Print short name, long name and description for files in the HR directory.[/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 join node_file as t3 on t2.target_node_id = t3.node_id where t3.short_name = 'human_resources'; | Print short name, long name and description for files in the HR directory. | [
[
"human_resources",
"hr"
],
[
"node_file",
"file"
]
] |
[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 ; edge_has_dir_file: 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 ; 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 ; 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 nodes in the graph for the lake.[/INST] SQL query: select count(*) from node; | Count the number of nodes in the graph for the lake. | [
[
"node",
"node"
]
] |
[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_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_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; 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_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 ; English query: Show all the metadata for table from file relations.[/INST] SQL query: select * from edge_has_file_table; | Show all the metadata for table from file relations. | [
[
"node_file",
"file"
],
[
"node_table",
"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 ; 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 ; 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_joinable_table_table: 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 ; English query: How many rows and columns does each table have?[/INST] SQL query: select short_name, num_rows, num_cols from node_table; | How many rows and columns does each table have? | [
[
"node_table",
"table"
],
[
"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_has_table_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_dir: 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_unionable_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 sub directories are under each directory identified by it's id.[/INST] SQL query: select source_node_id, count(*) from edge_has_dir_dir group by source_node_id ; | How many sub directories are under each directory identified by it's id. | [
[
"node_directory",
"directory"
]
] |
[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_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 ; 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_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; English query: Sort all business terms created in the past 5 days by it's creation timestamp.[/INST] SQL query: select short_name, creation_date from node_label where creation_data >= datetime('now', '-5 days') order by creation_date asc; | Sort all business terms created in the past 5 days by it's creation timestamp. | [] |
[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_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_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_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_unionable_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: Find all assets with the term 'nyc' in it's name or description.[/INST] SQL query: select short_name, description from node where short_name like '%nyc%' or description like '%nyc%'; | Find all assets with the term 'nyc' in it's name or description. | [
[
"node",
"asset"
]
] |
[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_joinable_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_derive_table_table: 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_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_has_table_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: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the creation date and description for all owner accounts.[/INST] SQL query: select short_name, creation_date, description from node_owner; | Show the creation date and description for all owner accounts. | [
[
"node_owner",
"owner"
]
] |
[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_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 ; edge_has_dir_file: 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_dir_dir: 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 size of a subfolder in 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; | What is the average size of a subfolder in each folder? | [
[
"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_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_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_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 ; 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 ; English query: Count the number of assets owned by each owner account that contains the term 'nyc' in it's name or description.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) 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 where t1.short_name like '%nyc%' or t1.description like '%nyc%'; | Count the number of assets owned by each owner account that contains the term 'nyc' in it's name or description. | [
[
"edge_own",
"own"
],
[
"node",
"asset"
],
[
"node_owner",
"owner"
]
] |
[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_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_assoc: 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_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: node_id type_id short_name long_name description creation_date modified_date ; English query: Count the number of columns associated with each classification that contains the word 'category' in it's name.[/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 '%category%'; | Count the number of columns associated with each classification that contains the word 'category' in it's name. | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"node_column",
"column"
],
[
"node_classification",
"classification"
]
] |
[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_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 ; edge_has_dir_dir: 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_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 ; 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 ; 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_business_term: 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_term_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_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: Count the number of columns that each business term is associated with.[/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 ; | Count the number of columns that each business term is associated with. | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"node_column",
"column"
]
] |
[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 ; 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_file: 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 number of columns that each classification is associated with.[/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 ; | Show the number of columns that each classification is associated with. | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"node_column",
"column"
],
[
"node_classification",
"classification"
]
] |
[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_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 ; 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_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 ; English query: List all string columns created in the past 3 days.[/INST] SQL query: select short_name, creation_date from node_column where col_type = 'string' and creation_date >= datetime('now', '-3 days'); | List all string columns created in the past 3 days. | [
[
"node_column",
"column"
]
] |
[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_business_term: 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_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 ; English query: Find all tables with 'work' in it's title and a column that contains 'hours' 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 t1.short_name like '%work%' and t3.short_name like '%hours%'; | Find all tables with 'work' in it's title and a column that contains 'hours' in it's name. | [
[
"node_table",
"table"
],
[
"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 ; 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_dir_file: 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_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: Which are the assets in the lake owned by Jane Doe?[/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 as t3 on t2.target_node_id = t3.node_id where t1.long_name = 'Jane Doe'; | Which are the assets in the lake owned by Jane Doe? | [
[
"edge_own",
"own"
],
[
"node",
"asset"
]
] |
[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_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_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_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 ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; English query: List the owner for each asset in the database.[/INST] SQL query: select t3.short_name, t1.short_name from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node as t3 on t2.target_node_id = t3.node_id; | List the owner for each asset in the database. | [
[
"node",
"asset"
],
[
"node_owner",
"owner"
]
] |
[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: 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_has: 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 ; English query: List the name, description and creation date for all assets in the lake ordered from newest to oldest.[/INST] SQL query: select short_name, description, creation_date from node order by creation_date desc; | List the name, description and creation date for all assets in the lake ordered from newest to oldest. | [
[
"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_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 ; 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_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: Count the number of assets owned by each owner id.[/INST] SQL query: select source_node_id, count(*) from edge_own group by source_node_id ; | Count the number of assets owned by each owner id. | [
[
"edge_own",
"own"
],
[
"node",
"asset"
],
[
"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 ; edge: 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 ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; English query: Count the number of columns for each table that has more than 15 columns.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1 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 having c1 > 15; | Count the number of columns for each table that has more than 15 columns. | [
[
"edge_has",
"has"
],
[
"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 ; 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 ; 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 ; 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_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; 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_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 ; node: 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_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_classification: 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_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 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: node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_classification: 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_database: node_id type_id short_name long_name description creation_date modified_date database_type ; 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 ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Print the creation and last modification timestamp for the human resources directory.[/INST] SQL query: select creation_date, modified_date from node_directory where short_name = 'human_resources'; | Print the creation and last modification timestamp for the human resources directory. | [
[
"human_resources",
"human resources"
],
[
"m_date",
"last modification"
],
[
"mod_date",
"last modification"
],
[
"node",
"resource"
]
] |
[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 ; edge_has: 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_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 ; English query: Print all metadata for a sample of 10 classifications.[/INST] SQL query: select * from node_classification limit 10; | Print all metadata for a sample of 10 classifications. | [
[
"node_label",
"metadata"
]
] |
[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_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 ; 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_has: 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_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 ; English query: List all relational databases that contain more than 10 tables and were created in the past year.[/INST] SQL query: select short_name, num_tables, creation_date from node_rdbms where num_tables > 10 and created_date >= datetime('now', '-365 days'); | List all relational databases that contain more than 10 tables and were created in the past year. | [
[
"edge",
"relation"
],
[
"edge",
"related"
],
[
"node_table",
"table"
],
[
"node_database",
"database"
]
] |
[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_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 ; 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 ; 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 number of columns in all tables that contain the term 'nyc' in it's name.[/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.short_name like '%nyc%'; | Count the number of columns in all tables that contain the term 'nyc' in it's name. | [
[
"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_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_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: 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_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: What are the joinable table pairs found in the last 24 hours?[/INST] SQL query: select t1.short_name from node_table as t1 join edge_joinable_table_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 t2.creation_date >= datetime('now', '-24hours'); | What are the joinable table pairs found in the last 24 hours? | [
[
"node_table",
"table"
]
] |
[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_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_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_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: List all tables owned by 'jdoe' that were created in the past one year.[/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' and t1.creation_date >= datetime('now', '-365 days'); | List all tables owned by 'jdoe' that were created in the past one year. | [
[
"edge_own",
"own"
],
[
"node_table",
"table"
]
] |
[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_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_has_file_table: 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 ; 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: Find all tables in the lake derived from json 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 = 'json'; | Find all tables in the lake derived from json files. | [
[
"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_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_database: node_id type_id short_name long_name description creation_date modified_date database_type ; 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_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: How many assets are owned by each user account created in the past week?[/INST] SQL query: select t1.node_id, t1.short_name, count(*) 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 where t1.creation_date >= datetime('now', '-7 days'); | How many assets are owned by each user account created in the past week? | [
[
"edge_own",
"own"
],
[
"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_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 ; 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_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_label: node_id type_id short_name long_name description creation_date modified_date ; English query: List tables that have more than 10 columns.[/INST] SQL query: select short_name, num_cols from node_table where num_cols > 10; | List tables that have more than 10 columns. | [
[
"node_table",
"table"
]
] |
[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_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 ; 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_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: Print the name, long name and description for the directory named 'dbo'.[/INST] SQL query: select short_name, long_name, description from node_directory where short_name = 'dbo'; | Print the name, long name and description for the directory named 'dbo'. | [
[
"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 ; 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_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 ; node_business_term: 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_classification: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the 20 newest folders by modified date.[/INST] SQL query: select short_name, modified_date from node_directory order by modified_date desc limit 20; | Show the 20 newest folders by modified date. | [
[
"node_directory",
"folder"
]
] |
[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 ; node_business_term: 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_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_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 ; English query: Show the number of columns associated with each business term.[/INST] SQL query: select t1.short_name, count(*) from node_business_term as t1 join edge_assoc_class_col as t2 on t1.node_id = t2.source_node_id group by t2.source_node_id; | Show the number of columns associated with each business term. | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"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 ; edge_unionable_table_table: 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 ; 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 ; 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 ; 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 ; English query: Order all csv files by their creation date from the oldest to the newest.[/INST] SQL query: select short_name, creation_date from node_file where extension = 'csv' order by creation_date asc; | Order all csv files by their creation date from the oldest to the newest. | [
[
"node_file",
"file"
],
[
"node_table",
"csv 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_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_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_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 ; node_label: 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_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: List tables that have more than 10 columns.[/INST] SQL query: select short_name, num_cols from node_table where num_cols > 10; | List tables that have more than 10 columns. | [
[
"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_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 ; 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_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 ; edge_has: 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 ; English query: What is the average size of a file owned by each user who owns 25 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 >= 25; | What is the average size of a file owned by each user who owns 25 files or more? | [
[
"edge_own",
"own"
],
[
"node_file",
"file"
]
] |
[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 ; 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 ; 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: How many assets does each owner account own?[/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; | How many assets does each owner account own? | [
[
"edge_own",
"own"
],
[
"node",
"asset"
],
[
"node_owner",
"owner"
]
] |
[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_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 ; 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 ; edge_has_dir_file: 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_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 ; English query: List all columns of type integer.[/INST] SQL query: select short_name from node_column where col_type = 'int'; | List all columns of type integer. | [
[
"node_column",
"column"
],
[
"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 ; edge_own: 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: 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 ; 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_owner: node_id type_id short_name long_name description creation_date modified_date ; English query: Find all classifications with the term 'market' in it.[/INST] SQL query: select short_name from node_classification where short_name like '%market%'; | Find all classifications with the term 'market' in it. | [
[
"node_classification",
"classification"
]
] |
[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_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; 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 ; 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 ; 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: 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_database: node_id type_id short_name long_name description creation_date modified_date database_type ; 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_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; English query: Order all databases in the lake by their creation date.[/INST] SQL query: select short_name, creation_date from node_database order by creation_date asc; | Order all databases in the lake by their creation date. | [
[
"node_database",
"database"
]
] |
[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_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_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_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; 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: For each type_id, how many assets are present in the lake?[/INST] SQL query: select type_id, count(*) from node group by type_id; | For each type_id, how many assets are present in the lake? | [
[
"node",
"asset"
]
] |
[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_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_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 ; 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 ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; English query: How many assets does the account 'uwmadison' own that were created in the past one week?[/INST] SQL query: select count(*) from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id where t1.short_name = ‘uwmadison’ and t2.creation_date >= datetime('now', '-7 days'); | How many assets does the account 'uwmadison' own that were created in the past one week? | [
[
"edge_own",
"own"
],
[
"node",
"asset"
]
] |
[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_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_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: Print the type and description for all columns in the table named 'work_order_management_module'.[/INST] SQL query: select t3.col_type, 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 = 'work_order_management_module'; | Print the type and description for all columns in the table named 'work_order_management_module'. | [
[
"node_table",
"table"
],
[
"node_column",
"column"
],
[
"node_classification",
"type"
]
] |
[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_dir_file: 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_term_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 ; English query: Show all ids for directories that have more than 10 files directly inside them.[/INST] SQL query: select source_node_id, count(*) as c1 from edge_has_dir_file group by source_node_id having c1 > 10; | Show all ids for directories that have more than 10 files directly inside them. | [
[
"node_directory",
"directory"
],
[
"node_file",
"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 ; 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_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 ; edge_own: 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_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: Show the total size of all files added in the last 30 days for each owner account.[/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 where t3.creation_date >= datetime('now', '-30 days'); | Show the total size of all files added in the last 30 days for each owner account. | [
[
"node_file",
"file"
],
[
"node_owner",
"owner"
]
] |
[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 ; 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_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: Display table name, number of rows and number of columns for all tables whose name begins with 'fact'.[/INST] SQL query: select short_name, num_rows, num_cols from node_table where short_name like 'fact%'; | Display table name, number of rows and number of columns for all tables whose name begins with 'fact'. | [
[
"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_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: 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_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 ; 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 ; English query: Find all asset owners whose full name is John Smith.[/INST] SQL query: select short_name, long_name from node_owner where long_name = 'John Smith'; | Find all asset owners whose full name is John Smith. | [
[
"node",
"asset"
],
[
"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_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; 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 ; node_label: 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 ; 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 ; 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 ; English query: List ids for directories that contain more than 20 immediate subdirectories.[/INST] SQL query: select source_node_id, count(*) as c1 from edge_has_dir_dir group by source_node_id having c1 > 20; | List ids for directories that contain more than 20 immediate subdirectories. | [
[
"node_directory",
"directory"
]
] |
[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_table_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 ; 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 ; 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 ; English query: Show the creation date and description for the column named 'ccid'.[/INST] SQL query: select creation_date, description from node_column where short_name = 'ccid'; | Show the creation date and description for the column named 'ccid'. | [
[
"node_column",
"column"
]
] |
[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_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 ; 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_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 ; edge_assoc_term_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 ; 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 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: 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_has: 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 ; English query: Display description and row count for relational databases.[/INST] SQL query: select short_name, description, num_tables from node_rdbms; | Display description and row count for relational databases. | [
[
"edge",
"relation"
],
[
"edge",
"related"
]
] |
[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 ; 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_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 ; 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 integer columns in the lake.[/INST] SQL query: select count(*) from node_column where col_type = 'int'; | Count the number of integer columns in the lake. | [
[
"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_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_business_term: 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 ; English query: List all columns linked with business terms that were added in the past 20 days.[/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', '-20 days'); | List all columns linked with business terms that were added in the past 20 days. | [
[
"edge",
"link"
],
[
"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_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; 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 ; 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 ; English query: Count the number of integer columns in the lake.[/INST] SQL query: select count(*) from node_column where col_type = 'int'; | Count the number of integer columns in the lake. | [
[
"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_has_dir_dir: 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 ; 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 ; English query: List all files whose parent directory is 'part1'[/INST] SQL query: select t3.short_name from node_directory as t1 join edge_has_dir_file as t2 on t1.node_id = t2.source_node_id join node_file as t3 on t2.target_node_id = t3.node_id where t1.short_name = 'part1'; | List all files whose parent directory is 'part1' | [
[
"node_directory",
"directory"
],
[
"node_file",
"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_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_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 ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; English query: Print the id, description and size for all directories.[/INST] SQL query: select short_name, node_id, description, dsize from node_directory; | Print the id, description and size for all directories. | [] |
[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 ; edge_assoc_term_col: 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 ; 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 ; English query: What are the creation times for all folders in the data lake?[/INST] SQL query: select short_name, creation_date from node_directory; | What are the creation times for all folders in the data lake? | [
[
"node_directory",
"folder"
]
] |
[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_term_col: 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_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_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_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_database: node_id type_id short_name long_name description creation_date modified_date database_type ; English query: Show all tables that have 10 columns or more.[/INST] SQL query: select short_name, num_cols from node_table where num_cols >= 10; | Show all tables that have 10 columns or more. | [
[
"node_table",
"table"
],
[
"node_column",
"column"
]
] |
[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_has_table_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_owner: 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_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: node_id type_id short_name long_name description creation_date modified_date ; English query: How many assets does the user ‘jdoe’ own?[/INST] SQL query: select count(*) from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id where t1.short_name = ‘jdoe’; | How many assets does the user ‘jdoe’ own? | [
[
"edge_own",
"own"
],
[
"node",
"asset"
]
] |
[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_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 ; edge_has_dir_dir: 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_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 ; English query: Show the number of assets owned by each owner account created in the past year.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) 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 where t1.creation_date >= datetime('now', '-365 days'); | Show the number of assets owned by each owner account created in the past year. | [
[
"edge_own",
"own"
],
[
"node",
"asset"
],
[
"node_owner",
"owner"
]
] |
[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_joinable_table_table: 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_label: 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_has_dir_dir: 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_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; English query: Find all records for columns named 'borough'.[/INST] SQL query: select * from node_column where short_name = 'borough'; | Find all records for columns named 'borough'. | [
[
"node_column",
"column"
]
] |
[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_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 ; 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 ; 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 ; 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 ; English query: Show all metadata for label association relationships created in the past week.[/INST] SQL query: select * from edge_assoc where creation_date >= datetime('now', '-7 days'); | Show all metadata for label association relationships created in the past week. | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"node_label",
"label"
],
[
"node_label",
"metadata"
]
] |
[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 ; 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 ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; 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_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 ; English query: Give the average folder size for each asset owner.[/INST] SQL query: select t1.node_id, t1.short_name, avg(t3.dsize) from node_owner as t1 join edge_own 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; | Give the average folder size for each asset owner. | [
[
"node",
"asset"
],
[
"node_directory",
"folder"
],
[
"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_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_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 ; 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: 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 size of a file 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_file 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 size of a file within each folder? | [
[
"node_directory",
"folder"
],
[
"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: 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_unionable_table_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_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 ; edge_assoc: 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 ; English query: Show the size and descriptions for all files in the lake.[/INST] SQL query: select short_name, fsize, description from node_file; | Show the size and descriptions 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_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge: 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_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 ; English query: Find all columns that were created in the past one year and contains the term 'id' in it's name.[/INST] SQL query: select short_name, creation_date from node_column where short_name like '%id%' and creation_date >= datetime('now', '-365 days'); | Find all columns that were created in the past one year and contains the term 'id' in it's name. | [
[
"node_column",
"column"
]
] |
[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_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_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_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 ; 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: How many columns do each of the 10 newest tables in the lake have?[/INST] SQL query: select t1.node_id, t1.short_name, t1.creation_date 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, t1.creation_date order by t1.creation_date desc limit 10; | How many columns do each of the 10 newest tables in the lake have? | [
[
"node_table",
"table"
],
[
"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_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_derive_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 ; edge_has: 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_classification: node_id type_id short_name long_name description creation_date modified_date ; English query: Show all records for the classification labeled 'state'.[/INST] SQL query: select * from node_classification where short_name = 'state'; | Show all records for the classification labeled 'state'. | [
[
"node_label",
"label"
],
[
"node_classification",
"classification"
]
] |
[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_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; 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 ; 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 all files in the HR folder.[/INST] SQL query: select t3.short_name from node_directory as t1 join edge_has_dir_file as t2 on t1.node_id = t2.source_node_id join node_file as t3 on t2.target_node_id = t3.node_id where t1.short_name = 'human_resources' ; | List all files in the HR folder. | [
[
"human_resources",
"hr"
],
[
"node_directory",
"folder"
],
[
"node_file",
"file"
]
] |
[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_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_derive_table_table: 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_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 ; 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 ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; 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: edge_has_dir_dir: 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_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 ; 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 ; English query: Print all records for the dim sales territory table.[/INST] SQL query: select * from node_table where short_name = 'dim_sales_territory'; | Print all records for the dim sales territory table. | [] |
[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_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_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_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; English query: Compute the mean size of a file for each different extension.[/INST] SQL query: select extension, avg(fsize) from node_file group by extension; | Compute the mean size of a file for each different extension. | [
[
"node_file",
"file"
]
] |
[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 ; 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_joinable_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 ; English query: How many assets does the user ‘jdoe’ own?[/INST] SQL query: select count(*) from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id where t1.short_name = ‘jdoe’; | How many assets does the user ‘jdoe’ own? | [
[
"edge_own",
"own"
],
[
"node",
"asset"
]
] |
[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_dir_file: 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 ; 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 ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; English query: Show table records for the top 3 tables by number of columns.[/INST] SQL query: select * from node_table order by num_cols limit 3; | Show table records for the top 3 tables by number of columns. | [
[
"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_database: node_id type_id short_name long_name description creation_date modified_date database_type ; 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_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 ; 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 ; 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: Count the number of columns of each type in the 'nyss' table.[/INST] SQL query: select col_type, count(*) from node_column where short_name = 'nyss'; | Count the number of columns of each type in the 'nyss' table. | [
[
"node_column",
"column"
],
[
"node_classification",
"type"
]
] |
[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_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_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_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 ; node_label: node_id type_id short_name long_name description creation_date modified_date ; English query: Print the number of rows and number of columns in the table named 'fact_finance'.[/INST] SQL query: select num_rows, num_cols from node_table where short_name = 'fact_finance'; | Print the number of rows and number of columns in the table named 'fact_finance'. | [
[
"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_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_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: Print classification labels that contain the word 'market'.[/INST] SQL query: select short_name from node_classification where short_name like '%market%'; | Print classification labels that contain the word 'market'. | [
[
"node_label",
"label"
],
[
"node_classification",
"classification"
]
] |
[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_assoc: 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 ; English query: For each asset type, count the number of assets owned by each asset owner.[/INST] SQL query: select t1.node_id, t1.short_name, t3.type_id, count(*) from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name, t3.type_id; | For each asset type, count the number of assets owned by each asset owner. | [
[
"edge_own",
"own"
],
[
"node",
"asset"
],
[
"node_classification",
"type"
],
[
"node_owner",
"owner"
]
] |
[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_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 ; 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_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 ; 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: edge_assoc: 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_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 ; 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 ; 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 ; English query: Show the short name, long name and description for the job candidate table.[/INST] SQL query: select short_name, long_name, description from node_table where short_name = 'job_candidate'; | Show the short name, long name and description for the job candidate table. | [] |