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 ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_own: 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 ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description 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: node_label: 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_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_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_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: Which files contain a table with the term 'covid' in their name?[/INST] SQL query: select t1.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 t3.short_name like '%covid%'; | Which files contain a table with the term 'covid' in their name? | [
[
"node_file",
"file"
],
[
"node_table",
"table"
]
] |
[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: 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 ; 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: Display all records for the employee master database.[/INST] SQL query: select * from node_rdbms where short_name = 'employee_db'; | Display all records for the employee master database. | [] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_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 ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_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_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Print column count and description for the 25 biggest tables in the lake by row count.[/INST] SQL query: select short_name, num_cols, description, num_rows from node_table order by num_rows desc limit 10; | Print column count and description for the 25 biggest tables in the lake by row count. | [
[
"node_table",
"table"
],
[
"node_column",
"column"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; node: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the database type and last modified date for all databases.[/INST] SQL query: select short_name, database_type, modified_data from node_database; | Show the database type and last modified date for all databases. | [
[
"node_database",
"database"
],
[
"node_classification",
"type"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_label: 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_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_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 ; English query: Show the type and length for all columns in the lake within tables that have the word 'vehicle' in their names.[/INST] SQL query: select t3.short_name, t3.col_type, t3.max_col_length 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 '%vehicle%'; | Show the type and length for all columns in the lake within tables that have the word 'vehicle' in their names. | [
[
"node_table",
"table"
],
[
"node_column",
"column"
],
[
"node_classification",
"type"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_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: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Print names of all folders.[/INST] SQL query: select short_name from node_directory; | Print names of all folders. | [] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_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_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; English query: List all the files owned by 'asmith'.[/INST] SQL query: select t1.short_name from node_file as t1 join edge_own as t2 on t1.node_id = t2.target_node_id join node_owner as t3 on t2.source_node_id = t3.node_id where t3.short_name = ‘asmith’; | List all the files owned by 'asmith'. | [
[
"edge_own",
"own"
],
[
"node_file",
"file"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_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 ; 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 ; English query: Print the descriptions for all owner accounts.[/INST] SQL query: select short_name, description from node_owner; | Print the descriptions for all owner accounts. | [
[
"node_owner",
"owner"
]
] |
[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 ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_label: node_id type_id short_name long_name description creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: List the top 10 people who own the most relational databases.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1 from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_rdbms as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name order by c1 limit 10; | List the top 10 people who own the most relational databases. | [
[
"edge",
"relation"
],
[
"edge",
"related"
],
[
"edge_own",
"own"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; 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_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 ; English query: Print the description and number of tables for all relational databases in the lake.[/INST] SQL query: select short_name, description, num_tables from node_rdbms; | Print the description and number of tables for all relational databases in the lake. | [
[
"edge",
"relation"
],
[
"edge",
"related"
],
[
"node_table",
"table"
],
[
"node_database",
"database"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_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 ; 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_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Sort all relational databases created in the past week from oldest to newest.[/INST] SQL query: select short_name, creation_date from node_rdbms where creation_date >= datetime('now', '-7 days') order by creation_date asc; | Sort all relational databases created in the past week from oldest to newest. | [
[
"edge",
"relation"
],
[
"edge",
"related"
],
[
"node_database",
"database"
]
] |
[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 ; 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 ; 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 ; 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: node_id type_id short_name long_name description creation_date modified_date ; English query: Order all nosql databases in the lake by their creation date.[/INST] SQL query: select short_name, creation_date from node_nosql order by creation_date asc; | Order all nosql databases in the lake by their creation date. | [
[
"node_database",
"database"
],
[
"node_nosql",
"NoSQL database"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Print the total number of nosql databases.[/INST] SQL query: select count(*) from node_nosql; | Print the total number of nosql databases. | [] |
[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_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 ; 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_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: Name the 5 earliest created folders in the data lake with size greater than 100Kb.[/INST] SQL query: select short_name, creation_date from node_directory where dsize > 100 order by creation_date asc limit 5; | Name the 5 earliest created folders in the data lake with size greater than 100Kb. | [
[
"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 ; 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 ; 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 ; 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 ; 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 ; English query: Show all metadata records for labels.[/INST] SQL query: select * from node_label; | Show all metadata records for labels. | [
[
"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 ; 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_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 ; English query: Print out the creation date and owner for every file in the data lake.[/INST] SQL query: select t3.short_name, t3.creation_date, t1.short_name 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; | Print out the creation date and owner for every file in the data lake. | [
[
"node_file",
"file"
],
[
"node_owner",
"owner"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node: node_id type_id short_name long_name description creation_date modified_date ; node_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 ; 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_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: 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: 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_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_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 ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: Count the number of boolean columns in the lake.[/INST] SQL query: select count(*) from node_column where col_type = 'bool'; | Count the number of boolean columns in the lake. | [
[
"node_column",
"column"
]
] |
[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 ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_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_label: 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: 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_file_table: 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 databases.[/INST] SQL query: select short_name, description, creation_date from node_database; | List the name, description and creation date for all databases. | [] |
[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_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_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_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_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_owner: node_id type_id short_name long_name description creation_date modified_date ; English query: Print all records for password hash columns.[/INST] SQL query: select * from node_column where short_name = 'passwd_hash'; | Print all records for password hash columns. | [
[
"passwd_hash",
"password hash"
]
] |
[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 ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_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: node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; 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_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_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_owner: node_id type_id short_name long_name description creation_date modified_date ; English query: How many columns are associated with each business term that contains the word 'id' in it's name?[/INST] SQL query: select t1.node_id, t1.short_name, count(*) from node_business_term as t1 join edge_assoc_term_col as t2 on t1.node_id = t2.source_node_id group by t1.node_id, t1.short_name having t1.short_name like '%id%'; | How many columns are associated with each business term that contains the word 'id' in it's name? | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"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_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the ids for all folders that contain more than 10 files and were created in the past one week.[/INST] SQL query: select source_node_id, count(*) as c1 from edge_has_dir_file where creation_date >= datetime('now', '-7 days') group by source_node_id having c1 > 10; | Show the ids for all folders that contain more than 10 files and were created in the past one week. | [
[
"node_directory",
"folder"
],
[
"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: 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: node_id type_id short_name long_name description creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; edge_has_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_label: node_id type_id short_name long_name description creation_date modified_date ; English query: Show short name and long name for the table from file 'youth_engagement.csv'[/INST] SQL query: select t3.short_name, t3.long_name from node_file as t1 join edge_has_file_table as t2 on t1.node_id = t2.source_node_id join node_table on t2.target_node_id = t3.node_id where t1.short_name = 'youth_engagement.csv'; | Show short name and long name for the table from file 'youth_engagement.csv' | [
[
"node_file",
"file"
],
[
"node_table",
"table"
]
] |
[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_classification: node_id type_id short_name long_name description creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_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 ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: How many directories are owned by 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; | How many directories are owned by each owner account? | [
[
"edge_own",
"own"
],
[
"node_directory",
"directory"
],
[
"node_owner",
"owner"
]
] |
[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 ; 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_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 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 ; node: node_id type_id short_name long_name description creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; 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: List all tables that have more than 25 rows.[/INST] SQL query: select short_name, num_rows from node_table where num_rows > 25; | List all tables that have more than 25 rows. | [
[
"node_table",
"table"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: 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_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: List the number of assets owned by each user.[/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; | List the number of assets owned by each user. | [
[
"edge_own",
"own"
],
[
"node",
"asset"
]
] |
[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_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_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_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_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; English query: How many labels are owned by each asset owner that owns more than 10 labels[/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_label as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name having c1 > 25; | How many labels are owned by each asset owner that owns more than 10 labels | [
[
"edge_own",
"own"
],
[
"node",
"asset"
],
[
"node_label",
"label"
],
[
"node_owner",
"owner"
]
] |
[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_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_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 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: node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; 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 ; English query: Order all csv files by their creation date from the newest to the oldest.[/INST] SQL query: select short_name, creation_date from node_file where extension = 'csv' order by creation_date desc; | Order all csv files by their creation date from the newest to the oldest. | [
[
"node_file",
"file"
],
[
"node_table",
"csv file"
]
] |
[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: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; 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_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; English query: How many assets of each type id were created in the last 3 days?[/INST] SQL query: select type_id, count(*) from node where creation_date >= datetime('now', '-3 days') group by type_id; | How many assets of each type id were created in the last 3 days? | [
[
"type_id",
"type id"
],
[
"node",
"asset"
],
[
"node_classification",
"type"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: Show the short name, long name and description for every rdbms in the lake.[/INST] SQL query: select short_name, long_name, description from node_rdbms; | Show the short name, long name and description for every rdbms in the lake. | [] |
[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_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_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: How many association relationships are recorded in the data lake?[/INST] SQL query: select count(*) from edge_assoc; | How many association relationships are recorded in the data lake? | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
]
] |
[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_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_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_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: List all records for the 'cv' column.[/INST] SQL query: select * from node_column where short_name = 'cv'; | List all records for the 'cv' column. | [
[
"node_column",
"column"
]
] |
[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_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_assoc_class_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_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 ; English query: For each owner, find the average size of files containing a description.[/INST] SQL query: select t1.node_id, t1.short_name, avg(t3.fsize) from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_file as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name where t3.description <> ''; | For each owner, find the average size of files containing a description. | [
[
"node_file",
"file"
],
[
"node_owner",
"owner"
]
] |
[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_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_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 ; English query: List every column in the database along with the table that it belongs to.[/INST] SQL query: select t3.short_name, t1.short_name from node_table as t1 join edge_has_table_col as t2 on t1.node_id = t2.source_node_id join node_column as t3 on t2.target_node_id = t3.node_id; | List every column in the database along with the table that it belongs to. | [
[
"node_table",
"table"
],
[
"node_column",
"column"
],
[
"node_database",
"database"
]
] |
[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_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: 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_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 ; English query: Order all columns in the lake by their last modified timestamp.[/INST] SQL query: select short_name, modified_date from node_column order by modified_date desc; | Order all columns in the lake by their last modified timestamp. | [
[
"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_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_has_table_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: Find all columns whose name or description contains the term 'id'.[/INST] SQL query: select short_name, description from node_column where short_name like '%id%' or description like '%id%'; | Find all columns whose name or description contains the term 'id'. | [
[
"node_column",
"column"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: 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_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_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: List all asset nodes in the lake created in the past 2 days.[/INST] SQL query: select short_name, creation_date from node where creation_date >= datetime('now', '-2 days'); | List all asset nodes in the lake created in the past 2 days. | [
[
"node",
"asset"
],
[
"node",
"node"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_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_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_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 ; English query: Count the number of nodes of each type.[/INST] SQL query: select type_id, count(*) from node group by type_id; | Count the number of nodes of each type. | [
[
"node",
"node"
],
[
"node_classification",
"type"
]
] |
[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_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; 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: Calculate the mean size of a file for owner account that own more than 20 files.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1, avg(t3.fsize) from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_file as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name having c1 > 20; | Calculate the mean size of a file for owner account that own more than 20 files. | [
[
"edge_own",
"own"
],
[
"node_file",
"file"
],
[
"node_owner",
"owner"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: 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_assoc: 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 ; English query: How many assets of each type are there in the lake?[/INST] SQL query: select type_id, count(*) from node group by type_id; | How many assets of each type are there in the lake? | [
[
"node",
"asset"
],
[
"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_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; 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 ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the number of assets owned by all users who have the term 'uwmadison' in their username.[/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 '%uwmadison%'; | Show the number of assets owned by all users who have the term 'uwmadison' in their username. | [
[
"edge_own",
"own"
],
[
"node",
"asset"
]
] |
[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_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_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_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: Print the type and description for all columns in the table named 'weights_measurements_and_other_tests'.[/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 = 'weights_measurements_and_other_tests'; | Print the type and description for all columns in the table named 'weights_measurements_and_other_tests'. | [
[
"node_table",
"table"
],
[
"node_column",
"column"
],
[
"node_classification",
"type"
]
] |
[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_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: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_classification: node_id type_id short_name long_name description creation_date modified_date ; 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 ; 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: 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_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 ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: How many tables were derived from each table in the lake in the past 24 hours?[/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, t1.short_name where t2.creation_date >= datetime('now', '-24 hours'); | How many tables were derived from each table in the lake in the past 24 hours? | [
[
"node_table",
"table"
]
] |
[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 ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_has_dir_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 ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the descriptions for all labels in the database.[/INST] SQL query: select short_name, description from node_label; | Show the descriptions for all labels in the database. | [
[
"node_label",
"label"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; 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_label: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the number of columns associated with all business terms that have the word 'customer' in their names.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) from node_business_term as t1 join edge_assoc_term_col as t2 on t1.node_id = t2.source_node_id group by t1.node_id, t1.short_name having t1.short_name like '%customer%'; | Show the number of columns associated with all business terms that have the word 'customer' in their names. | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"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_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 ; 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: How many tables have a column name 'zip'?[/INST] SQL query: select count(*) from node_column where short_name = 'zip'; | How many tables have a column name 'zip'? | [
[
"zip_code",
"zip"
],
[
"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 ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_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 all the database records for the lake.[/INST] SQL query: select * from node_database; | Show all the database records for the lake. | [
[
"node_database",
"database"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: Which are the tables in the lake owned by 'jdoe'?[/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_table as t3 on t2.target_node_id = t3.node_id where t1.short_name = 'jdoe'; | Which are the tables in the lake owned by 'jdoe'? | [
[
"edge_own",
"own"
],
[
"node_table",
"table"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: 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_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_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Print the type, description and creation date for a sample of 10 columns.[/INST] SQL query: select col_type, description, creation_date from node_column limit 10; | Print the type, description and creation date for a sample of 10 columns. | [
[
"node_classification",
"type"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_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_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 ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Show the top 10 directories that contain the most subdirectories.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1 from node_directory as t1 join edge_has_dir_dir as t2 on t1.node_id = t2.source_node_id group by t2.source_node_id order by c1 desc; | Show the top 10 directories that contain the most subdirectories. | [
[
"node_directory",
"directory"
]
] |
[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 ; 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 ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node: node_id type_id short_name long_name description creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: When was each nosql database created?[/INST] SQL query: select short_name, creation_date from node_nosql; | When was each nosql database created? | [
[
"node_database",
"database"
],
[
"node_nosql",
"NoSQL database"
]
] |
[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: 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_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 ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: 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: 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_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_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge: 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_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Count the number of instances of edges of each type.[/INST] SQL query: select type_id, count(*) from edge group by type_id; | Count the number of instances of edges of each type. | [
[
"node_classification",
"type"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_label: 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_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_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_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 all folders in the lake with size greater than 1GB.[/INST] SQL query: select short_name from node_directory where dsize > 1000000; | Show all folders in the lake with size greater than 1GB. | [
[
"node_directory",
"folder"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_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_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_derive_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 ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; 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 of each file in the lake sorted in descending order.[/INST] SQL query: select short_name, fsize from node_file order by fsize desc; | Show the size of each file in the lake sorted in descending order. | [
[
"node_file",
"file"
]
] |
[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_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 ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_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_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 ; English query: Which columns have the word 'water' in their name or description?[/INST] SQL query: select * from node_column where short_name like '%water%' or description like '%water%'; | Which columns have the word 'water' in their name or description? | [
[
"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 ; 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_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 ; edge_joinable_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: Print the number of rows, number of columns and the description for all tables in the lake.[/INST] SQL query: select short_name, num_rows, num_cols, description from node_table; | Print the number of rows, number of columns and the description for all tables in the lake. | [
[
"node_table",
"table"
],
[
"node_column",
"column"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; 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_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_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_owner: node_id type_id short_name long_name description creation_date modified_date ; English query: Show all the tables that were derived from excel files.[/INST] SQL query: select t3.short_name from node_file as t1 join edge_has_file_table as t2 on t1.node_id = t2.source_node_id join node_table as t3 on t2.target_node_id = t3.node_id where t1.extension = 'xlsx'; | Show all the tables that were derived from excel files. | [
[
"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 ; 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 ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_own: 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 asset owners among assets created in the past 30 days.[/INST] SQL query: select t1.node_id, t1.short_name 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 t2.creation_date >= datetime('now', '-30 days'); | Count the number of assets owned by asset owners among assets created in the past 30 days. | [
[
"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 ; 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_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 ; English query: Display the creation date and last modified date for the pay history table.[/INST] SQL query: select creation_date, modified_date from node_table where short_name = 'employee_pay_history'; | Display the creation date and last modified date for the pay history table. | [] |
[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: 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 ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; 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: Find all columns associated with the business term 'model_id'.[/INST] SQL query: select t3.short_name from node_business_term as t1 join edge_assoc_term_col as t2 on t1.node_id = t2.source_node_id join node_column as t3 on t2.target_asset_id = t3.node_id where t1.short_name = 'model_id'; | Find all columns associated with the business term 'model_id'. | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"node_column",
"column"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge: 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_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_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 5 oldest tables in the data lake?[/INST] SQL query: select short_name, creation_date from node_table order by creation_date asc limit 5; | What are the 5 oldest tables in the data lake? | [
[
"node_table",
"table"
]
] |
[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_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node: node_id type_id short_name long_name description creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; 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 all the joinable relation records found in the last 24 hours.[/INST] SQL query: select * from edge_joinable_table_table where creation_date >= datetime('now','-24 hours'); | Show all the joinable relation records found in the last 24 hours. | [
[
"edge",
"relation"
],
[
"edge",
"related"
]
] |
[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_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_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: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the column names and descriptions for all columns in the veteran services report table.[/INST] SQL query: select t3.short_name, t3.description from node_table as t1 join edge_has_table_column 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 = 'veteran_services_report'; | Show the column names and descriptions for all columns in the veteran services report table. | [
[
"node_column",
"column"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_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_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 ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Sort all relational databases created in the past week from oldest to newest.[/INST] SQL query: select short_name, creation_date from node_rdbms where creation_date >= datetime('now', '-7 days') order by creation_date asc; | Sort all relational databases created in the past week from oldest to newest. | [
[
"edge",
"relation"
],
[
"edge",
"related"
],
[
"node_database",
"database"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node: node_id type_id short_name long_name description creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; 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: 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_has_dir_file: 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: node_id type_id short_name long_name description creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_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_label: node_id type_id short_name long_name description 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_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; 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: How many asset owner accounts does the lake have?[/INST] SQL query: select count(*) from node_owner; | How many asset owner accounts does the lake have? | [
[
"node",
"asset"
],
[
"node_owner",
"owner"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_has_dir_file: 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 ; 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_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_label: node_id type_id short_name long_name description creation_date modified_date ; English query: Display the description and creation timestamp for all labels.[/INST] SQL query: select short_name, description, creation_date from node_label; | Display the description and creation timestamp for all labels. | [] |
[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_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_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 ; 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_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Print the creation date and description for the classification labeled 'province'.[/INST] SQL query: select creation_date, description from node_classification where short_name = 'state'; | Print the creation date and description for the classification labeled 'province'. | [
[
"node_label",
"label"
],
[
"node_classification",
"classification"
]
] |
[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_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 ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Print all metadata records for classification labels.[/INST] SQL query: select * from node_classification; | Print all metadata records for classification labels. | [
[
"node_label",
"metadata"
],
[
"node_classification",
"classification"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_assoc_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: node_id type_id short_name long_name description creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; English query: What is the creation date of every nosql database?[/INST] SQL query: select short_name, creation_date from node_nosql; | What is the creation date of every nosql database? | [] |
[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: 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_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; English query: Show me the description for every nosql database in the lake that contains the term 'nvidia' in it's description.[/INST] SQL query: select short_name, description from node_nosql where description like '%nvidia%'; | Show me the description for every nosql database in the lake that contains the term 'nvidia' in it's description. | [
[
"node_database",
"database"
],
[
"node_nosql",
"NoSQL database"
]
] |
[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_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: List all column ids and the number of associated business terms for all columns associated with at least 1 business term.[/INST] SQL query: select target_node_id, count(*) as c1 from edge_assoc_term_col group by target_node_id having c1 > 0; | List all column ids and the number of associated business terms for all columns associated with at least 1 business term. | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"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 ; 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_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 ; English query: How many columns associated with the classification phrase 'customer' does each table contain?[/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 = 'customer'; | How many columns associated with the classification phrase 'customer' does each table contain? | [
[
"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_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 ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node: node_id type_id short_name long_name description creation_date modified_date ; edge_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_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_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: For each owner account, calculate the average size of a file added in the past month.[/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'); | For each owner account, calculate the average size of a file added in the past month. | [
[
"node_file",
"file"
],
[
"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_derive_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_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; English query: Show the number of business terms 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_business_term as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name; | Show the number of business terms owned by each asset owner. | [
[
"edge_own",
"own"
],
[
"node",
"asset"
],
[
"node_owner",
"owner"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has: 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_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: How many end date columns are there in the lake?[/INST] SQL query: select count(*) from node_column where short_name = 'e_date'; | How many end date columns are there in the lake? | [
[
"node_column",
"column"
]
] |
[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 ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; 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_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 records for columns named 'category'.[/INST] SQL query: select * from node_column where short_name = 'category'; | Find all records for columns named 'category'. | [
[
"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_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_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_label: node_id type_id short_name long_name description creation_date modified_date ; edge_has_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 ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; English query: Show all columns of type boolean.[/INST] SQL query: select short_name from node_column where col_type = 'bool'; | Show all columns of type boolean. | [
[
"node_column",
"column"
],
[
"node_classification",
"type"
]
] |
[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_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_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_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; 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: Show the average size of a file directly inside each folder in the lake.[/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; | Show the average size of a file directly inside each folder in the lake. | [
[
"node_directory",
"folder"
],
[
"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_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 ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; 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 ; edge_has_dir_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Show the size of the 10 biggest csv files in the lake sorted in descending order of their sizes.[/INST] SQL query: select short_name, fsize from node_file where extension = 'csv' order by fsize desc limit 10; | Show the size of the 10 biggest csv files in the lake sorted in descending order of their sizes. | [
[
"node_file",
"file"
],
[
"node_table",
"csv file"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_column: node_id type_id short_name long_name description creation_date modified_date col_type max_col_length ; node: node_id type_id short_name long_name description creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Who are the top 10 people who own the most assets?[/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1 from node as t1 join edge_own as t2 on t1.node_id = t2.source_node_id group by t2.source_node_id order by c1 desc; | Who are the top 10 people who own the most assets? | [
[
"edge_own",
"own"
]
] |
[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_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: 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 ; 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 ; English query: How many columns is each classification 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 ; | How many columns is each classification associated with? | [
[
"edge_assoc",
"associate"
],
[
"edge_assoc",
"association"
],
[
"node_column",
"column"
],
[
"node_classification",
"classification"
]
] |
[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_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_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_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 ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_directory: node_id type_id short_name long_name description creation_date modified_date dsize ; English query: How many tables are derived from the table 'nycc'?[/INST] SQL query: select count(*) from node_table as t1 join edge_derive_table_table as t2 on t1.node_id = t1.source_node_id join node_table as t3 on t2.target_node_id = t3.node_id where t1.short_name = 'nycc' ; | How many tables are derived from the table 'nycc'? | [
[
"node_table",
"table"
]
] |
[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_assoc: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; 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_unionable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; edge_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_owner: node_id type_id short_name long_name description creation_date modified_date ; English query: Count the number of business terms belonging to 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_business_term as t3 on t2.target_node_id = t3.node_id group by t1.node_id, t1.short_name; | Count the number of business terms belonging to each asset owner. | [
[
"node",
"asset"
],
[
"node_owner",
"owner"
]
] |
[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_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_assoc_term_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: 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_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_owner: node_id type_id short_name long_name description creation_date modified_date ; edge_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_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 ; English query: What is the total size of all files owned by an asset owner for all asset owners who own more than 5 files.[/INST] SQL query: select t1.node_id, t1.short_name, count(*) as c1, 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 having c1 > 5; | What is the total size of all files owned by an asset owner for all asset owners who own more than 5 files. | [
[
"edge_own",
"own"
],
[
"node",
"asset"
],
[
"node_file",
"file"
],
[
"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_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_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_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; edge_has_file_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Sort all files in the lake by extension and creation date.[/INST] SQL query: select short_name, extension, creation_date from node_file order by extension asc creation_date asc; | Sort all files in the lake by extension and creation date. | [
[
"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_own: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_has_dir_dir: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_owner: node_id type_id short_name long_name description creation_date modified_date ; node: 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 ; English query: How many assets of each type id does each user account own?[/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; | How many assets of each type id does each user account own? | [
[
"type_id",
"type id"
],
[
"edge_own",
"own"
],
[
"node",
"asset"
],
[
"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 ; 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_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 ; node_nosql: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; edge_has_table_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_database: node_id type_id short_name long_name description creation_date modified_date database_type ; edge_derive_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; English query: Print all records created in the past 3 days for relations outlining a column within a table.[/INST] SQL query: select * from edge_has_table_col where creation_date >= datetime('now', '-3 days'); | Print all records created in the past 3 days for relations outlining a column within a table. | [
[
"edge",
"relation"
],
[
"edge",
"related"
],
[
"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 ; 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 ; 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 ; 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: Which are the relational databases in the lake owned by 'cslab'?[/INST] SQL query: select t3.short_name from node_owner as t1 join edge_own as t2 on t1.node_id = t2.source_node_id join node_rdbms as t3 on t2.target_node_id = t3.node_id where t1.short_name = 'cslab'; | Which are the relational databases in the lake owned by 'cslab'? | [
[
"edge",
"relation"
],
[
"edge",
"related"
],
[
"edge_own",
"own"
],
[
"node_database",
"database"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: 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: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_table: node_id type_id short_name long_name description creation_date modified_date num_cols num_rows ; node_rdbms: node_id type_id short_name long_name description creation_date modified_date database_type num_tables ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; English query: Print all metadata records for the table named 'fact_reseller_sales'.[/INST] SQL query: select * from node_table where short_name = 'fact_reseller_sales'; | Print all metadata records for the table named 'fact_reseller_sales'. | [
[
"node_table",
"table"
],
[
"node_label",
"metadata"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: 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_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: 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: Select the type id, short name, long name and description for all labels.[/INST] SQL query: select type_id, short_name, long_name, description from node_label; | Select the type id, short name, long name and description for all labels. | [
[
"type_id",
"type id"
],
[
"node_classification",
"type"
]
] |
[INST] <<SYS>>Translate english queries to SQL.<</SYS>> Schema: edge_assoc_class_col: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_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_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_file: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; edge_joinable_table_table: edge_id type_id short_name long_name description source_node_id target_node_id creation_date modified_date ; node_file: node_id type_id short_name long_name description creation_date modified_date extension fsize ; node: node_id type_id short_name long_name description creation_date modified_date ; node_business_term: node_id type_id short_name long_name description creation_date modified_date ; English query: How many assets of each type id were created in the last 3 days?[/INST] SQL query: select type_id, count(*) from node where creation_date >= datetime('now', '-3 days') group by type_id; | How many assets of each type id were created in the last 3 days? | [
[
"type_id",
"type id"
],
[
"node",
"asset"
],
[
"node_classification",
"type"
]
] |