| [ |
| { |
| "db_id": "concert_singer", |
| "query": "SELECT count(*) FROM singer", |
| "query_toks": [ |
| "SELECT", |
| "count", |
| "(", |
| "*", |
| ")", |
| "FROM", |
| "singer" |
| ], |
| "query_toks_no_value": [ |
| "select", |
| "count", |
| "(", |
| "*", |
| ")", |
| "from", |
| "singer" |
| ], |
| "question": "How many singers do we have?", |
| "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": "What is the total number of singers?", |
| "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": "Show name, country, age for all singers ordered by age from the oldest to the youngest.", |
| "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": "What are the names, countries, and ages for every singer in descending order of age?", |
| "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": "What is the average, minimum, and maximum age of all singers from France?", |
| "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": "What is the average, minimum, and maximum age for all French singers?", |
| "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": "Show the name and the release year of the song by the youngest singer.", |
| "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": "What are the names and release years for all the songs of the youngest singer?", |
| "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": "What are all distinct countries where singers above age 20 are from?", |
| "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": "What are the different countries with singers above age 20?", |
| "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": "Show all countries and the number of singers in each country.", |
| "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": "How many singers are from each country?", |
| "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": "List all song names by singers above the average age.", |
| "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": "What are all the song names by singers who are older than average?", |
| "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": "Show location and name for all stadiums with a capacity between 5000 and 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": "What are the locations and names of all stations with capacity between 5000 and 10000?", |
| "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": "What is the maximum capacity and the average of all stadiums ?", |
| "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": "What is the average and maximum capacities for all stadiums ?", |
| "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": "What is the name and capacity for the stadium with highest average attendance?", |
| "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": "What is the name and capacity for the stadium with the highest average attendance?", |
| "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": "How many concerts are there in year 2014 or 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": "How many concerts occurred in 2014 or 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": "Show the stadium name and the number of concerts in each stadium.", |
| "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": "For each stadium, how many concerts play there?", |
| "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": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", |
| "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": "What is the name and capacity of the stadium with the most concerts after 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": "Which year has most number of concerts?", |
| "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": "What is the year that had the most concerts?", |
| "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": "Show the stadium names without any concert.", |
| "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": "What are the names of the stadiums without any concerts?", |
| "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": "Show countries where a singer above age 40 and a singer below 30 are from.", |
| "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": "Show names for all stadiums except for stadiums having a concert in year 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": "What are the names of all stadiums that did not have a concert in 2014?", |
| "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": "Show the name and theme for all concerts and the number of singers in each concert.", |
| "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": "What are the names , themes , and number of singers for every concert ?", |
| "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": "List singer names and number of concerts for each singer.", |
| "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": "What are the names of the singers and number of concerts for each person?", |
| "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": "List all singer names in concerts in year 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": "What are the names of the singers who performed in a concert in 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": "what is the name and nation of the singer who have a song having 'Hey' in its name?", |
| "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": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?", |
| "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": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 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": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?", |
| "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": "Find the number of concerts happened in the stadium with the highest capacity .", |
| "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": "What are the number of concerts that occurred in the stadium with the largest capacity ?", |
| "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 |
| } |
| } |
| ] |