| [ | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT count(*) FROM body_builder", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "body_builder" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "body_builder" | |
| ], | |
| "question": "Có bao nhiêu người tập thể hình ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "body", | |
| "builders", | |
| "are", | |
| "there", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT Total FROM body_builder ORDER BY Total ASC", | |
| "query_toks": [ | |
| "SELECT", | |
| "Total", | |
| "FROM", | |
| "body_builder", | |
| "ORDER", | |
| "BY", | |
| "Total", | |
| "ASC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "total", | |
| "from", | |
| "body_builder", | |
| "order", | |
| "by", | |
| "total", | |
| "asc" | |
| ], | |
| "question": "Liệt kê tổng số điểm của những người tập thể hình theo thứ tự tăng dần .", | |
| "question_toks": [ | |
| "List", | |
| "the", | |
| "total", | |
| "scores", | |
| "of", | |
| "body", | |
| "builders", | |
| "in", | |
| "ascending", | |
| "order", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT Snatch , Clean_Jerk FROM body_builder ORDER BY Snatch ASC", | |
| "query_toks": [ | |
| "SELECT", | |
| "Snatch", | |
| ",", | |
| "Clean_Jerk", | |
| "FROM", | |
| "body_builder", | |
| "ORDER", | |
| "BY", | |
| "Snatch", | |
| "ASC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "snatch", | |
| ",", | |
| "clean_jerk", | |
| "from", | |
| "body_builder", | |
| "order", | |
| "by", | |
| "snatch", | |
| "asc" | |
| ], | |
| "question": "Liệt kê số điểm cử giật và số điểm cử đẩy của những người tập thể hình theo thứ tự tăng dần của số điểm cử giật .", | |
| "question_toks": [ | |
| "List", | |
| "the", | |
| "snatch", | |
| "score", | |
| "and", | |
| "clean", | |
| "jerk", | |
| "score", | |
| "of", | |
| "body", | |
| "builders", | |
| "in", | |
| "ascending", | |
| "order", | |
| "of", | |
| "snatch", | |
| "score", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT avg(Snatch) FROM body_builder", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "Snatch", | |
| ")", | |
| "FROM", | |
| "body_builder" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "snatch", | |
| ")", | |
| "from", | |
| "body_builder" | |
| ], | |
| "question": "Điểm cử giật trung bình của những người tập thể hình là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "snatch", | |
| "score", | |
| "of", | |
| "body", | |
| "builders", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT Clean_Jerk FROM body_builder ORDER BY Total DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "Clean_Jerk", | |
| "FROM", | |
| "body_builder", | |
| "ORDER", | |
| "BY", | |
| "Total", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "clean_jerk", | |
| "from", | |
| "body_builder", | |
| "order", | |
| "by", | |
| "total", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Điểm cử đẩy của người tập thể hình có tổng số điểm cao nhất là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "clean", | |
| "and", | |
| "jerk", | |
| "score", | |
| "of", | |
| "the", | |
| "body", | |
| "builder", | |
| "with", | |
| "the", | |
| "highest", | |
| "total", | |
| "score", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 4, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT Birth_Date FROM People ORDER BY Height ASC", | |
| "query_toks": [ | |
| "SELECT", | |
| "Birth_Date", | |
| "FROM", | |
| "People", | |
| "ORDER", | |
| "BY", | |
| "Height", | |
| "ASC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "birth_date", | |
| "from", | |
| "people", | |
| "order", | |
| "by", | |
| "height", | |
| "asc" | |
| ], | |
| "question": "Liệt kê sinh nhật của tất cả mọi người theo thứ tự tăng dần về chiều cao của từng người .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "birthdays", | |
| "of", | |
| "people", | |
| "in", | |
| "ascending", | |
| "order", | |
| "of", | |
| "height", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "asc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Name", | |
| "FROM", | |
| "body_builder", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "people", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.People_ID", | |
| "=", | |
| "T2.People_ID" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| "from", | |
| "body_builder", | |
| "as", | |
| "t1", | |
| "join", | |
| "people", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id" | |
| ], | |
| "question": "Tên của những người tập thể hình ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "names", | |
| "of", | |
| "body", | |
| "builders", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Name", | |
| "FROM", | |
| "body_builder", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "people", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.People_ID", | |
| "=", | |
| "T2.People_ID", | |
| "WHERE", | |
| "T1.Total", | |
| ">", | |
| "300" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| "from", | |
| "body_builder", | |
| "as", | |
| "t1", | |
| "join", | |
| "people", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "where", | |
| "t1", | |
| ".", | |
| "total", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Tên của những người tập thể hình có tổng điểm cao hơn 300 ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "names", | |
| "of", | |
| "body", | |
| "builders", | |
| "whose", | |
| "total", | |
| "score", | |
| "is", | |
| "higher", | |
| "than", | |
| "300", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 300.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Name", | |
| "FROM", | |
| "body_builder", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "people", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.People_ID", | |
| "=", | |
| "T2.People_ID", | |
| "ORDER", | |
| "BY", | |
| "T2.Weight", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| "from", | |
| "body_builder", | |
| "as", | |
| "t1", | |
| "join", | |
| "people", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "order", | |
| "by", | |
| "t2", | |
| ".", | |
| "weight", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Tên của người tập thể hình với trọng lượng cơ thể lớn nhất ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "name", | |
| "of", | |
| "the", | |
| "body", | |
| "builder", | |
| "with", | |
| "the", | |
| "greatest", | |
| "body", | |
| "weight", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT T2.Birth_Date , T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Birth_Date", | |
| ",", | |
| "T2.Birth_Place", | |
| "FROM", | |
| "body_builder", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "people", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.People_ID", | |
| "=", | |
| "T2.People_ID", | |
| "ORDER", | |
| "BY", | |
| "T1.Total", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "birth_date", | |
| ",", | |
| "t2", | |
| ".", | |
| "birth_place", | |
| "from", | |
| "body_builder", | |
| "as", | |
| "t1", | |
| "join", | |
| "people", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "order", | |
| "by", | |
| "t1", | |
| ".", | |
| "total", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Ngày sinh và nơi sinh của người tập thể hình có tổng điểm cao nhất ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "birth", | |
| "date", | |
| "and", | |
| "birth", | |
| "place", | |
| "of", | |
| "the", | |
| "body", | |
| "builder", | |
| "with", | |
| "the", | |
| "highest", | |
| "total", | |
| "points", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Height", | |
| "FROM", | |
| "body_builder", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "people", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.People_ID", | |
| "=", | |
| "T2.People_ID", | |
| "WHERE", | |
| "T1.Total", | |
| "<", | |
| "315" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "height", | |
| "from", | |
| "body_builder", | |
| "as", | |
| "t1", | |
| "join", | |
| "people", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "where", | |
| "t1", | |
| ".", | |
| "total", | |
| "<", | |
| "value" | |
| ], | |
| "question": "Chiều cao của những người tập thể hình với tổng số điểm nhỏ hơn 315 ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "heights", | |
| "of", | |
| "body", | |
| "builders", | |
| "with", | |
| "total", | |
| "score", | |
| "smaller", | |
| "than", | |
| "315", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 4, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ], | |
| 315.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT avg(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 200", | |
| "query_toks": [ | |
| "SELECT", | |
| "avg", | |
| "(", | |
| "T1.Total", | |
| ")", | |
| "FROM", | |
| "body_builder", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "people", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.People_ID", | |
| "=", | |
| "T2.People_ID", | |
| "WHERE", | |
| "T2.Height", | |
| ">", | |
| "200" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "avg", | |
| "(", | |
| "t1", | |
| ".", | |
| "total", | |
| ")", | |
| "from", | |
| "body_builder", | |
| "as", | |
| "t1", | |
| "join", | |
| "people", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "where", | |
| "t2", | |
| ".", | |
| "height", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Tổng số điểm trung bình của những người tập thể hình với chiều cao trên 200 là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "average", | |
| "total", | |
| "score", | |
| "of", | |
| "body", | |
| "builders", | |
| "with", | |
| "height", | |
| "bigger", | |
| "than", | |
| "200", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| 200.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.Name", | |
| "FROM", | |
| "body_builder", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "people", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.People_ID", | |
| "=", | |
| "T2.People_ID", | |
| "ORDER", | |
| "BY", | |
| "T1.Total", | |
| "DESC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "name", | |
| "from", | |
| "body_builder", | |
| "as", | |
| "t1", | |
| "join", | |
| "people", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "order", | |
| "by", | |
| "t1", | |
| ".", | |
| "total", | |
| "desc" | |
| ], | |
| "question": "Sắp xếp tên của những người tập thể hình theo thứ tự giảm dần về tổng số điểm của từng người .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "names", | |
| "of", | |
| "body", | |
| "builders", | |
| "in", | |
| "descending", | |
| "order", | |
| "of", | |
| "total", | |
| "scores", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT Birth_Place , COUNT(*) FROM people GROUP BY Birth_Place", | |
| "query_toks": [ | |
| "SELECT", | |
| "Birth_Place", | |
| ",", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "people", | |
| "GROUP", | |
| "BY", | |
| "Birth_Place" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "birth_place", | |
| ",", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "people", | |
| "group", | |
| "by", | |
| "birth_place" | |
| ], | |
| "question": "Liệt kê tất cả các nơi sinh cũng như là số lượng người được sinh ra ở từng nơi sinh .", | |
| "question_toks": [ | |
| "List", | |
| "each", | |
| "birth", | |
| "place", | |
| "along", | |
| "with", | |
| "the", | |
| "number", | |
| "of", | |
| "people", | |
| "from", | |
| "there", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1", | |
| "query_toks": [ | |
| "SELECT", | |
| "Birth_Place", | |
| "FROM", | |
| "people", | |
| "GROUP", | |
| "BY", | |
| "Birth_Place", | |
| "ORDER", | |
| "BY", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| "DESC", | |
| "LIMIT", | |
| "1" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "birth_place", | |
| "from", | |
| "people", | |
| "group", | |
| "by", | |
| "birth_place", | |
| "order", | |
| "by", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "desc", | |
| "limit", | |
| "value" | |
| ], | |
| "question": "Nơi sinh phổ biến nhất của tất cả mọi người là ở đâu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "most", | |
| "common", | |
| "birth", | |
| "place", | |
| "of", | |
| "people", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ] | |
| ], | |
| "having": [], | |
| "intersect": null, | |
| "limit": 1, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*) >= 2", | |
| "query_toks": [ | |
| "SELECT", | |
| "Birth_Place", | |
| "FROM", | |
| "people", | |
| "GROUP", | |
| "BY", | |
| "Birth_Place", | |
| "HAVING", | |
| "COUNT", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "2" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "birth_place", | |
| "from", | |
| "people", | |
| "group", | |
| "by", | |
| "birth_place", | |
| "having", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| ">", | |
| "=", | |
| "value" | |
| ], | |
| "question": "Cho biết những nơi sinh với ít nhất 2 người cùng được sinh ra .", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "birth", | |
| "places", | |
| "that", | |
| "are", | |
| "shared", | |
| "by", | |
| "at", | |
| "least", | |
| "two", | |
| "people", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [ | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ] | |
| ], | |
| "having": [ | |
| [ | |
| false, | |
| 5, | |
| [ | |
| 0, | |
| [ | |
| 3, | |
| 0, | |
| false | |
| ], | |
| null | |
| ], | |
| 2.0, | |
| null | |
| ] | |
| ], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT Height , Weight FROM people ORDER BY Height DESC", | |
| "query_toks": [ | |
| "SELECT", | |
| "Height", | |
| ",", | |
| "Weight", | |
| "FROM", | |
| "people", | |
| "ORDER", | |
| "BY", | |
| "Height", | |
| "DESC" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "height", | |
| ",", | |
| "weight", | |
| "from", | |
| "people", | |
| "order", | |
| "by", | |
| "height", | |
| "desc" | |
| ], | |
| "question": "Liệt kê chiều cao và cân nặng của những người tập thể hình theo thứ tự chiều cao giảm dần .", | |
| "question_toks": [ | |
| "List", | |
| "the", | |
| "height", | |
| "and", | |
| "weight", | |
| "of", | |
| "people", | |
| "in", | |
| "descending", | |
| "order", | |
| "of", | |
| "height", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [ | |
| "desc", | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT * FROM body_builder", | |
| "query_toks": [ | |
| "SELECT", | |
| "*", | |
| "FROM", | |
| "body_builder" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "*", | |
| "from", | |
| "body_builder" | |
| ], | |
| "question": "Hiển thị tất cả các thông tin về những người tập thể hình .", | |
| "question_toks": [ | |
| "Show", | |
| "all", | |
| "information", | |
| "about", | |
| "each", | |
| "body", | |
| "builder", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT Name , birth_place FROM people EXCEPT SELECT T1.Name , T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id", | |
| "query_toks": [ | |
| "SELECT", | |
| "Name", | |
| ",", | |
| "birth_place", | |
| "FROM", | |
| "people", | |
| "EXCEPT", | |
| "SELECT", | |
| "T1.Name", | |
| ",", | |
| "T1.birth_place", | |
| "FROM", | |
| "people", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "body_builder", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.people_id", | |
| "=", | |
| "T2.people_id" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "name", | |
| ",", | |
| "birth_place", | |
| "from", | |
| "people", | |
| "except", | |
| "select", | |
| "t1", | |
| ".", | |
| "name", | |
| ",", | |
| "t1", | |
| ".", | |
| "birth_place", | |
| "from", | |
| "people", | |
| "as", | |
| "t1", | |
| "join", | |
| "body_builder", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id" | |
| ], | |
| "question": "Liệt kê tên và quê quán của những người không phải là người tập thể hình .", | |
| "question_toks": [ | |
| "List", | |
| "the", | |
| "names", | |
| "and", | |
| "origins", | |
| "of", | |
| "people", | |
| "who", | |
| "are", | |
| "not", | |
| "body", | |
| "builders", | |
| "." | |
| ], | |
| "sql": { | |
| "except": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ], | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| }, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 7, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT count(DISTINCT Birth_Place) FROM people", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "DISTINCT", | |
| "Birth_Place", | |
| ")", | |
| "FROM", | |
| "people" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "distinct", | |
| "birth_place", | |
| ")", | |
| "from", | |
| "people" | |
| ], | |
| "question": "Có tất cả bao nhiêu nơi sinh khác nhau ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "distinct", | |
| "birth", | |
| "places", | |
| "are", | |
| "there", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 11, | |
| true | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT count(*) FROM people WHERE people_id NOT IN (SELECT People_ID FROM body_builder)", | |
| "query_toks": [ | |
| "SELECT", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "FROM", | |
| "people", | |
| "WHERE", | |
| "people_id", | |
| "NOT", | |
| "IN", | |
| "(", | |
| "SELECT", | |
| "People_ID", | |
| "FROM", | |
| "body_builder", | |
| ")" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "count", | |
| "(", | |
| "*", | |
| ")", | |
| "from", | |
| "people", | |
| "where", | |
| "people_id", | |
| "not", | |
| "in", | |
| "(", | |
| "select", | |
| "people_id", | |
| "from", | |
| "body_builder", | |
| ")" | |
| ], | |
| "question": "Có bao nhiêu người không phải là những người tập thể hình ?", | |
| "question_toks": [ | |
| "How", | |
| "many", | |
| "persons", | |
| "are", | |
| "not", | |
| "body", | |
| "builders", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 0, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| true, | |
| 8, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ], | |
| { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| }, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T1.snatch > 140 OR T2.height > 200;", | |
| "query_toks": [ | |
| "SELECT", | |
| "T2.weight", | |
| "FROM", | |
| "body_builder", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "people", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.people_id", | |
| "=", | |
| "T2.people_id", | |
| "WHERE", | |
| "T1.snatch", | |
| ">", | |
| "140", | |
| "OR", | |
| "T2.height", | |
| ">", | |
| "200", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t2", | |
| ".", | |
| "weight", | |
| "from", | |
| "body_builder", | |
| "as", | |
| "t1", | |
| "join", | |
| "people", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "where", | |
| "t1", | |
| ".", | |
| "snatch", | |
| ">", | |
| "value", | |
| "or", | |
| "t2", | |
| ".", | |
| "height", | |
| ">", | |
| "value" | |
| ], | |
| "question": "Liệt kê trọng lượng của những người tập thể hình có số điểm cử giật cao hơn 140 hoặc có chiều cao trên 200 .", | |
| "question_toks": [ | |
| "List", | |
| "the", | |
| "weight", | |
| "of", | |
| "the", | |
| "body", | |
| "builders", | |
| "who", | |
| "have", | |
| "snatch", | |
| "score", | |
| "higher", | |
| "than", | |
| "140", | |
| "or", | |
| "have", | |
| "the", | |
| "height", | |
| "greater", | |
| "than", | |
| "200", | |
| "." | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 9, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ], | |
| 140.0, | |
| null | |
| ], | |
| "or", | |
| [ | |
| false, | |
| 3, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 8, | |
| false | |
| ], | |
| null | |
| ], | |
| 200.0, | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.Birth_Date LIKE \"%January%\";", | |
| "query_toks": [ | |
| "SELECT", | |
| "T1.total", | |
| "FROM", | |
| "body_builder", | |
| "AS", | |
| "T1", | |
| "JOIN", | |
| "people", | |
| "AS", | |
| "T2", | |
| "ON", | |
| "T1.people_id", | |
| "=", | |
| "T2.people_id", | |
| "WHERE", | |
| "T2.Birth_Date", | |
| "LIKE", | |
| "``", | |
| "%", | |
| "January", | |
| "%", | |
| "''", | |
| ";" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "t1", | |
| ".", | |
| "total", | |
| "from", | |
| "body_builder", | |
| "as", | |
| "t1", | |
| "join", | |
| "people", | |
| "as", | |
| "t2", | |
| "on", | |
| "t1", | |
| ".", | |
| "people_id", | |
| "=", | |
| "t2", | |
| ".", | |
| "people_id", | |
| "where", | |
| "t2", | |
| ".", | |
| "birth_date", | |
| "like", | |
| "value" | |
| ], | |
| "question": "Tổng số điểm của những người tập thể hình có sinh nhật vào tháng một là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "are", | |
| "the", | |
| "total", | |
| "scores", | |
| "of", | |
| "the", | |
| "body", | |
| "builders", | |
| "whose", | |
| "birthday", | |
| "contains", | |
| "the", | |
| "string", | |
| "``", | |
| "January", | |
| "''", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [ | |
| [ | |
| false, | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 2, | |
| false | |
| ], | |
| null | |
| ], | |
| [ | |
| 0, | |
| 6, | |
| false | |
| ], | |
| null | |
| ] | |
| ], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ], | |
| [ | |
| "table_unit", | |
| 1 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 5, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [ | |
| [ | |
| false, | |
| 9, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 10, | |
| false | |
| ], | |
| null | |
| ], | |
| "\"%January%\"", | |
| null | |
| ] | |
| ] | |
| } | |
| }, | |
| { | |
| "db_id": "body_builder", | |
| "query": "SELECT min(snatch) FROM body_builder", | |
| "query_toks": [ | |
| "SELECT", | |
| "min", | |
| "(", | |
| "snatch", | |
| ")", | |
| "FROM", | |
| "body_builder" | |
| ], | |
| "query_toks_no_value": [ | |
| "select", | |
| "min", | |
| "(", | |
| "snatch", | |
| ")", | |
| "from", | |
| "body_builder" | |
| ], | |
| "question": "Số điểm cử giật thấp nhất là bao nhiêu ?", | |
| "question_toks": [ | |
| "What", | |
| "is", | |
| "the", | |
| "minimum", | |
| "snatch", | |
| "score", | |
| "?" | |
| ], | |
| "sql": { | |
| "except": null, | |
| "from": { | |
| "conds": [], | |
| "table_units": [ | |
| [ | |
| "table_unit", | |
| 0 | |
| ] | |
| ] | |
| }, | |
| "groupBy": [], | |
| "having": [], | |
| "intersect": null, | |
| "limit": null, | |
| "orderBy": [], | |
| "select": [ | |
| false, | |
| [ | |
| [ | |
| 2, | |
| [ | |
| 0, | |
| [ | |
| 0, | |
| 3, | |
| false | |
| ], | |
| null | |
| ] | |
| ] | |
| ] | |
| ], | |
| "union": null, | |
| "where": [] | |
| } | |
| } | |
| ] |