| [ |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT count(*) FROM singer", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "singer" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "singer" |
| ], |
| "question": "Có tất cả bao nhiêu ca sĩ ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "singers", |
| "do", |
| "we", |
| "have", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT count(*) FROM singer", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "singer" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "singer" |
| ], |
| "question": "Cho biết số lượng các ca sĩ .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "total", |
| "number", |
| "of", |
| "singers", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT name , country , age FROM singer ORDER BY age DESC", |
| "query_toks": [ |
| "SELECT", |
| "name", |
| ",", |
| "country", |
| ",", |
| "age", |
| "FROM", |
| "singer", |
| "ORDER", |
| "BY", |
| "age", |
| "DESC" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "name", |
| ",", |
| "country", |
| ",", |
| "age", |
| "from", |
| "singer", |
| "order", |
| "by", |
| "age", |
| "desc" |
| ], |
| "question": "Hiển thị tên , quốc gia và độ tuổi của tất cả các ca sĩ theo thứ tự giảm dần về độ tuổi .", |
| "question_toks": [ |
| "Show", |
| "name", |
| ",", |
| "country", |
| ",", |
| "age", |
| "for", |
| "all", |
| "singers", |
| "ordered", |
| "by", |
| "age", |
| "from", |
| "the", |
| "oldest", |
| "to", |
| "the", |
| "youngest", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT name , country , age FROM singer ORDER BY age DESC", |
| "query_toks": [ |
| "SELECT", |
| "name", |
| ",", |
| "country", |
| ",", |
| "age", |
| "FROM", |
| "singer", |
| "ORDER", |
| "BY", |
| "age", |
| "DESC" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "name", |
| ",", |
| "country", |
| ",", |
| "age", |
| "from", |
| "singer", |
| "order", |
| "by", |
| "age", |
| "desc" |
| ], |
| "question": "Cho biết tên , quốc gia và độ tuổi của tất cả các ca sĩ , đồng thời sắp xếp kết quả theo thứ tự giảm dần về độ tuổi của từng ca sĩ .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| ",", |
| "countries", |
| ",", |
| "and", |
| "ages", |
| "for", |
| "every", |
| "singer", |
| "in", |
| "descending", |
| "order", |
| "of", |
| "age", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'", |
| "query_toks": [ |
| "SELECT", |
| "avg", |
| "(", |
| "age", |
| ")", |
| ",", |
| "min", |
| "(", |
| "age", |
| ")", |
| ",", |
| "max", |
| "(", |
| "age", |
| ")", |
| "FROM", |
| "singer", |
| "WHERE", |
| "country", |
| "=", |
| "'France", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "avg", |
| "(", |
| "age", |
| ")", |
| ",", |
| "min", |
| "(", |
| "age", |
| ")", |
| ",", |
| "max", |
| "(", |
| "age", |
| ")", |
| "from", |
| "singer", |
| "where", |
| "country", |
| "=", |
| "value" |
| ], |
| "question": "Cho biết độ tuổi trung bình của các ca sĩ đến từ nước Pháp , cũng như là độ tuổi của ca sĩ già nhất và độ tuổi của ca sĩ trẻ nhất đến từ đất nước này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "average", |
| ",", |
| "minimum", |
| ",", |
| "and", |
| "maximum", |
| "age", |
| "of", |
| "all", |
| "singers", |
| "from", |
| "France", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 1, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ], |
| "\"France\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'", |
| "query_toks": [ |
| "SELECT", |
| "avg", |
| "(", |
| "age", |
| ")", |
| ",", |
| "min", |
| "(", |
| "age", |
| ")", |
| ",", |
| "max", |
| "(", |
| "age", |
| ")", |
| "FROM", |
| "singer", |
| "WHERE", |
| "country", |
| "=", |
| "'France", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "avg", |
| "(", |
| "age", |
| ")", |
| ",", |
| "min", |
| "(", |
| "age", |
| ")", |
| ",", |
| "max", |
| "(", |
| "age", |
| ")", |
| "from", |
| "singer", |
| "where", |
| "country", |
| "=", |
| "value" |
| ], |
| "question": "Độ tuổi trung bình của các ca sĩ người Pháp là bao nhiêu ? Đồng thời , độ tuổi của ca sĩ già nhất và độ tuổi của ca sĩ trẻ nhất đến từ quốc gia này là bao nhiêu ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "average", |
| ",", |
| "minimum", |
| ",", |
| "and", |
| "maximum", |
| "age", |
| "for", |
| "all", |
| "French", |
| "singers", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 1, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ], |
| "\"France\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "song_name", |
| ",", |
| "song_release_year", |
| "FROM", |
| "singer", |
| "ORDER", |
| "BY", |
| "age", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "song_name", |
| ",", |
| "song_release_year", |
| "from", |
| "singer", |
| "order", |
| "by", |
| "age", |
| "limit", |
| "value" |
| ], |
| "question": "Hiển thị tên và năm phát hành của những bài hát thuộc về ca sĩ trẻ tuổi nhất .", |
| "question_toks": [ |
| "Show", |
| "the", |
| "name", |
| "and", |
| "the", |
| "release", |
| "year", |
| "of", |
| "the", |
| "song", |
| "by", |
| "the", |
| "youngest", |
| "singer", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": 1, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "song_name", |
| ",", |
| "song_release_year", |
| "FROM", |
| "singer", |
| "ORDER", |
| "BY", |
| "age", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "song_name", |
| ",", |
| "song_release_year", |
| "from", |
| "singer", |
| "order", |
| "by", |
| "age", |
| "limit", |
| "value" |
| ], |
| "question": "Ca sĩ trẻ tuổi nhất đã phát hành những bài hát nào ? Cho biết tên và năm phát hành của chúng .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "and", |
| "release", |
| "years", |
| "for", |
| "all", |
| "the", |
| "songs", |
| "of", |
| "the", |
| "youngest", |
| "singer", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 12, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [ |
| "asc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": 1, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT DISTINCT country FROM singer WHERE age > 20", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "country", |
| "FROM", |
| "singer", |
| "WHERE", |
| "age", |
| ">", |
| "20" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "country", |
| "from", |
| "singer", |
| "where", |
| "age", |
| ">", |
| "value" |
| ], |
| "question": "Liệt kê tất cả các quốc gia khác nhau mà các ca sĩ trên 20 tuổi đến từ .", |
| "question_toks": [ |
| "What", |
| "are", |
| "all", |
| "distinct", |
| "countries", |
| "where", |
| "singers", |
| "above", |
| "age", |
| "20", |
| "are", |
| "from", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ], |
| 20, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT DISTINCT country FROM singer WHERE age > 20", |
| "query_toks": [ |
| "SELECT", |
| "DISTINCT", |
| "country", |
| "FROM", |
| "singer", |
| "WHERE", |
| "age", |
| ">", |
| "20" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "distinct", |
| "country", |
| "from", |
| "singer", |
| "where", |
| "age", |
| ">", |
| "value" |
| ], |
| "question": "Những ca sĩ với độ tuổi trên 20 đến từ những quốc gia nào ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "different", |
| "countries", |
| "with", |
| "singers", |
| "above", |
| "age", |
| "20", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| true, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ], |
| 20, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT country , count(*) FROM singer GROUP BY country", |
| "query_toks": [ |
| "SELECT", |
| "country", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "singer", |
| "GROUP", |
| "BY", |
| "country" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "country", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "singer", |
| "group", |
| "by", |
| "country" |
| ], |
| "question": "Hiển thị tất cả các quốc gia và số lượng ca sĩ ở mỗi quốc gia .", |
| "question_toks": [ |
| "Show", |
| "all", |
| "countries", |
| "and", |
| "the", |
| "number", |
| "of", |
| "singers", |
| "in", |
| "each", |
| "country", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 10, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT country , count(*) FROM singer GROUP BY country", |
| "query_toks": [ |
| "SELECT", |
| "country", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "singer", |
| "GROUP", |
| "BY", |
| "country" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "country", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "singer", |
| "group", |
| "by", |
| "country" |
| ], |
| "question": "Có bao nhiêu ca sĩ đến từ mỗi quốc gia ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "singers", |
| "are", |
| "from", |
| "each", |
| "country", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 10, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", |
| "query_toks": [ |
| "SELECT", |
| "song_name", |
| "FROM", |
| "singer", |
| "WHERE", |
| "age", |
| ">", |
| "(", |
| "SELECT", |
| "avg", |
| "(", |
| "age", |
| ")", |
| "FROM", |
| "singer", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "song_name", |
| "from", |
| "singer", |
| "where", |
| "age", |
| ">", |
| "(", |
| "select", |
| "avg", |
| "(", |
| "age", |
| ")", |
| "from", |
| "singer", |
| ")" |
| ], |
| "question": "Liệt kê tên của tất cả các bài hát thuộc về những ca sĩ có tuổi lớn hơn độ tuổi trung bình .", |
| "question_toks": [ |
| "List", |
| "all", |
| "song", |
| "names", |
| "by", |
| "singers", |
| "above", |
| "the", |
| "average", |
| "age", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)", |
| "query_toks": [ |
| "SELECT", |
| "song_name", |
| "FROM", |
| "singer", |
| "WHERE", |
| "age", |
| ">", |
| "(", |
| "SELECT", |
| "avg", |
| "(", |
| "age", |
| ")", |
| "FROM", |
| "singer", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "song_name", |
| "from", |
| "singer", |
| "where", |
| "age", |
| ">", |
| "(", |
| "select", |
| "avg", |
| "(", |
| "age", |
| ")", |
| "from", |
| "singer", |
| ")" |
| ], |
| "question": "Những ca sĩ lớn tuổi hơn độ tuổi trung bình đã phát hành các bài hát nào ? Cho biết tên của chúng .", |
| "question_toks": [ |
| "What", |
| "are", |
| "all", |
| "the", |
| "song", |
| "names", |
| "by", |
| "singers", |
| "who", |
| "are", |
| "older", |
| "than", |
| "average", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", |
| "query_toks": [ |
| "SELECT", |
| "LOCATION", |
| ",", |
| "name", |
| "FROM", |
| "stadium", |
| "WHERE", |
| "capacity", |
| "BETWEEN", |
| "5000", |
| "AND", |
| "10000" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "location", |
| ",", |
| "name", |
| "from", |
| "stadium", |
| "where", |
| "capacity", |
| "between", |
| "value", |
| "and", |
| "value" |
| ], |
| "question": "Hiển thị địa điểm và tên của tất cả các sân vận động có sức chứa từ 5000 đến 10000 .", |
| "question_toks": [ |
| "Show", |
| "location", |
| "and", |
| "name", |
| "for", |
| "all", |
| "stadiums", |
| "with", |
| "a", |
| "capacity", |
| "between", |
| "5000", |
| "and", |
| "10000", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 1, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| 5000, |
| 10000 |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000", |
| "query_toks": [ |
| "SELECT", |
| "LOCATION", |
| ",", |
| "name", |
| "FROM", |
| "stadium", |
| "WHERE", |
| "capacity", |
| "BETWEEN", |
| "5000", |
| "AND", |
| "10000" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "location", |
| ",", |
| "name", |
| "from", |
| "stadium", |
| "where", |
| "capacity", |
| "between", |
| "value", |
| "and", |
| "value" |
| ], |
| "question": "Những sân vận động nào có sức chứa từ 5000 đến 10000 ? Cho biết tên và địa điểm của những sân vận động này .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "locations", |
| "and", |
| "names", |
| "of", |
| "all", |
| "stations", |
| "with", |
| "capacity", |
| "between", |
| "5000", |
| "and", |
| "10000", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 1, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ], |
| 5000, |
| 10000 |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "select max(capacity), average from stadium", |
| "query_toks": [ |
| "select", |
| "max", |
| "(", |
| "capacity", |
| ")", |
| ",", |
| "average", |
| "from", |
| "stadium" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "max", |
| "(", |
| "capacity", |
| ")", |
| ",", |
| "average", |
| "from", |
| "stadium" |
| ], |
| "question": "Sức chứa trung bình và tối đa của tất cả các sân vận động là bao nhiêu ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "maximum", |
| "capacity", |
| "and", |
| "the", |
| "average", |
| "of", |
| "all", |
| "stadiums", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 1, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "select avg(capacity) , max(capacity) from stadium", |
| "query_toks": [ |
| "select", |
| "avg", |
| "(", |
| "capacity", |
| ")", |
| ",", |
| "max", |
| "(", |
| "capacity", |
| ")", |
| "from", |
| "stadium" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "avg", |
| "(", |
| "capacity", |
| ")", |
| ",", |
| "max", |
| "(", |
| "capacity", |
| ")", |
| "from", |
| "stadium" |
| ], |
| "question": "Cho biết sức chứa trung bình và tối đa của tất cả các sân vận động .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "average", |
| "and", |
| "maximum", |
| "capacities", |
| "for", |
| "all", |
| "stadiums", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 1, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "name", |
| ",", |
| "capacity", |
| "FROM", |
| "stadium", |
| "ORDER", |
| "BY", |
| "average", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "name", |
| ",", |
| "capacity", |
| "from", |
| "stadium", |
| "order", |
| "by", |
| "average", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Hiển thị tên và sức chứa của sân vận động có số lượng người tham dự trung bình cao nhất .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "capacity", |
| "for", |
| "the", |
| "stadium", |
| "with", |
| "highest", |
| "average", |
| "attendance", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": 1, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "name", |
| ",", |
| "capacity", |
| "FROM", |
| "stadium", |
| "ORDER", |
| "BY", |
| "average", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "name", |
| ",", |
| "capacity", |
| "from", |
| "stadium", |
| "order", |
| "by", |
| "average", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Sân vận động nào có số lượng người tham dự trung bình cao nhất ? Cho biết tên và sức chứa của sân vận động này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "capacity", |
| "for", |
| "the", |
| "stadium", |
| "with", |
| "the", |
| "highest", |
| "average", |
| "attendance", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 7, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": 1, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "concert", |
| "WHERE", |
| "YEAR", |
| "=", |
| "2014", |
| "OR", |
| "YEAR", |
| "=", |
| "2015" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "concert", |
| "where", |
| "year", |
| "=", |
| "value", |
| "or", |
| "year", |
| "=", |
| "value" |
| ], |
| "question": "Đếm số lượng các buổi hoà nhạc diễn ra trong năm 2014 hoặc 2015 ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "concerts", |
| "are", |
| "there", |
| "in", |
| "year", |
| "2014", |
| "or", |
| "2015", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2014, |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2015, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "concert", |
| "WHERE", |
| "YEAR", |
| "=", |
| "2014", |
| "OR", |
| "YEAR", |
| "=", |
| "2015" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "concert", |
| "where", |
| "year", |
| "=", |
| "value", |
| "or", |
| "year", |
| "=", |
| "value" |
| ], |
| "question": "Có bao nhiêu buổi hoà nhạc diễn ra trong năm 2014 hoặc 2015 ?", |
| "question_toks": [ |
| "How", |
| "many", |
| "concerts", |
| "occurred", |
| "in", |
| "2014", |
| "or", |
| "2015", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2014, |
| null |
| ], |
| "or", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2015, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", |
| "query_toks": [ |
| "SELECT", |
| "T2.name", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "stadium", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stadium_id", |
| "=", |
| "T2.stadium_id", |
| "GROUP", |
| "BY", |
| "T1.stadium_id" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "name", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "concert", |
| "as", |
| "t1", |
| "join", |
| "stadium", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stadium_id", |
| "=", |
| "t2", |
| ".", |
| "stadium_id", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "stadium_id" |
| ], |
| "question": "Hiển thị tên của các sân vận động và số lượng các buổi hoà nhạc được tổ chức ở mỗi sân vận động .", |
| "question_toks": [ |
| "Show", |
| "the", |
| "stadium", |
| "name", |
| "and", |
| "the", |
| "number", |
| "of", |
| "concerts", |
| "in", |
| "each", |
| "stadium", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 18, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id", |
| "query_toks": [ |
| "SELECT", |
| "T2.name", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "stadium", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stadium_id", |
| "=", |
| "T2.stadium_id", |
| "GROUP", |
| "BY", |
| "T1.stadium_id" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "name", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "concert", |
| "as", |
| "t1", |
| "join", |
| "stadium", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stadium_id", |
| "=", |
| "t2", |
| ".", |
| "stadium_id", |
| "group", |
| "by", |
| "t1", |
| ".", |
| "stadium_id" |
| ], |
| "question": "Có bao nhiêu buổi hoà nhạc được tổ chức ở mỗi sân vận động ?", |
| "question_toks": [ |
| "For", |
| "each", |
| "stadium", |
| ",", |
| "how", |
| "many", |
| "concerts", |
| "play", |
| "there", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 18, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT T2.name , T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "T2.name", |
| ",", |
| "T2.capacity", |
| "FROM", |
| "concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "stadium", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stadium_id", |
| "=", |
| "T2.stadium_id", |
| "WHERE", |
| "T1.year", |
| ">", |
| "=", |
| "2014", |
| "GROUP", |
| "BY", |
| "T2.stadium_id", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "name", |
| ",", |
| "t2", |
| ".", |
| "capacity", |
| "from", |
| "concert", |
| "as", |
| "t1", |
| "join", |
| "stadium", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stadium_id", |
| "=", |
| "t2", |
| ".", |
| "stadium_id", |
| "where", |
| "t1", |
| ".", |
| "year", |
| ">", |
| "=", |
| "value", |
| "group", |
| "by", |
| "t2", |
| ".", |
| "stadium_id", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Hiển thị tên và sức chứa của sân vận động đã tổ chức nhiều buổi hoà nhạc nhất trong năm 2014 hoặc sau đó .", |
| "question_toks": [ |
| "Show", |
| "the", |
| "stadium", |
| "name", |
| "and", |
| "capacity", |
| "with", |
| "most", |
| "number", |
| "of", |
| "concerts", |
| "in", |
| "year", |
| "2014", |
| "or", |
| "after", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 5, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2014, |
| null |
| ] |
| ], |
| "groupBy": [ |
| [ |
| 0, |
| 1, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": 1, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year > 2013 group by t2.stadium_id order by count(*) desc limit 1", |
| "query_toks": [ |
| "select", |
| "t2.name", |
| ",", |
| "t2.capacity", |
| "from", |
| "concert", |
| "as", |
| "t1", |
| "join", |
| "stadium", |
| "as", |
| "t2", |
| "on", |
| "t1.stadium_id", |
| "=", |
| "t2.stadium_id", |
| "where", |
| "t1.year", |
| ">", |
| "2013", |
| "group", |
| "by", |
| "t2.stadium_id", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "name", |
| ",", |
| "t2", |
| ".", |
| "capacity", |
| "from", |
| "concert", |
| "as", |
| "t1", |
| "join", |
| "stadium", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stadium_id", |
| "=", |
| "t2", |
| ".", |
| "stadium_id", |
| "where", |
| "t1", |
| ".", |
| "year", |
| ">", |
| "value", |
| "group", |
| "by", |
| "t2", |
| ".", |
| "stadium_id", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Hiển thị tên và sức chứa của sân vận động là nơi diễn ra nhiều buổi hoà nhạc nhất sau năm 2013 .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "capacity", |
| "of", |
| "the", |
| "stadium", |
| "with", |
| "the", |
| "most", |
| "concerts", |
| "after", |
| "2013", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2013, |
| null |
| ] |
| ], |
| "groupBy": [ |
| [ |
| 0, |
| 1, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": 1, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "YEAR", |
| "FROM", |
| "concert", |
| "GROUP", |
| "BY", |
| "YEAR", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "year", |
| "from", |
| "concert", |
| "group", |
| "by", |
| "year", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Năm nào có số lượng buổi hoà nhạc được tổ chức nhiều nhất ?", |
| "question_toks": [ |
| "Which", |
| "year", |
| "has", |
| "most", |
| "number", |
| "of", |
| "concerts", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 19, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": 1, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", |
| "query_toks": [ |
| "SELECT", |
| "YEAR", |
| "FROM", |
| "concert", |
| "GROUP", |
| "BY", |
| "YEAR", |
| "ORDER", |
| "BY", |
| "count", |
| "(", |
| "*", |
| ")", |
| "DESC", |
| "LIMIT", |
| "1" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "year", |
| "from", |
| "concert", |
| "group", |
| "by", |
| "year", |
| "order", |
| "by", |
| "count", |
| "(", |
| "*", |
| ")", |
| "desc", |
| "limit", |
| "value" |
| ], |
| "question": "Năm nào có nhiều buổi hoà nhạc nhất ?", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "year", |
| "that", |
| "had", |
| "the", |
| "most", |
| "concerts", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 19, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 3, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": 1, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", |
| "query_toks": [ |
| "SELECT", |
| "name", |
| "FROM", |
| "stadium", |
| "WHERE", |
| "stadium_id", |
| "NOT", |
| "IN", |
| "(", |
| "SELECT", |
| "stadium_id", |
| "FROM", |
| "concert", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "name", |
| "from", |
| "stadium", |
| "where", |
| "stadium_id", |
| "not", |
| "in", |
| "(", |
| "select", |
| "stadium_id", |
| "from", |
| "concert", |
| ")" |
| ], |
| "question": "Hiển thị tên của những sân vận động không có bất kỳ buổi hoà nhạc nào .", |
| "question_toks": [ |
| "Show", |
| "the", |
| "stadium", |
| "names", |
| "without", |
| "any", |
| "concert", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| true, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)", |
| "query_toks": [ |
| "SELECT", |
| "name", |
| "FROM", |
| "stadium", |
| "WHERE", |
| "stadium_id", |
| "NOT", |
| "IN", |
| "(", |
| "SELECT", |
| "stadium_id", |
| "FROM", |
| "concert", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "name", |
| "from", |
| "stadium", |
| "where", |
| "stadium_id", |
| "not", |
| "in", |
| "(", |
| "select", |
| "stadium_id", |
| "from", |
| "concert", |
| ")" |
| ], |
| "question": "Những sân vận động không tổ chức bất kỳ buổi hoà nhạc nào có tên là gì ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "the", |
| "stadiums", |
| "without", |
| "any", |
| "concerts", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| true, |
| 8, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30", |
| "query_toks": [ |
| "SELECT", |
| "country", |
| "FROM", |
| "singer", |
| "WHERE", |
| "age", |
| ">", |
| "40", |
| "INTERSECT", |
| "SELECT", |
| "country", |
| "FROM", |
| "singer", |
| "WHERE", |
| "age", |
| "<", |
| "30" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "country", |
| "from", |
| "singer", |
| "where", |
| "age", |
| ">", |
| "value", |
| "intersect", |
| "select", |
| "country", |
| "from", |
| "singer", |
| "where", |
| "age", |
| "<", |
| "value" |
| ], |
| "question": "Hiển thị các quốc gia mà một số ca sĩ lớn hơn 40 tuổi và một số ca sĩ trẻ hơn 30 tuổi cùng đến từ .", |
| "question_toks": [ |
| "Show", |
| "countries", |
| "where", |
| "a", |
| "singer", |
| "above", |
| "age", |
| "40", |
| "and", |
| "a", |
| "singer", |
| "below", |
| "30", |
| "are", |
| "from", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ], |
| 40, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 4, |
| [ |
| 0, |
| [ |
| 0, |
| 13, |
| false |
| ], |
| null |
| ], |
| 30, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014", |
| "query_toks": [ |
| "SELECT", |
| "name", |
| "FROM", |
| "stadium", |
| "EXCEPT", |
| "SELECT", |
| "T2.name", |
| "FROM", |
| "concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "stadium", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stadium_id", |
| "=", |
| "T2.stadium_id", |
| "WHERE", |
| "T1.year", |
| "=", |
| "2014" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "name", |
| "from", |
| "stadium", |
| "except", |
| "select", |
| "t2", |
| ".", |
| "name", |
| "from", |
| "concert", |
| "as", |
| "t1", |
| "join", |
| "stadium", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stadium_id", |
| "=", |
| "t2", |
| ".", |
| "stadium_id", |
| "where", |
| "t1", |
| ".", |
| "year", |
| "=", |
| "value" |
| ], |
| "question": "Hiển thị tên của tất cả các sân vận động ngoại trừ các sân vận động có một số buổi hoà nhạc trong năm 2014 .", |
| "question_toks": [ |
| "Show", |
| "names", |
| "for", |
| "all", |
| "stadiums", |
| "except", |
| "for", |
| "stadiums", |
| "having", |
| "a", |
| "concert", |
| "in", |
| "year", |
| "2014", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2014, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year = 2014", |
| "query_toks": [ |
| "SELECT", |
| "name", |
| "FROM", |
| "stadium", |
| "EXCEPT", |
| "SELECT", |
| "T2.name", |
| "FROM", |
| "concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "stadium", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stadium_id", |
| "=", |
| "T2.stadium_id", |
| "WHERE", |
| "T1.year", |
| "=", |
| "2014" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "name", |
| "from", |
| "stadium", |
| "except", |
| "select", |
| "t2", |
| ".", |
| "name", |
| "from", |
| "concert", |
| "as", |
| "t1", |
| "join", |
| "stadium", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stadium_id", |
| "=", |
| "t2", |
| ".", |
| "stadium_id", |
| "where", |
| "t1", |
| ".", |
| "year", |
| "=", |
| "value" |
| ], |
| "question": "Những sân vận động không có buổi hoà nhạc nào trong năm 2014 có tên là gì ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "all", |
| "stadiums", |
| "that", |
| "did", |
| "not", |
| "have", |
| "a", |
| "concert", |
| "in", |
| "2014", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2014, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT T2.concert_name , T2.theme , count(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id", |
| "query_toks": [ |
| "SELECT", |
| "T2.concert_name", |
| ",", |
| "T2.theme", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "singer_in_concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "concert", |
| "AS", |
| "T2", |
| "ON", |
| "T1.concert_id", |
| "=", |
| "T2.concert_id", |
| "GROUP", |
| "BY", |
| "T2.concert_id" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "concert_name", |
| ",", |
| "t2", |
| ".", |
| "theme", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "singer_in_concert", |
| "as", |
| "t1", |
| "join", |
| "concert", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "concert_id", |
| "=", |
| "t2", |
| ".", |
| "concert_id", |
| "group", |
| "by", |
| "t2", |
| ".", |
| "concert_id" |
| ], |
| "question": "Hiển thị tên và chủ đề của tất cả các buổi hoà nhạc cũng như là số lượng các ca sĩ đã tham gia từng buổi hoà nhạc .", |
| "question_toks": [ |
| "Show", |
| "the", |
| "name", |
| "and", |
| "theme", |
| "for", |
| "all", |
| "concerts", |
| "and", |
| "the", |
| "number", |
| "of", |
| "singers", |
| "in", |
| "each", |
| "concert", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 20, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 15, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 16, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 15, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "select t2.concert_name , t2.theme , count(*) from singer_in_concert as t1 join concert as t2 on t1.concert_id = t2.concert_id group by t2.concert_id", |
| "query_toks": [ |
| "select", |
| "t2.concert_name", |
| ",", |
| "t2.theme", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "singer_in_concert", |
| "as", |
| "t1", |
| "join", |
| "concert", |
| "as", |
| "t2", |
| "on", |
| "t1.concert_id", |
| "=", |
| "t2.concert_id", |
| "group", |
| "by", |
| "t2.concert_id" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "concert_name", |
| ",", |
| "t2", |
| ".", |
| "theme", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "singer_in_concert", |
| "as", |
| "t1", |
| "join", |
| "concert", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "concert_id", |
| "=", |
| "t2", |
| ".", |
| "concert_id", |
| "group", |
| "by", |
| "t2", |
| ".", |
| "concert_id" |
| ], |
| "question": "Liệt kê tên , chủ đề và số lượng ca sĩ của từng buổi hoà nhạc .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| ",", |
| "themes", |
| ",", |
| "and", |
| "number", |
| "of", |
| "singers", |
| "for", |
| "every", |
| "concert", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 20, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 15, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 16, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 17, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 15, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id", |
| "query_toks": [ |
| "SELECT", |
| "T2.name", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "singer_in_concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "singer", |
| "AS", |
| "T2", |
| "ON", |
| "T1.singer_id", |
| "=", |
| "T2.singer_id", |
| "GROUP", |
| "BY", |
| "T2.singer_id" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "name", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "singer_in_concert", |
| "as", |
| "t1", |
| "join", |
| "singer", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "singer_id", |
| "=", |
| "t2", |
| ".", |
| "singer_id", |
| "group", |
| "by", |
| "t2", |
| ".", |
| "singer_id" |
| ], |
| "question": "Liệt kê tên của các ca sĩ và số lượng buổi hoà nhạc mà từng ca sĩ đã tham gia .", |
| "question_toks": [ |
| "List", |
| "singer", |
| "names", |
| "and", |
| "number", |
| "of", |
| "concerts", |
| "for", |
| "each", |
| "singer", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 21, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 8, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT T2.name , count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id", |
| "query_toks": [ |
| "SELECT", |
| "T2.name", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "singer_in_concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "singer", |
| "AS", |
| "T2", |
| "ON", |
| "T1.singer_id", |
| "=", |
| "T2.singer_id", |
| "GROUP", |
| "BY", |
| "T2.singer_id" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "name", |
| ",", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "singer_in_concert", |
| "as", |
| "t1", |
| "join", |
| "singer", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "singer_id", |
| "=", |
| "t2", |
| ".", |
| "singer_id", |
| "group", |
| "by", |
| "t2", |
| ".", |
| "singer_id" |
| ], |
| "question": "Cho biết tên của tất cả các ca sĩ và mỗi người trong số họ đã tham dự bao nhiêu buổi hoà nhạc ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "the", |
| "singers", |
| "and", |
| "number", |
| "of", |
| "concerts", |
| "for", |
| "each", |
| "person", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 21, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [ |
| [ |
| 0, |
| 8, |
| false |
| ] |
| ], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014", |
| "query_toks": [ |
| "SELECT", |
| "T2.name", |
| "FROM", |
| "singer_in_concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "singer", |
| "AS", |
| "T2", |
| "ON", |
| "T1.singer_id", |
| "=", |
| "T2.singer_id", |
| "JOIN", |
| "concert", |
| "AS", |
| "T3", |
| "ON", |
| "T1.concert_id", |
| "=", |
| "T3.concert_id", |
| "WHERE", |
| "T3.year", |
| "=", |
| "2014" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "name", |
| "from", |
| "singer_in_concert", |
| "as", |
| "t1", |
| "join", |
| "singer", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "singer_id", |
| "=", |
| "t2", |
| ".", |
| "singer_id", |
| "join", |
| "concert", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "concert_id", |
| "=", |
| "t3", |
| ".", |
| "concert_id", |
| "where", |
| "t3", |
| ".", |
| "year", |
| "=", |
| "value" |
| ], |
| "question": "Liệt kê tên của tất cả các ca sĩ đã tham dự các buổi hoà nhạc trong năm 2014 .", |
| "question_toks": [ |
| "List", |
| "all", |
| "singer", |
| "names", |
| "in", |
| "concerts", |
| "in", |
| "year", |
| "2014", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 21, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 20, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 15, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2014, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id JOIN concert AS T3 ON T1.concert_id = T3.concert_id WHERE T3.year = 2014", |
| "query_toks": [ |
| "SELECT", |
| "T2.name", |
| "FROM", |
| "singer_in_concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "singer", |
| "AS", |
| "T2", |
| "ON", |
| "T1.singer_id", |
| "=", |
| "T2.singer_id", |
| "JOIN", |
| "concert", |
| "AS", |
| "T3", |
| "ON", |
| "T1.concert_id", |
| "=", |
| "T3.concert_id", |
| "WHERE", |
| "T3.year", |
| "=", |
| "2014" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "name", |
| "from", |
| "singer_in_concert", |
| "as", |
| "t1", |
| "join", |
| "singer", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "singer_id", |
| "=", |
| "t2", |
| ".", |
| "singer_id", |
| "join", |
| "concert", |
| "as", |
| "t3", |
| "on", |
| "t1", |
| ".", |
| "concert_id", |
| "=", |
| "t3", |
| ".", |
| "concert_id", |
| "where", |
| "t3", |
| ".", |
| "year", |
| "=", |
| "value" |
| ], |
| "question": "Liệt kê tên của các ca sĩ đã biểu diễn trong một số buổi hoà nhạc năm 2014 .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "of", |
| "the", |
| "singers", |
| "who", |
| "performed", |
| "in", |
| "a", |
| "concert", |
| "in", |
| "2014", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 3 |
| ], |
| [ |
| "table_unit", |
| 1 |
| ], |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 21, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 8, |
| false |
| ], |
| null |
| ], |
| "and", |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 20, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 15, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2014, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'", |
| "query_toks": [ |
| "SELECT", |
| "name", |
| ",", |
| "country", |
| "FROM", |
| "singer", |
| "WHERE", |
| "song_name", |
| "LIKE", |
| "'", |
| "%", |
| "Hey", |
| "%", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "name", |
| ",", |
| "country", |
| "from", |
| "singer", |
| "where", |
| "song_name", |
| "like", |
| "value" |
| ], |
| "question": "Cho biết tên và quốc gia của ca sĩ đã phát hành bài hát có tiêu đề chứa từ ' Hey '", |
| "question_toks": [ |
| "what", |
| "is", |
| "the", |
| "name", |
| "and", |
| "nation", |
| "of", |
| "the", |
| "singer", |
| "who", |
| "have", |
| "a", |
| "song", |
| "having", |
| "'Hey", |
| "'", |
| "in", |
| "its", |
| "name", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 9, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| "\"%Hey%\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'", |
| "query_toks": [ |
| "SELECT", |
| "name", |
| ",", |
| "country", |
| "FROM", |
| "singer", |
| "WHERE", |
| "song_name", |
| "LIKE", |
| "'", |
| "%", |
| "Hey", |
| "%", |
| "'" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "name", |
| ",", |
| "country", |
| "from", |
| "singer", |
| "where", |
| "song_name", |
| "like", |
| "value" |
| ], |
| "question": "Những ca sĩ nào đã phát hành bài hát có chứa từ ' Hey ' trong tiêu đề ? Cho biết tên và quốc gia khai sinh của những ca sĩ này .", |
| "question_toks": [ |
| "What", |
| "is", |
| "the", |
| "name", |
| "and", |
| "country", |
| "of", |
| "origin", |
| "of", |
| "every", |
| "singer", |
| "who", |
| "has", |
| "a", |
| "song", |
| "with", |
| "the", |
| "word", |
| "'Hey", |
| "'", |
| "in", |
| "its", |
| "title", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 1 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 9, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 10, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 9, |
| [ |
| 0, |
| [ |
| 0, |
| 11, |
| false |
| ], |
| null |
| ], |
| "\"%Hey%\"", |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", |
| "query_toks": [ |
| "SELECT", |
| "T2.name", |
| ",", |
| "T2.location", |
| "FROM", |
| "concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "stadium", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stadium_id", |
| "=", |
| "T2.stadium_id", |
| "WHERE", |
| "T1.Year", |
| "=", |
| "2014", |
| "INTERSECT", |
| "SELECT", |
| "T2.name", |
| ",", |
| "T2.location", |
| "FROM", |
| "concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "stadium", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stadium_id", |
| "=", |
| "T2.stadium_id", |
| "WHERE", |
| "T1.Year", |
| "=", |
| "2015" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "name", |
| ",", |
| "t2", |
| ".", |
| "location", |
| "from", |
| "concert", |
| "as", |
| "t1", |
| "join", |
| "stadium", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stadium_id", |
| "=", |
| "t2", |
| ".", |
| "stadium_id", |
| "where", |
| "t1", |
| ".", |
| "year", |
| "=", |
| "value", |
| "intersect", |
| "select", |
| "t2", |
| ".", |
| "name", |
| ",", |
| "t2", |
| ".", |
| "location", |
| "from", |
| "concert", |
| "as", |
| "t1", |
| "join", |
| "stadium", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stadium_id", |
| "=", |
| "t2", |
| ".", |
| "stadium_id", |
| "where", |
| "t1", |
| ".", |
| "year", |
| "=", |
| "value" |
| ], |
| "question": "Tìm tên và địa điểm của các sân vận động đã diễn ra một số buổi hoà nhạc trong cả năm 2014 và năm 2015 .", |
| "question_toks": [ |
| "Find", |
| "the", |
| "name", |
| "and", |
| "location", |
| "of", |
| "the", |
| "stadiums", |
| "which", |
| "some", |
| "concerts", |
| "happened", |
| "in", |
| "the", |
| "years", |
| "of", |
| "both", |
| "2014", |
| "and", |
| "2015", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2014, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2015, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name , T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015", |
| "query_toks": [ |
| "SELECT", |
| "T2.name", |
| ",", |
| "T2.location", |
| "FROM", |
| "concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "stadium", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stadium_id", |
| "=", |
| "T2.stadium_id", |
| "WHERE", |
| "T1.Year", |
| "=", |
| "2014", |
| "INTERSECT", |
| "SELECT", |
| "T2.name", |
| ",", |
| "T2.location", |
| "FROM", |
| "concert", |
| "AS", |
| "T1", |
| "JOIN", |
| "stadium", |
| "AS", |
| "T2", |
| "ON", |
| "T1.stadium_id", |
| "=", |
| "T2.stadium_id", |
| "WHERE", |
| "T1.Year", |
| "=", |
| "2015" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "t2", |
| ".", |
| "name", |
| ",", |
| "t2", |
| ".", |
| "location", |
| "from", |
| "concert", |
| "as", |
| "t1", |
| "join", |
| "stadium", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stadium_id", |
| "=", |
| "t2", |
| ".", |
| "stadium_id", |
| "where", |
| "t1", |
| ".", |
| "year", |
| "=", |
| "value", |
| "intersect", |
| "select", |
| "t2", |
| ".", |
| "name", |
| ",", |
| "t2", |
| ".", |
| "location", |
| "from", |
| "concert", |
| "as", |
| "t1", |
| "join", |
| "stadium", |
| "as", |
| "t2", |
| "on", |
| "t1", |
| ".", |
| "stadium_id", |
| "=", |
| "t2", |
| ".", |
| "stadium_id", |
| "where", |
| "t1", |
| ".", |
| "year", |
| "=", |
| "value" |
| ], |
| "question": "Những sân vận động nào đã tổ chức các buổi hoà nhạc trong cả năm 2014 và năm 2015 ? Cho biết tên và địa điểm của những sân vận động này .", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "names", |
| "and", |
| "locations", |
| "of", |
| "the", |
| "stadiums", |
| "that", |
| "had", |
| "concerts", |
| "that", |
| "occurred", |
| "in", |
| "both", |
| "2014", |
| "and", |
| "2015", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2014, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ], |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 3, |
| false |
| ], |
| null |
| ] |
| ], |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 2, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 19, |
| false |
| ], |
| null |
| ], |
| 2015, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", |
| "query_toks": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "concert", |
| "where", |
| "stadium_id", |
| "=", |
| "(", |
| "select", |
| "stadium_id", |
| "from", |
| "stadium", |
| "order", |
| "by", |
| "capacity", |
| "desc", |
| "limit", |
| "1", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "concert", |
| "where", |
| "stadium_id", |
| "=", |
| "(", |
| "select", |
| "stadium_id", |
| "from", |
| "stadium", |
| "order", |
| "by", |
| "capacity", |
| "desc", |
| "limit", |
| "value", |
| ")" |
| ], |
| "question": "Số lượng buổi hoà nhạc đã diễn ra tại sân vận động có sức chứa lớn nhất là bao nhiêu ?", |
| "question_toks": [ |
| "Find", |
| "the", |
| "number", |
| "of", |
| "concerts", |
| "happened", |
| "in", |
| "the", |
| "stadium", |
| "with", |
| "the", |
| "highest", |
| "capacity", |
| "." |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": 1, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| }, |
| { |
| "db_id": "concert_singer", |
| "query": "select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)", |
| "query_toks": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "concert", |
| "where", |
| "stadium_id", |
| "=", |
| "(", |
| "select", |
| "stadium_id", |
| "from", |
| "stadium", |
| "order", |
| "by", |
| "capacity", |
| "desc", |
| "limit", |
| "1", |
| ")" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "concert", |
| "where", |
| "stadium_id", |
| "=", |
| "(", |
| "select", |
| "stadium_id", |
| "from", |
| "stadium", |
| "order", |
| "by", |
| "capacity", |
| "desc", |
| "limit", |
| "value", |
| ")" |
| ], |
| "question": "Có bao nhiêu buổi hoà nhạc đã được diễn ra tại sân vận động có sức chứa lớn nhất ?", |
| "question_toks": [ |
| "What", |
| "are", |
| "the", |
| "number", |
| "of", |
| "concerts", |
| "that", |
| "occurred", |
| "in", |
| "the", |
| "stadium", |
| "with", |
| "the", |
| "largest", |
| "capacity", |
| "?" |
| ], |
| "sql": { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 2 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 3, |
| [ |
| 0, |
| [ |
| 0, |
| 0, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [ |
| [ |
| false, |
| 2, |
| [ |
| 0, |
| [ |
| 0, |
| 18, |
| false |
| ], |
| null |
| ], |
| { |
| "from": { |
| "table_units": [ |
| [ |
| "table_unit", |
| 0 |
| ] |
| ], |
| "conds": [] |
| }, |
| "select": [ |
| false, |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| [ |
| 0, |
| 1, |
| false |
| ], |
| null |
| ] |
| ] |
| ] |
| ], |
| "where": [], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [ |
| "desc", |
| [ |
| [ |
| 0, |
| [ |
| 0, |
| 4, |
| false |
| ], |
| null |
| ] |
| ] |
| ], |
| "limit": 1, |
| "intersect": null, |
| "union": null, |
| "except": null |
| }, |
| null |
| ] |
| ], |
| "groupBy": [], |
| "having": [], |
| "orderBy": [], |
| "limit": null, |
| "intersect": null, |
| "union": null, |
| "except": null |
| } |
| } |
| ] |