[ { "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", "singer", "do", "we", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { }, "origin_question_toks": [ "How", "many", "singers", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "singer" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "singer", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "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", "singer", "ordered", "by", "age", "from", "oldest", "to", "youngest", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Show", "name", ",", "country", ",", "age", "for", "all", "singers", "ordered", "by", "age", "from", "the", "oldest", "to", "the", "youngest", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "country" ], [ "," ], [ "age" ], [ "for" ], [ "all" ], [ "singer" ], [ "ordered" ], [ "by" ], [ "age" ], [ "from" ], [ "oldest" ], [ "to" ], [ "youngest" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "country", "NN" ], [ ",", "," ], [ "age", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "singer", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "age", "NN" ], [ "from", "IN" ], [ "oldest", "JJS" ], [ "to", "TO" ], [ "youngest", "VB" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(3) T(1) A(0) C(9) T(1) A(0) C(12) T(1) Order(0) A(0) C(12) T(1)" }, { "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", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "all", "singer", "from", "france", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ], [ 2, [ 0, [ 0, 13, false ], null ] ], [ 1, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'France'", null ] ] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "all", "singers", "from", "France", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "," ], [ "minimum" ], [ "," ], [ "and" ], [ "maximum" ], [ "age" ], [ "of" ], [ "all" ], [ "singer" ], [ "from" ], [ "france" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ ",", "," ], [ "minimum", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "singer", "NN" ], [ "from", "IN" ], [ "france", "NN" ], [ "?", "." ] ], "values": [ "France" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(5) C(12) T(1) A(2) C(12) T(1) A(1) C(12) T(1) Filter(2) A(0) C(9) T(1) V(0)" }, { "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", "name", "and", "release", "year", "of", "song", "by", "youngest", "singer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Show", "the", "name", "and", "the", "release", "year", "of", "the", "song", "by", "the", "youngest", "singer", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "song", "release", "year" ], [ "of" ], [ "song" ], [ "by" ], [ "youngest" ], [ "singer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "release", "NN" ], [ "year", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "by", "IN" ], [ "youngest", "JJS" ], [ "singer", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(1) A(0) C(11) T(1) Sup(1) A(0) C(12) T(1)" }, { "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", "country", "where", "singer", "above", "age", "20", "are", "from", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 20.0, null ] ] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "What", "are", "all", "distinct", "countries", "where", "singers", "above", "age", "20", "are", "from", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "distinct" ], [ "country" ], [ "where" ], [ "singer" ], [ "above" ], [ "age" ], [ "20" ], [ "are" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "country", "NN" ], [ "where", "WRB" ], [ "singer", "NN" ], [ "above", "IN" ], [ "age", "NN" ], [ "20", "CD" ], [ "are", "VBP" ], [ "from", "IN" ], [ "?", "." ] ], "values": [ "20" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(9) T(1) Filter(5) A(0) C(12) T(1) V(0)" }, { "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", "country", "and", "number", "of", "singer", "in", "each", "country", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Show", "all", "countries", "and", "the", "number", "of", "singers", "in", "each", "country", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "country" ], [ "and" ], [ "number" ], [ "of" ], [ "singer" ], [ "in" ], [ "each" ], [ "country" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "country", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(1)" }, { "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", "name", "by", "singer", "above", "average", "age", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "List", "all", "song", "names", "by", "singers", "above", "the", "average", "age", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "song", "name" ], [ "by" ], [ "singer" ], [ "above" ], [ "average" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "song", "NN" ], [ "name", "NN" ], [ "by", "IN" ], [ "singer", "NN" ], [ "above", "IN" ], [ "average", "JJ" ], [ "age", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(13) A(0) C(12) T(1) Root(5) Sel(0) N(0) A(5) C(12) T(1)" }, { "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", "stadium", "with", "a", "capacity", "between", "5000", "and", "10000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 4, false ], null ], 5000.0, 10000.0 ] ] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Show", "location", "and", "name", "for", "all", "stadiums", "with", "a", "capacity", "between", "5000", "and", "10000", "." ], "question_arg": [ [ "show" ], [ "location" ], [ "and" ], [ "name" ], [ "for" ], [ "all" ], [ "stadium" ], [ "with" ], [ "a" ], [ "capacity" ], [ "between" ], [ "5000" ], [ "and" ], [ "10000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "stadium", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "capacity", "NN" ], [ "between", "IN" ], [ "5000", "CD" ], [ "and", "CC" ], [ "10000", "CD" ], [ ".", "." ] ], "values": [ "10000", "5000" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(8) A(0) C(4) T(0) V(1) V(0)" }, { "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 the maximum capacity of all stadiums?", "question_toks": [ "what", "is", "average", "and", "maximum", "capacity", "of", "all", "stadium", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ], [ 1, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "average", "and", "the", "maximum", "capacity", "of", "all", "stadiums", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "and" ], [ "maximum" ], [ "capacity" ], [ "of" ], [ "all" ], [ "stadium" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "capacity", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "stadium", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(4) T(0) A(1) C(4) T(0)" }, { "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", "name", "and", "capacity", "for", "stadium", "with", "highest", "average", "attendance", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "capacity", "for", "the", "stadium", "with", "highest", "average", "attendance", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "capacity" ], [ "for" ], [ "stadium" ], [ "with" ], [ "highest" ], [ "average" ], [ "attendance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "capacity", "NN" ], [ "for", "IN" ], [ "stadium", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "attendance", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Sup(0) A(0) C(7) T(0)" }, { "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", "concert", "are", "there", "in", "year", "year", "or", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2014.0, null ], "or", [ false, 2, [ 0, [ 0, 19, false ], null ], 2015.0, null ] ] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "How", "many", "concerts", "are", "there", "in", "year", "2014", "or", "2015", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "concert" ], [ "are" ], [ "there" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "concert", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "year", "NN" ], [ "2014", "CD" ], [ "or", "CC" ], [ "2015", "CD" ], [ "?", "." ] ], "values": [ "2015", "2014" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(1) Filter(2) A(0) C(17) T(2) V(1) Filter(2) A(0) C(17) T(2) V(0)" }, { "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 T2.name", "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", "stadium", "name", "and", "number", "of", "concert", "in", "each", "stadium", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Show", "the", "stadium", "name", "and", "the", "number", "of", "concerts", "in", "each", "stadium", "." ], "question_arg": [ [ "show" ], [ "stadium" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "concert" ], [ "in" ], [ "each" ], [ "stadium" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "stadium", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "concert", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "stadium", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(2)" }, { "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", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concert", "in", "year", "year", "or", "after", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 19, false ], null ], 2014.0, null ] ] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Show", "the", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "in", "year", "2014", "or", "after", "." ], "question_arg": [ [ "show" ], [ "stadium" ], [ "name" ], [ "and" ], [ "capacity" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "concert" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "after" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "stadium", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "capacity", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "concert", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2014", "CD" ], [ "or", "CC" ], [ "after", "IN" ], [ ".", "." ] ], "values": [ "2014" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Sup(0) A(3) C(0) T(0) Filter(7) A(0) C(17) T(2) V(0)" }, { "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", "ha", "most", "number", "of", "concert", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Which", "year", "has", "most", "number", "of", "concerts", "?" ], "question_arg": [ [ "which" ], [ "year" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "concert" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "year", "NN" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "concert", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(17) T(2) Sup(0) A(3) C(0) T(2)" }, { "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", "stadium", "name", "without", "any", "concert", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Show", "the", "stadium", "names", "without", "any", "concert", "." ], "question_arg": [ [ "show" ], [ "stadium" ], [ "name" ], [ "without" ], [ "any" ], [ "concert" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "stadium", "NN" ], [ "name", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "concert", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(19) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "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", "country", "where", "a", "singer", "above", "age", "40", "and", "a", "singer", "below", "30", "are", "from", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 13, false ], null ], 30.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 40.0, null ] ] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Show", "countries", "where", "a", "singer", "above", "age", "40", "and", "a", "singer", "below", "30", "are", "from", "." ], "question_arg": [ [ "show" ], [ "country" ], [ "where" ], [ "a" ], [ "singer" ], [ "above" ], [ "age" ], [ "40" ], [ "and" ], [ "a" ], [ "singer" ], [ "below" ], [ "30" ], [ "are" ], [ "from" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "country", "NN" ], [ "where", "WRB" ], [ "a", "DT" ], [ "singer", "NN" ], [ "above", "IN" ], [ "age", "NN" ], [ "40", "CD" ], [ "and", "CC" ], [ "a", "DT" ], [ "singer", "NN" ], [ "below", "IN" ], [ "30", "CD" ], [ "are", "VBP" ], [ "from", "IN" ], [ ".", "." ] ], "values": [ "30", "40" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(5) A(0) C(12) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(4) A(0) C(12) T(1) V(0)" }, { "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", "name", "for", "all", "stadium", "except", "for", "stadium", "having", "a", "concert", "in", "year", "year", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2014.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Show", "names", "for", "all", "stadiums", "except", "for", "stadiums", "having", "a", "concert", "in", "year", "2014", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "all" ], [ "stadium" ], [ "except" ], [ "for" ], [ "stadium" ], [ "having" ], [ "a" ], [ "concert" ], [ "in" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "stadium", "NN" ], [ "except", "IN" ], [ "for", "IN" ], [ "stadium", "NN" ], [ "having", "VBG" ], [ "a", "DT" ], [ "concert", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2014", "CD" ], [ ".", "." ] ], "values": [ "2014" ], "all_values_found": true, "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(3) T(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(17) T(2) V(0)" }, { "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", "name", "and", "theme", "for", "all", "concert", "and", "number", "of", "singer", "in", "each", "concert", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Show", "the", "name", "and", "theme", "for", "all", "concerts", "and", "the", "number", "of", "singers", "in", "each", "concert", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "theme" ], [ "for" ], [ "all" ], [ "concert" ], [ "and" ], [ "number" ], [ "of" ], [ "singer" ], [ "in" ], [ "each" ], [ "concert" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "theme", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "concert", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "concert", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(15) T(2) A(0) C(16) T(2) A(3) C(0) T(3)" }, { "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", "name", "and", "number", "of", "concert", "for", "each", "singer", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "List", "singer", "names", "and", "number", "of", "concerts", "for", "each", "singer", "." ], "question_arg": [ [ "list" ], [ "singer" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "concert" ], [ "for" ], [ "each" ], [ "singer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "singer", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "concert", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "singer", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(1) A(3) C(0) T(3)" }, { "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", "name", "in", "concert", "in", "year", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], 2014.0, null ] ] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "List", "all", "singer", "names", "in", "concerts", "in", "year", "2014", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "singer" ], [ "name" ], [ "in" ], [ "concert" ], [ "in" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "singer", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "concert", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2014", "CD" ], [ ".", "." ] ], "values": [ "2014" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(0) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(3) Filter(2) A(0) C(17) T(2) V(0)" }, { "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", "name", "and", "nation", "of", "singer", "who", "have", "a", "song", "having", "'", "hey", "'", "in", "it", "name", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 11, false ], null ], "'%Hey%'", null ] ] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "what", "is", "the", "name", "and", "nation", "of", "the", "singer", "who", "have", "a", "song", "having", "'Hey", "'", "in", "its", "name", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "nation" ], [ "of" ], [ "singer" ], [ "who" ], [ "have" ], [ "a" ], [ "song" ], [ "having" ], [ "'" ], [ "hey" ], [ "'" ], [ "in" ], [ "it" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "JJ" ], [ "and", "CC" ], [ "nation", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "song", "NN" ], [ "having", "VBG" ], [ "'", "''" ], [ "hey", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "it", "PRP" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "Hey" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(9) T(1) Filter(9) A(0) C(10) T(1) V(0)" }, { "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", "name", "and", "location", "of", "stadium", "which", "some", "concert", "happened", "in", "year", "of", "both", "year", "and", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2015.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], 2014.0, null ] ] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Find", "the", "name", "and", "location", "of", "the", "stadiums", "which", "some", "concerts", "happened", "in", "the", "years", "of", "both", "2014", "and", "2015", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "stadium" ], [ "which" ], [ "some" ], [ "concert" ], [ "happened" ], [ "in" ], [ "year" ], [ "of" ], [ "both" ], [ "year" ], [ "and" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "which", "WDT" ], [ "some", "DT" ], [ "concert", "NN" ], [ "happened", "VBD" ], [ "in", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "both", "DT" ], [ "2014", "CD" ], [ "and", "CC" ], [ "2015", "CD" ], [ ".", "." ] ], "values": [ "2014", "2015" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(2) A(0) C(17) T(2) V(0) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(2) T(0) Filter(2) A(0) C(17) T(2) V(1)" }, { "db_id": "concert_singer", "query": "SELECT count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T2.Capacity ORDER BY T2.Capacity DESC LIMIT 1", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "GROUP", "BY", "T2.Capacity", "ORDER", "BY", "T2.Capacity", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group by", "by", "t2", ".", "capacity", "order", "by", "t2", ".", "capacity", "desc", "limit", "value" ], "question": "Find the number of concerts happened in the stadium with the highest capacity.", "question_toks": [ "find", "number", "of", "concert", "happened", "in", "stadium", "with", "highest", "capacity", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [[ 0, 4, false ]], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "name", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "stadium id", "year", "concert id", "singer id" ], "table_names": [ "stadium", "singer", "concert", "singer in concert" ], "col_set": [ "*", "stadium id", "location", "name", "capacity", "highest", "lowest", "average", "singer id", "country", "song name", "song release year", "age", "is male", "concert id", "concert name", "theme", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3 ], "keys": { "18": 1, "1": 1, "21": 8, "8": 8, "20": 20, "15": 15 }, "origin_question_toks": [ "Find", "the", "number", "of", "concerts", "happened", "in", "the", "stadium", "with", "the", "highest", "capacity", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "concert" ], [ "happened" ], [ "in" ], [ "stadium" ], [ "with" ], [ "highest" ], [ "capacity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "concert", "NN" ], [ "happened", "VBN" ], [ "in", "IN" ], [ "stadium", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "capacity", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(3) C(0) T(2) Sup(0) A(0) C(4) T(0)" }, { "db_id": "pets_1", "query": "SELECT count(*) FROM pets WHERE weight > 10", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "pets", "WHERE", "weight", ">", "10" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "pets", "where", "weight", ">", "value" ], "question": "Find the number of pets whose weight is heavier than 10.", "question_toks": [ "find", "number", "of", "pet", "whose", "weight", "is", "heavier", "than", "10", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 10.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "number", "of", "pets", "whose", "weight", "is", "heavier", "than", "10", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "pet" ], [ "whose" ], [ "weight" ], [ "is" ], [ "heavier" ], [ "than" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "pet", "JJ" ], [ "whose", "WP$" ], [ "weight", "NN" ], [ "is", "VBZ" ], [ "heavier", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "10" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(5) A(0) C(12) T(2) V(0)" }, { "db_id": "pets_1", "query": "SELECT weight FROM pets ORDER BY pet_age LIMIT 1", "query_toks": [ "SELECT", "weight", "FROM", "pets", "ORDER", "BY", "pet_age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "weight", "from", "pets", "order", "by", "pet_age", "limit", "value" ], "question": "Find the weight of the youngest dog.", "question_toks": [ "find", "weight", "of", "youngest", "dog", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "weight", "of", "the", "youngest", "dog", "." ], "question_arg": [ [ "find" ], [ "weight" ], [ "of" ], [ "youngest" ], [ "dog" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "weight", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "dog", "NN" ], [ ".", "." ] ], "values": [ "dog" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(2) Sup(1) A(0) C(11) T(2)" }, { "db_id": "pets_1", "query": "SELECT max(weight) , pettype FROM pets GROUP BY pettype", "query_toks": [ "SELECT", "max", "(", "weight", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype" ], "query_toks_no_value": [ "select", "max", "(", "weight", ")", ",", "pettype", "from", "pets", "group", "by", "pettype" ], "question": "Find the maximum weight for each type of pet. List the maximum weight and pet type.", "question_toks": [ "find", "maximum", "weight", "for", "each", "type", "of", "pet", ".", "list", "maximum", "weight", "and", "pet", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "maximum", "weight", "for", "each", "type", "of", "pet", ".", "List", "the", "maximum", "weight", "and", "pet", "type", "." ], "question_arg": [ [ "find" ], [ "maximum" ], [ "weight" ], [ "for" ], [ "each" ], [ "type" ], [ "of" ], [ "pet" ], [ "." ], [ "list" ], [ "maximum" ], [ "weight" ], [ "and" ], [ "pet", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "maximum", "JJ" ], [ "weight", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ "of", "IN" ], [ "pet", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "maximum", "JJ" ], [ "weight", "NN" ], [ "and", "CC" ], [ "pet", "JJ" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "Lisa" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(12) T(2) A(0) C(10) T(2)" }, { "db_id": "pets_1", "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T1.age", ">", "20" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "age", ">", "value" ], "question": "Find number of pets owned by students who are older than 20.", "question_toks": [ "find", "number", "of", "pet", "owned", "by", "student", "who", "are", "older", "than", "20", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 20.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "number", "of", "pets", "owned", "by", "students", "who", "are", "older", "than", "20", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "pet" ], [ "owned" ], [ "by" ], [ "student" ], [ "who" ], [ "are" ], [ "older" ], [ "than" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "pet", "NN" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "20" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "pets_1", "query": "SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T2.petid", "=", "T3.petid", "WHERE", "T1.sex", "=", "'F", "'", "AND", "T3.pettype", "=", "'dog", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t2", ".", "petid", "=", "t3", ".", "petid", "where", "t1", ".", "sex", "=", "value", "and", "t3", ".", "pettype", "=", "value" ], "question": "Find the number of dog pets that are raised by female students (with sex F).", "question_toks": [ "find", "number", "of", "dog", "pet", "that", "are", "raised", "by", "female", "student", "(", "with", "sex", "f", ")", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'F'", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "'dog'", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "number", "of", "dog", "pets", "that", "are", "raised", "by", "female", "students", "(", "with", "sex", "F", ")", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "dog" ], [ "pet" ], [ "that" ], [ "are" ], [ "raised" ], [ "by" ], [ "female" ], [ "student" ], [ "(" ], [ "with" ], [ "sex" ], [ "f" ], [ ")" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "dog", "NN" ], [ "pet", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "raised", "VBN" ], [ "by", "IN" ], [ "female", "JJ" ], [ "student", "NN" ], [ "(", "(" ], [ "with", "IN" ], [ "sex", "NN" ], [ "f", "NN" ], [ ")", ")" ], [ ".", "." ] ], "values": [ "F", "dog" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(2) A(0) C(5) T(0) V(0) Filter(2) A(0) C(10) T(2) V(1)" }, { "db_id": "pets_1", "query": "SELECT count(DISTINCT pettype) FROM pets", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "pettype", ")", "FROM", "pets" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "pettype", ")", "from", "pets" ], "question": "Find the number of distinct type of pets.", "question_toks": [ "find", "number", "of", "distinct", "type", "of", "pet", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 12, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "number", "of", "distinct", "type", "of", "pets", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "type" ], [ "of" ], [ "pet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "pet", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(2)" }, { "db_id": "pets_1", "query": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'", "query_toks": [ "SELECT", "DISTINCT", "T1.Fname", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'", "OR", "T3.pettype", "=", "'dog", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", "or", "t3", ".", "pettype", "=", "value" ], "question": "Find the first name of students who have cat or dog pet.", "question_toks": [ "find", "first", "name", "of", "student", "who", "have", "cat", "or", "dog", "pet", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "'cat'", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "'dog'", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "first", "name", "of", "students", "who", "have", "cat", "or", "dog", "pet", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "cat" ], [ "or" ], [ "dog" ], [ "pet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "cat", "VBN" ], [ "or", "CC" ], [ "dog", "JJ" ], [ "pet", "NN" ], [ ".", "." ] ], "values": [ "dog", "1", "cat" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(1) Filter(2) A(0) C(10) T(2) V(2) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "pets_1", "query": "SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog'", "query_toks": [ "SELECT", "T1.Fname", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'", "INTERSECT", "SELECT", "T1.Fname", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'dog", "'" ], "query_toks_no_value": [ "select", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", "intersect", "select", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value" ], "question": "Find the name of students who have both cat and dog pets.", "question_toks": [ "find", "name", "of", "student", "who", "have", "both", "cat", "and", "dog", "pet", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "'dog'", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "'cat'", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "name", "of", "students", "who", "have", "both", "cat", "and", "dog", "pets", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "both" ], [ "cat" ], [ "and" ], [ "dog" ], [ "pet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "both", "DT" ], [ "cat", "NN" ], [ "and", "CC" ], [ "dog", "NN" ], [ "pet", "NN" ], [ ".", "." ] ], "values": [ "cat", "dog" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(0) C(10) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(0) C(10) T(2) V(1)" }, { "db_id": "pets_1", "query": "SELECT major , age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", "query_toks": [ "SELECT", "major", ",", "age", "FROM", "student", "WHERE", "stuid", "NOT", "IN", "(", "SELECT", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'", ")" ], "query_toks_no_value": [ "select", "major", ",", "age", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", ")" ], "question": "Find the major and age of students who do not have a cat pet.", "question_toks": [ "find", "major", "and", "age", "of", "student", "who", "do", "not", "have", "a", "cat", "pet", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "'cat'", null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "major", "and", "age", "of", "students", "who", "do", "not", "have", "a", "cat", "pet", "." ], "question_arg": [ [ "find" ], [ "major" ], [ "and" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "cat" ], [ "pet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "major", "JJ" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "cat", "NN" ], [ "pet", "NN" ], [ ".", "." ] ], "values": [ "cat" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(0) A(0) C(4) T(0) Filter(19) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "pets_1", "query": "SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat'", "query_toks": [ "SELECT", "stuid", "FROM", "student", "EXCEPT", "SELECT", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value" ], "question": "Find the id of students who do not have a cat pet.", "question_toks": [ "find", "id", "of", "student", "who", "do", "not", "have", "a", "cat", "pet", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "'cat'", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "id", "of", "students", "who", "do", "not", "have", "a", "cat", "pet", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "cat" ], [ "pet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "cat", "NN" ], [ "pet", "NN" ], [ ".", "." ] ], "values": [ "cat" ], "all_values_found": true, "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "pets_1", "query": "SELECT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')", "query_toks": [ "SELECT", "T1.fname", ",", "T1.age", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'dog", "'", "AND", "T1.stuid", "NOT", "IN", "(", "SELECT", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pettype", "=", "'cat", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "age", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", "and", "t1", ".", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pettype", "=", "value", ")" ], "question": "Find the first name and age of students who have a dog but do not have a cat as a pet.", "question_toks": [ "find", "first", "name", "and", "age", "of", "student", "who", "have", "a", "dog", "but", "do", "not", "have", "a", "cat", "a", "a", "pet", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "'dog'", null ], "and", [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "'cat'", null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "age", "of", "students", "who", "have", "a", "dog", "but", "do", "not", "have", "a", "cat", "as", "a", "pet", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "a" ], [ "dog" ], [ "but" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "cat" ], [ "a" ], [ "a" ], [ "pet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "dog", "NN" ], [ "but", "CC" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "cat", "NN" ], [ "a", "DT" ], [ "a", "DT" ], [ "pet", "NN" ], [ ".", "." ] ], "values": [ "cat", "dog", "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(0) Filter(2) A(0) C(10) T(2) V(1) Filter(19) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "pets_1", "query": "SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1", "query_toks": [ "SELECT", "pettype", ",", "weight", "FROM", "pets", "ORDER", "BY", "pet_age", "LIMIT", "1" ], "query_toks_no_value": [ "select", "pettype", ",", "weight", "from", "pets", "order", "by", "pet_age", "limit", "value" ], "question": "Find the type and weight of the youngest pet.", "question_toks": [ "find", "type", "and", "weight", "of", "youngest", "pet", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "type", "and", "weight", "of", "the", "youngest", "pet", "." ], "question_arg": [ [ "find" ], [ "type" ], [ "and" ], [ "weight" ], [ "of" ], [ "youngest" ], [ "pet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "type", "NN" ], [ "and", "CC" ], [ "weight", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "pet", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(2) A(0) C(12) T(2) Sup(1) A(0) C(11) T(2)" }, { "db_id": "pets_1", "query": "SELECT petid , weight FROM pets WHERE pet_age > 1", "query_toks": [ "SELECT", "petid", ",", "weight", "FROM", "pets", "WHERE", "pet_age", ">", "1" ], "query_toks_no_value": [ "select", "petid", ",", "weight", "from", "pets", "where", "pet_age", ">", "value" ], "question": "Find the id and weight of all pets whose age is older than 1.", "question_toks": [ "find", "id", "and", "weight", "of", "all", "pet", "whose", "age", "is", "older", "than", "1", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 1.0, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "id", "and", "weight", "of", "all", "pets", "whose", "age", "is", "older", "than", "1", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "weight" ], [ "of" ], [ "all" ], [ "pet" ], [ "whose" ], [ "age" ], [ "is" ], [ "older" ], [ "than" ], [ "1" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "weight", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "pet", "NN" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "older", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(2) A(0) C(12) T(2) Filter(5) A(0) C(11) T(2) V(0)" }, { "db_id": "pets_1", "query": "SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype", "query_toks": [ "SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype" ], "query_toks_no_value": [ "select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype" ], "question": "Find the average and maximum age for each type of pet.", "question_toks": [ "find", "average", "and", "maximum", "age", "for", "each", "type", "of", "pet", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ], [ 1, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "average", "and", "maximum", "age", "for", "each", "type", "of", "pet", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "and" ], [ "maximum" ], [ "age" ], [ "for" ], [ "each" ], [ "type" ], [ "of" ], [ "pet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ "of", "IN" ], [ "pet", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(5) C(11) T(2) A(1) C(11) T(2) A(0) C(10) T(2)" }, { "db_id": "pets_1", "query": "SELECT avg(weight) , pettype FROM pets GROUP BY pettype", "query_toks": [ "SELECT", "avg", "(", "weight", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype" ], "query_toks_no_value": [ "select", "avg", "(", "weight", ")", ",", "pettype", "from", "pets", "group", "by", "pettype" ], "question": "Find the average weight for each pet type.", "question_toks": [ "find", "average", "weight", "for", "each", "pet", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "average", "weight", "for", "each", "pet", "type", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "weight" ], [ "for" ], [ "each" ], [ "pet", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "weight", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "pet", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(12) T(2) A(0) C(10) T(2)" }, { "db_id": "pets_1", "query": "SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid", "query_toks": [ "SELECT", "DISTINCT", "T1.fname", ",", "T1.age", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "age", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid" ], "question": "Find the first name and age of students who have a pet.", "question_toks": [ "find", "first", "name", "and", "age", "of", "student", "who", "have", "a", "pet", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "age", "of", "students", "who", "have", "a", "pet", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "a" ], [ "pet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "pet", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "pets_1", "query": "SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'", "query_toks": [ "SELECT", "T2.petid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T1.Lname", "=", "'Smith", "'" ], "query_toks_no_value": [ "select", "t2", ".", "petid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "lname", "=", "value" ], "question": "Find the id of the pet owned by student whose last name is \u2018Smith\u2019.", "question_toks": [ "find", "id", "of", "pet", "owned", "by", "student", "whose", "last", "name", "is", "\u2018smith\u2019", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Smith'", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "id", "of", "the", "pet", "owned", "by", "student", "whose", "last", "name", "is", "\u2018Smith\u2019", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "pet" ], [ "owned" ], [ "by" ], [ "student" ], [ "whose" ], [ "last", "name" ], [ "is" ], [ "\u2018smith\u2019" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "pet", "NN" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "\u2018smith\u2019", "NNP" ], [ ".", "." ] ], "values": [ "Smith" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "pets_1", "query": "SELECT count(*) , T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "GROUP", "BY", "T1.stuid" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "group", "by", "t1", ".", "stuid" ], "question": "Find the number of pets for each student who has any pet and student id.", "question_toks": [ "find", "number", "of", "pet", "for", "each", "student", "who", "ha", "any", "pet", "and", "student", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "number", "of", "pets", "for", "each", "student", "who", "has", "any", "pet", "and", "student", "id", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "pet" ], [ "for" ], [ "each" ], [ "student" ], [ "who" ], [ "ha" ], [ "any" ], [ "pet" ], [ "and" ], [ "student", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "pet", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "any", "DT" ], [ "pet", "NN" ], [ "and", "CC" ], [ "student", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(1) T(0)" }, { "db_id": "pets_1", "query": "SELECT T1.fname , T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.fname", ",", "T1.sex", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "GROUP", "BY", "T1.stuid", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "fname", ",", "t1", ".", "sex", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "group", "by", "t1", ".", "stuid", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the first name and gender of student who have more than one pet.", "question_toks": [ "find", "first", "name", "and", "gender", "of", "student", "who", "have", "more", "than", "one", "pet", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "gender", "of", "student", "who", "have", "more", "than", "one", "pet", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "pet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "pet", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(5) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "pets_1", "query": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'", "query_toks": [ "SELECT", "T1.lname", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "pets", "AS", "T3", "ON", "T3.petid", "=", "T2.petid", "WHERE", "T3.pet_age", "=", "3", "AND", "T3.pettype", "=", "'cat", "'" ], "query_toks_no_value": [ "select", "t1", ".", "lname", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "pets", "as", "t3", "on", "t3", ".", "petid", "=", "t2", ".", "petid", "where", "t3", ".", "pet_age", "=", "value", "and", "t3", ".", "pettype", "=", "value" ], "question": "Find the last name of the student who has a cat that is age 3.", "question_toks": [ "find", "last", "name", "of", "student", "who", "ha", "a", "cat", "that", "is", "age", "3", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], 3.0, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "'cat'", null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "age", "3", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "ha" ], [ "a" ], [ "cat" ], [ "that" ], [ "is" ], [ "age" ], [ "3" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "cat", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "age", "NN" ], [ "3", "CD" ], [ ".", "." ] ], "values": [ "3", "cat" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(0) Filter(2) A(0) C(11) T(2) V(0) Filter(2) A(0) C(10) T(2) V(1)" }, { "db_id": "pets_1", "query": "SELECT avg(age) FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid)", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "student", "WHERE", "stuid", "NOT", "IN", "(", "SELECT", "T1.stuid", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", ")" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", ")" ], "question": "Find the average age of students who do not have any pet.", "question_toks": [ "find", "average", "age", "of", "student", "who", "do", "not", "have", "any", "pet", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, null ] ] }, "names": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "student id", "pet id", "pet id", "pet type", "pet age", "weight" ], "table_names": [ "student", "has pet", "pets" ], "col_set": [ "*", "student id", "last name", "first name", "age", "sex", "major", "advisor", "city code", "pet id", "pet type", "pet age", "weight" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "10": 11, "11": 11 }, "origin_question_toks": [ "Find", "the", "average", "age", "of", "students", "who", "do", "not", "have", "any", "pet", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "pet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "pet", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(19) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "car_1", "query": "SELECT count(*) FROM CONTINENTS;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CONTINENTS", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "continents" ], "question": "How many continents are there?", "question_toks": [ "how", "many", "continent", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "continents", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "continent" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "continent", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "car_1", "query": "SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;", "query_toks": [ "SELECT", "T1.ContId", ",", "T1.Continent", ",", "count", "(", "*", ")", "FROM", "CONTINENTS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.ContId", "=", "T2.Continent", "GROUP", "BY", "T1.ContId", ";" ], "query_toks_no_value": [ "select", "t1", ".", "contid", ",", "t1", ".", "continent", ",", "count", "(", "*", ")", "from", "continents", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "contid", "=", "t2", ".", "continent", "group", "by", "t1", ".", "contid" ], "question": "How many countries does each continent have? List the continent id, continent name and the number of countries.", "question_toks": [ "how", "many", "country", "doe", "each", "continent", "have", "?", "list", "continent", "id", ",", "continent", "name", "and", "number", "of", "country", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "countries", "does", "each", "continent", "have", "?", "List", "the", "continent", "id", ",", "continent", "name", "and", "the", "number", "of", "countries", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "country" ], [ "doe" ], [ "each" ], [ "continent" ], [ "have" ], [ "?" ], [ "list" ], [ "continent" ], [ "id" ], [ "," ], [ "continent" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "country" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "country", "NN" ], [ "doe", "VBZ" ], [ "each", "DT" ], [ "continent", "NN" ], [ "have", "VB" ], [ "?", "." ], [ "list", "JJ" ], [ "continent", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "continent", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) T(0) A(3) C(0) T(1)" }, { "db_id": "car_1", "query": "SELECT count(*) FROM COUNTRIES;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "COUNTRIES", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "countries" ], "question": "How many countries are listed?", "question_toks": [ "how", "many", "country", "are", "listed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "countries", "are", "listed", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "country" ], [ "are" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "country", "NN" ], [ "are", "VBP" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "car_1", "query": "SELECT T1.FullName , T1.Id , count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id;", "query_toks": [ "SELECT", "T1.FullName", ",", "T1.Id", ",", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "GROUP", "BY", "T1.Id", ";" ], "query_toks_no_value": [ "select", "t1", ".", "fullname", ",", "t1", ".", "id", ",", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "group", "by", "t1", ".", "id" ], "question": "How many models does each car maker produce? List maker full name, id and the number.", "question_toks": [ "how", "many", "model", "doe", "each", "car", "maker", "produce", "?", "list", "maker", "full", "name", ",", "id", "and", "number", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "models", "does", "each", "car", "maker", "produce", "?", "List", "maker", "full", "name", ",", "id", "and", "the", "number", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "model" ], [ "doe" ], [ "each" ], [ "car", "maker" ], [ "produce" ], [ "?" ], [ "list" ], [ "maker" ], [ "full", "name" ], [ "," ], [ "id" ], [ "and" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "model", "NN" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "car", "NN" ], [ "maker", "NN" ], [ "produce", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "maker", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(7) T(2) A(0) C(5) T(2) A(3) C(0) T(3)" }, { "db_id": "car_1", "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.horsepower ASC LIMIT 1;", "query_toks": [ "SELECT", "T1.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "ORDER", "BY", "T2.horsepower", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "horsepower", "asc", "limit", "value" ], "question": "Which model of the car has the minimum horsepower?", "question_toks": [ "which", "model", "of", "car", "ha", "minimum", "horsepower", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 20, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Which", "model", "of", "the", "car", "has", "the", "minimum", "horsepower", "?" ], "question_arg": [ [ "which" ], [ "model" ], [ "of" ], [ "car" ], [ "ha" ], [ "minimum" ], [ "horsepower" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "model", "NN" ], [ "of", "IN" ], [ "car", "NN" ], [ "ha", "NN" ], [ "minimum", "NN" ], [ "horsepower", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(4) Sup(1) A(0) C(16) T(5)" }, { "db_id": "car_1", "query": "SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT avg(Weight) FROM CARS_DATA)", "query_toks": [ "SELECT", "T1.model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T2.Weight", "<", "(", "SELECT", "avg", "(", "Weight", ")", "FROM", "CARS_DATA", ")" ], "query_toks_no_value": [ "select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "weight", "<", "(", "select", "avg", "(", "weight", ")", "from", "cars_data", ")" ], "question": "Find the model of the car whose weight is below the average weight.", "question_toks": [ "find", "model", "of", "car", "whose", "weight", "is", "below", "average", "weight", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Find", "the", "model", "of", "the", "car", "whose", "weight", "is", "below", "the", "average", "weight", "." ], "question_arg": [ [ "find" ], [ "model" ], [ "of" ], [ "car" ], [ "whose" ], [ "weight" ], [ "is" ], [ "below" ], [ "average" ], [ "weight" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "model", "NN" ], [ "of", "IN" ], [ "car", "NN" ], [ "whose", "WP$" ], [ "weight", "NN" ], [ "is", "VBZ" ], [ "below", "JJ" ], [ "average", "JJ" ], [ "weight", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(4) Filter(12) A(0) C(17) T(5) Root(5) Sel(0) N(0) A(5) C(17) T(5)" }, { "db_id": "car_1", "query": "SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970';", "query_toks": [ "SELECT", "DISTINCT", "T1.Maker", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "JOIN", "CAR_NAMES", "AS", "T3", "ON", "T2.model", "=", "T3.model", "JOIN", "CARS_DATA", "AS", "T4", "ON", "T3.MakeId", "=", "T4.id", "WHERE", "T4.year", "=", "'1970", "'", ";" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "maker", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "join", "car_names", "as", "t3", "on", "t2", ".", "model", "=", "t3", ".", "model", "join", "cars_data", "as", "t4", "on", "t3", ".", "makeid", "=", "t4", ".", "id", "where", "t4", ".", "year", "=", "value" ], "question": "Find the name of the makers that produced some cars in the year of 1970?", "question_toks": [ "find", "name", "of", "maker", "that", "produced", "some", "car", "in", "year", "of", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 23, false ], null ], "'1970'", null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "makers", "that", "produced", "some", "cars", "in", "the", "year", "of", "1970", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "maker" ], [ "that" ], [ "produced" ], [ "some" ], [ "car" ], [ "in" ], [ "year" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "maker", "NN" ], [ "that", "WDT" ], [ "produced", "VBD" ], [ "some", "DT" ], [ "car", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "1970", "CD" ], [ "?", "." ] ], "values": [ "1970" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(2) Filter(0) Filter(18) A(0) C(5) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(3) Filter(2) A(0) C(19) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT T2.Make , T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT min(YEAR) FROM CARS_DATA);", "query_toks": [ "SELECT", "T2.Make", ",", "T1.Year", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Id", "=", "T2.MakeId", "WHERE", "T1.Year", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "CARS_DATA", ")", ";" ], "query_toks_no_value": [ "select", "t2", ".", "make", ",", "t1", ".", "year", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "year", "=", "(", "select", "min", "(", "year", ")", "from", "cars_data", ")" ], "question": "Find the make and production time of the cars that were produced in the earliest year?", "question_toks": [ "find", "make", "and", "production", "time", "of", "car", "that", "were", "produced", "in", "earliest", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Find", "the", "make", "and", "production", "time", "of", "the", "cars", "that", "were", "produced", "in", "the", "earliest", "year", "?" ], "question_arg": [ [ "find" ], [ "make" ], [ "and" ], [ "production" ], [ "time" ], [ "of" ], [ "car" ], [ "that" ], [ "were" ], [ "produced" ], [ "in" ], [ "earliest" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NNS" ], [ "make", "VBP" ], [ "and", "CC" ], [ "production", "NN" ], [ "time", "NN" ], [ "of", "IN" ], [ "car", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "produced", "VBN" ], [ "in", "IN" ], [ "earliest", "JJS" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(4) A(0) C(19) T(5) Filter(11) A(0) C(19) T(5) Root(5) Sel(0) N(0) A(2) C(19) T(5)" }, { "db_id": "car_1", "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980;", "query_toks": [ "SELECT", "DISTINCT", "T1.model", "FROM", "MODEL_LIST", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.model", "=", "T2.model", "JOIN", "CARS_DATA", "AS", "T3", "ON", "T2.MakeId", "=", "T3.id", "WHERE", "T3.year", ">", "1980", ";" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "model", "from", "model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "model", "=", "t2", ".", "model", "join", "cars_data", "as", "t3", "on", "t2", ".", "makeid", "=", "t3", ".", "id", "where", "t3", ".", "year", ">", "value" ], "question": "Which distinct car models are the produced after 1980?", "question_toks": [ "which", "distinct", "car", "model", "are", "produced", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 23, false ], null ], 1980.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Which", "distinct", "car", "models", "are", "the", "produced", "after", "1980", "?" ], "question_arg": [ [ "which" ], [ "distinct" ], [ "car" ], [ "model" ], [ "are" ], [ "produced" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "distinct", "JJ" ], [ "car", "NN" ], [ "model", "NN" ], [ "are", "VBP" ], [ "produced", "VBN" ], [ "after", "IN" ], [ "1980", "CD" ], [ "?", "." ] ], "values": [ "1980" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(10) T(3) Root(5) Sel(0) N(0) A(0) C(10) T(4) Filter(5) A(0) C(19) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent;", "query_toks": [ "SELECT", "T1.Continent", ",", "count", "(", "*", ")", "FROM", "CONTINENTS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.ContId", "=", "T2.continent", "JOIN", "car_makers", "AS", "T3", "ON", "T2.CountryId", "=", "T3.Country", "GROUP", "BY", "T1.Continent", ";" ], "query_toks_no_value": [ "select", "t1", ".", "continent", ",", "count", "(", "*", ")", "from", "continents", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "contid", "=", "t2", ".", "continent", "join", "car_makers", "as", "t3", "on", "t2", ".", "countryid", "=", "t3", ".", "country", "group", "by", "t1", ".", "continent" ], "question": "How many car makers are there in each continents? List the continent name and the count.", "question_toks": [ "how", "many", "car", "maker", "are", "there", "in", "each", "continent", "?", "list", "continent", "name", "and", "count", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "car", "makers", "are", "there", "in", "each", "continents", "?", "List", "the", "continent", "name", "and", "the", "count", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "car", "maker" ], [ "are" ], [ "there" ], [ "in" ], [ "each" ], [ "continent" ], [ "?" ], [ "list" ], [ "continent" ], [ "name" ], [ "and" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "car", "NN" ], [ "maker", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "each", "DT" ], [ "continent", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "continent", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(1)" }, { "db_id": "car_1", "query": "SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId GROUP BY T2.CountryName ORDER BY Count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.CountryName", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.Country", "=", "T2.CountryId", "GROUP", "BY", "T2.CountryName", "ORDER", "BY", "Count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "countryname", "from", "car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "country", "=", "t2", ".", "countryid", "group", "by", "t2", ".", "countryname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which of the countries has the most car makers? List the country name.", "question_toks": [ "which", "of", "country", "ha", "most", "car", "maker", "?", "list", "country", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Which", "of", "the", "countries", "has", "the", "most", "car", "makers", "?", "List", "the", "country", "name", "." ], "question_arg": [ [ "which" ], [ "of" ], [ "country" ], [ "ha" ], [ "most" ], [ "car", "maker" ], [ "?" ], [ "list" ], [ "country", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "of", "IN" ], [ "country", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "car", "NN" ], [ "maker", "NN" ], [ "?", "." ], [ "list", "JJ" ], [ "country", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(2)" }, { "db_id": "car_1", "query": "SELECT Count(*) , T2.FullName , T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id;", "query_toks": [ "SELECT", "Count", "(", "*", ")", ",", "T2.FullName", ",", "T2.id", "FROM", "MODEL_LIST", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.Maker", "=", "T2.Id", "GROUP", "BY", "T2.id", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t2", ".", "fullname", ",", "t2", ".", "id", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "maker", "=", "t2", ".", "id", "group", "by", "t2", ".", "id" ], "question": "How many car models are produced by each maker? List the count and the maker full name.", "question_toks": [ "how", "many", "car", "model", "are", "produced", "by", "each", "maker", "?", "list", "count", "and", "maker", "full", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "car", "models", "are", "produced", "by", "each", "maker", "?", "List", "the", "count", "and", "the", "maker", "full", "name", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "car" ], [ "model" ], [ "are" ], [ "produced" ], [ "by" ], [ "each" ], [ "maker" ], [ "?" ], [ "list" ], [ "count" ], [ "and" ], [ "maker" ], [ "full", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "car", "NN" ], [ "model", "NN" ], [ "are", "VBP" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "maker", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "count", "NN" ], [ "and", "CC" ], [ "maker", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(3) C(0) T(3) A(0) C(7) T(2) A(0) C(5) T(2)" }, { "db_id": "car_1", "query": "SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Make = 'amc hornet sportabout (sw)';", "query_toks": [ "SELECT", "T1.Accelerate", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Id", "=", "T2.MakeId", "WHERE", "T2.Make", "=", "'amc", "hornet", "sportabout", "(", "sw", ")", "'", ";" ], "query_toks_no_value": [ "select", "t1", ".", "accelerate", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "make", "=", "value" ], "question": "What is the accelerate of the car make amc hornet sportabout (sw)?", "question_toks": [ "what", "is", "accelerate", "of", "car", "make", "amc", "hornet", "sportabout", "(", "sw", ")", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "'amc hornet sportabout (sw)'", null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "accelerate", "of", "the", "car", "make", "amc", "hornet", "sportabout", "(", "sw", ")", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "accelerate" ], [ "of" ], [ "car" ], [ "make" ], [ "amc" ], [ "hornet" ], [ "sportabout" ], [ "(" ], [ "sw" ], [ ")" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "accelerate", "NN" ], [ "of", "IN" ], [ "car", "NN" ], [ "make", "VBP" ], [ "amc", "JJ" ], [ "hornet", "NN" ], [ "sportabout", "NN" ], [ "(", "(" ], [ "sw", "NN" ], [ ")", ")" ], [ "?", "." ] ], "values": [ "amc", "amc hornet", "amc hornet sportabout (sw)" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(2) A(0) C(12) T(4) V(2)" }, { "db_id": "car_1", "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.Country", "=", "T2.CountryId", "WHERE", "T2.CountryName", "=", "'france", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "country", "=", "t2", ".", "countryid", "where", "t2", ".", "countryname", "=", "value" ], "question": "How many car makers are there in france?", "question_toks": [ "how", "many", "car", "maker", "are", "there", "in", "france", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "'france'", null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "car", "makers", "are", "there", "in", "france", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "car", "maker" ], [ "are" ], [ "there" ], [ "in" ], [ "france" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "car", "NN" ], [ "maker", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "france", "NN" ], [ "?", "." ] ], "values": [ "france" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "car_1", "query": "SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id JOIN COUNTRIES AS T3 ON T2.Country = T3.CountryId WHERE T3.CountryName = 'usa';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "MODEL_LIST", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.Maker", "=", "T2.Id", "JOIN", "COUNTRIES", "AS", "T3", "ON", "T2.Country", "=", "T3.CountryId", "WHERE", "T3.CountryName", "=", "'usa", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "maker", "=", "t2", ".", "id", "join", "countries", "as", "t3", "on", "t2", ".", "country", "=", "t3", ".", "countryid", "where", "t3", ".", "countryname", "=", "value" ], "question": "How many car models are produced in the usa?", "question_toks": [ "how", "many", "car", "model", "are", "produced", "in", "usa", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "'usa'", null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "car", "models", "are", "produced", "in", "the", "usa", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "car" ], [ "model" ], [ "are" ], [ "produced" ], [ "in" ], [ "usa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "car", "NN" ], [ "model", "NN" ], [ "are", "VBP" ], [ "produced", "VBN" ], [ "in", "IN" ], [ "usa", "NN" ], [ "?", "." ] ], "values": [ "usa" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(18) A(0) C(6) T(3) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "car_1", "query": "SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;", "query_toks": [ "SELECT", "avg", "(", "mpg", ")", "FROM", "CARS_DATA", "WHERE", "Cylinders", "=", "4", ";" ], "query_toks_no_value": [ "select", "avg", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "value" ], "question": "What is the average miles per gallon(mpg) of the cars with 4 cylinders?", "question_toks": [ "what", "is", "average", "mile", "per", "gallon", "(", "mpg", ")", "of", "car", "with", "4", "cylinder", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 4.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "average", "miles", "per", "gallon", "(", "mpg", ")", "of", "the", "cars", "with", "4", "cylinders", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "mile" ], [ "per" ], [ "gallon" ], [ "(" ], [ "mpg" ], [ ")" ], [ "of" ], [ "car" ], [ "with" ], [ "4" ], [ "cylinder" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "mile", "JJ" ], [ "per", "IN" ], [ "gallon", "NN" ], [ "(", "(" ], [ "mpg", "NN" ], [ ")", ")" ], [ "of", "IN" ], [ "car", "NN" ], [ "with", "IN" ], [ "4", "CD" ], [ "cylinder", "NN" ], [ "?", "." ] ], "values": [ "4" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(13) T(5) Filter(2) A(0) C(14) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT Weight FROM CARS_DATA WHERE Cylinders = 4 AND YEAR = 1974 ORDER BY Weight ASC LIMIT 1;", "query_toks": [ "SELECT", "Weight", "FROM", "CARS_DATA", "WHERE", "Cylinders", "=", "4", "AND", "YEAR", "=", "1974", "ORDER", "BY", "Weight", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "weight", "from", "cars_data", "where", "cylinders", "=", "value", "and", "year", "=", "value", "order", "by", "weight", "asc", "limit", "value" ], "question": "What is the smallest weight of the car produced with 4 cylinders on 1974?", "question_toks": [ "what", "is", "smallest", "weight", "of", "car", "produced", "with", "4", "cylinder", "on", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 4.0, null ], "and", [ false, 2, [ 0, [ 0, 23, false ], null ], 1974.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "smallest", "weight", "of", "the", "car", "produced", "with", "4", "cylinders", "on", "1974", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "smallest" ], [ "weight" ], [ "of" ], [ "car" ], [ "produced" ], [ "with" ], [ "4" ], [ "cylinder" ], [ "on" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "smallest", "JJ" ], [ "weight", "NN" ], [ "of", "IN" ], [ "car", "NN" ], [ "produced", "VBN" ], [ "with", "IN" ], [ "4", "CD" ], [ "cylinder", "NN" ], [ "on", "IN" ], [ "1974", "CD" ], [ "?", "." ] ], "values": [ "1974", "4" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(17) T(5) Sup(1) A(0) C(17) T(5) Filter(0) Filter(2) A(0) C(14) T(5) V(1) Filter(2) A(0) C(19) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT Maker , Model FROM MODEL_LIST;", "query_toks": [ "SELECT", "Maker", ",", "Model", "FROM", "MODEL_LIST", ";" ], "query_toks_no_value": [ "select", "maker", ",", "model", "from", "model_list" ], "question": "What are all the makers and models?", "question_toks": [ "what", "are", "all", "maker", "and", "model", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "are", "all", "the", "makers", "and", "models", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "maker" ], [ "and" ], [ "model" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "maker", "NN" ], [ "and", "CC" ], [ "model", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(3) A(0) C(10) T(3)" }, { "db_id": "car_1", "query": "SELECT T1.CountryName , T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) >= 1;", "query_toks": [ "SELECT", "T1.CountryName", ",", "T1.CountryId", "FROM", "COUNTRIES", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.CountryId", "=", "T2.Country", "GROUP", "BY", "T1.CountryId", "HAVING", "count", "(", "*", ")", ">", "=", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "countryname", ",", "t1", ".", "countryid", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the countries having at least one car maker? List name and id.", "question_toks": [ "what", "are", "country", "having", "at", "least", "one", "car", "maker", "?", "list", "name", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "countries", "having", "at", "least", "one", "car", "maker", "?", "List", "name", "and", "id", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "having" ], [ "at" ], [ "least" ], [ "one" ], [ "car", "maker" ], [ "?" ], [ "list" ], [ "name" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "having", "VBG" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "car", "NN" ], [ "maker", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(3) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "car_1", "query": "SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "horsepower", ">", "150", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "horsepower", ">", "value" ], "question": "What is the number of the cars with horsepower more than 150?", "question_toks": [ "what", "is", "number", "of", "car", "with", "horsepower", "more", "than", "150", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 20, false ], null ], 150.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "the", "cars", "with", "horsepower", "more", "than", "150", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "car" ], [ "with" ], [ "horsepower" ], [ "more" ], [ "than" ], [ "150" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "car", "NN" ], [ "with", "IN" ], [ "horsepower", "JJR" ], [ "more", "JJR" ], [ "than", "IN" ], [ "150", "CD" ], [ "?", "." ] ], "values": [ "150" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(5) A(0) C(16) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;", "query_toks": [ "SELECT", "avg", "(", "Weight", ")", ",", "YEAR", "FROM", "CARS_DATA", "GROUP", "BY", "YEAR", ";" ], "query_toks_no_value": [ "select", "avg", "(", "weight", ")", ",", "year", "from", "cars_data", "group", "by", "year" ], "question": "What is the average weight of cars each year?", "question_toks": [ "what", "is", "average", "weight", "of", "car", "each", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "average", "weight", "of", "cars", "each", "year", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "weight" ], [ "of" ], [ "car" ], [ "each" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "weight", "NN" ], [ "of", "IN" ], [ "car", "NN" ], [ "each", "DT" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(17) T(5) A(0) C(19) T(5)" }, { "db_id": "car_1", "query": "SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent = T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId = T3.Country WHERE T2.Continent = 'europe' GROUP BY T1.CountryName HAVING count(*) >= 3;", "query_toks": [ "SELECT", "T1.CountryName", "FROM", "COUNTRIES", "AS", "T1", "JOIN", "CONTINENTS", "AS", "T2", "ON", "T1.Continent", "=", "T2.ContId", "JOIN", "CAR_MAKERS", "AS", "T3", "ON", "T1.CountryId", "=", "T3.Country", "WHERE", "T2.Continent", "=", "'europe", "'", "GROUP", "BY", "T1.CountryName", "HAVING", "count", "(", "*", ")", ">", "=", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "continents", "as", "t2", "on", "t1", ".", "continent", "=", "t2", ".", "contid", "join", "car_makers", "as", "t3", "on", "t1", ".", "countryid", "=", "t3", ".", "country", "where", "t2", ".", "continent", "=", "value", "group", "by", "t1", ".", "countryname", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which countries in europe have at least 3 car manufacturers?", "question_toks": [ "which", "country", "in", "europe", "have", "at", "least", "3", "car", "manufacturer", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'europe'", null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Which", "countries", "in", "europe", "have", "at", "least", "3", "car", "manufacturers", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "in" ], [ "europe" ], [ "have" ], [ "at" ], [ "least" ], [ "3" ], [ "car" ], [ "manufacturer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "in", "IN" ], [ "europe", "NN" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "car", "NN" ], [ "manufacturer", "NN" ], [ "?", "." ] ], "values": [ "3", "europe" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "car_1", "query": "SELECT T2.horsepower , T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.cylinders = 3 ORDER BY T2.horsepower DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.horsepower", ",", "T1.Make", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T2.cylinders", "=", "3", "ORDER", "BY", "T2.horsepower", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "horsepower", ",", "t1", ".", "make", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value" ], "question": "What is the maximum horsepower and the make of the car models with 3 cylinders?", "question_toks": [ "what", "is", "maximum", "horsepower", "and", "make", "of", "car", "model", "with", "3", "cylinder", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 3.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "maximum", "horsepower", "and", "the", "make", "of", "the", "car", "models", "with", "3", "cylinders", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "horsepower" ], [ "and" ], [ "make" ], [ "of" ], [ "car" ], [ "model" ], [ "with" ], [ "3" ], [ "cylinder" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "horsepower", "NN" ], [ "and", "CC" ], [ "make", "VB" ], [ "of", "IN" ], [ "car", "NN" ], [ "model", "NN" ], [ "with", "IN" ], [ "3", "CD" ], [ "cylinder", "NN" ], [ "?", "." ] ], "values": [ "3" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(16) T(5) A(0) C(12) T(4) Sup(0) A(0) C(16) T(5) Filter(2) A(0) C(14) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "ORDER", "BY", "T2.mpg", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "mpg", "desc", "limit", "value" ], "question": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.", "question_toks": [ "which", "model", "save", "most", "gasoline", "?", "that", "is", "to", "say", ",", "have", "maximum", "mile", "per", "gallon", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Which", "model", "saves", "the", "most", "gasoline", "?", "That", "is", "to", "say", ",", "have", "the", "maximum", "miles", "per", "gallon", "." ], "question_arg": [ [ "which" ], [ "model" ], [ "save" ], [ "most" ], [ "gasoline" ], [ "?" ], [ "that" ], [ "is" ], [ "to" ], [ "say" ], [ "," ], [ "have" ], [ "maximum" ], [ "mile" ], [ "per" ], [ "gallon" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "model", "NN" ], [ "save", "VBP" ], [ "most", "JJS" ], [ "gasoline", "NN" ], [ "?", "." ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "to", "TO" ], [ "say", "VB" ], [ ",", "," ], [ "have", "VBP" ], [ "maximum", "VBN" ], [ "mile", "JJ" ], [ "per", "IN" ], [ "gallon", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(4) Sup(0) A(0) C(13) T(5)" }, { "db_id": "car_1", "query": "SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR < 1980;", "query_toks": [ "SELECT", "avg", "(", "horsepower", ")", "FROM", "CARS_DATA", "WHERE", "YEAR", "<", "1980", ";" ], "query_toks_no_value": [ "select", "avg", "(", "horsepower", ")", "from", "cars_data", "where", "year", "<", "value" ], "question": "What is the average horsepower of the cars before 1980?", "question_toks": [ "what", "is", "average", "horsepower", "of", "car", "before", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 23, false ], null ], 1980.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "average", "horsepower", "of", "the", "cars", "before", "1980", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "horsepower" ], [ "of" ], [ "car" ], [ "before" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "horsepower", "NN" ], [ "of", "IN" ], [ "car", "NN" ], [ "before", "IN" ], [ "1980", "CD" ], [ "?", "." ] ], "values": [ "1980" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(16) T(5) Filter(4) A(0) C(19) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';", "query_toks": [ "SELECT", "avg", "(", "T2.edispl", ")", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T1.Model", "=", "'volvo", "'", ";" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "edispl", ")", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t1", ".", "model", "=", "value" ], "question": "What is the average edispl of the cars of model volvo?", "question_toks": [ "what", "is", "average", "edispl", "of", "car", "of", "model", "volvo", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "'volvo'", null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "average", "edispl", "of", "the", "cars", "of", "model", "volvo", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "edispl" ], [ "of" ], [ "car" ], [ "of" ], [ "model" ], [ "volvo" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "edispl", "NN" ], [ "of", "IN" ], [ "car", "NN" ], [ "of", "IN" ], [ "model", "NN" ], [ "volvo", "NN" ], [ "?", "." ] ], "values": [ "volvo", "Volvo" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(15) T(5) Filter(2) A(0) C(10) T(4) V(0)" }, { "db_id": "car_1", "query": "SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;", "query_toks": [ "SELECT", "max", "(", "Accelerate", ")", ",", "Cylinders", "FROM", "CARS_DATA", "GROUP", "BY", "Cylinders", ";" ], "query_toks_no_value": [ "select", "max", "(", "accelerate", ")", ",", "cylinders", "from", "cars_data", "group", "by", "cylinders" ], "question": "What is the maximum accelerate for different number of cylinders?", "question_toks": [ "what", "is", "maximum", "accelerate", "for", "different", "number", "of", "cylinder", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "maximum", "accelerate", "for", "different", "number", "of", "cylinders", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "accelerate" ], [ "for" ], [ "different" ], [ "number" ], [ "of" ], [ "cylinder" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "accelerate", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "cylinder", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(18) T(5) A(0) C(14) T(5)" }, { "db_id": "car_1", "query": "SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "Model", "FROM", "CAR_NAMES", "GROUP", "BY", "Model", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "model", "from", "car_names", "group", "by", "model", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which model has the most version(make) of cars?", "question_toks": [ "which", "model", "ha", "most", "version", "(", "make", ")", "of", "car", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Which", "model", "has", "the", "most", "version", "(", "make", ")", "of", "cars", "?" ], "question_arg": [ [ "which" ], [ "model" ], [ "ha" ], [ "most" ], [ "version" ], [ "(" ], [ "make" ], [ ")" ], [ "of" ], [ "car" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "model", "NN" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "version", "NN" ], [ "(", "(" ], [ "make", "VBP" ], [ ")", ")" ], [ "of", "IN" ], [ "car", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(4) Sup(0) A(3) C(0) T(4)" }, { "db_id": "car_1", "query": "SELECT count(*) FROM CARS_DATA WHERE Cylinders > 4;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "Cylinders", ">", "4", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "cylinders", ">", "value" ], "question": "How many cars have more than 4 cylinders?", "question_toks": [ "how", "many", "car", "have", "more", "than", "4", "cylinder", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 4.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "cars", "have", "more", "than", "4", "cylinders", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "car" ], [ "have" ], [ "more" ], [ "than" ], [ "4" ], [ "cylinder" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "car", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "4", "CD" ], [ "cylinder", "NN" ], [ "?", "." ] ], "values": [ "4" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(5) A(0) C(14) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT count(*) FROM CARS_DATA WHERE YEAR = 1980;", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "YEAR", "=", "1980", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "year", "=", "value" ], "question": "how many cars were produced in 1980?", "question_toks": [ "how", "many", "car", "were", "produced", "in", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], 1980.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "how", "many", "cars", "were", "produced", "in", "1980", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "car" ], [ "were" ], [ "produced" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "car", "NN" ], [ "were", "VBD" ], [ "produced", "VBN" ], [ "in", "IN" ], [ "1980", "CD" ], [ "?", "." ] ], "values": [ "1980" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(2) A(0) C(19) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker WHERE T1.FullName = 'American Motor Company';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "WHERE", "T1.FullName", "=", "'American", "Motor", "Company", "'", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "where", "t1", ".", "fullname", "=", "value" ], "question": "How many car models were produced by the maker with full name American Motor Company?", "question_toks": [ "how", "many", "car", "model", "were", "produced", "by", "maker", "with", "full", "name", "american", "motor", "company", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "'American Motor Company'", null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "car", "models", "were", "produced", "by", "the", "maker", "with", "full", "name", "American", "Motor", "Company", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "car" ], [ "model" ], [ "were" ], [ "produced" ], [ "by" ], [ "maker" ], [ "with" ], [ "full", "name" ], [ "american" ], [ "motor" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "car", "NN" ], [ "model", "NN" ], [ "were", "VBD" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "maker", "NN" ], [ "with", "IN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "american", "JJ" ], [ "motor", "NN" ], [ "company", "NN" ], [ "?", "." ] ], "values": [ "American Motor Company", "america" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "car_1", "query": "SELECT T1.FullName , T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) > 3;", "query_toks": [ "SELECT", "T1.FullName", ",", "T1.Id", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "GROUP", "BY", "T1.Id", "HAVING", "count", "(", "*", ")", ">", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "fullname", ",", "t1", ".", "id", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which makers designed more than 3 car models? List full name and the id.", "question_toks": [ "which", "maker", "designed", "more", "than", "3", "car", "model", "?", "list", "full", "name", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Which", "makers", "designed", "more", "than", "3", "car", "models", "?", "List", "full", "name", "and", "the", "id", "." ], "question_arg": [ [ "which" ], [ "maker" ], [ "designed" ], [ "more" ], [ "than" ], [ "3" ], [ "car" ], [ "model" ], [ "?" ], [ "list" ], [ "full", "name" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "maker", "NN" ], [ "designed", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "car", "NN" ], [ "model", "NN" ], [ "?", "." ], [ "list", "JJ" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "3" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(5) T(2) Filter(0) Filter(18) A(0) C(5) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(3) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "car_1", "query": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500;", "query_toks": [ "SELECT", "DISTINCT", "T2.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Model", "=", "T2.Model", "JOIN", "CAR_MAKERS", "AS", "T3", "ON", "T2.Maker", "=", "T3.Id", "JOIN", "CARS_DATA", "AS", "T4", "ON", "T1.MakeId", "=", "T4.Id", "WHERE", "T3.FullName", "=", "'General", "Motors", "'", "OR", "T4.weight", ">", "3500", ";" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "model", "from", "car_names", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "model", "=", "t2", ".", "model", "join", "car_makers", "as", "t3", "on", "t2", ".", "maker", "=", "t3", ".", "id", "join", "cars_data", "as", "t4", "on", "t1", ".", "makeid", "=", "t4", ".", "id", "where", "t3", ".", "fullname", "=", "value", "or", "t4", ".", "weight", ">", "value" ], "question": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?", "question_toks": [ "which", "distinctive", "model", "are", "produced", "by", "maker", "with", "full", "name", "general", "motor", "or", "weighing", "more", "than", "3500", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "'General Motors'", null ], "or", [ false, 3, [ 0, [ 0, 21, false ], null ], 3500.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Which", "distinctive", "models", "are", "produced", "by", "maker", "with", "the", "full", "name", "General", "Motors", "or", "weighing", "more", "than", "3500", "?" ], "question_arg": [ [ "which" ], [ "distinctive" ], [ "model" ], [ "are" ], [ "produced" ], [ "by" ], [ "maker" ], [ "with" ], [ "full", "name" ], [ "general" ], [ "motor" ], [ "or" ], [ "weighing" ], [ "more" ], [ "than" ], [ "3500" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "distinctive", "JJ" ], [ "model", "NN" ], [ "are", "VBP" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "maker", "NN" ], [ "with", "IN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "general", "JJ" ], [ "motor", "NN" ], [ "or", "CC" ], [ "weighing", "VBG" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3500", "CD" ], [ "?", "." ] ], "values": [ "General Motors", "3500" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(10) T(3) Root(5) Sel(0) N(0) A(0) C(10) T(4) Filter(1) Filter(2) A(0) C(7) T(2) V(0) Filter(5) A(0) C(17) T(5) V(1)" }, { "db_id": "car_1", "query": "SELECT DISTINCT T1.Year FROM CARS_DATA AS T1 WHERE T1.Weight > 3000 AND T1.weight < 4000;", "query_toks": [ "SELECT", "DISTINCT", "T1.Year", "FROM", "CARS_DATA", "AS", "T1", "WHERE", "T1.Weight", ">", "3000", "AND", "T1.weight", "<", "4000", ";" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "year", "from", "cars_data", "as", "t1", "where", "t1", ".", "weight", ">", "value", "and", "t1", ".", "weight", "<", "value" ], "question": "In which years cars were produced weighing no less than 3000 and no more than 4000?", "question_toks": [ "in", "which", "year", "car", "were", "produced", "weighing", "no", "le", "than", "3000", "and", "no", "more", "than", "4000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 21, false ], null ], 3000.0, null ], "and", [ false, 4, [ 0, [ 0, 21, false ], null ], 4000.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "In", "which", "years", "cars", "were", "produced", "weighing", "no", "less", "than", "3000", "and", "no", "more", "than", "4000", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "year" ], [ "car" ], [ "were" ], [ "produced" ], [ "weighing" ], [ "no" ], [ "le" ], [ "than" ], [ "3000" ], [ "and" ], [ "no" ], [ "more" ], [ "than" ], [ "4000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "year", "NN" ], [ "car", "NN" ], [ "were", "VBD" ], [ "produced", "VBN" ], [ "weighing", "VBG" ], [ "no", "DT" ], [ "le", "NN" ], [ "than", "IN" ], [ "3000", "CD" ], [ "and", "CC" ], [ "no", "DT" ], [ "more", "JJR" ], [ "than", "IN" ], [ "4000", "CD" ], [ "?", "." ] ], "values": [ "3000", "4000" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(19) T(5) Filter(0) Filter(5) A(0) C(17) T(5) V(0) Filter(4) A(0) C(17) T(5) V(1)" }, { "db_id": "car_1", "query": "SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.horsepower", "FROM", "CARS_DATA", "AS", "T1", "ORDER", "BY", "T1.accelerate", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "horsepower", "from", "cars_data", "as", "t1", "order", "by", "t1", ".", "accelerate", "desc", "limit", "value" ], "question": "What is the horsepower of the car with the largest accelerate?", "question_toks": [ "what", "is", "horsepower", "of", "car", "with", "largest", "accelerate", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 22, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "horsepower", "of", "the", "car", "with", "the", "largest", "accelerate", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "horsepower" ], [ "of" ], [ "car" ], [ "with" ], [ "largest" ], [ "accelerate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "horsepower", "JJR" ], [ "of", "IN" ], [ "car", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "accelerate", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(16) T(5) Sup(0) A(0) C(18) T(5)" }, { "db_id": "car_1", "query": "SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T2.Model = 'volvo' ORDER BY T1.accelerate ASC LIMIT 1;", "query_toks": [ "SELECT", "T1.cylinders", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Id", "=", "T2.MakeId", "WHERE", "T2.Model", "=", "'volvo", "'", "ORDER", "BY", "T1.accelerate", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "cylinders", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "model", "=", "value", "order", "by", "t1", ".", "accelerate", "asc", "limit", "value" ], "question": "For model volvo, how many cylinders does the car with the least accelerate have?", "question_toks": [ "for", "model", "volvo", ",", "how", "many", "cylinder", "doe", "car", "with", "least", "accelerate", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 22, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "'volvo'", null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "For", "model", "volvo", ",", "how", "many", "cylinders", "does", "the", "car", "with", "the", "least", "accelerate", "have", "?" ], "question_arg": [ [ "for" ], [ "model" ], [ "volvo" ], [ "," ], [ "how" ], [ "many" ], [ "cylinder" ], [ "doe" ], [ "car" ], [ "with" ], [ "least" ], [ "accelerate" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "model", "NN" ], [ "volvo", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "cylinder", "VBP" ], [ "doe", "JJ" ], [ "car", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "accelerate", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "Volvo", "volvo" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(14) T(5) Sup(1) A(0) C(18) T(5) Filter(2) A(0) C(10) T(4) V(1)" }, { "db_id": "car_1", "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "Accelerate", ">", "(", "SELECT", "Accelerate", "FROM", "CARS_DATA", "ORDER", "BY", "Horsepower", "DESC", "LIMIT", "1", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "accelerate", ">", "(", "select", "accelerate", "from", "cars_data", "order", "by", "horsepower", "desc", "limit", "value", ")" ], "question": "How many cars have a larger accelerate than the car with the largest horsepower?", "question_toks": [ "how", "many", "car", "have", "a", "larger", "accelerate", "than", "car", "with", "largest", "horsepower", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 22, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "cars", "have", "a", "larger", "accelerate", "than", "the", "car", "with", "the", "largest", "horsepower", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "car" ], [ "have" ], [ "a" ], [ "larger" ], [ "accelerate" ], [ "than" ], [ "car" ], [ "with" ], [ "largest" ], [ "horsepower" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "car", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "larger", "JJR" ], [ "accelerate", "NN" ], [ "than", "IN" ], [ "car", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "horsepower", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(13) A(0) C(18) T(5) Root(2) Sel(0) N(0) A(0) C(18) T(5) Sup(0) A(0) C(16) T(5)" }, { "db_id": "car_1", "query": "SELECT COUNT(*) FROM ( SELECT T1.CountryId , COUNT(*) FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING count(*) > 2 ) as sub;", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "(", "SELECT", "T1.CountryId", ",", "COUNT", "(", "*", ")", "FROM", "COUNTRIES", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.CountryId", "=", "T2.Country", "GROUP", "BY", "T1.CountryId", "HAVING", "count", "(", "*", ")", ">", "2", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "t1", ".", "countryid", ",", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "value", ")" ], "question": "How many countries has more than 2 car makers?", "question_toks": [ "how", "many", "country", "ha", "more", "than", "2", "car", "maker", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "sql", { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] } ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "countries", "has", "more", "than", "2", "car", "makers", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "country" ], [ "ha" ], [ "more" ], [ "than" ], [ "2" ], [ "car", "maker" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "country", "NN" ], [ "ha", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "car", "NN" ], [ "maker", "NN" ], [ "?", "." ] ], "values": [ "2" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "car_1", "query": "SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6;", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "Cylinders", ">", "6", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cars_data", "where", "cylinders", ">", "value" ], "question": "How many cars has over 6 cylinders?", "question_toks": [ "how", "many", "car", "ha", "over", "6", "cylinder", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 6.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "How", "many", "cars", "has", "over", "6", "cylinders", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "car" ], [ "ha" ], [ "over" ], [ "6" ], [ "cylinder" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "car", "NN" ], [ "ha", "NN" ], [ "over", "IN" ], [ "6", "CD" ], [ "cylinder", "NN" ], [ "?", "." ] ], "values": [ "6" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(5) A(0) C(14) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1;", "query_toks": [ "SELECT", "T1.Model", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T2.Cylinders", "=", "4", "ORDER", "BY", "T2.horsepower", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value" ], "question": "For the cars with 4 cylinders, which model has the largest horsepower?", "question_toks": [ "for", "car", "with", "4", "cylinder", ",", "which", "model", "ha", "largest", "horsepower", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 4.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "For", "the", "cars", "with", "4", "cylinders", ",", "which", "model", "has", "the", "largest", "horsepower", "?" ], "question_arg": [ [ "for" ], [ "car" ], [ "with" ], [ "4" ], [ "cylinder" ], [ "," ], [ "which" ], [ "model" ], [ "ha" ], [ "largest" ], [ "horsepower" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "car", "NN" ], [ "with", "IN" ], [ "4", "CD" ], [ "cylinder", "NN" ], [ ",", "," ], [ "which", "WDT" ], [ "model", "VBP" ], [ "ha", "RB" ], [ "largest", "JJS" ], [ "horsepower", "NN" ], [ "?", "." ] ], "values": [ "4" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(4) Sup(0) A(0) C(16) T(5) Filter(2) A(0) C(14) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT T2.MakeId , T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3;", "query_toks": [ "SELECT", "T2.MakeId", ",", "T2.Make", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Id", "=", "T2.MakeId", "WHERE", "T1.Horsepower", ">", "(", "SELECT", "min", "(", "Horsepower", ")", "FROM", "CARS_DATA", ")", "AND", "T1.Cylinders", "<", "=", "3", ";" ], "query_toks_no_value": [ "select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")", "and", "t1", ".", "cylinders", "<", "=", "value" ], "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "question_toks": [ "among", "car", "with", "more", "than", "lowest", "horsepower", ",", "which", "one", "do", "not", "have", "more", "than", "3", "cylinder", "?", "list", "car", "makeid", "and", "make", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 20, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, null ], "and", [ false, 6, [ 0, [ 0, 18, false ], null ], 3.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Among", "the", "cars", "with", "more", "than", "lowest", "horsepower", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "and", "make", "name", "." ], "question_arg": [ [ "among" ], [ "car" ], [ "with" ], [ "more" ], [ "than" ], [ "lowest" ], [ "horsepower" ], [ "," ], [ "which" ], [ "one" ], [ "do" ], [ "not" ], [ "have" ], [ "more" ], [ "than" ], [ "3" ], [ "cylinder" ], [ "?" ], [ "list" ], [ "car" ], [ "makeid" ], [ "and" ], [ "make" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "among", "IN" ], [ "car", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "lowest", "JJS" ], [ "horsepower", "NN" ], [ ",", "," ], [ "which", "WDT" ], [ "one", "CD" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "cylinder", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "car", "NN" ], [ "makeid", "NN" ], [ "and", "CC" ], [ "make", "VB" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "3" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(4) A(0) C(12) T(4) Filter(0) Filter(13) A(0) C(16) T(5) Root(5) Sel(0) N(0) A(2) C(16) T(5) Filter(6) A(0) C(14) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT T2.MakeId , T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders < 4;", "query_toks": [ "SELECT", "T2.MakeId", ",", "T2.Make", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Id", "=", "T2.MakeId", "WHERE", "T1.Horsepower", ">", "(", "SELECT", "min", "(", "Horsepower", ")", "FROM", "CARS_DATA", ")", "AND", "T1.Cylinders", "<", "4", ";" ], "query_toks_no_value": [ "select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")", "and", "t1", ".", "cylinders", "<", "value" ], "question": "Among the cars that do not have the minimum horsepower, what are the make ids and names of al those with less than 4 cylinders?", "question_toks": [ "among", "car", "that", "do", "not", "have", "minimum", "horsepower", ",", "what", "are", "make", "id", "and", "name", "of", "al", "those", "with", "le", "than", "4", "cylinder", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 20, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, null ], "and", [ false, 4, [ 0, [ 0, 18, false ], null ], 4.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Among", "the", "cars", "that", "do", "not", "have", "the", "minimum", "horsepower", ",", "what", "are", "the", "make", "ids", "and", "names", "of", "al", "those", "with", "less", "than", "4", "cylinders", "?" ], "question_arg": [ [ "among" ], [ "car" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "minimum" ], [ "horsepower" ], [ "," ], [ "what" ], [ "are" ], [ "make", "id" ], [ "and" ], [ "name" ], [ "of" ], [ "al" ], [ "those" ], [ "with" ], [ "le" ], [ "than" ], [ "4" ], [ "cylinder" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "among", "IN" ], [ "car", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "minimum", "JJ" ], [ "horsepower", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "make", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "al", "NNS" ], [ "those", "DT" ], [ "with", "IN" ], [ "le", "JJR" ], [ "than", "IN" ], [ "4", "CD" ], [ "cylinder", "NN" ], [ "?", "." ] ], "values": [ "4" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(4) A(0) C(12) T(4) Filter(0) Filter(13) A(0) C(16) T(5) Root(5) Sel(0) N(0) A(2) C(16) T(5) Filter(4) A(0) C(14) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT mpg FROM CARS_DATA WHERE Cylinders = 8 OR YEAR < 1980 ORDER BY mpg DESC LIMIT 1;", "query_toks": [ "SELECT", "mpg", "FROM", "CARS_DATA", "WHERE", "Cylinders", "=", "8", "OR", "YEAR", "<", "1980", "ORDER", "BY", "mpg", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "mpg", "from", "cars_data", "where", "cylinders", "=", "value", "or", "year", "<", "value", "order", "by", "mpg", "desc", "limit", "value" ], "question": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980?", "question_toks": [ "what", "is", "maximum", "mile", "per", "gallon", "of", "car", "with", "8", "cylinder", "or", "produced", "before", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], 8.0, null ], "or", [ false, 4, [ 0, [ 0, 23, false ], null ], 1980.0, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "maximum", "miles", "per", "gallon", "of", "the", "car", "with", "8", "cylinders", "or", "produced", "before", "1980", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "mile" ], [ "per" ], [ "gallon" ], [ "of" ], [ "car" ], [ "with" ], [ "8" ], [ "cylinder" ], [ "or" ], [ "produced" ], [ "before" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "mile", "JJ" ], [ "per", "IN" ], [ "gallon", "NN" ], [ "of", "IN" ], [ "car", "NN" ], [ "with", "IN" ], [ "8", "CD" ], [ "cylinder", "NN" ], [ "or", "CC" ], [ "produced", "VBN" ], [ "before", "IN" ], [ "1980", "CD" ], [ "?", "." ] ], "values": [ "1980", "8" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(5) Sup(0) A(0) C(13) T(5) Filter(1) Filter(2) A(0) C(14) T(5) V(1) Filter(4) A(0) C(19) T(5) V(0)" }, { "db_id": "car_1", "query": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName != 'Ford Motor Company';", "query_toks": [ "SELECT", "DISTINCT", "T1.model", "FROM", "MODEL_LIST", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1.Model", "=", "T2.Model", "JOIN", "CARS_DATA", "AS", "T3", "ON", "T2.MakeId", "=", "T3.Id", "JOIN", "CAR_MAKERS", "AS", "T4", "ON", "T1.Maker", "=", "T4.Id", "WHERE", "T3.weight", "<", "3500", "AND", "T4.FullName", "!", "=", "'Ford", "Motor", "Company", "'", ";" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "model", "from", "model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "model", "=", "t2", ".", "model", "join", "cars_data", "as", "t3", "on", "t2", ".", "makeid", "=", "t3", ".", "id", "join", "car_makers", "as", "t4", "on", "t1", ".", "maker", "=", "t4", ".", "id", "where", "t3", ".", "weight", "<", "value", "and", "t4", ".", "fullname", "!", "=", "value" ], "question": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?", "question_toks": [ "which", "model", "are", "lighter", "than", "3500", "but", "not", "built", "by", "'", "ford", "motor", "company", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 4, [ 0, [ 0, 21, false ], null ], 3500.0, null ], "and", [ false, 7, [ 0, [ 0, 8, false ], null ], "'Ford Motor Company'", null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Which", "models", "are", "lighter", "than", "3500", "but", "not", "built", "by", "the", "'Ford", "Motor", "Company", "'", "?" ], "question_arg": [ [ "which" ], [ "model" ], [ "are" ], [ "lighter" ], [ "than" ], [ "3500" ], [ "but" ], [ "not" ], [ "built" ], [ "by" ], [ "'" ], [ "ford" ], [ "motor" ], [ "company" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "model", "NN" ], [ "are", "VBP" ], [ "lighter", "JJR" ], [ "than", "IN" ], [ "3500", "CD" ], [ "but", "CC" ], [ "not", "RB" ], [ "built", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "ford", "NN" ], [ "motor", "NN" ], [ "company", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "3500", "ford", "Ford Motor Company" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(10) T(3) Root(5) Sel(0) N(0) A(0) C(10) T(4) Filter(0) Filter(4) A(0) C(17) T(5) V(0) Filter(3) A(0) C(7) T(2) V(2)" }, { "db_id": "car_1", "query": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country;", "query_toks": [ "SELECT", "CountryName", "FROM", "countries", "EXCEPT", "SELECT", "T1.CountryName", "FROM", "countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.countryId", "=", "T2.Country", ";" ], "query_toks_no_value": [ "select", "countryname", "from", "countries", "except", "select", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country" ], "question": "What are the name of the countries where there is not a single car maker?", "question_toks": [ "what", "are", "name", "of", "country", "where", "there", "is", "not", "a", "single", "car", "maker", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "name", "of", "the", "countries", "where", "there", "is", "not", "a", "single", "car", "maker", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "country" ], [ "where" ], [ "there" ], [ "is" ], [ "not" ], [ "a" ], [ "single" ], [ "car", "maker" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "where", "WRB" ], [ "there", "EX" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "a", "DT" ], [ "single", "JJ" ], [ "car", "NN" ], [ "maker", "NN" ], [ "?", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(4) T(1) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(2)" }, { "db_id": "car_1", "query": "SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING count(*) >= 2 INTERSECT SELECT T1.Id , T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id, T1.Maker HAVING count(*) > 3;", "query_toks": [ "SELECT", "T1.Id", ",", "T1.Maker", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "GROUP", "BY", "T1.Id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "INTERSECT", "SELECT", "T1.Id", ",", "T1.Maker", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "JOIN", "CAR_NAMES", "AS", "T3", "ON", "T2.model", "=", "T3.model", "GROUP", "BY", "T1.Id", "HAVING", "count", "(", "*", ")", ">", "3", ";" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "maker", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value", "intersect", "select", "t1", ".", "id", ",", "t1", ".", "maker", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "join", "car_names", "as", "t3", "on", "t2", ".", "model", "=", "t3", ".", "model", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which are the car makers which produce at least 2 models and more than 3 car makes? List the id and the maker.", "question_toks": [ "which", "are", "car", "maker", "which", "produce", "at", "least", "2", "model", "and", "more", "than", "3", "car", "make", "?", "list", "id", "and", "maker", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "Which", "are", "the", "car", "makers", "which", "produce", "at", "least", "2", "models", "and", "more", "than", "3", "car", "makes", "?", "List", "the", "id", "and", "the", "maker", "." ], "question_arg": [ [ "which" ], [ "are" ], [ "car", "maker" ], [ "which" ], [ "produce" ], [ "at" ], [ "least" ], [ "2" ], [ "model" ], [ "and" ], [ "more" ], [ "than" ], [ "3" ], [ "car" ], [ "make" ], [ "?" ], [ "list" ], [ "id" ], [ "and" ], [ "maker" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "are", "VBP" ], [ "car", "NN" ], [ "maker", "NN" ], [ "which", "WDT" ], [ "produce", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "model", "NN" ], [ "and", "CC" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "car", "NN" ], [ "make", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "maker", "NN" ], [ ".", "." ] ], "values": [ "3", "2" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(5) T(2) A(0) C(6) T(2) Filter(0) Filter(18) A(0) C(5) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(3) Filter(7) A(3) C(0) T(3) V(1) Root(3) Sel(0) N(1) A(0) C(5) T(2) A(0) C(6) T(2) Filter(0) Filter(18) A(0) C(5) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(3) Filter(5) A(3) C(0) T(3) V(0)" }, { "db_id": "car_1", "query": "SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING count(*) > 3 UNION SELECT T1.countryId , T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat';", "query_toks": [ "SELECT", "T1.countryId", ",", "T1.CountryName", "FROM", "Countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.CountryId", "=", "T2.Country", "GROUP", "BY", "T1.countryId", "HAVING", "count", "(", "*", ")", ">", "3", "UNION", "SELECT", "T1.countryId", ",", "T1.CountryName", "FROM", "Countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.CountryId", "=", "T2.Country", "JOIN", "MODEL_LIST", "AS", "T3", "ON", "T2.Id", "=", "T3.Maker", "WHERE", "T3.Model", "=", "'fiat", "'", ";" ], "query_toks_no_value": [ "select", "t1", ".", "countryid", ",", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "countryid", ",", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "join", "model_list", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "maker", "where", "t3", ".", "model", "=", "value" ], "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": [ "what", "are", "id", "and", "name", "of", "country", "which", "have", "more", "than", "3", "car", "maker", "or", "produce", "'", "fiat", "'", "model", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "'fiat'", null ] ] }, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "cont id", "continent", "country id", "country name", "continent", "id", "maker", "full name", "country", "model id", "maker", "model", "make id", "model", "make", "id", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "table_names": [ "continents", "countries", "car makers", "model list", "car names", "cars data" ], "col_set": [ "*", "cont id", "continent", "country id", "country name", "id", "maker", "full name", "country", "model id", "model", "make id", "make", "mpg", "cylinders", "edispl", "horsepower", "weight", "accelerate", "year" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 ], "keys": { "5": 1, "1": 1, "9": 3, "3": 3, "11": 6, "6": 6, "14": 12, "12": 14, "16": 16, "13": 13, "10": 10 }, "origin_question_toks": [ "What", "are", "the", "id", "and", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'fiat", "'", "model", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "country" ], [ "which" ], [ "have" ], [ "more" ], [ "than" ], [ "3" ], [ "car", "maker" ], [ "or" ], [ "produce" ], [ "'" ], [ "fiat" ], [ "'" ], [ "model" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "car", "NN" ], [ "maker", "NN" ], [ "or", "CC" ], [ "produce", "NN" ], [ "'", "''" ], [ "fiat", "NN" ], [ "'", "''" ], [ "model", "NN" ], [ "?", "." ] ], "values": [ "Fiat", "3", "fiat" ], "all_values_found": true, "rule_label": "Root1(1) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(4) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(2) Filter(5) A(3) C(0) T(2) V(1) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(4) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(10) T(3) V(2)" }, { "db_id": "flight_2", "query": "SELECT Country FROM AIRLINES WHERE Airline = 'JetBlue Airways'", "query_toks": [ "SELECT", "Country", "FROM", "AIRLINES", "WHERE", "Airline", "=", "``", "JetBlue", "Airways", "''" ], "query_toks_no_value": [ "select", "country", "from", "airlines", "where", "airline", "=", "value" ], "question": "Which country does Airline 'JetBlue Airways' belong to?", "question_toks": [ "which", "country", "doe", "airline", "'", "jetblue", "airway", "'", "belong", "to", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'JetBlue Airways'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Which", "country", "does", "Airline", "``", "JetBlue", "Airways", "''", "belong", "to", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "doe" ], [ "airline" ], [ "'" ], [ "jetblue" ], [ "airway" ], [ "'" ], [ "belong" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "doe", "VBZ" ], [ "airline", "NN" ], [ "'", "''" ], [ "jetblue", "JJ" ], [ "airway", "NN" ], [ "'", "''" ], [ "belong", "NN" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "JetBlue", "JetBlue Airways" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "flight_2", "query": "SELECT Abbreviation FROM AIRLINES WHERE Airline = 'JetBlue Airways'", "query_toks": [ "SELECT", "Abbreviation", "FROM", "AIRLINES", "WHERE", "Airline", "=", "``", "JetBlue", "Airways", "''" ], "query_toks_no_value": [ "select", "abbreviation", "from", "airlines", "where", "airline", "=", "value" ], "question": "What is the abbreviation of Airline 'JetBlue Airways'?", "question_toks": [ "what", "is", "abbreviation", "of", "airline", "'", "jetblue", "airway", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'JetBlue Airways'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "abbreviation", "of", "Airline", "``", "JetBlue", "Airways", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "abbreviation" ], [ "of" ], [ "airline" ], [ "'" ], [ "jetblue" ], [ "airway" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "abbreviation", "NN" ], [ "of", "IN" ], [ "airline", "NN" ], [ "'", "''" ], [ "jetblue", "JJ" ], [ "airway", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "JetBlue Airways", "JetBlue" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "flight_2", "query": "SELECT Airline , Abbreviation FROM AIRLINES WHERE Country = 'USA'", "query_toks": [ "SELECT", "Airline", ",", "Abbreviation", "FROM", "AIRLINES", "WHERE", "Country", "=", "``", "USA", "''" ], "query_toks_no_value": [ "select", "airline", ",", "abbreviation", "from", "airlines", "where", "country", "=", "value" ], "question": "List all airline names and their abbreviations in 'USA'.", "question_toks": [ "list", "all", "airline", "name", "and", "their", "abbreviation", "in", "'", "usa", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "'USA'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "List", "all", "airline", "names", "and", "their", "abbreviations", "in", "``", "USA", "''", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "airline", "name" ], [ "and" ], [ "their" ], [ "abbreviation" ], [ "in" ], [ "'" ], [ "usa" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "airline", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "abbreviation", "NN" ], [ "in", "IN" ], [ "'", "''" ], [ "usa", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "USA", "US", "United States ", "Ames" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "flight_2", "query": "SELECT AirportCode , AirportName FROM AIRPORTS WHERE city = 'Anthony'", "query_toks": [ "SELECT", "AirportCode", ",", "AirportName", "FROM", "AIRPORTS", "WHERE", "city", "=", "``", "Anthony", "''" ], "query_toks_no_value": [ "select", "airportcode", ",", "airportname", "from", "airports", "where", "city", "=", "value" ], "question": "List the airport code and name in the city of Anthony.", "question_toks": [ "list", "airport", "code", "and", "name", "in", "city", "of", "anthony", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'Anthony'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "List", "the", "airport", "code", "and", "name", "in", "the", "city", "of", "Anthony", "." ], "question_arg": [ [ "list" ], [ "airport", "code" ], [ "and" ], [ "name" ], [ "in" ], [ "city" ], [ "of" ], [ "anthony" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "airport", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "in", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "anthony", "NN" ], [ ".", "." ] ], "values": [ "Anthony ", "Anthony" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(1) A(0) C(7) T(1) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRLINES", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRLINES" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines" ], "question": "How many airlines do we have?", "question_toks": [ "how", "many", "airline", "do", "we", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "airlines", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "airline" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "airline", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRPORTS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRPORTS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airports" ], "question": "How many airports do we have?", "question_toks": [ "how", "many", "airport", "do", "we", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "airports", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "airport" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "airport", "RB" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights" ], "question": "How many flights do we have?", "question_toks": [ "how", "many", "flight", "do", "we", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "flights", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "flight" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "flight", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "flight_2", "query": "SELECT Airline FROM AIRLINES WHERE Abbreviation = 'UAL'", "query_toks": [ "SELECT", "Airline", "FROM", "AIRLINES", "WHERE", "Abbreviation", "=", "``", "UAL", "''" ], "query_toks_no_value": [ "select", "airline", "from", "airlines", "where", "abbreviation", "=", "value" ], "question": "Which airline has abbreviation 'UAL'?", "question_toks": [ "which", "airline", "ha", "abbreviation", "'", "ual", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "'UAL'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Which", "airline", "has", "abbreviation", "'UAL", "'", "?" ], "question_arg": [ [ "which" ], [ "airline" ], [ "ha" ], [ "abbreviation" ], [ "'" ], [ "ual" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "airline", "NN" ], [ "ha", "NN" ], [ "abbreviation", "NN" ], [ "'", "POS" ], [ "ual", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "UAL" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRLINES WHERE Country = 'USA'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "WHERE", "Country", "=", "``", "USA", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "where", "country", "=", "value" ], "question": "How many airlines are from USA?", "question_toks": [ "how", "many", "airline", "are", "from", "usa", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "'USA'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "airlines", "are", "from", "USA", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "airline" ], [ "are" ], [ "from" ], [ "usa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "airline", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "usa", "JJ" ], [ "?", "." ] ], "values": [ "United States ", "USA", "US" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "flight_2", "query": "SELECT City , Country FROM AIRPORTS WHERE AirportName = 'Alton'", "query_toks": [ "SELECT", "City", ",", "Country", "FROM", "AIRPORTS", "WHERE", "AirportName", "=", "``", "Alton", "''" ], "query_toks_no_value": [ "select", "city", ",", "country", "from", "airports", "where", "airportname", "=", "value" ], "question": "Which city and country is the Alton airport at?", "question_toks": [ "which", "city", "and", "country", "is", "alton", "airport", "at", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "'Alton'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Which", "city", "and", "country", "is", "the", "Alton", "airport", "at", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "and" ], [ "country" ], [ "is" ], [ "alton" ], [ "airport" ], [ "at" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "and", "CC" ], [ "country", "NN" ], [ "is", "VBZ" ], [ "alton", "JJ" ], [ "airport", "NN" ], [ "at", "IN" ], [ "?", "." ] ], "values": [ "Afton", "Alton ", "Alton" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(4) T(1) Filter(2) A(0) C(7) T(1) V(2)" }, { "db_id": "flight_2", "query": "SELECT AirportName FROM AIRPORTS WHERE AirportCode = 'AKO'", "query_toks": [ "SELECT", "AirportName", "FROM", "AIRPORTS", "WHERE", "AirportCode", "=", "``", "AKO", "''" ], "query_toks_no_value": [ "select", "airportname", "from", "airports", "where", "airportcode", "=", "value" ], "question": "What is the airport name for airport 'AKO'?", "question_toks": [ "what", "is", "airport", "name", "for", "airport", "'", "ako", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "'AKO'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "airport", "name", "for", "airport", "'AKO", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "airport", "name" ], [ "for" ], [ "airport" ], [ "'" ], [ "ako" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "airport", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "airport", "NN" ], [ "'", "''" ], [ "ako", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "AKO" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "flight_2", "query": "SELECT AirportName FROM AIRPORTS WHERE City = 'Aberdeen'", "query_toks": [ "SELECT", "AirportName", "FROM", "AIRPORTS", "WHERE", "City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "airportname", "from", "airports", "where", "city", "=", "value" ], "question": "What are airport names at City 'Aberdeen'?", "question_toks": [ "what", "are", "airport", "name", "at", "city", "'", "aberdeen", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'Aberdeen'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "airport", "names", "at", "City", "'Aberdeen", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "airport", "name" ], [ "at" ], [ "city" ], [ "'" ], [ "aberdeen" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "airport", "JJ" ], [ "name", "NN" ], [ "at", "IN" ], [ "city", "NN" ], [ "'", "''" ], [ "aberdeen", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Ames", "Aberdeen" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS WHERE SourceAirport = 'APG'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "WHERE", "SourceAirport", "=", "``", "APG", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "where", "sourceairport", "=", "value" ], "question": "How many flights depart from 'APG'?", "question_toks": [ "how", "many", "flight", "depart", "from", "'", "apg", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "'APG'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "flights", "depart", "from", "'APG", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "flight" ], [ "depart" ], [ "from" ], [ "'" ], [ "apg" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "flight", "NN" ], [ "depart", "NN" ], [ "from", "IN" ], [ "'", "''" ], [ "apg", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "APG" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS WHERE DestAirport = 'ATO'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "WHERE", "DestAirport", "=", "``", "ATO", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "where", "destairport", "=", "value" ], "question": "How many flights have destination ATO?", "question_toks": [ "how", "many", "flight", "have", "destination", "ato", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "'ATO'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "flights", "have", "destination", "ATO", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "flight" ], [ "have" ], [ "destination" ], [ "ato" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "flight", "NN" ], [ "have", "VBP" ], [ "destination", "NN" ], [ "ato", "NN" ], [ "?", "." ] ], "values": [ "ATO" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.SourceAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value" ], "question": "How many flights depart from City Aberdeen?", "question_toks": [ "how", "many", "flight", "depart", "from", "city", "aberdeen", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'Aberdeen'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "flights", "depart", "from", "City", "Aberdeen", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "flight" ], [ "depart" ], [ "from" ], [ "city" ], [ "aberdeen" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "city" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "flight", "NN" ], [ "depart", "NN" ], [ "from", "IN" ], [ "city", "NN" ], [ "aberdeen", "NN" ], [ "?", "." ] ], "values": [ "Aberdeen" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value" ], "question": "How many flights arriving in Aberdeen city?", "question_toks": [ "how", "many", "flight", "arriving", "in", "aberdeen", "city", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'Aberdeen'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "flights", "arriving", "in", "Aberdeen", "city", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "flight" ], [ "arriving" ], [ "in" ], [ "aberdeen" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "flight", "NN" ], [ "arriving", "VBG" ], [ "in", "IN" ], [ "aberdeen", "JJ" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "Aberdeen" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = 'Ashley' AND T3.City = 'Aberdeen'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "JOIN", "AIRPORTS", "AS", "T3", "ON", "T1.SourceAirport", "=", "T3.AirportCode", "WHERE", "T2.City", "=", "``", "Ashley", "''", "AND", "T3.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "join", "airports", "as", "t3", "on", "t1", ".", "sourceairport", "=", "t3", ".", "airportcode", "where", "t2", ".", "city", "=", "value", "and", "t3", ".", "city", "=", "value" ], "question": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?", "question_toks": [ "how", "many", "flight", "depart", "from", "city", "'", "aberdeen", "'", "and", "have", "destination", "city", "'", "ashley", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'Ashley'", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "'Aberdeen'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "flights", "depart", "from", "City", "'Aberdeen", "'", "and", "have", "destination", "City", "'Ashley", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "flight" ], [ "depart" ], [ "from" ], [ "city" ], [ "'" ], [ "aberdeen" ], [ "'" ], [ "and" ], [ "have" ], [ "destination" ], [ "city" ], [ "'" ], [ "ashley" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "flight", "NN" ], [ "depart", "NN" ], [ "from", "IN" ], [ "city", "NN" ], [ "'", "POS" ], [ "aberdeen", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "have", "VBP" ], [ "destination", "VBN" ], [ "city", "NN" ], [ "'", "''" ], [ "ashley", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Aberdeen", "Ashley" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(2) A(0) C(5) T(1) V(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline = T2.uid WHERE T2.Airline = 'JetBlue Airways'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T1.Airline", "=", "T2.uid", "WHERE", "T2.Airline", "=", "``", "JetBlue", "Airways", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t1", ".", "airline", "=", "t2", ".", "uid", "where", "t2", ".", "airline", "=", "value" ], "question": "How many flights does airline 'JetBlue Airways' have?", "question_toks": [ "how", "many", "flight", "doe", "airline", "'", "jetblue", "airway", "'", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'JetBlue Airways'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "flights", "does", "airline", "'JetBlue", "Airways", "'", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "flight" ], [ "doe" ], [ "airline" ], [ "'" ], [ "jetblue" ], [ "airway" ], [ "'" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "flight", "NN" ], [ "doe", "NNS" ], [ "airline", "NN" ], [ "'", "''" ], [ "jetblue", "JJ" ], [ "airway", "NN" ], [ "'", "POS" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "JetBlue Airways", "JetBlue" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.DestAirport = 'ASY'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.DestAirport", "=", "``", "ASY", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "destairport", "=", "value" ], "question": "How many 'United Airlines' flights go to Airport 'ASY'?", "question_toks": [ "how", "many", "'", "united", "airline", "'", "flight", "go", "to", "airport", "'", "asy", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'United Airlines'", null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "'ASY'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "'United", "Airlines", "'", "flights", "go", "to", "Airport", "'ASY", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "'" ], [ "united" ], [ "airline" ], [ "'" ], [ "flight" ], [ "go" ], [ "to" ], [ "airport" ], [ "'" ], [ "asy" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "'", "POS" ], [ "united", "JJ" ], [ "airline", "NN" ], [ "'", "''" ], [ "flight", "NN" ], [ "go", "VBP" ], [ "to", "TO" ], [ "airport", "VB" ], [ "'", "''" ], [ "asy", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "United Airlines", "ASY" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(12) T(2) V(1)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = 'United Airlines' AND T2.SourceAirport = 'AHD'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.SourceAirport", "=", "``", "AHD", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "sourceairport", "=", "value" ], "question": "How many 'United Airlines' flights depart from Airport 'AHD'?", "question_toks": [ "how", "many", "'", "united", "airline", "'", "flight", "depart", "from", "airport", "'", "ahd", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'United Airlines'", null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], "'AHD'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "'United", "Airlines", "'", "flights", "depart", "from", "Airport", "'AHD", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "'" ], [ "united" ], [ "airline" ], [ "'" ], [ "flight" ], [ "depart" ], [ "from" ], [ "airport" ], [ "'" ], [ "ahd" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "'", "POS" ], [ "united", "JJ" ], [ "airline", "NN" ], [ "'", "''" ], [ "flight", "NN" ], [ "depart", "NN" ], [ "from", "IN" ], [ "airport", "NN" ], [ "'", "''" ], [ "ahd", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "United Airlines", "AHD", " AHD" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(11) T(2) V(1)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = 'Aberdeen' AND T3.Airline = 'United Airlines'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "JOIN", "AIRLINES", "AS", "T3", "ON", "T3.uid", "=", "T1.Airline", "WHERE", "T2.City", "=", "``", "Aberdeen", "''", "AND", "T3.Airline", "=", "``", "United", "Airlines", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "join", "airlines", "as", "t3", "on", "t3", ".", "uid", "=", "t1", ".", "airline", "where", "t2", ".", "city", "=", "value", "and", "t3", ".", "airline", "=", "value" ], "question": "How many United Airlines flights go to City 'Aberdeen'?", "question_toks": [ "how", "many", "united", "airline", "flight", "go", "to", "city", "'", "aberdeen", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'Aberdeen'", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "'United Airlines'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "How", "many", "United", "Airlines", "flights", "go", "to", "City", "'Aberdeen", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "united" ], [ "airline" ], [ "flight" ], [ "go" ], [ "to" ], [ "city" ], [ "'" ], [ "aberdeen" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "united", "JJ" ], [ "airline", "NN" ], [ "flight", "NN" ], [ "go", "VBP" ], [ "to", "TO" ], [ "city", "NN" ], [ "'", "''" ], [ "aberdeen", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "United Airlines", "Aberdeen" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(2) A(0) C(5) T(1) V(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "flight_2", "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.City", "FROM", "AIRPORTS", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.AirportCode", "=", "T2.DestAirport", "GROUP", "BY", "T1.City", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "airports", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "airportcode", "=", "t2", ".", "destairport", "group", "by", "t1", ".", "city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which city has most number of arriving flights?", "question_toks": [ "which", "city", "ha", "most", "number", "of", "arriving", "flight", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Which", "city", "has", "most", "number", "of", "arriving", "flights", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "arriving" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "arriving", "VBG" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(5) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(12) T(2)" }, { "db_id": "flight_2", "query": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.City", "FROM", "AIRPORTS", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.AirportCode", "=", "T2.SourceAirport", "GROUP", "BY", "T1.City", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "city", "from", "airports", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "airportcode", "=", "t2", ".", "sourceairport", "group", "by", "t1", ".", "city", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which city has most number of departing flights?", "question_toks": [ "which", "city", "ha", "most", "number", "of", "departing", "flight", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Which", "city", "has", "most", "number", "of", "departing", "flights", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "departing" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "departing", "VBG" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(5) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(11) T(2)" }, { "db_id": "flight_2", "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.AirportCode", "FROM", "AIRPORTS", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.AirportCode", "=", "T2.DestAirport", "OR", "T1.AirportCode", "=", "T2.SourceAirport", "GROUP", "BY", "T1.AirportCode", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "airportcode", "from", "airports", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "airportcode", "=", "t2", ".", "destairport", "or", "t1", ".", "airportcode", "=", "t2", ".", "sourceairport", "group", "by", "t1", ".", "airportcode", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the code of airport that has the highest number of flights?", "question_toks": [ "what", "is", "code", "of", "airport", "that", "ha", "highest", "number", "of", "flight", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "code", "of", "airport", "that", "has", "the", "highest", "number", "of", "flights", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "code" ], [ "of" ], [ "airport" ], [ "that" ], [ "ha" ], [ "highest" ], [ "number" ], [ "of" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "code", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(12) T(2)" }, { "db_id": "flight_2", "query": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T1.AirportCode", "FROM", "AIRPORTS", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.AirportCode", "=", "T2.DestAirport", "OR", "T1.AirportCode", "=", "T2.SourceAirport", "GROUP", "BY", "T1.AirportCode", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "airportcode", "from", "airports", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "airportcode", "=", "t2", ".", "destairport", "or", "t1", ".", "airportcode", "=", "t2", ".", "sourceairport", "group", "by", "t1", ".", "airportcode", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "What is the code of airport that has fewest number of flights?", "question_toks": [ "what", "is", "code", "of", "airport", "that", "ha", "fewest", "number", "of", "flight", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "is", "the", "code", "of", "airport", "that", "has", "fewest", "number", "of", "flights", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "code" ], [ "of" ], [ "airport" ], [ "that" ], [ "ha" ], [ "fewest" ], [ "number" ], [ "of" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "code", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "fewest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(1) Sup(1) A(3) C(0) T(2) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(12) T(2)" }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which airline has most number of flights?", "question_toks": [ "which", "airline", "ha", "most", "number", "of", "flight", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Which", "airline", "has", "most", "number", "of", "flights", "?" ], "question_arg": [ [ "which" ], [ "airline" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "airline", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(9) T(2)" }, { "db_id": "flight_2", "query": "SELECT T1.Abbreviation , T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Abbreviation , T1.Country ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "T1.Abbreviation", ",", "T1.Country", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Abbreviation", "T1.Country", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "abbreviation", ",", "t1", ".", "country", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "abbreviation", "t1", ".", "country", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Find the abbreviation and country of the airline that has fewest number of flights?", "question_toks": [ "find", "abbreviation", "and", "country", "of", "airline", "that", "ha", "fewest", "number", "of", "flight", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 3, false ], [ 0, 4, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Find", "the", "abbreviation", "and", "country", "of", "the", "airline", "that", "has", "fewest", "number", "of", "flights", "?" ], "question_arg": [ [ "find" ], [ "abbreviation" ], [ "and" ], [ "country" ], [ "of" ], [ "airline" ], [ "that" ], [ "ha" ], [ "fewest" ], [ "number" ], [ "of" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "abbreviation", "NN" ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "airline", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "fewest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Sup(1) A(3) C(0) T(2) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(9) T(2)" }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'AHD'", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "AHD", "''" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value" ], "question": "What are airlines that have some flight departing from airport 'AHD'?", "question_toks": [ "what", "are", "airline", "that", "have", "some", "flight", "departing", "from", "airport", "'", "ahd", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "'AHD'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "airlines", "that", "have", "some", "flight", "departing", "from", "airport", "'AHD", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "airline" ], [ "that" ], [ "have" ], [ "some" ], [ "flight" ], [ "departing" ], [ "from" ], [ "airport" ], [ "'" ], [ "ahd" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "airline", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "some", "DT" ], [ "flight", "NN" ], [ "departing", "VBG" ], [ "from", "IN" ], [ "airport", "NN" ], [ "'", "''" ], [ "ahd", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "AHD" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.DestAirport = 'AHD'", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.DestAirport", "=", "``", "AHD", "''" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "destairport", "=", "value" ], "question": "What are airlines that have flights arriving at airport 'AHD'?", "question_toks": [ "what", "are", "airline", "that", "have", "flight", "arriving", "at", "airport", "'", "ahd", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "'AHD'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "airlines", "that", "have", "flights", "arriving", "at", "airport", "'AHD", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "airline" ], [ "that" ], [ "have" ], [ "flight" ], [ "arriving" ], [ "at" ], [ "airport" ], [ "'" ], [ "ahd" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "airline", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "flight", "NN" ], [ "arriving", "NN" ], [ "at", "IN" ], [ "airport", "NN" ], [ "'", "''" ], [ "ahd", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "AHD" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'APG' INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'CVO'", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "APG", "''", "INTERSECT", "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "CVO", "''" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "intersect", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value" ], "question": "Find all airlines that have flights from both airports 'APG' and 'CVO'.", "question_toks": [ "find", "all", "airline", "that", "have", "flight", "from", "both", "airport", "'", "apg", "'", "and", "'", "cvo", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "'CVO'", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "'APG'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Find", "all", "airlines", "that", "have", "flights", "from", "both", "airports", "'APG", "'", "and", "'CVO", "'", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "airline" ], [ "that" ], [ "have" ], [ "flight" ], [ "from" ], [ "both" ], [ "airport" ], [ "'" ], [ "apg" ], [ "'" ], [ "and" ], [ "'" ], [ "cvo" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "airline", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "flight", "NN" ], [ "from", "IN" ], [ "both", "DT" ], [ "airport", "NN" ], [ "'", "''" ], [ "apg", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "cvo", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "CVO", "APG" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(11) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'CVO' EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = 'APG'", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "CVO", "''", "EXCEPT", "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "WHERE", "T2.SourceAirport", "=", "``", "APG", "''" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "except", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value" ], "question": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.", "question_toks": [ "find", "all", "airline", "that", "have", "flight", "from", "airport", "'", "cvo", "'", "but", "not", "from", "'", "apg", "'", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "'APG'", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "'CVO'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Find", "all", "airlines", "that", "have", "flights", "from", "airport", "'CVO", "'", "but", "not", "from", "'APG", "'", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "airline" ], [ "that" ], [ "have" ], [ "flight" ], [ "from" ], [ "airport" ], [ "'" ], [ "cvo" ], [ "'" ], [ "but" ], [ "not" ], [ "from" ], [ "'" ], [ "apg" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "airline", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "flight", "NN" ], [ "from", "IN" ], [ "airport", "NN" ], [ "'", "''" ], [ "cvo", "NN" ], [ "'", "''" ], [ "but", "CC" ], [ "not", "RB" ], [ "from", "IN" ], [ "'", "''" ], [ "apg", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "CVO", "APG" ], "all_values_found": true, "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(11) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(11) T(2) V(1)" }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) > 10", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "HAVING", "count", "(", "*", ")", ">", "10" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find all airlines that have at least 10 flights.", "question_toks": [ "find", "all", "airline", "that", "have", "at", "least", "10", "flight", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Find", "all", "airlines", "that", "have", "at", "least", "10", "flights", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "airline" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "10" ], [ "flight" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "airline", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "10", "CD" ], [ "flight", "NN" ], [ ".", "." ] ], "values": [ "10" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "flight_2", "query": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING count(*) < 200", "query_toks": [ "SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "HAVING", "count", "(", "*", ")", "<", "200" ], "query_toks_no_value": [ "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "having", "count", "(", "*", ")", "<", "value" ], "question": "Find all airlines that have fewer than 200 flights.", "question_toks": [ "find", "all", "airline", "that", "have", "fewer", "than", "200", "flight", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [ [ false, 4, [ 0, [ 3, 0, false ], null ], 200.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Find", "all", "airlines", "that", "have", "fewer", "than", "200", "flights", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "airline" ], [ "that" ], [ "have" ], [ "fewer" ], [ "than" ], [ "200" ], [ "flight" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "airline", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "fewer", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ "flight", "NN" ], [ ".", "." ] ], "values": [ "200" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(9) T(2) Filter(4) A(3) C(0) T(2) V(0)" }, { "db_id": "flight_2", "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid = T1.Airline WHERE T2.Airline = 'United Airlines'", "query_toks": [ "SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T2.uid", "=", "T1.Airline", "WHERE", "T2.Airline", "=", "``", "United", "Airlines", "''" ], "query_toks_no_value": [ "select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t2", ".", "uid", "=", "t1", ".", "airline", "where", "t2", ".", "airline", "=", "value" ], "question": "What are flight numbers of Airline 'United Airlines'?", "question_toks": [ "what", "are", "flight", "number", "of", "airline", "'", "united", "airline", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'United Airlines'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "flight", "numbers", "of", "Airline", "``", "United", "Airlines", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "flight", "number" ], [ "of" ], [ "airline" ], [ "'" ], [ "united" ], [ "airline" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "flight", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "airline", "NN" ], [ "'", "''" ], [ "united", "JJ" ], [ "airline", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "United Airlines" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "flight_2", "query": "SELECT FlightNo FROM FLIGHTS WHERE SourceAirport = 'APG'", "query_toks": [ "SELECT", "FlightNo", "FROM", "FLIGHTS", "WHERE", "SourceAirport", "=", "``", "APG", "''" ], "query_toks_no_value": [ "select", "flightno", "from", "flights", "where", "sourceairport", "=", "value" ], "question": "What are flight numbers of flights departing from Airport 'APG'?", "question_toks": [ "what", "are", "flight", "number", "of", "flight", "departing", "from", "airport", "'", "apg", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "'APG'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "flight", "numbers", "of", "flights", "departing", "from", "Airport", "``", "APG", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "flight", "number" ], [ "of" ], [ "flight" ], [ "departing" ], [ "from" ], [ "airport" ], [ "'" ], [ "apg" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "flight", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "departing", "VBG" ], [ "from", "IN" ], [ "airport", "NN" ], [ "'", "''" ], [ "apg", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "APG" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "flight_2", "query": "SELECT FlightNo FROM FLIGHTS WHERE DestAirport = 'APG'", "query_toks": [ "SELECT", "FlightNo", "FROM", "FLIGHTS", "WHERE", "DestAirport", "=", "``", "APG", "''" ], "query_toks_no_value": [ "select", "flightno", "from", "flights", "where", "destairport", "=", "value" ], "question": "What are flight numbers of flights arriving at Airport 'APG'?", "question_toks": [ "what", "are", "flight", "number", "of", "flight", "arriving", "at", "airport", "'", "apg", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "'APG'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "flight", "numbers", "of", "flights", "arriving", "at", "Airport", "``", "APG", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "flight", "number" ], [ "of" ], [ "flight" ], [ "arriving" ], [ "at" ], [ "airport" ], [ "'" ], [ "apg" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "flight", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "arriving", "VBG" ], [ "at", "IN" ], [ "airport", "NN" ], [ "'", "''" ], [ "apg", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "APG" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "flight_2", "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'", "query_toks": [ "SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.SourceAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value" ], "question": "What are flight numbers of flights departing from City 'Aberdeen '?", "question_toks": [ "what", "are", "flight", "number", "of", "flight", "departing", "from", "city", "'", "aberdeen", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'Aberdeen'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "flight", "numbers", "of", "flights", "departing", "from", "City", "``", "Aberdeen", "``", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "flight", "number" ], [ "of" ], [ "flight" ], [ "departing" ], [ "from" ], [ "city" ], [ "'" ], [ "aberdeen" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "flight", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "departing", "VBG" ], [ "from", "IN" ], [ "city", "NN" ], [ "'", "POS" ], [ "aberdeen", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Aberdeen ", "Aberdeen" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(2) A(0) C(5) T(1) V(1)" }, { "db_id": "flight_2", "query": "SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.City = 'Aberdeen'", "query_toks": [ "SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''" ], "query_toks_no_value": [ "select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value" ], "question": "What are flight numbers of flights arriving at City 'Aberdeen'?", "question_toks": [ "what", "are", "flight", "number", "of", "flight", "arriving", "at", "city", "'", "aberdeen", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'Aberdeen'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "What", "are", "flight", "numbers", "of", "flights", "arriving", "at", "City", "``", "Aberdeen", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "flight", "number" ], [ "of" ], [ "flight" ], [ "arriving" ], [ "at" ], [ "city" ], [ "'" ], [ "aberdeen" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "flight", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "arriving", "VBG" ], [ "at", "IN" ], [ "city", "NN" ], [ "'", "''" ], [ "aberdeen", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Aberdeen" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "flight_2", "query": "SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = 'Aberdeen' OR T2.city = 'Abilene'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Flights", "AS", "T1", "JOIN", "Airports", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.city", "=", "``", "Aberdeen", "''", "OR", "T2.city", "=", "``", "Abilene", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value", "or", "t2", ".", "city", "=", "value" ], "question": "Find the number of flights landing in the city of Aberdeen or Abilene.", "question_toks": [ "find", "number", "of", "flight", "landing", "in", "city", "of", "aberdeen", "or", "abilene", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'Aberdeen'", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "'Abilene'", null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Find", "the", "number", "of", "flights", "landing", "in", "the", "city", "of", "Aberdeen", "or", "Abilene", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "flight" ], [ "landing" ], [ "in" ], [ "city" ], [ "of" ], [ "aberdeen" ], [ "or" ], [ "abilene" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "city" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "landing", "NN" ], [ "in", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "aberdeen", "JJ" ], [ "or", "CC" ], [ "abilene", "NN" ], [ ".", "." ] ], "values": [ "Abilene", "Aberdeen" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(1) Filter(2) A(0) C(5) T(1) V(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "flight_2", "query": "SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)", "query_toks": [ "SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "SourceAirport", "FROM", "Flights", "UNION", "SELECT", "DestAirport", "FROM", "Flights", ")" ], "query_toks_no_value": [ "select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "sourceairport", "from", "flights", "union", "select", "destairport", "from", "flights", ")" ], "question": "Find the name of airports which do not have any flight in and out.", "question_toks": [ "find", "name", "of", "airport", "which", "do", "not", "have", "any", "flight", "in", "and", "out", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] }, null ] ] }, "names": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "table_names": [ "airlines", "airports", "flights" ], "col_set": [ "*", "airline id", "airline name", "abbreviation", "country", "city", "airport code", "airport name", "country abbrev", "airline", "flight number", "source airport", "destination airport" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 6, "6": 6, "12": 6, "1": 1, "10": 10 }, "origin_question_toks": [ "Find", "the", "name", "of", "airports", "which", "do", "not", "have", "any", "flight", "in", "and", "out", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "airport" ], [ "which" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "flight" ], [ "in" ], [ "and" ], [ "out" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "airport", "NN" ], [ "which", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "flight", "NN" ], [ "in", "IN" ], [ "and", "CC" ], [ "out", "IN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(19) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(11) T(2)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(*) FROM employee", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "employee" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employee" ], "question": "How many employees are there?", "question_toks": [ "how", "many", "employee", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "How", "many", "employees", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "employee" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "employee", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT name FROM employee ORDER BY age", "query_toks": [ "SELECT", "name", "FROM", "employee", "ORDER", "BY", "age" ], "query_toks_no_value": [ "select", "name", "from", "employee", "order", "by", "age" ], "question": "Sort employee names by their age in ascending order.", "question_toks": [ "sort", "employee", "name", "by", "their", "age", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "Sort", "employee", "names", "by", "their", "age", "in", "ascending", "order", "." ], "question_arg": [ [ "sort" ], [ "employee" ], [ "name" ], [ "by" ], [ "their" ], [ "age" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "employee", "NN" ], [ "name", "NN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "age", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(*) , city FROM employee GROUP BY city", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "city", "FROM", "employee", "GROUP", "BY", "city" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "city", "from", "employee", "group", "by", "city" ], "question": "What is the number of employees from each city?", "question_toks": [ "what", "is", "number", "of", "employee", "from", "each", "city", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "employees", "from", "each", "city", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "employee" ], [ "from" ], [ "each" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "from", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(4) T(0)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT city FROM employee WHERE age < 30 GROUP BY city HAVING count(*) > 1", "query_toks": [ "SELECT", "city", "FROM", "employee", "WHERE", "age", "<", "30", "GROUP", "BY", "city", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "city", "from", "employee", "where", "age", "<", "value", "group", "by", "city", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which cities do more than one employee under age 30 come from?", "question_toks": [ "which", "city", "do", "more", "than", "one", "employee", "under", "age", "30", "come", "from", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 30.0, null ] ] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "Which", "cities", "do", "more", "than", "one", "employee", "under", "age", "30", "come", "from", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "do" ], [ "more" ], [ "than" ], [ "one" ], [ "employee" ], [ "under" ], [ "age" ], [ "30" ], [ "come" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "do", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "employee", "NN" ], [ "under", "IN" ], [ "age", "NN" ], [ "30", "CD" ], [ "come", "NN" ], [ "from", "IN" ], [ "?", "." ] ], "values": [ "30", "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(0) Filter(4) A(0) C(3) T(0) V(0) Filter(5) A(3) C(0) T(0) V(1)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(*) , LOCATION FROM shop GROUP BY LOCATION", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "LOCATION", "FROM", "shop", "GROUP", "BY", "LOCATION" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "location", "from", "shop", "group", "by", "location" ], "question": "Find the number of shops in each location.", "question_toks": [ "find", "number", "of", "shop", "in", "each", "location", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "Find", "the", "number", "of", "shops", "in", "each", "location", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "shop" ], [ "in" ], [ "each" ], [ "location" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "location", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(6) T(1)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT manager_name , district FROM shop ORDER BY number_products DESC LIMIT 1", "query_toks": [ "SELECT", "manager_name", ",", "district", "FROM", "shop", "ORDER", "BY", "number_products", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "manager_name", ",", "district", "from", "shop", "order", "by", "number_products", "desc", "limit", "value" ], "question": "Find the manager name and district of the shop whose number of products is the largest.", "question_toks": [ "find", "manager", "name", "and", "district", "of", "shop", "whose", "number", "of", "product", "is", "largest", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "Find", "the", "manager", "name", "and", "district", "of", "the", "shop", "whose", "number", "of", "products", "is", "the", "largest", "." ], "question_arg": [ [ "find" ], [ "manager", "name" ], [ "and" ], [ "district" ], [ "of" ], [ "shop" ], [ "whose" ], [ "number" ], [ "of" ], [ "product" ], [ "is" ], [ "largest" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "manager", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "district", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "whose", "WP$" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "is", "VBZ" ], [ "largest", "JJS" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(9) T(1) A(0) C(7) T(1) Sup(0) A(0) C(8) T(1)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT min(Number_products) , max(Number_products) FROM shop", "query_toks": [ "SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop" ], "query_toks_no_value": [ "select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop" ], "question": "find the minimum and maximum number of products of all stores.", "question_toks": [ "find", "minimum", "and", "maximum", "number", "of", "product", "of", "all", "store", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 9, false ], null ] ], [ 1, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "find", "the", "minimum", "and", "maximum", "number", "of", "products", "of", "all", "stores", "." ], "question_arg": [ [ "find" ], [ "minimum" ], [ "and" ], [ "maximum" ], [ "number" ], [ "of" ], [ "product" ], [ "of" ], [ "all" ], [ "store" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "store", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(8) T(1) A(1) C(8) T(1)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT name , LOCATION , district FROM shop ORDER BY number_products DESC", "query_toks": [ "SELECT", "name", ",", "LOCATION", ",", "district", "FROM", "shop", "ORDER", "BY", "number_products", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "location", ",", "district", "from", "shop", "order", "by", "number_products", "desc" ], "question": "Return the name, location and district of all shops in descending order of number of products.", "question_toks": [ "return", "name", ",", "location", "and", "district", "of", "all", "shop", "in", "descending", "order", "of", "number", "of", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "Return", "the", "name", ",", "location", "and", "district", "of", "all", "shops", "in", "descending", "order", "of", "number", "of", "products", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "," ], [ "location" ], [ "and" ], [ "district" ], [ "of" ], [ "all" ], [ "shop" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "number" ], [ "of" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "location", "NN" ], [ "and", "CC" ], [ "district", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "shop", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(2) T(1) A(0) C(6) T(1) A(0) C(7) T(1) Order(0) A(0) C(8) T(1)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT name FROM shop WHERE number_products > (SELECT avg(number_products) FROM shop)", "query_toks": [ "SELECT", "name", "FROM", "shop", "WHERE", "number_products", ">", "(", "SELECT", "avg", "(", "number_products", ")", "FROM", "shop", ")" ], "query_toks_no_value": [ "select", "name", "from", "shop", "where", "number_products", ">", "(", "select", "avg", "(", "number_products", ")", "from", "shop", ")" ], "question": "Find the names of stores whose number products is more than the average number of products.", "question_toks": [ "find", "name", "of", "store", "whose", "number", "product", "is", "more", "than", "average", "number", "of", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "Find", "the", "names", "of", "stores", "whose", "number", "products", "is", "more", "than", "the", "average", "number", "of", "products", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "store" ], [ "whose" ], [ "number", "product" ], [ "is" ], [ "more" ], [ "than" ], [ "average" ], [ "number" ], [ "of" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "store", "NN" ], [ "whose", "WP$" ], [ "number", "NN" ], [ "product", "NN" ], [ "is", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(13) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(5) C(8) T(1)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t1.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "employee", "AS", "t1", "JOIN", "evaluation", "AS", "t2", "ON", "t1.Employee_ID", "=", "t2.Employee_ID", "GROUP", "BY", "t2.Employee_ID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "evaluation", "as", "t2", "on", "t1", ".", "employee_id", "=", "t2", ".", "employee_id", "group", "by", "t2", ".", "employee_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "find the name of employee who was awarded the most times in the evaluation.", "question_toks": [ "find", "name", "of", "employee", "who", "wa", "awarded", "most", "time", "in", "evaluation", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "find", "the", "name", "of", "employee", "who", "was", "awarded", "the", "most", "times", "in", "the", "evaluation", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "wa" ], [ "awarded" ], [ "most" ], [ "time" ], [ "in" ], [ "evaluation" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "wa", "VBP" ], [ "awarded", "VBN" ], [ "most", "JJS" ], [ "time", "NN" ], [ "in", "IN" ], [ "evaluation", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", "FROM", "employee", "AS", "t1", "JOIN", "evaluation", "AS", "t2", "ON", "t1.Employee_ID", "=", "t2.Employee_ID", "ORDER", "BY", "t2.bonus", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "evaluation", "as", "t2", "on", "t1", ".", "employee_id", "=", "t2", ".", "employee_id", "order", "by", "t2", ".", "bonus", "desc", "limit", "value" ], "question": "Find the name of the employee who got the highest one time bonus.", "question_toks": [ "find", "name", "of", "employee", "who", "got", "highest", "one", "time", "bonus", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 17, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "employee", "who", "got", "the", "highest", "one", "time", "bonus", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "got" ], [ "highest" ], [ "one" ], [ "time" ], [ "bonus" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "got", "VBD" ], [ "highest", "JJS" ], [ "one", "CD" ], [ "time", "NN" ], [ "bonus", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(13) T(3)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation)", "query_toks": [ "SELECT", "name", "FROM", "employee", "WHERE", "Employee_ID", "NOT", "IN", "(", "SELECT", "Employee_ID", "FROM", "evaluation", ")" ], "query_toks_no_value": [ "select", "name", "from", "employee", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "evaluation", ")" ], "question": "Find the names of employees who never won any award in the evaluation.", "question_toks": [ "find", "name", "of", "employee", "who", "never", "won", "any", "award", "in", "evaluation", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "Find", "the", "names", "of", "employees", "who", "never", "won", "any", "award", "in", "the", "evaluation", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "never" ], [ "won" ], [ "any" ], [ "award" ], [ "in" ], [ "evaluation" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "never", "RB" ], [ "won", "VBD" ], [ "any", "DT" ], [ "award", "NN" ], [ "in", "IN" ], [ "evaluation", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(19) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.name", "FROM", "hiring", "AS", "t1", "JOIN", "shop", "AS", "t2", "ON", "t1.shop_id", "=", "t2.shop_id", "GROUP", "BY", "t1.shop_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "hiring", "as", "t1", "join", "shop", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "group", "by", "t1", ".", "shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the shop that is hiring the largest number of employees?", "question_toks": [ "what", "is", "name", "of", "shop", "that", "is", "hiring", "largest", "number", "of", "employee", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "shop", "that", "is", "hiring", "the", "largest", "number", "of", "employees", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "shop" ], [ "that" ], [ "is" ], [ "hiring" ], [ "largest" ], [ "number" ], [ "of" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "hiring", "VBG" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring)", "query_toks": [ "SELECT", "name", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "hiring", ")" ], "query_toks_no_value": [ "select", "name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "hiring", ")" ], "question": "Find the name of the shops that do not hire any employee.", "question_toks": [ "find", "name", "of", "shop", "that", "do", "not", "hire", "any", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "shops", "that", "do", "not", "hire", "any", "employee", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "shop" ], [ "that" ], [ "do" ], [ "not" ], [ "hire" ], [ "any" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "hire", "VB" ], [ "any", "DT" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(19) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(*) , t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "t2.name", "FROM", "hiring", "AS", "t1", "JOIN", "shop", "AS", "t2", "ON", "t1.shop_id", "=", "t2.shop_id", "GROUP", "BY", "t2.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t2", ".", "name", "from", "hiring", "as", "t1", "join", "shop", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "group", "by", "t2", ".", "name" ], "question": "Find the number of employees hired in each shop; show the shop name as well.", "question_toks": [ "find", "number", "of", "employee", "hired", "in", "each", "shop", ";", "show", "shop", "name", "a", "well", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "Find", "the", "number", "of", "employees", "hired", "in", "each", "shop", ";", "show", "the", "shop", "name", "as", "well", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "employee" ], [ "hired" ], [ "in" ], [ "each" ], [ "shop" ], [ ";" ], [ "show" ], [ "shop" ], [ "name" ], [ "a" ], [ "well" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "hired", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "shop", "NN" ], [ ";", ":" ], [ "show", "NN" ], [ "shop", "NN" ], [ "name", "NN" ], [ "a", "DT" ], [ "well", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(2) T(1)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT sum(bonus) FROM evaluation", "query_toks": [ "SELECT", "sum", "(", "bonus", ")", "FROM", "evaluation" ], "query_toks_no_value": [ "select", "sum", "(", "bonus", ")", "from", "evaluation" ], "question": "What is total bonus given in all evaluations?", "question_toks": [ "what", "is", "total", "bonus", "given", "in", "all", "evaluation", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "What", "is", "total", "bonus", "given", "in", "all", "evaluations", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "bonus" ], [ "given" ], [ "in" ], [ "all" ], [ "evaluation" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "bonus", "NN" ], [ "given", "VBN" ], [ "in", "IN" ], [ "all", "DT" ], [ "evaluation", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(13) T(3)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT * FROM hiring", "query_toks": [ "SELECT", "*", "FROM", "hiring" ], "query_toks_no_value": [ "select", "*", "from", "hiring" ], "question": "Give me all the information about hiring.", "question_toks": [ "give", "me", "all", "information", "about", "hiring", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "Give", "me", "all", "the", "information", "about", "hiring", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "all" ], [ "information" ], [ "about" ], [ "hiring" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "hiring", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(0) T(2)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000", "query_toks": [ "SELECT", "district", "FROM", "shop", "WHERE", "Number_products", "<", "3000", "INTERSECT", "SELECT", "district", "FROM", "shop", "WHERE", "Number_products", ">", "10000" ], "query_toks_no_value": [ "select", "district", "from", "shop", "where", "number_products", "<", "value", "intersect", "select", "district", "from", "shop", "where", "number_products", ">", "value" ], "question": "Which district has both stores with less than 3000 products and stores with more than 10000 products?", "question_toks": [ "which", "district", "ha", "both", "store", "with", "le", "than", "3000", "product", "and", "store", "with", "more", "than", "10000", "product", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 10000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 9, false ], null ], 3000.0, null ] ] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "Which", "district", "has", "both", "stores", "with", "less", "than", "3000", "products", "and", "stores", "with", "more", "than", "10000", "products", "?" ], "question_arg": [ [ "which" ], [ "district" ], [ "ha" ], [ "both" ], [ "store" ], [ "with" ], [ "le" ], [ "than" ], [ "3000" ], [ "product" ], [ "and" ], [ "store" ], [ "with" ], [ "more" ], [ "than" ], [ "10000" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "district", "NN" ], [ "ha", "NN" ], [ "both", "DT" ], [ "store", "NN" ], [ "with", "IN" ], [ "le", "NN" ], [ "than", "IN" ], [ "3000", "CD" ], [ "product", "NN" ], [ "and", "CC" ], [ "store", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10000", "CD" ], [ "product", "NN" ], [ "?", "." ] ], "values": [ "10000", "3000" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(4) A(0) C(8) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(5) A(0) C(8) T(1) V(0)" }, { "db_id": "employee_hire_evaluation", "query": "SELECT count(DISTINCT LOCATION) FROM shop", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "LOCATION", ")", "FROM", "shop" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "location", ")", "from", "shop" ], "question": "How many different store locations are there?", "question_toks": [ "how", "many", "different", "store", "location", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "employee id", "name", "age", "city", "shop id", "name", "location", "district", "number products", "manager name", "shop id", "employee id", "start from", "is full time", "employee id", "year awarded", "bonus" ], "table_names": [ "employee", "shop", "hiring", "evaluation" ], "col_set": [ "*", "employee id", "name", "age", "city", "shop id", "location", "district", "number products", "manager name", "start from", "is full time", "year awarded", "bonus" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "12": 12, "1": 1, "11": 5, "5": 5, "15": 15 }, "origin_question_toks": [ "How", "many", "different", "store", "locations", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "store" ], [ "location" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "store", "NN" ], [ "location", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(6) T(1)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT count(*) FROM Documents", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents" ], "question": "How many documents do we have?", "question_toks": [ "how", "many", "document", "do", "we", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "How", "many", "documents", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "document" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT document_id , document_name , document_description FROM Documents", "query_toks": [ "SELECT", "document_id", ",", "document_name", ",", "document_description", "FROM", "Documents" ], "query_toks_no_value": [ "select", "document_id", ",", "document_name", ",", "document_description", "from", "documents" ], "question": "List document IDs, document names, and document descriptions for all documents.", "question_toks": [ "list", "document", "id", ",", "document", "name", ",", "and", "document", "description", "for", "all", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "List", "document", "IDs", ",", "document", "names", ",", "and", "document", "descriptions", "for", "all", "documents", "." ], "question_arg": [ [ "list" ], [ "document", "id" ], [ "," ], [ "document", "name" ], [ "," ], [ "and" ], [ "document", "description" ], [ "for" ], [ "all" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "document", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "document", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "document", "JJ" ], [ "description", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(8) T(2) A(0) C(9) T(2) A(0) C(10) T(2)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT document_name , template_id FROM Documents WHERE Document_Description LIKE '%w%'", "query_toks": [ "SELECT", "document_name", ",", "template_id", "FROM", "Documents", "WHERE", "Document_Description", "LIKE", "``", "%", "w", "%", "''" ], "query_toks_no_value": [ "select", "document_name", ",", "template_id", "from", "documents", "where", "document_description", "like", "value" ], "question": "What is the document name and template id for document with description with the letter 'w' in it?", "question_toks": [ "what", "is", "document", "name", "and", "template", "id", "for", "document", "with", "description", "with", "letter", "'w", "'", "in", "it", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "'%w%'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "document", "name", "and", "template", "id", "for", "document", "with", "description", "with", "the", "letter", "'w", "'", "in", "it", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "document", "name" ], [ "and" ], [ "template", "id" ], [ "for" ], [ "document" ], [ "with" ], [ "description" ], [ "with" ], [ "letter" ], [ "'w" ], [ "'" ], [ "in" ], [ "it" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "document", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "template", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "description", "NN" ], [ "with", "IN" ], [ "letter", "NN" ], [ "'w", "NNP" ], [ "'", "''" ], [ "in", "IN" ], [ "it", "PRP" ], [ "?", "." ] ], "values": [ "w" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(2) A(0) C(3) T(2) Filter(9) A(0) C(10) T(2) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT document_id , template_id , Document_Description FROM Documents WHERE document_name = 'Robbin CV'", "query_toks": [ "SELECT", "document_id", ",", "template_id", ",", "Document_Description", "FROM", "Documents", "WHERE", "document_name", "=", "``", "Robbin", "CV", "''" ], "query_toks_no_value": [ "select", "document_id", ",", "template_id", ",", "document_description", "from", "documents", "where", "document_name", "=", "value" ], "question": "What is the document id, template id and description for document named 'Robbin CV'?", "question_toks": [ "what", "is", "document", "id", ",", "template", "id", "and", "description", "for", "document", "named", "'", "robbin", "cv", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'Robbin CV'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "document", "id", ",", "template", "id", "and", "description", "for", "document", "named", "``", "Robbin", "CV", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "document", "id" ], [ "," ], [ "template", "id" ], [ "and" ], [ "description" ], [ "for" ], [ "document" ], [ "named" ], [ "'" ], [ "robbin" ], [ "cv" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "document", "JJ" ], [ "id", "NN" ], [ ",", "," ], [ "template", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "robbin", "NN" ], [ "cv", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Robbin CV", "CV" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(8) T(2) A(0) C(3) T(2) A(0) C(10) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT count(DISTINCT template_id) FROM Documents", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "template_id", ")", "FROM", "Documents" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "template_id", ")", "from", "documents" ], "question": "How many different templates do all document use?", "question_toks": [ "how", "many", "different", "template", "do", "all", "document", "use", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "How", "many", "different", "templates", "do", "all", "document", "use", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "template" ], [ "do" ], [ "all" ], [ "document" ], [ "use" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "template", "NN" ], [ "do", "VBP" ], [ "all", "DT" ], [ "document", "NN" ], [ "use", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(3) T(2)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Documents", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.Template_ID", "=", "T2.Template_ID", "WHERE", "T2.Template_Type_Code", "=", "'PPT", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "documents", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "template_type_code", "=", "value" ], "question": "How many documents are using the template with type code 'PPT'?", "question_toks": [ "how", "many", "document", "are", "using", "template", "with", "type", "code", "'", "ppt", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'PPT'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "How", "many", "documents", "are", "using", "the", "template", "with", "type", "code", "'PPT", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "document" ], [ "are" ], [ "using" ], [ "template" ], [ "with" ], [ "template", "type", "code" ], [ "'" ], [ "ppt" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "document", "NN" ], [ "are", "VBP" ], [ "using", "VBG" ], [ "template", "NN" ], [ "with", "IN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "'", "''" ], [ "ppt", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "PPT" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(1) T(1) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT template_id , count(*) FROM Documents GROUP BY template_id", "query_toks": [ "SELECT", "template_id", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "template_id" ], "query_toks_no_value": [ "select", "template_id", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "template_id" ], "question": "Show all template ids and number of documents using each template.", "question_toks": [ "show", "all", "template", "id", "and", "number", "of", "document", "using", "each", "template", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "all", "template", "ids", "and", "number", "of", "documents", "using", "each", "template", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "template", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "document" ], [ "using" ], [ "each" ], [ "template" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "template", "VBP" ], [ "id", "NNS" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "using", "VBG" ], [ "each", "DT" ], [ "template", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(2) A(3) C(0) T(2)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT T1.template_id , T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id , T2.Template_Type_Code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.template_id", ",", "T2.Template_Type_Code", "FROM", "Documents", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "GROUP", "BY", "T1.template_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "template_id", ",", "t2", ".", "template_type_code", "from", "documents", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "group", "by", "t1", ".", "template_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id and type code for the template used by the most documents?", "question_toks": [ "what", "is", "id", "and", "type", "code", "for", "template", "used", "by", "most", "document", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "type", "code", "for", "the", "template", "used", "by", "the", "most", "documents", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "template", "type", "code" ], [ "for" ], [ "template" ], [ "used" ], [ "by" ], [ "most" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "type", "JJ" ], [ "code", "NN" ], [ "for", "IN" ], [ "template", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(2) A(0) C(1) T(1) Sup(0) A(3) C(0) T(2)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT template_id FROM Documents GROUP BY template_id HAVING count(*) > 1", "query_toks": [ "SELECT", "template_id", "FROM", "Documents", "GROUP", "BY", "template_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "template_id", "from", "documents", "group", "by", "template_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show ids for all templates that are used by more than one document.", "question_toks": [ "show", "id", "for", "all", "template", "that", "are", "used", "by", "more", "than", "one", "document", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "ids", "for", "all", "templates", "that", "are", "used", "by", "more", "than", "one", "document", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "template" ], [ "that" ], [ "are" ], [ "used" ], [ "by" ], [ "more" ], [ "than" ], [ "one" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "template", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "document", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents", "query_toks": [ "SELECT", "template_id", "FROM", "Templates", "EXCEPT", "SELECT", "template_id", "FROM", "Documents" ], "query_toks_no_value": [ "select", "template_id", "from", "templates", "except", "select", "template_id", "from", "documents" ], "question": "Show ids for all templates not used by any document.", "question_toks": [ "show", "id", "for", "all", "template", "not", "used", "by", "any", "document", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "ids", "for", "all", "templates", "not", "used", "by", "any", "document", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "template" ], [ "not" ], [ "used" ], [ "by" ], [ "any" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "template", "NN" ], [ "not", "RB" ], [ "used", "VBN" ], [ "by", "IN" ], [ "any", "DT" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(2)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT count(*) FROM Templates", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Templates" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "templates" ], "question": "How many templates do we have?", "question_toks": [ "how", "many", "template", "do", "we", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "How", "many", "templates", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "template" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "template", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT template_id , version_number , template_type_code FROM Templates", "query_toks": [ "SELECT", "template_id", ",", "version_number", ",", "template_type_code", "FROM", "Templates" ], "query_toks_no_value": [ "select", "template_id", ",", "version_number", ",", "template_type_code", "from", "templates" ], "question": "Show template ids, version numbers, and template type codes for all templates.", "question_toks": [ "show", "template", "id", ",", "version", "number", ",", "and", "template", "type", "code", "for", "all", "template", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "template", "ids", ",", "version", "numbers", ",", "and", "template", "type", "codes", "for", "all", "templates", "." ], "question_arg": [ [ "show" ], [ "template", "id" ], [ "," ], [ "version", "number" ], [ "," ], [ "and" ], [ "template", "type", "code" ], [ "for" ], [ "all" ], [ "template" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "template", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "version", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "template", "VB" ], [ "type", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "template", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(3) T(1) A(0) C(4) T(1) A(0) C(1) T(1)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT DISTINCT template_type_code FROM Templates", "query_toks": [ "SELECT", "DISTINCT", "template_type_code", "FROM", "Templates" ], "query_toks_no_value": [ "select", "distinct", "template_type_code", "from", "templates" ], "question": "Show all distinct template type codes for all templates.", "question_toks": [ "show", "all", "distinct", "template", "type", "code", "for", "all", "template", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "all", "distinct", "template", "type", "codes", "for", "all", "templates", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "template", "type", "code" ], [ "for" ], [ "all" ], [ "template" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "template", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "template", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(1) T(1)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT template_id FROM Templates WHERE template_type_code = 'PP' OR template_type_code = 'PPT'", "query_toks": [ "SELECT", "template_id", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "PP", "''", "OR", "template_type_code", "=", "``", "PPT", "''" ], "query_toks_no_value": [ "select", "template_id", "from", "templates", "where", "template_type_code", "=", "value", "or", "template_type_code", "=", "value" ], "question": "What are the ids of templates with template type code PP or PPT?", "question_toks": [ "what", "are", "id", "of", "template", "with", "template", "type", "code", "pp", "or", "ppt", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'PP'", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "'PPT'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "templates", "with", "template", "type", "code", "PP", "or", "PPT", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "template" ], [ "with" ], [ "template", "type", "code" ], [ "pp" ], [ "or" ], [ "ppt" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "template", "NN" ], [ "with", "IN" ], [ "template", "JJ" ], [ "type", "NN" ], [ "code", "NN" ], [ "pp", "NN" ], [ "or", "CC" ], [ "ppt", "NN" ], [ "?", "." ] ], "values": [ "PP", "PPT" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(1) Filter(2) A(0) C(1) T(1) V(0) Filter(2) A(0) C(1) T(1) V(1)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT count(*) FROM Templates WHERE template_type_code = 'CV'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "CV", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "templates", "where", "template_type_code", "=", "value" ], "question": "How many templates have template type code CV?", "question_toks": [ "how", "many", "template", "have", "template", "type", "code", "cv", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'CV'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "How", "many", "templates", "have", "template", "type", "code", "CV", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "template" ], [ "have" ], [ "template", "type", "code" ], [ "cv" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "template", "NN" ], [ "have", "VBP" ], [ "template", "VBN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "cv", "NN" ], [ "?", "." ] ], "values": [ "CV" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(1) T(1) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT version_number , template_type_code FROM Templates WHERE version_number > 5", "query_toks": [ "SELECT", "version_number", ",", "template_type_code", "FROM", "Templates", "WHERE", "version_number", ">", "5" ], "query_toks_no_value": [ "select", "version_number", ",", "template_type_code", "from", "templates", "where", "version_number", ">", "value" ], "question": "What is the version number and template type code for the template with version number later than 5?", "question_toks": [ "what", "is", "version", "number", "and", "template", "type", "code", "for", "template", "with", "version", "number", "later", "than", "5", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 5.0, null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "version", "number", "and", "template", "type", "code", "for", "the", "template", "with", "version", "number", "later", "than", "5", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "version", "number" ], [ "and" ], [ "template", "type", "code" ], [ "for" ], [ "template" ], [ "with" ], [ "version", "number" ], [ "later" ], [ "than" ], [ "5" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "version", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "template", "VB" ], [ "type", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "template", "NN" ], [ "with", "IN" ], [ "version", "NN" ], [ "number", "NN" ], [ "later", "RB" ], [ "than", "IN" ], [ "5", "CD" ], [ "?", "." ] ], "values": [ "5" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(1) T(1) Filter(5) A(0) C(4) T(1) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT template_type_code , count(*) FROM Templates GROUP BY template_type_code", "query_toks": [ "SELECT", "template_type_code", ",", "count", "(", "*", ")", "FROM", "Templates", "GROUP", "BY", "template_type_code" ], "query_toks_no_value": [ "select", "template_type_code", ",", "count", "(", "*", ")", "from", "templates", "group", "by", "template_type_code" ], "question": "Show all template type codes and number of templates for each.", "question_toks": [ "show", "all", "template", "type", "code", "and", "number", "of", "template", "for", "each", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "all", "template", "type", "codes", "and", "number", "of", "templates", "for", "each", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "template", "type", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "template" ], [ "for" ], [ "each" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "template", "VBP" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "template", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(1) A(3) C(0) T(1)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "template_type_code", "FROM", "Templates", "GROUP", "BY", "template_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "template_type_code", "from", "templates", "group", "by", "template_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which template type code has most number of templates?", "question_toks": [ "which", "template", "type", "code", "ha", "most", "number", "of", "template", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Which", "template", "type", "code", "has", "most", "number", "of", "templates", "?" ], "question_arg": [ [ "which" ], [ "template", "type", "code" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "template" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "template", "VBP" ], [ "type", "NN" ], [ "code", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "template", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*) < 3", "query_toks": [ "SELECT", "template_type_code", "FROM", "Templates", "GROUP", "BY", "template_type_code", "HAVING", "count", "(", "*", ")", "<", "3" ], "query_toks_no_value": [ "select", "template_type_code", "from", "templates", "group", "by", "template_type_code", "having", "count", "(", "*", ")", "<", "value" ], "question": "Show all template type codes with less than three templates.", "question_toks": [ "show", "all", "template", "type", "code", "with", "le", "than", "three", "template", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 4, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "all", "template", "type", "codes", "with", "less", "than", "three", "templates", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "template", "type", "code" ], [ "with" ], [ "le" ], [ "than" ], [ "three" ], [ "template" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "template", "VBP" ], [ "type", "JJ" ], [ "code", "NN" ], [ "with", "IN" ], [ "le", "NN" ], [ "than", "IN" ], [ "three", "CD" ], [ "template", "NN" ], [ ".", "." ] ], "values": [ "3" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(4) A(3) C(0) T(1) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT min(Version_Number) , template_type_code FROM Templates GROUP BY template_type_code", "query_toks": [ "SELECT", "min", "(", "Version_Number", ")", ",", "template_type_code", "FROM", "Templates" ], "query_toks_no_value": [ "select", "min", "(", "version_number", ")", ",", "template_type_code", "from", "templates" ], "question": "What the smallest version number and its template type code?", "question_toks": [ "what", "smallest", "version", "number", "and", "it", "template", "type", "code", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "the", "smallest", "version", "number", "and", "its", "template", "type", "code", "?" ], "question_arg": [ [ "what" ], [ "smallest" ], [ "version", "number" ], [ "and" ], [ "it" ], [ "template", "type", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "smallest", "JJS" ], [ "version", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "it", "PRP" ], [ "template", "VBP" ], [ "type", "JJ" ], [ "code", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(4) T(1) A(0) C(1) T(1)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = 'Data base'", "query_toks": [ "SELECT", "T1.template_type_code", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "WHERE", "T2.document_name", "=", "``", "Data", "base", "''" ], "query_toks_no_value": [ "select", "t1", ".", "template_type_code", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "What is the template type code of the template used by document with the name 'Data base'?", "question_toks": [ "what", "is", "template", "type", "code", "of", "template", "used", "by", "document", "with", "name", "'", "data", "base", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'Data base'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "template", "type", "code", "of", "the", "template", "used", "by", "document", "with", "the", "name", "``", "Data", "base", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "template", "type", "code" ], [ "of" ], [ "template" ], [ "used" ], [ "by" ], [ "document" ], [ "with" ], [ "name" ], [ "'" ], [ "data" ], [ "base" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "template", "JJ" ], [ "type", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "template", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "data", "NNS" ], [ "base", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Data base" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T1.template_type_code = 'BK'", "query_toks": [ "SELECT", "T2.document_name", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "WHERE", "T1.template_type_code", "=", "``", "BK", "''" ], "query_toks_no_value": [ "select", "t2", ".", "document_name", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t1", ".", "template_type_code", "=", "value" ], "question": "Show all document names using templates with template type code BK.", "question_toks": [ "show", "all", "document", "name", "using", "template", "with", "template", "type", "code", "bk", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'BK'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "all", "document", "names", "using", "templates", "with", "template", "type", "code", "BK", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "document", "name" ], [ "using" ], [ "template" ], [ "with" ], [ "template", "type", "code" ], [ "bk" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "document", "NN" ], [ "name", "NN" ], [ "using", "VBG" ], [ "template", "NN" ], [ "with", "IN" ], [ "template", "JJ" ], [ "type", "NN" ], [ "code", "NN" ], [ "bk", "NN" ], [ ".", "." ] ], "values": [ "BK" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(1) T(1) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT T1.template_type_code , count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code", "query_toks": [ "SELECT", "T1.template_type_code", ",", "count", "(", "*", ")", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "GROUP", "BY", "T1.template_type_code" ], "query_toks_no_value": [ "select", "t1", ".", "template_type_code", ",", "count", "(", "*", ")", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "group", "by", "t1", ".", "template_type_code" ], "question": "Show all template type codes and the number of documents using each type.", "question_toks": [ "show", "all", "template", "type", "code", "and", "number", "of", "document", "using", "each", "type", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "all", "template", "type", "codes", "and", "the", "number", "of", "documents", "using", "each", "type", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "template", "type", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "document" ], [ "using" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "template", "VBP" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "using", "VBG" ], [ "each", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(1) A(3) C(0) T(2)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.template_type_code", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id", "GROUP", "BY", "T1.template_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "template_type_code", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "group", "by", "t1", ".", "template_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which template type code is used by most number of documents?", "question_toks": [ "which", "template", "type", "code", "is", "used", "by", "most", "number", "of", "document", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Which", "template", "type", "code", "is", "used", "by", "most", "number", "of", "documents", "?" ], "question_arg": [ [ "which" ], [ "template", "type", "code" ], [ "is" ], [ "used" ], [ "by" ], [ "most" ], [ "number" ], [ "of" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "template", "VBP" ], [ "type", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "used", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(1) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(2)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id", "query_toks": [ "SELECT", "template_type_code", "FROM", "Templates", "EXCEPT", "SELECT", "template_type_code", "FROM", "Templates", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.template_id", "=", "T2.template_id" ], "query_toks_no_value": [ "select", "template_type_code", "from", "templates", "except", "select", "template_type_code", "from", "templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id" ], "question": "Show all template type codes that are not used by any document.", "question_toks": [ "show", "all", "template", "type", "code", "that", "are", "not", "used", "by", "any", "document", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "all", "template", "type", "codes", "that", "are", "not", "used", "by", "any", "document", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "template", "type", "code" ], [ "that" ], [ "are" ], [ "not" ], [ "used" ], [ "by" ], [ "any" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "template", "VBP" ], [ "type", "NN" ], [ "code", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "used", "VBN" ], [ "by", "IN" ], [ "any", "DT" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(1) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(1) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(2)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT template_type_code , template_type_description FROM Reference_template_types", "query_toks": [ "SELECT", "template_type_code", ",", "template_type_description", "FROM", "Reference_template_types" ], "query_toks_no_value": [ "select", "template_type_code", ",", "template_type_description", "from", "reference_template_types" ], "question": "Show all template type codes and descriptions.", "question_toks": [ "show", "all", "template", "type", "code", "and", "description", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference template types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "all", "template", "type", "codes", "and", "descriptions", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "template", "type", "code" ], [ "and" ], [ "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "template", "VBP" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "description", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT template_type_description FROM Reference_template_types WHERE template_type_code = 'AD'", "query_toks": [ "SELECT", "template_type_description", "FROM", "Reference_template_types", "WHERE", "template_type_code", "=", "``", "AD", "''" ], "query_toks_no_value": [ "select", "template_type_description", "from", "reference_template_types", "where", "template_type_code", "=", "value" ], "question": "What is the template type descriptions for template type code 'AD'.", "question_toks": [ "what", "is", "template", "type", "description", "for", "template", "type", "code", "'", "ad", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "'AD'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference template types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "template", "type", "descriptions", "for", "template", "type", "code", "``", "AD", "''", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "template", "type", "description" ], [ "for" ], [ "template", "type", "code" ], [ "'" ], [ "ad" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "template", "JJ" ], [ "type", "JJ" ], [ "description", "NN" ], [ "for", "IN" ], [ "template", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "ad", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "AD" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT template_type_code FROM Reference_template_types WHERE template_type_description = 'Book'", "query_toks": [ "SELECT", "template_type_code", "FROM", "Reference_template_types", "WHERE", "template_type_description", "=", "``", "Book", "''" ], "query_toks_no_value": [ "select", "template_type_code", "from", "reference_template_types", "where", "template_type_description", "=", "value" ], "question": "What is the template type code for template type description 'Book'.", "question_toks": [ "what", "is", "template", "type", "code", "for", "template", "type", "description", "'", "book", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Book'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference template types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "template", "type", "code", "for", "template", "type", "description", "``", "Book", "''", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "template", "type", "code" ], [ "for" ], [ "template", "type", "description" ], [ "'" ], [ "book" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "template", "JJ" ], [ "type", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "template", "NN" ], [ "type", "NN" ], [ "description", "NN" ], [ "'", "POS" ], [ "book", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Book" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT DISTINCT T1.template_type_description FROM Reference_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID", "query_toks": [ "SELECT", "DISTINCT", "T1.template_type_description", "FROM", "Reference_template_types", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.template_type_code", "=", "T2.template_type_code", "JOIN", "Documents", "AS", "T3", "ON", "T2.Template_ID", "=", "T3.template_ID" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "template_type_description", "from", "reference_template_types", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_type_code", "=", "t2", ".", "template_type_code", "join", "documents", "as", "t3", "on", "t2", ".", "template_id", "=", "t3", ".", "template_id" ], "question": "What are the distinct template type descriptions for the templates ever used by any document?", "question_toks": [ "what", "are", "distinct", "template", "type", "description", "for", "template", "ever", "used", "by", "any", "document", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference template types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "distinct", "template", "type", "descriptions", "for", "the", "templates", "ever", "used", "by", "any", "document", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "template", "type", "description" ], [ "for" ], [ "template" ], [ "ever" ], [ "used" ], [ "by" ], [ "any" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "template", "JJ" ], [ "type", "NN" ], [ "description", "NN" ], [ "for", "IN" ], [ "template", "NN" ], [ "ever", "RB" ], [ "used", "VBN" ], [ "by", "IN" ], [ "any", "DT" ], [ "document", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT T2.template_id FROM Reference_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = 'Presentation'", "query_toks": [ "SELECT", "T2.template_id", "FROM", "Reference_template_types", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.template_type_code", "=", "T2.template_type_code", "WHERE", "T1.template_type_description", "=", "``", "Presentation", "''" ], "query_toks_no_value": [ "select", "t2", ".", "template_id", "from", "reference_template_types", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_type_code", "=", "t2", ".", "template_type_code", "where", "t1", ".", "template_type_description", "=", "value" ], "question": "What are the template ids with template type description 'Presentation'.", "question_toks": [ "what", "are", "template", "id", "with", "template", "type", "description", "'", "presentation", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Presentation'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference template types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "are", "the", "template", "ids", "with", "template", "type", "description", "``", "Presentation", "''", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "template", "id" ], [ "with" ], [ "template", "type", "description" ], [ "'" ], [ "presentation" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "template", "JJ" ], [ "id", "NN" ], [ "with", "IN" ], [ "template", "JJ" ], [ "type", "NN" ], [ "description", "NN" ], [ "'", "POS" ], [ "presentation", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Presentation" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT count(*) FROM Paragraphs", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Paragraphs" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "paragraphs" ], "question": "How many paragraphs in total?", "question_toks": [ "how", "many", "paragraph", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "How", "many", "paragraphs", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "paragraph" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "paragraph", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID = T2.document_ID WHERE T2.document_name = 'Summer Show'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_ID", "=", "T2.document_ID", "WHERE", "T2.document_name", "=", "'Summer", "Show", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "How many paragraphs for the document with name 'Summer Show'?", "question_toks": [ "how", "many", "paragraph", "for", "document", "with", "name", "'", "summer", "show", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'Summer Show'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "How", "many", "paragraphs", "for", "the", "document", "with", "name", "'Summer", "Show", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "paragraph" ], [ "for" ], [ "document" ], [ "with" ], [ "name" ], [ "'" ], [ "summer" ], [ "show" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "paragraph", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "summer", "NN" ], [ "show", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Summer Show" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT Other_Details FROM Paragraphs WHERE paragraph_text = 'Korea'", "query_toks": [ "SELECT", "Other_Details", "FROM", "Paragraphs", "WHERE", "paragraph_text", "=", "'Korea", "'" ], "query_toks_no_value": [ "select", "other_details", "from", "paragraphs", "where", "paragraph_text", "=", "value" ], "question": "Show paragraph details for paragraph with text 'Korea'.", "question_toks": [ "show", "paragraph", "detail", "for", "paragraph", "with", "text", "'", "korea", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "'Korea'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "paragraph", "details", "for", "paragraph", "with", "text", "'Korea", "'", "." ], "question_arg": [ [ "show" ], [ "paragraph" ], [ "detail" ], [ "for" ], [ "paragraph" ], [ "with" ], [ "text" ], [ "'" ], [ "korea" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "paragraph", "NN" ], [ "detail", "NN" ], [ "for", "IN" ], [ "paragraph", "NN" ], [ "with", "IN" ], [ "text", "NN" ], [ "'", "''" ], [ "korea", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Korea" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(2) A(0) C(13) T(3) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT T1.paragraph_id , T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'", "query_toks": [ "SELECT", "T1.paragraph_id", ",", "T1.paragraph_text", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.Document_Name", "=", "'Welcome", "to", "NY", "'" ], "query_toks_no_value": [ "select", "t1", ".", "paragraph_id", ",", "t1", ".", "paragraph_text", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Show all paragraph ids and texts for the document with name 'Welcome to NY'.", "question_toks": [ "show", "all", "paragraph", "id", "and", "text", "for", "document", "with", "name", "'", "welcome", "to", "ny", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'Welcome to NY'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "all", "paragraph", "ids", "and", "texts", "for", "the", "document", "with", "name", "'Welcome", "to", "NY", "'", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "paragraph", "id" ], [ "and" ], [ "text" ], [ "for" ], [ "document" ], [ "with" ], [ "name" ], [ "'" ], [ "welcome" ], [ "to" ], [ "ny" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "paragraph", "VBP" ], [ "id", "NN" ], [ "and", "CC" ], [ "text", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "welcome", "JJ" ], [ "to", "TO" ], [ "ny", "DT" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Welcome to NY" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(3) A(0) C(13) T(3) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = 'Customer reviews'", "query_toks": [ "SELECT", "T1.paragraph_text", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "WHERE", "T2.document_name", "=", "``", "Customer", "reviews", "''" ], "query_toks_no_value": [ "select", "t1", ".", "paragraph_text", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value" ], "question": "Show all paragraph texts for the document 'Customer reviews'.", "question_toks": [ "show", "all", "paragraph", "text", "for", "document", "'", "customer", "review", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'Customer reviews'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "all", "paragraph", "texts", "for", "the", "document", "``", "Customer", "reviews", "''", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "paragraph", "text" ], [ "for" ], [ "document" ], [ "'" ], [ "customer" ], [ "review" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "paragraph", "VBP" ], [ "text", "NN" ], [ "for", "IN" ], [ "document", "NN" ], [ "'", "''" ], [ "customer", "NN" ], [ "review", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Customer reviews" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(3) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT document_id , count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id", "query_toks": [ "SELECT", "document_id", ",", "count", "(", "*", ")", "FROM", "Paragraphs", "GROUP", "BY", "document_id", "ORDER", "BY", "document_id" ], "query_toks_no_value": [ "select", "document_id", ",", "count", "(", "*", ")", "from", "paragraphs", "group", "by", "document_id", "order", "by", "document_id" ], "question": "Show all document ids and the number of paragraphs in each document. Order by document id.", "question_toks": [ "show", "all", "document", "id", "and", "number", "of", "paragraph", "in", "each", "document", ".", "order", "by", "document", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "all", "document", "ids", "and", "the", "number", "of", "paragraphs", "in", "each", "document", ".", "Order", "by", "document", "id", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "document", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "paragraph" ], [ "in" ], [ "each" ], [ "document" ], [ "." ], [ "order" ], [ "by" ], [ "document", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "document", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "paragraph", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "document", "NN" ], [ ".", "." ], [ "order", "NN" ], [ "by", "IN" ], [ "document", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(8) T(3) A(3) C(0) T(3) Order(1) A(0) C(8) T(3)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT T1.document_id , T2.document_name , count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id, T2.document_name", "query_toks": [ "SELECT", "T1.document_id", ",", "T2.document_name", ",", "count", "(", "*", ")", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "GROUP", "BY", "T1.document_id" ], "query_toks_no_value": [ "select", "t1", ".", "document_id", ",", "t2", ".", "document_name", ",", "count", "(", "*", ")", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "group", "by", "t1", ".", "document_id" ], "question": "Show all document ids, names and the number of paragraphs in each document.", "question_toks": [ "show", "all", "document", "id", ",", "name", "and", "number", "of", "paragraph", "in", "each", "document", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ], [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "all", "document", "ids", ",", "names", "and", "the", "number", "of", "paragraphs", "in", "each", "document", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "document", "id" ], [ "," ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "paragraph" ], [ "in" ], [ "each" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "document", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "paragraph", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "document", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(8) T(3) A(0) C(9) T(2) A(3) C(0) T(3)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "document_id", "FROM", "Paragraphs", "GROUP", "BY", "document_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "document_id", "from", "paragraphs", "group", "by", "document_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "List all document ids with at least two paragraphs.", "question_toks": [ "list", "all", "document", "id", "with", "at", "least", "two", "paragraph", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "List", "all", "document", "ids", "with", "at", "least", "two", "paragraphs", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "document", "id" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "paragraph" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "document", "NN" ], [ "id", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "paragraph", "NN" ], [ ".", "." ] ], "values": [ "2" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(7) A(3) C(0) T(3) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT T1.document_id , T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id, T2.document_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.document_id", ",", "T2.document_name", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_id", "=", "T2.document_id", "GROUP", "BY", "T1.document_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "document_id", ",", "t2", ".", "document_name", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "group", "by", "t1", ".", "document_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the document id and name with greatest number of paragraphs?", "question_toks": [ "what", "is", "document", "id", "and", "name", "with", "greatest", "number", "of", "paragraph", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ], [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "document", "id", "and", "name", "with", "greatest", "number", "of", "paragraphs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "document", "id" ], [ "and" ], [ "name" ], [ "with" ], [ "greatest" ], [ "number" ], [ "of" ], [ "paragraph" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "document", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "paragraph", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(8) T(3) A(0) C(9) T(2) Sup(0) A(3) C(0) T(3)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "document_id", "FROM", "Paragraphs", "GROUP", "BY", "document_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "document_id", "from", "paragraphs", "group", "by", "document_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the document id with least number of paragraphs?", "question_toks": [ "what", "is", "document", "id", "with", "least", "number", "of", "paragraph", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "document", "id", "with", "least", "number", "of", "paragraphs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "document", "id" ], [ "with" ], [ "least" ], [ "number" ], [ "of" ], [ "paragraph" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "document", "JJ" ], [ "id", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "paragraph", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(3) Sup(1) A(3) C(0) T(3)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2", "query_toks": [ "SELECT", "document_id", "FROM", "Paragraphs", "GROUP", "BY", "document_id", "HAVING", "count", "(", "*", ")", "BETWEEN", "1", "AND", "2" ], "query_toks_no_value": [ "select", "document_id", "from", "paragraphs", "group", "by", "document_id", "having", "count", "(", "*", ")", "between", "value", "and", "value" ], "question": "What is the document id with 1 to 2 paragraphs?", "question_toks": [ "what", "is", "document", "id", "with", "1", "to", "2", "paragraph", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 1, [ 0, [ 3, 0, false ], null ], 1.0, 2.0 ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "What", "is", "the", "document", "id", "with", "1", "to", "2", "paragraphs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "document", "id" ], [ "with" ], [ "1" ], [ "to" ], [ "2" ], [ "paragraph" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "document", "JJ" ], [ "id", "NN" ], [ "with", "IN" ], [ "1", "CD" ], [ "to", "TO" ], [ "2", "CD" ], [ "paragraph", "NN" ], [ "?", "." ] ], "values": [ "2", "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(8) A(3) C(0) T(3) V(1) V(0)" }, { "db_id": "cre_doc_template_mgt", "query": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'", "query_toks": [ "SELECT", "document_id", "FROM", "Paragraphs", "WHERE", "paragraph_text", "=", "'Brazil", "'", "INTERSECT", "SELECT", "document_id", "FROM", "Paragraphs", "WHERE", "paragraph_text", "=", "'Ireland", "'" ], "query_toks_no_value": [ "select", "document_id", "from", "paragraphs", "where", "paragraph_text", "=", "value", "intersect", "select", "document_id", "from", "paragraphs", "where", "paragraph_text", "=", "value" ], "question": "Show the document id with paragraph text 'Brazil' and 'Ireland'.", "question_toks": [ "show", "document", "id", "with", "paragraph", "text", "'", "brazil", "'", "and", "'", "ireland", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "'Ireland'", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "'Brazil'", null ] ] }, "names": [ "*", "template type code", "template type description", "template id", "version number", "template type code", "date effective from", "date effective to", "template details", "document id", "template id", "document name", "document description", "other details", "paragraph id", "document id", "paragraph text", "other details" ], "table_names": [ "reference_template_types", "templates", "documents", "paragraphs" ], "col_set": [ "*", "template type code", "template type description", "template id", "version number", "date effective from", "date effective to", "template details", "document id", "document name", "document description", "other details", "paragraph id", "paragraph text" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "10": 3, "3": 3, "15": 9, "9": 9, "14": 14 }, "origin_question_toks": [ "Show", "the", "document", "id", "with", "paragraph", "text", "'Brazil", "'", "and", "'Ireland", "'", "." ], "question_arg": [ [ "show" ], [ "document", "id" ], [ "with" ], [ "paragraph", "text" ], [ "'" ], [ "brazil" ], [ "'" ], [ "and" ], [ "'" ], [ "ireland" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "document", "NN" ], [ "id", "NN" ], [ "with", "IN" ], [ "paragraph", "JJ" ], [ "text", "NN" ], [ "'", "''" ], [ "brazil", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "ireland", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Brazil", "Ireland" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(2) A(0) C(13) T(3) V(0) Root(3) Sel(0) N(0) A(0) C(8) T(3) Filter(2) A(0) C(13) T(3) V(1)" }, { "db_id": "course_teach", "query": "SELECT count(*) FROM teacher", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "teacher" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "teacher" ], "question": "How many teachers are there?", "question_toks": [ "how", "many", "teacher", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "How", "many", "teachers", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "teacher" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "teacher", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "course_teach", "query": "SELECT Name FROM teacher ORDER BY Age ASC", "query_toks": [ "SELECT", "Name", "FROM", "teacher", "ORDER", "BY", "Age", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "teacher", "order", "by", "age", "asc" ], "question": "List the names of teachers in ascending order of age.", "question_toks": [ "list", "name", "of", "teacher", "in", "ascending", "order", "of", "age", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "teachers", "in", "ascending", "order", "of", "age", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "teacher" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(5) T(1) Order(1) A(0) C(6) T(1)" }, { "db_id": "course_teach", "query": "SELECT Age , Hometown FROM teacher", "query_toks": [ "SELECT", "Age", ",", "Hometown", "FROM", "teacher" ], "query_toks_no_value": [ "select", "age", ",", "hometown", "from", "teacher" ], "question": "What are the age and hometown of teachers?", "question_toks": [ "what", "are", "age", "and", "hometown", "of", "teacher", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "age", "and", "hometown", "of", "teachers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "age" ], [ "and" ], [ "hometown" ], [ "of" ], [ "teacher" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "age", "NN" ], [ "and", "CC" ], [ "hometown", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(1) A(0) C(7) T(1)" }, { "db_id": "course_teach", "query": "SELECT Name FROM teacher WHERE Hometown != 'Little Lever Urban District'", "query_toks": [ "SELECT", "Name", "FROM", "teacher", "WHERE", "Hometown", "!", "=", "``", "Little", "Lever", "Urban", "District", "''" ], "query_toks_no_value": [ "select", "name", "from", "teacher", "where", "hometown", "!", "=", "value" ], "question": "List the name of teachers whose hometown is not 'Little Lever Urban District'.", "question_toks": [ "list", "name", "of", "teacher", "whose", "hometown", "is", "not", "'", "little", "lever", "urban", "district", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 7, false ], null ], "'Little Lever Urban District'", null ] ] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "List", "the", "name", "of", "teachers", "whose", "hometown", "is", "not", "``", "Little", "Lever", "Urban", "District", "''", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "teacher" ], [ "whose" ], [ "hometown" ], [ "is" ], [ "not" ], [ "'" ], [ "little" ], [ "lever" ], [ "urban" ], [ "district" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "whose", "WP$" ], [ "hometown", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "POS" ], [ "little", "JJ" ], [ "lever", "JJ" ], [ "urban", "JJ" ], [ "district", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Little Lever Urban District" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(3) A(0) C(7) T(1) V(0)" }, { "db_id": "course_teach", "query": "SELECT Name FROM teacher WHERE Age = 32 OR Age = 33", "query_toks": [ "SELECT", "Name", "FROM", "teacher", "WHERE", "Age", "=", "32", "OR", "Age", "=", "33" ], "query_toks_no_value": [ "select", "name", "from", "teacher", "where", "age", "=", "value", "or", "age", "=", "value" ], "question": "Show the name of teachers aged either 32 or 33?", "question_toks": [ "show", "name", "of", "teacher", "aged", "either", "32", "or", "33", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], 32.0, null ], "or", [ false, 2, [ 0, [ 0, 6, false ], null ], 33.0, null ] ] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "of", "teachers", "aged", "either", "32", "or", "33", "?" ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "teacher" ], [ "aged" ], [ "either" ], [ "32" ], [ "or" ], [ "33" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "aged", "VBN" ], [ "either", "RB" ], [ "32", "CD" ], [ "or", "CC" ], [ "33", "CD" ], [ "?", "." ] ], "values": [ "33", "32" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(1) Filter(2) A(0) C(6) T(1) V(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "course_teach", "query": "SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1", "query_toks": [ "SELECT", "Hometown", "FROM", "teacher", "ORDER", "BY", "Age", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "hometown", "from", "teacher", "order", "by", "age", "asc", "limit", "value" ], "question": "What is the hometown of the youngest teacher?", "question_toks": [ "what", "is", "hometown", "of", "youngest", "teacher", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "hometown", "of", "the", "youngest", "teacher", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "hometown" ], [ "of" ], [ "youngest" ], [ "teacher" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "hometown", "VBN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "teacher", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(1) Sup(1) A(0) C(6) T(1)" }, { "db_id": "course_teach", "query": "SELECT Hometown , COUNT(*) FROM teacher GROUP BY Hometown", "query_toks": [ "SELECT", "Hometown", ",", "COUNT", "(", "*", ")", "FROM", "teacher", "GROUP", "BY", "Hometown" ], "query_toks_no_value": [ "select", "hometown", ",", "count", "(", "*", ")", "from", "teacher", "group", "by", "hometown" ], "question": "Show different hometown of teachers and the number of teachers from each hometown.", "question_toks": [ "show", "different", "hometown", "of", "teacher", "and", "number", "of", "teacher", "from", "each", "hometown", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "different", "hometown", "of", "teachers", "and", "the", "number", "of", "teachers", "from", "each", "hometown", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "hometown" ], [ "of" ], [ "teacher" ], [ "and" ], [ "number" ], [ "of" ], [ "teacher" ], [ "from" ], [ "each" ], [ "hometown" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "hometown", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "from", "IN" ], [ "each", "DT" ], [ "hometown", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(1) A(3) C(0) T(1)" }, { "db_id": "course_teach", "query": "SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Hometown", "FROM", "teacher", "GROUP", "BY", "Hometown", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "hometown", "from", "teacher", "group", "by", "hometown", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the most common hometown of teachers.", "question_toks": [ "list", "most", "common", "hometown", "of", "teacher", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "List", "the", "most", "common", "hometown", "of", "teachers", "." ], "question_arg": [ [ "list" ], [ "most" ], [ "common" ], [ "hometown" ], [ "of" ], [ "teacher" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "hometown", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "course_teach", "query": "SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Hometown", "FROM", "teacher", "GROUP", "BY", "Hometown", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "hometown", "from", "teacher", "group", "by", "hometown", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the hometowns shared by at least two teachers.", "question_toks": [ "show", "hometown", "shared", "by", "at", "least", "two", "teacher", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "the", "hometowns", "shared", "by", "at", "least", "two", "teachers", "." ], "question_arg": [ [ "show" ], [ "hometown" ], [ "shared" ], [ "by" ], [ "at" ], [ "least" ], [ "two" ], [ "teacher" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "hometown", "VBN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "teacher", "NN" ], [ ".", "." ] ], "values": [ "2" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "course_teach", "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Course", "FROM", "course_arrange", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.Course_ID", "=", "T2.Course_ID", "JOIN", "teacher", "AS", "T3", "ON", "T1.Teacher_ID", "=", "T3.Teacher_ID" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "course", "from", "course_arrange", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "teacher", "as", "t3", "on", "t1", ".", "teacher_id", "=", "t3", ".", "teacher_id" ], "question": "Show names of teachers and the courses they are arranged to teach.", "question_toks": [ "show", "name", "of", "teacher", "and", "course", "they", "are", "arranged", "to", "teach", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "names", "of", "teachers", "and", "the", "courses", "they", "are", "arranged", "to", "teach", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "teacher" ], [ "and" ], [ "course" ], [ "they" ], [ "are" ], [ "arranged" ], [ "to" ], [ "teach" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "and", "CC" ], [ "course", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "arranged", "VBN" ], [ "to", "TO" ], [ "teach", "VB" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "course_teach", "query": "SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Course", "FROM", "course_arrange", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.Course_ID", "=", "T2.Course_ID", "JOIN", "teacher", "AS", "T3", "ON", "T1.Teacher_ID", "=", "T3.Teacher_ID", "ORDER", "BY", "T3.Name" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "course", "from", "course_arrange", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "teacher", "as", "t3", "on", "t1", ".", "teacher_id", "=", "t3", ".", "teacher_id", "order", "by", "t3", ".", "name" ], "question": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.", "question_toks": [ "show", "name", "of", "teacher", "and", "course", "they", "are", "arranged", "to", "teach", "in", "ascending", "alphabetical", "order", "of", "teacher", "'s", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "names", "of", "teachers", "and", "the", "courses", "they", "are", "arranged", "to", "teach", "in", "ascending", "alphabetical", "order", "of", "the", "teacher", "'s", "name", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "teacher" ], [ "and" ], [ "course" ], [ "they" ], [ "are" ], [ "arranged" ], [ "to" ], [ "teach" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "teacher" ], [ "'s" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "and", "CC" ], [ "course", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "arranged", "VBN" ], [ "to", "TO" ], [ "teach", "VB" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(5) T(1) A(0) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Order(1) A(0) C(5) T(1)" }, { "db_id": "course_teach", "query": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = 'Math'", "query_toks": [ "SELECT", "T3.Name", "FROM", "course_arrange", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.Course_ID", "=", "T2.Course_ID", "JOIN", "teacher", "AS", "T3", "ON", "T1.Teacher_ID", "=", "T3.Teacher_ID", "WHERE", "T2.Course", "=", "``", "Math", "''" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "course_arrange", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "teacher", "as", "t3", "on", "t1", ".", "teacher_id", "=", "t3", ".", "teacher_id", "where", "t2", ".", "course", "=", "value" ], "question": "Show the name of the teacher for the math course.", "question_toks": [ "show", "name", "of", "teacher", "for", "math", "course", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "'Math'", null ] ] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "of", "the", "teacher", "for", "the", "math", "course", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "teacher" ], [ "for" ], [ "math" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "for", "IN" ], [ "math", "NN" ], [ "course", "NN" ], [ ".", "." ] ], "values": [ "Math" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "course_teach", "query": "SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name", "query_toks": [ "SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "course_arrange", "AS", "T1", "JOIN", "teacher", "AS", "T2", "ON", "T1.Teacher_ID", "=", "T2.Teacher_ID", "GROUP", "BY", "T2.Name" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "course_arrange", "as", "t1", "join", "teacher", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t2", ".", "name" ], "question": "Show names of teachers and the number of courses they teach.", "question_toks": [ "show", "name", "of", "teacher", "and", "number", "of", "course", "they", "teach", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "names", "of", "teachers", "and", "the", "number", "of", "courses", "they", "teach", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "teacher" ], [ "and" ], [ "number" ], [ "of" ], [ "course" ], [ "they" ], [ "teach" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "they", "PRP" ], [ "teach", "VBP" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(1) A(3) C(0) T(2)" }, { "db_id": "course_teach", "query": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T2.Name", "FROM", "course_arrange", "AS", "T1", "JOIN", "teacher", "AS", "T2", "ON", "T1.Teacher_ID", "=", "T2.Teacher_ID", "GROUP", "BY", "T2.Name", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "course_arrange", "as", "t1", "join", "teacher", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t2", ".", "name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show names of teachers that teach at least two courses.", "question_toks": [ "show", "name", "of", "teacher", "that", "teach", "at", "least", "two", "course", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "names", "of", "teachers", "that", "teach", "at", "least", "two", "courses", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "teacher" ], [ "that" ], [ "teach" ], [ "at" ], [ "least" ], [ "two" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "that", "IN" ], [ "teach", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "course", "NN" ], [ ".", "." ] ], "values": [ "2" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(0) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "course_teach", "query": "SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)", "query_toks": [ "SELECT", "Name", "FROM", "teacher", "WHERE", "Teacher_id", "NOT", "IN", "(", "SELECT", "Teacher_id", "FROM", "course_arrange", ")" ], "query_toks_no_value": [ "select", "name", "from", "teacher", "where", "teacher_id", "not", "in", "(", "select", "teacher_id", "from", "course_arrange", ")" ], "question": "List the names of teachers who have not been arranged to teach courses.", "question_toks": [ "list", "name", "of", "teacher", "who", "have", "not", "been", "arranged", "to", "teach", "course", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "course id", "teacher id", "grade" ], "table_names": [ "course", "teacher", "course arrange" ], "col_set": [ "*", "course id", "staring date", "course", "teacher id", "name", "age", "hometown", "grade" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 4, "4": 4, "8": 8, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "teachers", "who", "have", "not", "been", "arranged", "to", "teach", "courses", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "teacher" ], [ "who" ], [ "have" ], [ "not" ], [ "been" ], [ "arranged" ], [ "to" ], [ "teach" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "teacher", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "not", "RB" ], [ "been", "VBN" ], [ "arranged", "VBN" ], [ "to", "TO" ], [ "teach", "VB" ], [ "course", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(1) Filter(19) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(4) T(2)" }, { "db_id": "museum_visit", "query": "SELECT count(*) FROM visitor WHERE age < 30", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "visitor", "WHERE", "age", "<", "30" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "visitor", "where", "age", "<", "value" ], "question": "How many visitors below age 30 are there?", "question_toks": [ "how", "many", "visitor", "below", "age", "30", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 8, false ], null ], 30.0, null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "visitors", "below", "age", "30", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "visitor" ], [ "below" ], [ "age" ], [ "30" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "visitor", "NN" ], [ "below", "IN" ], [ "age", "NN" ], [ "30", "CD" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [ "30" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(4) A(0) C(7) T(1) V(0)" }, { "db_id": "museum_visit", "query": "SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC", "query_toks": [ "SELECT", "name", "FROM", "visitor", "WHERE", "Level_of_membership", ">", "4", "ORDER", "BY", "Level_of_membership", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "visitor", "where", "level_of_membership", ">", "value", "order", "by", "level_of_membership", "desc" ], "question": "Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.", "question_toks": [ "find", "name", "of", "visitor", "whose", "membership", "level", "is", "higher", "than", "4", ",", "and", "order", "result", "by", "level", "from", "high", "to", "low", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 7, false ], null ], 4.0, null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "visitors", "whose", "membership", "level", "is", "higher", "than", "4", ",", "and", "order", "the", "results", "by", "the", "level", "from", "high", "to", "low", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "visitor" ], [ "whose" ], [ "level", "of", "membership" ], [ "is" ], [ "higher" ], [ "than" ], [ "4" ], [ "," ], [ "and" ], [ "order" ], [ "result" ], [ "by" ], [ "level" ], [ "from" ], [ "high" ], [ "to" ], [ "low" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "visitor", "NN" ], [ "whose", "WP$" ], [ "membership", "NN" ], [ "level", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "4", "CD" ], [ ",", "," ], [ "and", "CC" ], [ "order", "NN" ], [ "result", "NN" ], [ "by", "IN" ], [ "level", "NN" ], [ "from", "IN" ], [ "high", "JJ" ], [ "to", "TO" ], [ "low", "VB" ], [ ".", "." ] ], "values": [ "4" ], "all_values_found": true, "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(2) T(1) Filter(5) A(0) C(6) T(1) V(0) Order(0) A(0) C(6) T(1)" }, { "db_id": "museum_visit", "query": "SELECT avg(age) FROM visitor WHERE Level_of_membership <= 4", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "visitor", "WHERE", "Level_of_membership", "<", "=", "4" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "visitor", "where", "level_of_membership", "<", "=", "value" ], "question": "What is the average age of the visitors whose membership level is not higher than 4?", "question_toks": [ "what", "is", "average", "age", "of", "visitor", "whose", "membership", "level", "is", "not", "higher", "than", "4", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 6, [ 0, [ 0, 7, false ], null ], 4.0, null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "of", "the", "visitors", "whose", "membership", "level", "is", "not", "higher", "than", "4", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "of" ], [ "visitor" ], [ "whose" ], [ "level", "of", "membership" ], [ "is" ], [ "not" ], [ "higher" ], [ "than" ], [ "4" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "visitor", "NN" ], [ "whose", "WP$" ], [ "membership", "NN" ], [ "level", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "4", "CD" ], [ "?", "." ] ], "values": [ "4" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(7) T(1) Filter(6) A(0) C(6) T(1) V(0)" }, { "db_id": "museum_visit", "query": "SELECT name , Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC", "query_toks": [ "SELECT", "name", ",", "Level_of_membership", "FROM", "visitor", "WHERE", "Level_of_membership", ">", "4", "ORDER", "BY", "age", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "level_of_membership", "from", "visitor", "where", "level_of_membership", ">", "value", "order", "by", "age", "desc" ], "question": "Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.", "question_toks": [ "find", "name", "and", "membership", "level", "of", "visitor", "whose", "membership", "level", "is", "higher", "than", "4", ",", "and", "sort", "by", "their", "age", "from", "old", "to", "young", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 7, false ], null ], 4.0, null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "membership", "level", "of", "the", "visitors", "whose", "membership", "level", "is", "higher", "than", "4", ",", "and", "sort", "by", "their", "age", "from", "old", "to", "young", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "level", "of", "membership" ], [ "visitor" ], [ "whose" ], [ "level", "of", "membership" ], [ "is" ], [ "higher" ], [ "than" ], [ "4" ], [ "," ], [ "and" ], [ "sort" ], [ "by" ], [ "their" ], [ "age" ], [ "from" ], [ "old" ], [ "to" ], [ "young" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "membership", "NN" ], [ "level", "NN" ], [ "of", "IN" ], [ "visitor", "NN" ], [ "whose", "WP$" ], [ "membership", "NN" ], [ "level", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "4", "CD" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "NN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "age", "NN" ], [ "from", "IN" ], [ "old", "JJ" ], [ "to", "TO" ], [ "young", "JJ" ], [ ".", "." ] ], "values": [ "4" ], "all_values_found": true, "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(1) A(0) C(6) T(1) Filter(5) A(0) C(6) T(1) V(0) Order(0) A(0) C(7) T(1)" }, { "db_id": "museum_visit", "query": "SELECT museum_id , name FROM museum ORDER BY num_of_staff DESC LIMIT 1", "query_toks": [ "SELECT", "museum_id", ",", "name", "FROM", "museum", "ORDER", "BY", "num_of_staff", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "museum_id", ",", "name", "from", "museum", "order", "by", "num_of_staff", "desc", "limit", "value" ], "question": "Find the id and name of the museum that has the most staff members?", "question_toks": [ "find", "id", "and", "name", "of", "museum", "that", "ha", "most", "staff", "member", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "id", "and", "name", "of", "the", "museum", "that", "has", "the", "most", "staff", "members", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "museum" ], [ "that" ], [ "ha" ], [ "most" ], [ "staff" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "museum", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "staff", "NN" ], [ "member", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Sup(0) A(0) C(3) T(0)" }, { "db_id": "museum_visit", "query": "SELECT avg(num_of_staff) FROM museum WHERE open_year < 2009", "query_toks": [ "SELECT", "avg", "(", "num_of_staff", ")", "FROM", "museum", "WHERE", "open_year", "<", "2009" ], "query_toks_no_value": [ "select", "avg", "(", "num_of_staff", ")", "from", "museum", "where", "open_year", "<", "value" ], "question": "Find the average number of staff working for the museums that were open before 2009.", "question_toks": [ "find", "average", "number", "of", "staff", "working", "for", "museum", "that", "were", "open", "before", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 4, false ], null ], 2009.0, null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "number", "of", "staff", "working", "for", "the", "museums", "that", "were", "open", "before", "2009", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "number" ], [ "num", "of", "staff" ], [ "working" ], [ "for" ], [ "museum" ], [ "that" ], [ "were" ], [ "open" ], [ "before" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "staff", "NN" ], [ "working", "VBG" ], [ "for", "IN" ], [ "museum", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "open", "JJ" ], [ "before", "IN" ], [ "2009", "CD" ], [ ".", "." ] ], "values": [ "2009" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(3) T(0) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "museum_visit", "query": "SELECT Num_of_Staff , Open_Year FROM museum WHERE name = 'Plaza Museum'", "query_toks": [ "SELECT", "Num_of_Staff", ",", "Open_Year", "FROM", "museum", "WHERE", "name", "=", "'Plaza", "Museum", "'" ], "query_toks_no_value": [ "select", "num_of_staff", ",", "open_year", "from", "museum", "where", "name", "=", "value" ], "question": "What are the opening year and staff number of the museum named Plaza Museum?", "question_toks": [ "what", "are", "opening", "year", "and", "staff", "number", "of", "museum", "named", "plaza", "museum", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Plaza Museum'", null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "opening", "year", "and", "staff", "number", "of", "the", "museum", "named", "Plaza", "Museum", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "opening" ], [ "year" ], [ "and" ], [ "staff" ], [ "number" ], [ "of" ], [ "museum" ], [ "named" ], [ "plaza" ], [ "museum" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "opening", "VBG" ], [ "year", "NN" ], [ "and", "CC" ], [ "staff", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "museum", "NN" ], [ "named", "VBN" ], [ "plaza", "NN" ], [ "museum", "NN" ], [ "?", "." ] ], "values": [ "Plaza Museum" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "museum_visit", "query": "SELECT name FROM museum WHERE num_of_staff > (SELECT min(num_of_staff) FROM museum WHERE open_year > 2010)", "query_toks": [ "SELECT", "name", "FROM", "museum", "WHERE", "num_of_staff", ">", "(", "SELECT", "min", "(", "num_of_staff", ")", "FROM", "museum", "WHERE", "open_year", ">", "2010", ")" ], "query_toks_no_value": [ "select", "name", "from", "museum", "where", "num_of_staff", ">", "(", "select", "min", "(", "num_of_staff", ")", "from", "museum", "where", "open_year", ">", "value", ")" ], "question": "find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.", "question_toks": [ "find", "name", "of", "museum", "which", "have", "more", "staff", "than", "minimum", "staff", "number", "of", "all", "museum", "opened", "after", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 2010.0, null ] ] }, null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "find", "the", "names", "of", "museums", "which", "have", "more", "staff", "than", "the", "minimum", "staff", "number", "of", "all", "museums", "opened", "after", "2010", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "museum" ], [ "which" ], [ "have" ], [ "more" ], [ "staff" ], [ "than" ], [ "minimum" ], [ "staff" ], [ "number" ], [ "of" ], [ "all" ], [ "museum" ], [ "opened" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "museum", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "staff", "NN" ], [ "than", "IN" ], [ "minimum", "JJ" ], [ "staff", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "museum", "NN" ], [ "opened", "VBD" ], [ "after", "IN" ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "2010" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(13) A(0) C(3) T(0) Root(3) Sel(0) N(0) A(2) C(3) T(0) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "museum_visit", "query": "SELECT t1.id , t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING count(*) > 1", "query_toks": [ "SELECT", "t1.id", ",", "t1.name", ",", "t1.age", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.id", "=", "t2.visitor_id", "GROUP", "BY", "t1.id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "age", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "value" ], "question": "find the id, name and age for visitors who visited some museums more than once.", "question_toks": [ "find", "id", ",", "name", "and", "age", "for", "visitor", "who", "visited", "some", "museum", "more", "than", "once", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "find", "the", "id", ",", "name", "and", "age", "for", "visitors", "who", "visited", "some", "museums", "more", "than", "once", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "," ], [ "name" ], [ "and" ], [ "age" ], [ "for" ], [ "visitor" ], [ "who" ], [ "visited" ], [ "some" ], [ "museum" ], [ "more" ], [ "than" ], [ "once" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "for", "IN" ], [ "visitor", "NN" ], [ "who", "WP" ], [ "visited", "VBD" ], [ "some", "DT" ], [ "museum", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "once", "RB" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(5) T(1) A(0) C(2) T(1) A(0) C(7) T(1) Filter(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "museum_visit", "query": "SELECT t2.visitor_id , t1.name , t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id, t1.name, t1.Level_of_membership ORDER BY sum(t2.Total_spent) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.visitor_id", ",", "t1.name", ",", "t1.Level_of_membership", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.id", "=", "t2.visitor_id", "GROUP", "BY", "t2.visitor_id", "ORDER", "BY", "sum", "(", "t2.Total_spent", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "visitor_id", ",", "t1", ".", "name", ",", "t1", ".", "level_of_membership", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "group", "by", "t2", ".", "visitor_id", "order", "by", "sum", "(", "t2", ".", "total_spent", ")", "desc", "limit", "value" ], "question": "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?", "question_toks": [ "what", "are", "id", ",", "name", "and", "membership", "level", "of", "visitor", "who", "have", "spent", "largest", "amount", "of", "money", "in", "total", "in", "all", "museum", "ticket", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "id", ",", "name", "and", "membership", "level", "of", "visitors", "who", "have", "spent", "the", "largest", "amount", "of", "money", "in", "total", "in", "all", "museum", "tickets", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "," ], [ "name" ], [ "and" ], [ "level", "of", "membership" ], [ "visitor" ], [ "who" ], [ "have" ], [ "spent" ], [ "largest" ], [ "amount" ], [ "of" ], [ "money" ], [ "in" ], [ "total" ], [ "in" ], [ "all" ], [ "museum" ], [ "ticket" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "membership", "NN" ], [ "level", "NN" ], [ "of", "IN" ], [ "visitor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "spent", "VBN" ], [ "largest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "money", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "in", "IN" ], [ "all", "DT" ], [ "museum", "NN" ], [ "ticket", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(5) T(2) A(0) C(2) T(1) A(0) C(6) T(1) Sup(0) A(4) C(9) T(2)" }, { "db_id": "museum_visit", "query": "SELECT t2.Museum_ID , t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID , t1.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.Museum_ID", ",", "t1.name", "FROM", "museum", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.Museum_ID", "=", "t2.Museum_ID", "GROUP", "BY", "t2.Museum_ID", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "museum_id", ",", "t1", ".", "name", "from", "museum", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "museum_id", "=", "t2", ".", "museum_id", "group", "by", "t2", ".", "museum_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the id and name of the museum visited most times?", "question_toks": [ "what", "are", "id", "and", "name", "of", "museum", "visited", "most", "time", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "id", "and", "name", "of", "the", "museum", "visited", "most", "times", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "museum" ], [ "visited" ], [ "most" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "museum", "NN" ], [ "visited", "VBN" ], [ "most", "JJS" ], [ "time", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(2) A(0) C(2) T(0) Sup(0) A(3) C(0) T(2)" }, { "db_id": "museum_visit", "query": "SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit)", "query_toks": [ "SELECT", "name", "FROM", "museum", "WHERE", "Museum_ID", "NOT", "IN", "(", "SELECT", "museum_id", "FROM", "visit", ")" ], "query_toks_no_value": [ "select", "name", "from", "museum", "where", "museum_id", "not", "in", "(", "select", "museum_id", "from", "visit", ")" ], "question": "What is the name of the museum that had no visitor yet?", "question_toks": [ "what", "is", "name", "of", "museum", "that", "had", "no", "visitor", "yet", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "museum", "that", "had", "no", "visitor", "yet", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "museum" ], [ "that" ], [ "had" ], [ "no" ], [ "visitor" ], [ "yet" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "museum", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "no", "DT" ], [ "visitor", "NN" ], [ "yet", "RB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(19) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "museum_visit", "query": "SELECT t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1", "query_toks": [ "SELECT", "t1.name", ",", "t1.age", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.id", "=", "t2.visitor_id", "ORDER", "BY", "t2.num_of_ticket", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "age", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "order", "by", "t2", ".", "num_of_ticket", "desc", "limit", "value" ], "question": "Find the name and age of the visitor who bought the most tickets at once.", "question_toks": [ "find", "name", "and", "age", "of", "visitor", "who", "bought", "most", "ticket", "at", "once", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "age", "of", "the", "visitor", "who", "bought", "the", "most", "tickets", "at", "once", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "age" ], [ "of" ], [ "visitor" ], [ "who" ], [ "bought" ], [ "most" ], [ "ticket" ], [ "at" ], [ "once" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "visitor", "NN" ], [ "who", "WP" ], [ "bought", "VBD" ], [ "most", "JJS" ], [ "ticket", "NN" ], [ "at", "IN" ], [ "once", "RB" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(1) A(0) C(7) T(1) Sup(0) A(0) C(8) T(2)" }, { "db_id": "museum_visit", "query": "SELECT avg(num_of_ticket) , max(num_of_ticket) FROM visit", "query_toks": [ "SELECT", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "FROM", "visit" ], "query_toks_no_value": [ "select", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "from", "visit" ], "question": "What are the average and maximum number of tickets bought in all visits?", "question_toks": [ "what", "are", "average", "and", "maximum", "number", "of", "ticket", "bought", "in", "all", "visit", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 11, false ], null ] ], [ 1, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "average", "and", "maximum", "number", "of", "tickets", "bought", "in", "all", "visits", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "and" ], [ "maximum" ], [ "number" ], [ "num", "of", "ticket" ], [ "bought" ], [ "in" ], [ "all" ], [ "visit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "ticket", "NN" ], [ "bought", "VBN" ], [ "in", "IN" ], [ "all", "DT" ], [ "visit", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(8) T(2) A(1) C(8) T(2)" }, { "db_id": "museum_visit", "query": "SELECT sum(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1", "query_toks": [ "SELECT", "sum", "(", "t2.Total_spent", ")", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.id", "=", "t2.visitor_id", "WHERE", "t1.Level_of_membership", "=", "1" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "total_spent", ")", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "where", "t1", ".", "level_of_membership", "=", "value" ], "question": "What is the total ticket expense of the visitors whose membership level is 1?", "question_toks": [ "what", "is", "total", "ticket", "expense", "of", "visitor", "whose", "membership", "level", "is", "1", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], 1.0, null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "ticket", "expense", "of", "the", "visitors", "whose", "membership", "level", "is", "1", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "ticket" ], [ "expense" ], [ "of" ], [ "visitor" ], [ "whose" ], [ "level", "of", "membership" ], [ "is" ], [ "1" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "ticket", "NN" ], [ "expense", "NN" ], [ "of", "IN" ], [ "visitor", "NN" ], [ "whose", "WP$" ], [ "membership", "NN" ], [ "level", "NN" ], [ "is", "VBZ" ], [ "1", "CD" ], [ "?", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(9) T(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "museum_visit", "query": "SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011", "query_toks": [ "SELECT", "t1.name", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.id", "=", "t2.visitor_id", "JOIN", "museum", "AS", "t3", "ON", "t3.Museum_ID", "=", "t2.Museum_ID", "WHERE", "t3.open_year", "<", "2009", "INTERSECT", "SELECT", "t1.name", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.id", "=", "t2.visitor_id", "JOIN", "museum", "AS", "t3", "ON", "t3.Museum_ID", "=", "t2.Museum_ID", "WHERE", "t3.open_year", ">", "2011" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "join", "museum", "as", "t3", "on", "t3", ".", "museum_id", "=", "t2", ".", "museum_id", "where", "t3", ".", "open_year", "<", "value", "intersect", "select", "t1", ".", "name", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "join", "museum", "as", "t3", "on", "t3", ".", "museum_id", "=", "t2", ".", "museum_id", "where", "t3", ".", "open_year", ">", "value" ], "question": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?", "question_toks": [ "what", "is", "name", "of", "visitor", "who", "visited", "both", "a", "museum", "opened", "before", "year", "and", "a", "museum", "opened", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 4, false ], null ], 2011.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 4, [ 0, [ 0, 4, false ], null ], 2009.0, null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "visitor", "who", "visited", "both", "a", "museum", "opened", "before", "2009", "and", "a", "museum", "opened", "after", "2011", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "visitor" ], [ "who" ], [ "visited" ], [ "both" ], [ "a" ], [ "museum" ], [ "opened" ], [ "before" ], [ "year" ], [ "and" ], [ "a" ], [ "museum" ], [ "opened" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "visitor", "NN" ], [ "who", "WP" ], [ "visited", "VBD" ], [ "both", "DT" ], [ "a", "DT" ], [ "museum", "NN" ], [ "opened", "VBN" ], [ "before", "IN" ], [ "2009", "CD" ], [ "and", "CC" ], [ "a", "DT" ], [ "museum", "NN" ], [ "opened", "VBN" ], [ "after", "IN" ], [ "2011", "CD" ], [ "?", "." ] ], "values": [ "2009", "2011" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(4) A(0) C(4) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(5) A(0) C(4) T(0) V(1)" }, { "db_id": "museum_visit", "query": "SELECT count(*) FROM visitor WHERE id NOT IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "visitor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "t2.visitor_id", "FROM", "museum", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1.Museum_ID", "=", "t2.Museum_ID", "WHERE", "t1.open_year", ">", "2010", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "visitor", "where", "id", "not", "in", "(", "select", "t2", ".", "visitor_id", "from", "museum", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "museum_id", "=", "t2", ".", "museum_id", "where", "t1", ".", "open_year", ">", "value", ")" ], "question": "Find the number of visitors who did not visit any museum opened after 2010.", "question_toks": [ "find", "number", "of", "visitor", "who", "did", "not", "visit", "any", "museum", "opened", "after", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 2010.0, null ] ] }, null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "visitors", "who", "did", "not", "visit", "any", "museum", "opened", "after", "2010", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "visitor" ], [ "who" ], [ "did" ], [ "not" ], [ "visit" ], [ "any" ], [ "museum" ], [ "opened" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "visitor", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "visit", "VB" ], [ "any", "DT" ], [ "museum", "NN" ], [ "opened", "VBN" ], [ "after", "IN" ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "2010" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(5) T(1) Root(3) Sel(0) N(0) A(0) C(5) T(2) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "museum_visit", "query": "SELECT count(*) FROM museum WHERE open_year > 2013 OR open_year < 2008", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "museum", "WHERE", "open_year", ">", "2013", "OR", "open_year", "<", "2008" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "museum", "where", "open_year", ">", "value", "or", "open_year", "<", "value" ], "question": "How many museums were opened after 2013 or before 2008?", "question_toks": [ "how", "many", "museum", "were", "opened", "after", "year", "or", "before", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 2013.0, null ], "or", [ false, 4, [ 0, [ 0, 4, false ], null ], 2008.0, null ] ] }, "names": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "name", "level of membership", "age", "museum id", "customer id", "num of ticket", "total spent" ], "table_names": [ "museum", "visitor", "visit" ], "col_set": [ "*", "museum id", "name", "num of staff", "open year", "customer id", "level of membership", "age", "num of ticket", "total spent" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "10": 5, "5": 5, "9": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "museums", "were", "opened", "after", "2013", "or", "before", "2008", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "museum" ], [ "were" ], [ "opened" ], [ "after" ], [ "year" ], [ "or" ], [ "before" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "museum", "NN" ], [ "were", "VBD" ], [ "opened", "VBN" ], [ "after", "IN" ], [ "2013", "CD" ], [ "or", "CC" ], [ "before", "IN" ], [ "2008", "CD" ], [ "?", "." ] ], "values": [ "2008", "2013" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(1) Filter(5) A(0) C(4) T(0) V(1) Filter(4) A(0) C(4) T(0) V(0)" }, { "db_id": "wta_1", "query": "SELECT count(*) FROM players", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "players" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "players" ], "question": "Find the total number of players.", "question_toks": [ "find", "total", "number", "of", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "players", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "wta_1", "query": "SELECT count(*) FROM matches", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "matches" ], "question": "Find the total number of matches.", "question_toks": [ "find", "total", "number", "of", "match", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "matches", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "match", "NN" ], [ ".", "." ] ], "values": [ "Matthews" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "wta_1", "query": "SELECT first_name , birth_date FROM players WHERE country_code = 'USA'", "query_toks": [ "SELECT", "first_name", ",", "birth_date", "FROM", "players", "WHERE", "country_code", "=", "'USA", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "birth_date", "from", "players", "where", "country_code", "=", "value" ], "question": "List the first name and birth date of all players from the country with code USA.", "question_toks": [ "list", "first", "name", "and", "birth", "date", "of", "all", "player", "from", "country", "with", "code", "usa", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"USA\"", null ] ] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "List", "the", "first", "name", "and", "birth", "date", "of", "all", "players", "from", "the", "country", "with", "code", "USA", "." ], "question_arg": [ [ "list" ], [ "first", "name" ], [ "and" ], [ "birth", "date" ], [ "of" ], [ "all" ], [ "player" ], [ "from" ], [ "country" ], [ "with" ], [ "code" ], [ "usa" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "birth", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ "from", "IN" ], [ "country", "NN" ], [ "with", "IN" ], [ "code", "JJ" ], [ "usa", "NN" ], [ ".", "." ] ], "values": [ "Naoe", "NAM", "USA", "Birch", "Coutry", "1", "Birthe", "Conde", "Birte" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(5) T(0) Filter(2) A(0) C(6) T(0) V(2)" }, { "db_id": "wta_1", "query": "SELECT avg(loser_age) , avg(winner_age) FROM matches", "query_toks": [ "SELECT", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "from", "matches" ], "question": "Find the average age of losers and winners of all matches.", "question_toks": [ "find", "average", "age", "of", "loser", "and", "winner", "of", "all", "match", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 9, false ], null ] ], [ 5, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "average", "age", "of", "losers", "and", "winners", "of", "all", "matches", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "of" ], [ "loser" ], [ "and" ], [ "winner" ], [ "of" ], [ "all" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "loser", "NN" ], [ "and", "CC" ], [ "winner", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "match", "NN" ], [ ".", "." ] ], "values": [ "Vage", "Page", "Agne", "Matthews" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(9) T(1) A(5) C(28) T(1)" }, { "db_id": "wta_1", "query": "SELECT avg(winner_rank) FROM matches", "query_toks": [ "SELECT", "avg", "(", "winner_rank", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "avg", "(", "winner_rank", ")", "from", "matches" ], "question": "Find the average rank of winners in all matches.", "question_toks": [ "find", "average", "rank", "of", "winner", "in", "all", "match", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "average", "rank", "of", "winners", "in", "all", "matches", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "rank" ], [ "of" ], [ "winner" ], [ "in" ], [ "all" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "rank", "NN" ], [ "of", "IN" ], [ "winner", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "match", "NN" ], [ ".", "." ] ], "values": [ "Rani", "Rana", "Matthews", "Rink", "Ran", "Rano", "Frank" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(35) T(1)" }, { "db_id": "wta_1", "query": "SELECT min(loser_rank) FROM matches", "query_toks": [ "SELECT", "min", "(", "loser_rank", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "min", "(", "loser_rank", ")", "from", "matches" ], "question": "Find the highest rank of losers in all matches.", "question_toks": [ "find", "highest", "rank", "of", "loser", "in", "all", "match", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "highest", "rank", "of", "losers", "in", "all", "matches", "." ], "question_arg": [ [ "find" ], [ "highest" ], [ "rank" ], [ "of" ], [ "loser" ], [ "in" ], [ "all" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "highest", "JJS" ], [ "rank", "NN" ], [ "of", "IN" ], [ "loser", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "match", "NN" ], [ ".", "." ] ], "values": [ "Rani", "Rana", "Matthews", "Rink", "Ran", "Rano", "Frank" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(2) C(16) T(1)" }, { "db_id": "wta_1", "query": "SELECT count(DISTINCT country_code) FROM players", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "country_code", ")", "FROM", "players" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "country_code", ")", "from", "players" ], "question": "find the number of distinct country codes of all players.", "question_toks": [ "find", "number", "of", "distinct", "country", "code", "of", "all", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "find", "the", "number", "of", "distinct", "country", "codes", "of", "all", "players", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "country", "code" ], [ "of" ], [ "all" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "country", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ ".", "." ] ], "values": [ "Coutry", "Hodes", "Coventry", "Coles" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(6) T(0)" }, { "db_id": "wta_1", "query": "SELECT count(DISTINCT loser_name) FROM matches", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "loser_name", ")", "FROM", "matches" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "loser_name", ")", "from", "matches" ], "question": "Find the number of distinct name of losers.", "question_toks": [ "find", "number", "of", "distinct", "name", "of", "loser", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "distinct", "name", "of", "losers", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "name" ], [ "of" ], [ "loser" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "loser", "NN" ], [ ".", "." ] ], "values": [ "Nami", "NAM", "Namu", "Rame", "Nam", "Naoe" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(15) T(1)" }, { "db_id": "wta_1", "query": "SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10", "query_toks": [ "SELECT", "tourney_name", "FROM", "matches", "GROUP", "BY", "tourney_name", "HAVING", "count", "(", "*", ")", ">", "10" ], "query_toks_no_value": [ "select", "tourney_name", "from", "matches", "group", "by", "tourney_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the name of tourney that has more than 10 matches.", "question_toks": [ "find", "name", "of", "tourney", "that", "ha", "more", "than", "10", "match", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 27, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "tourney", "that", "has", "more", "than", "10", "matches", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "tourney" ], [ "that" ], [ "ha" ], [ "more" ], [ "than" ], [ "10" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "tourney", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "match", "NN" ], [ ".", "." ] ], "values": [ "Matthews", "Namu", "Nam", "Courtney", "Rame", "NAM", "Naoe", "Nami", "10" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(27) T(1) Filter(5) A(3) C(0) T(1) V(8)" }, { "db_id": "wta_1", "query": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016", "query_toks": [ "SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "INTERSECT", "SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2016" ], "query_toks_no_value": [ "select", "winner_name", "from", "matches", "where", "year", "=", "value", "intersect", "select", "winner_name", "from", "matches", "where", "year", "=", "value" ], "question": "List the names of all winners who played in both 2013 and 2016.", "question_toks": [ "list", "name", "of", "all", "winner", "who", "played", "in", "both", "year", "and", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 2016.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 2013.0, null ] ] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "winners", "who", "played", "in", "both", "2013", "and", "2016", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "winner" ], [ "who" ], [ "played" ], [ "in" ], [ "both" ], [ "year" ], [ "and" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "winner", "NN" ], [ "who", "WP" ], [ "played", "VBD" ], [ "in", "IN" ], [ "both", "DT" ], [ "2013", "CD" ], [ "and", "CC" ], [ "2016", "CD" ], [ ".", "." ] ], "values": [ "2016", "2013", "Ames", "James" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(34) T(1) Filter(2) A(0) C(38) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(34) T(1) Filter(2) A(0) C(38) T(1) V(0)" }, { "db_id": "wta_1", "query": "SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "OR", "YEAR", "=", "2016" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "matches", "where", "year", "=", "value", "or", "year", "=", "value" ], "question": "List the number of all matches who played in years of 2013 or 2016.", "question_toks": [ "list", "number", "of", "all", "match", "who", "played", "in", "year", "of", "year", "or", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], 2013.0, null ], "or", [ false, 2, [ 0, [ 0, 38, false ], null ], 2016.0, null ] ] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "List", "the", "number", "of", "all", "matches", "who", "played", "in", "years", "of", "2013", "or", "2016", "." ], "question_arg": [ [ "list" ], [ "number" ], [ "of" ], [ "all" ], [ "match" ], [ "who" ], [ "played" ], [ "in" ], [ "year" ], [ "of" ], [ "year" ], [ "or" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "match", "NN" ], [ "who", "WP" ], [ "played", "VBD" ], [ "in", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2013", "CD" ], [ "or", "CC" ], [ "2016", "CD" ], [ ".", "." ] ], "values": [ "Matthews", "2016", "2013" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(1) Filter(2) A(0) C(38) T(1) V(2) Filter(2) A(0) C(38) T(1) V(1)" }, { "db_id": "wta_1", "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'", "query_toks": [ "SELECT", "T1.country_code", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "matches", "AS", "T2", "ON", "T1.player_id", "=", "T2.winner_id", "WHERE", "T2.tourney_name", "=", "'WTA", "Championships", "'", "INTERSECT", "SELECT", "T1.country_code", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "matches", "AS", "T2", "ON", "T1.player_id", "=", "T2.winner_id", "WHERE", "T2.tourney_name", "=", "'Australian", "Open", "'" ], "query_toks_no_value": [ "select", "t1", ".", "country_code", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "matches", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "winner_id", "where", "t2", ".", "tourney_name", "=", "value", "intersect", "select", "t1", ".", "country_code", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "matches", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "winner_id", "where", "t2", ".", "tourney_name", "=", "value" ], "question": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?", "question_toks": [ "what", "are", "country", "code", "and", "first", "name", "of", "player", "who", "won", "in", "both", "tourney", "wta", "championship", "and", "australian", "open", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "'Australian Open'", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "'WTA Championships'", null ] ] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "What", "are", "the", "country", "code", "and", "first", "name", "of", "the", "players", "who", "won", "in", "both", "tourney", "WTA", "Championships", "and", "Australian", "Open", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country", "code" ], [ "and" ], [ "first", "name" ], [ "of" ], [ "player" ], [ "who" ], [ "won" ], [ "in" ], [ "both" ], [ "tourney" ], [ "wta" ], [ "championship" ], [ "and" ], [ "australian" ], [ "open" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "won", "VBD" ], [ "in", "IN" ], [ "both", "DT" ], [ "tourney", "NN" ], [ "wta", "NN" ], [ "championship", "NN" ], [ "and", "CC" ], [ "australian", "JJ" ], [ "open", "NN" ], [ "?", "." ] ], "values": [ "Coutry", "Conde", "Nam", "Courtney", "Oyen", "Australian Open", "Coventry", "1", "WTA Championships", "Cody" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(6) T(0) A(0) C(2) T(0) Filter(2) A(0) C(27) T(1) V(8) Root(3) Sel(0) N(1) A(0) C(6) T(0) A(0) C(2) T(0) Filter(2) A(0) C(27) T(1) V(5)" }, { "db_id": "wta_1", "query": "SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1", "query_toks": [ "SELECT", "first_name", ",", "country_code", "FROM", "players", "ORDER", "BY", "birth_date", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", ",", "country_code", "from", "players", "order", "by", "birth_date", "limit", "value" ], "question": "Find the first name and country code of the oldest player.", "question_toks": [ "find", "first", "name", "and", "country", "code", "of", "oldest", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "country", "code", "of", "the", "oldest", "player", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "country", "code" ], [ "of" ], [ "oldest" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "country", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "oldest", "JJS" ], [ "player", "NN" ], [ ".", "." ] ], "values": [ "Coe", "NAM", "1", "Payer", "Coventry", "Nam", "Pleyer", "Naoe", "Conde", "Cody", "Coutry" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(6) T(0) Sup(1) A(0) C(5) T(0)" }, { "db_id": "wta_1", "query": "SELECT first_name , last_name FROM players ORDER BY birth_date", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date" ], "question": "List the first and last name of all players in the order of birth date.", "question_toks": [ "List", "the", "first", "and", "last", "name", "of", "all", "players", "in", "the", "order", "of", "birth", "date", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "wta_1", "query": "SELECT first_name , last_name FROM players ORDER BY birth_date", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date" ], "question": "What are the full names of all players, sorted by birth date?", "question_toks": [ "What", "are", "the", "full", "names", "of", "all", "players", ",", "sorted", "by", "birth", "date", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "wta_1", "query": "SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "players", "WHERE", "hand", "=", "'L", "'", "ORDER", "BY", "birth_date" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "players", "where", "hand", "=", "value", "order", "by", "birth_date" ], "question": "List the first and last name of all players who are left / L hand in the order of birth date.", "question_toks": [ "list", "first", "and", "last", "name", "of", "all", "player", "who", "are", "left", "/", "l", "hand", "in", "order", "of", "birth", "date", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "'L'", null ] ] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "List", "the", "first", "and", "last", "name", "of", "all", "players", "who", "are", "left", "/", "L", "hand", "in", "the", "order", "of", "birth", "date", "." ], "question_arg": [ [ "list" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "player" ], [ "who" ], [ "are" ], [ "left" ], [ "/" ], [ "l" ], [ "hand" ], [ "in" ], [ "order" ], [ "of" ], [ "birth", "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "left", "VBN" ], [ "/", "JJ" ], [ "l", "JJ" ], [ "hand", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "AND", "Nam", "Hana", "1", "Handa", "Han", "Rame", "Nami", "NAM", "Hande", "L" ], "all_values_found": false, "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(2) A(0) C(4) T(0) V(10) Order(1) A(0) C(5) T(0)" }, { "db_id": "wta_1", "query": "SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1", "query_toks": [ "SELECT", "T1.country_code", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "rankings", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "ORDER", "BY", "T2.tours", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "country_code", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "rankings", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "order", "by", "t2", ".", "tours", "desc", "limit", "value" ], "question": "Find the first name and country code of the player who did the most number of tours.", "question_toks": [ "find", "first", "name", "and", "country", "code", "of", "player", "who", "did", "most", "number", "of", "tour", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 41, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 43, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "country", "code", "of", "the", "player", "who", "did", "the", "most", "number", "of", "tours", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "country", "code" ], [ "of" ], [ "player" ], [ "who" ], [ "did" ], [ "most" ], [ "number" ], [ "of" ], [ "tour" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "country", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "tour", "NN" ], [ ".", "." ] ], "values": [ "Coutry", "Conde", "Pleyer", "Nam", "1", "Tour", "Rame", "Nami", "NAM", "Toure", "Payer" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(6) T(0) A(0) C(2) T(0) Sup(0) A(0) C(42) T(2)" }, { "db_id": "wta_1", "query": "SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "year", "from", "matches", "group", "by", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the year that has the most number of matches.", "question_toks": [ "find", "year", "that", "ha", "most", "number", "of", "match", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 38, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "year", "that", "has", "the", "most", "number", "of", "matches", "." ], "question_arg": [ [ "find" ], [ "year" ], [ "that" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "year", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "match", "NN" ], [ ".", "." ] ], "values": [ "Matthews" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(38) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "wta_1", "query": "SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name, winner_rank_points ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "winner_name", ",", "winner_rank_points", "FROM", "matches", "GROUP", "BY", "winner_name", "winner_rank_points", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "winner_name", ",", "winner_rank_points", "from", "matches", "group", "by", "winner_name", "winner_rank_points", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name and rank points of the winner who won the most times.", "question_toks": [ "find", "name", "and", "rank", "point", "of", "winner", "who", "won", "most", "time", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 34, false ],[ 0, 36, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "rank", "points", "of", "the", "winner", "who", "won", "the", "most", "times", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "rank" ], [ "point" ], [ "of" ], [ "winner" ], [ "who" ], [ "won" ], [ "most" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "rank", "NN" ], [ "point", "NN" ], [ "of", "IN" ], [ "winner", "NN" ], [ "who", "WP" ], [ "won", "VBD" ], [ "most", "RBS" ], [ "time", "NN" ], [ ".", "." ] ], "values": [ "Rimes", "Imes", "Bimes", "Namu", "Nam", "Timms", "Wenner", "Wimes", "Nami", "Timea" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(34) T(1) A(0) C(36) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "wta_1", "query": "SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1", "query_toks": [ "SELECT", "winner_name", "FROM", "matches", "WHERE", "tourney_name", "=", "'Australian", "Open", "'", "ORDER", "BY", "winner_rank_points", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "winner_name", "from", "matches", "where", "tourney_name", "=", "value", "order", "by", "winner_rank_points", "desc", "limit", "value" ], "question": "Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.", "question_toks": [ "find", "name", "of", "winner", "who", "ha", "highest", "rank", "point", "and", "participated", "in", "australian", "open", "tourney", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 36, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "'Australian Open'", null ] ] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "winner", "who", "has", "the", "highest", "rank", "points", "and", "participated", "in", "the", "Australian", "Open", "tourney", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "winner" ], [ "who" ], [ "ha" ], [ "highest" ], [ "rank" ], [ "point" ], [ "and" ], [ "participated" ], [ "in" ], [ "australian" ], [ "open" ], [ "tourney" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "winner", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "highest", "JJS" ], [ "rank", "NN" ], [ "point", "NN" ], [ "and", "CC" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "australian", "JJ" ], [ "open", "JJ" ], [ "tourney", "NN" ], [ ".", "." ] ], "values": [ "Naoe", "Australian Open", "Namu", "Oyen", "Courtney", "Nami", "Wenner", "NAM", "Rame" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(34) T(1) Sup(0) A(0) C(36) T(1) Filter(2) A(0) C(27) T(1) V(1)" }, { "db_id": "wta_1", "query": "SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1", "query_toks": [ "SELECT", "winner_name", ",", "loser_name", "FROM", "matches", "ORDER", "BY", "minutes", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "winner_name", ",", "loser_name", "from", "matches", "order", "by", "minutes", "desc", "limit", "value" ], "question": "find the names of loser and winner who played in the match with greatest number of minutes.", "question_toks": [ "find", "name", "of", "loser", "and", "winner", "who", "played", "in", "match", "with", "greatest", "number", "of", "minute", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 20, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "find", "the", "names", "of", "loser", "and", "winner", "who", "played", "in", "the", "match", "with", "greatest", "number", "of", "minutes", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "loser" ], [ "and" ], [ "winner" ], [ "who" ], [ "played" ], [ "in" ], [ "match" ], [ "with" ], [ "greatest" ], [ "number" ], [ "of" ], [ "minute" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "loser", "NN" ], [ "and", "CC" ], [ "winner", "NN" ], [ "who", "WP" ], [ "played", "VBD" ], [ "in", "IN" ], [ "match", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "minute", "NN" ], [ ".", "." ] ], "values": [ "Losel", "James", "Wenner", "Moser", "Patch", "Losey", "Ames", "Hatch" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(34) T(1) A(0) C(15) T(1) Sup(0) A(0) C(20) T(1)" }, { "db_id": "wta_1", "query": "SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", "query_toks": [ "SELECT", "avg", "(", "ranking", ")", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "rankings", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.first_name" ], "query_toks_no_value": [ "select", "avg", "(", "ranking", ")", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "rankings", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "first_name" ], "question": "What are the first names of all players, and their average rankings?", "question_toks": [ "What", "are", "the", "first", "names", "of", "all", "players", ",", "and", "their", "average", "rankings", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 41, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 40, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "wta_1", "query": "SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name", "query_toks": [ "SELECT", "sum", "(", "ranking_points", ")", ",", "T1.first_name", "FROM", "players", "AS", "T1", "JOIN", "rankings", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.first_name" ], "query_toks_no_value": [ "select", "sum", "(", "ranking_points", ")", ",", "t1", ".", "first_name", "from", "players", "as", "t1", "join", "rankings", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "first_name" ], "question": "Find the total ranking points for each player and their first name.", "question_toks": [ "find", "total", "ranking", "point", "for", "each", "player", "and", "their", "first", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 41, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 42, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "total", "ranking", "points", "for", "each", "player", "and", "their", "first", "name", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "ranking", "point" ], [ "for" ], [ "each" ], [ "player" ], [ "and" ], [ "their" ], [ "first", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "ranking", "JJ" ], [ "point", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "player", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Payer", "Rankin", "Rankine", "Nami", "Pleyer", "Namu", "Naoe", "1", "Nam", "NAM" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(41) T(2) A(0) C(2) T(0)" }, { "db_id": "wta_1", "query": "SELECT count(*) , country_code FROM players GROUP BY country_code", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "country_code", "FROM", "players", "GROUP", "BY", "country_code" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "country_code", "from", "players", "group", "by", "country_code" ], "question": "find the number of players for each country.", "question_toks": [ "find", "number", "of", "player", "for", "each", "country", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "find", "the", "number", "of", "players", "for", "each", "country", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "player" ], [ "for" ], [ "each" ], [ "country" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ ".", "." ] ], "values": [ "Coventry", "Coutry" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(6) T(0)" }, { "db_id": "wta_1", "query": "SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "country_code", "from", "players", "group", "by", "country_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "find the code of the country where has the greatest number of players.", "question_toks": [ "find", "code", "of", "country", "where", "ha", "greatest", "number", "of", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "find", "the", "code", "of", "the", "country", "where", "has", "the", "greatest", "number", "of", "players", "." ], "question_arg": [ [ "find" ], [ "code" ], [ "of" ], [ "country" ], [ "where" ], [ "ha" ], [ "greatest" ], [ "number" ], [ "of" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "code", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "where", "WRB" ], [ "ha", "NN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ ".", "." ] ], "values": [ "Coutry", "Conde", "Coe", "Coventry", "Cody" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "wta_1", "query": "SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50", "query_toks": [ "SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code", "HAVING", "count", "(", "*", ")", ">", "50" ], "query_toks_no_value": [ "select", "country_code", "from", "players", "group", "by", "country_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the codes of countries that have more than 50 players.", "question_toks": [ "find", "code", "of", "country", "that", "have", "more", "than", "50", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 50.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "codes", "of", "countries", "that", "have", "more", "than", "50", "players", "." ], "question_arg": [ [ "find" ], [ "code" ], [ "of" ], [ "country" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "50" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "code", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ "player", "NN" ], [ ".", "." ] ], "values": [ "50", "Coles", "Hodes" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "wta_1", "query": "SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date", "query_toks": [ "SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date" ], "query_toks_no_value": [ "select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date" ], "question": "Find the total number of tours for each ranking date.", "question_toks": [ "find", "total", "number", "of", "tour", "for", "each", "ranking", "date", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 39, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 43, false ], null ] ], [ 0, [ 0, [ 0, 39, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "tours", "for", "each", "ranking", "date", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "tour" ], [ "for" ], [ "each" ], [ "ranking", "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "tour", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "ranking", "JJ" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "Toure", "Tour" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(42) T(2) A(0) C(39) T(2)" }, { "db_id": "wta_1", "query": "SELECT count(*) , YEAR FROM matches GROUP BY YEAR", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "year", "from", "matches", "group", "by", "year" ], "question": "Find the number of matches happened in each year.", "question_toks": [ "find", "number", "of", "match", "happened", "in", "each", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 38, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "matches", "happened", "in", "each", "year", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "match" ], [ "happened" ], [ "in" ], [ "each" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "match", "NN" ], [ "happened", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "year", "NN" ], [ ".", "." ] ], "values": [ "Matthews" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(38) T(1)" }, { "db_id": "wta_1", "query": "SELECT DISTINCT winner_name , winner_rank, winner_age FROM matches ORDER BY winner_age LIMIT 3", "query_toks": [ "SELECT", "DISTINCT", "winner_name", ",", "winner_rank", "FROM", "matches", "ORDER", "BY", "winner_age", "LIMIT", "3" ], "query_toks_no_value": [ "select", "distinct", "winner_name", ",", "winner_rank", "from", "matches", "order", "by", "winner_age", "limit", "value" ], "question": "Find the name and rank of the 3 youngest winners across all matches.", "question_toks": [ "find", "name", "and", "rank", "of", "3", "youngest", "winner", "across", "all", "match", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 28, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "rank", "of", "the", "3", "youngest", "winners", "across", "all", "matches", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "rank" ], [ "of" ], [ "3" ], [ "youngest" ], [ "winner" ], [ "across" ], [ "all" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "rank", "NN" ], [ "of", "IN" ], [ "3", "CD" ], [ "youngest", "JJS" ], [ "winner", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "match", "NN" ], [ ".", "." ] ], "values": [ "Rana", "Nami", "NAM", "Frank", "3", "Rink", "Ran", "Nam", "Rani", "Naoe" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(1) N(1) A(0) C(34) T(1) A(0) C(35) T(1) Sup(1) A(0) C(28) T(1)" }, { "db_id": "wta_1", "query": "SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "'WTA", "Championships", "'", "AND", "winner_hand", "=", "'L", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "value", "and", "winner_hand", "=", "value" ], "question": "How many different winners both participated in the WTA Championships and were left handed?", "question_toks": [ "how", "many", "different", "winner", "both", "participated", "in", "wta", "championship", "and", "were", "left", "handed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 34, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "'WTA Championships'", null ], "and", [ false, 2, [ 0, [ 0, 30, false ], null ], "'L'", null ] ] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "How", "many", "different", "winners", "both", "participated", "in", "the", "WTA", "Championships", "and", "were", "left", "handed", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "winner" ], [ "both" ], [ "participated" ], [ "in" ], [ "wta" ], [ "championship" ], [ "and" ], [ "were" ], [ "left" ], [ "handed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "winner", "NN" ], [ "both", "DT" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "wta", "JJ" ], [ "championship", "NN" ], [ "and", "CC" ], [ "were", "VBD" ], [ "left", "VBN" ], [ "handed", "VBN" ], [ "?", "." ] ], "values": [ "WTA Championships", "L" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(34) T(1) Filter(0) Filter(2) A(0) C(27) T(1) V(0) Filter(2) A(0) C(30) T(1) V(1)" }, { "db_id": "wta_1", "query": "SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.country_code", ",", "T1.birth_date", "FROM", "players", "AS", "T1", "JOIN", "matches", "AS", "T2", "ON", "T1.player_id", "=", "T2.winner_id", "ORDER", "BY", "T2.winner_rank_points", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "country_code", ",", "t1", ".", "birth_date", "from", "players", "as", "t1", "join", "matches", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "winner_id", "order", "by", "t2", ".", "winner_rank_points", "desc", "limit", "value" ], "question": "Find the first name, country code and birth date of the winner who has the highest rank points in all matches.", "question_toks": [ "find", "first", "name", ",", "country", "code", "and", "birth", "date", "of", "winner", "who", "ha", "highest", "rank", "point", "in", "all", "match", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 36, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "first", "name", ",", "country", "code", "and", "birth", "date", "of", "the", "winner", "who", "has", "the", "highest", "rank", "points", "in", "all", "matches", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "," ], [ "country", "code" ], [ "and" ], [ "birth", "date" ], [ "of" ], [ "winner" ], [ "who" ], [ "ha" ], [ "highest" ], [ "rank" ], [ "point" ], [ "in" ], [ "all" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "country", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "birth", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "winner", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "highest", "JJS" ], [ "rank", "NN" ], [ "point", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "match", "NN" ], [ ".", "." ] ], "values": [ "Coutry", "Birthe", "Nami", "1", "Conde", "Birte", "Coe", "Wenner", "Cody", "Birch" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(2) T(0) A(0) C(6) T(0) A(0) C(5) T(0) Sup(0) A(0) C(36) T(1)" }, { "db_id": "wta_1", "query": "SELECT count(*) , hand FROM players GROUP BY hand", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "hand", "FROM", "players", "GROUP", "BY", "hand" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "hand", "from", "players", "group", "by", "hand" ], "question": "Find the number of players for each hand type.", "question_toks": [ "find", "number", "of", "player", "for", "each", "hand", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "player id", "ranking points", "tours" ], "table_names": [ "players", "matches", "rankings" ], "col_set": [ "*", "player id", "first name", "last name", "hand", "birth date", "country code", "best of", "draw size", "loser age", "loser entry", "loser hand", "loser ht", "loser id", "loser ioc", "loser name", "loser rank", "loser rank points", "loser seed", "match num", "minutes", "round", "score", "surface", "tourney date", "tourney id", "tourney level", "tourney name", "winner age", "winner entry", "winner hand", "winner ht", "winner id", "winner ioc", "winner name", "winner rank", "winner rank points", "winner seed", "year", "ranking date", "ranking", "ranking points", "tours" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "32": 1, "1": 1, "13": 1, "41": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "players", "for", "each", "hand", "type", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "player" ], [ "for" ], [ "each" ], [ "hand" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "hand", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "Hana", "Handa", "TPE", "Hard", "Hande", "Hend", "Hind" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(0) A(0) C(4) T(0)" }, { "db_id": "battle_death", "query": "SELECT count(*) FROM ship WHERE disposition_of_ship = 'Captured'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ship", "WHERE", "disposition_of_ship", "=", "'Captured", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "ship", "where", "disposition_of_ship", "=", "value" ], "question": "How many ships ended up being 'Captured'?", "question_toks": [ "how", "many", "ship", "ended", "up", "being", "'", "captured", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "'Captured'", null ] ] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "How", "many", "ships", "ended", "up", "being", "'Captured", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "ship" ], [ "ended" ], [ "up" ], [ "being" ], [ "'" ], [ "captured" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "ship", "NN" ], [ "ended", "VBD" ], [ "up", "RP" ], [ "being", "VBG" ], [ "'", "''" ], [ "captured", "VBN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Captured" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(11) T(1) V(0)" }, { "db_id": "battle_death", "query": "SELECT name , tonnage FROM ship ORDER BY name DESC", "query_toks": [ "SELECT", "name", ",", "tonnage", "FROM", "ship", "ORDER", "BY", "name", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "tonnage", "from", "ship", "order", "by", "name", "desc" ], "question": "List the name and tonnage ordered by in descending alphaetical order for the names.", "question_toks": [ "list", "name", "and", "tonnage", "ordered", "by", "in", "descending", "alphaetical", "order", "for", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "List", "the", "name", "and", "tonnage", "ordered", "by", "in", "descending", "alphaetical", "order", "for", "the", "names", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "tonnage" ], [ "ordered" ], [ "by" ], [ "in" ], [ "descending" ], [ "alphaetical" ], [ "order" ], [ "for" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "tonnage", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "alphaetical", "JJ" ], [ "order", "NN" ], [ "for", "IN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(1) A(0) C(8) T(1) Order(0) A(0) C(2) T(1)" }, { "db_id": "battle_death", "query": "SELECT name , date FROM battle", "query_toks": [ "SELECT", "name", ",", "date", "FROM", "battle" ], "query_toks_no_value": [ "select", "name", ",", "date", "from", "battle" ], "question": "List the name, date and result of each battle.", "question_toks": [ "list", "name", ",", "date", "and", "result", "of", "each", "battle", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "List", "the", "name", ",", "date", "and", "result", "of", "each", "battle", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "," ], [ "date" ], [ "and" ], [ "result" ], [ "of" ], [ "each" ], [ "battle" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "date", "NN" ], [ "and", "CC" ], [ "result", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "battle", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0)" }, { "db_id": "battle_death", "query": "SELECT max(killed) , min(killed) FROM death", "query_toks": [ "SELECT", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "FROM", "death" ], "query_toks_no_value": [ "select", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "from", "death" ], "question": "What is maximum and minimum death toll caused each time?", "question_toks": [ "what", "is", "maximum", "and", "minimum", "death", "toll", "caused", "each", "time", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 17, false ], null ] ], [ 2, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "What", "is", "maximum", "and", "minimum", "death", "toll", "caused", "each", "time", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "death" ], [ "toll" ], [ "caused" ], [ "each" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "death", "NN" ], [ "toll", "NN" ], [ "caused", "VBD" ], [ "each", "DT" ], [ "time", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(14) T(2) A(2) C(14) T(2)" }, { "db_id": "battle_death", "query": "SELECT avg(injured) FROM death", "query_toks": [ "SELECT", "avg", "(", "injured", ")", "FROM", "death" ], "query_toks_no_value": [ "select", "avg", "(", "injured", ")", "from", "death" ], "question": "What is the average number of injuries caused each time?", "question_toks": [ "what", "is", "average", "number", "of", "injury", "caused", "each", "time", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "injuries", "caused", "each", "time", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "injury" ], [ "caused" ], [ "each" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "injury", "NN" ], [ "caused", "VBN" ], [ "each", "DT" ], [ "time", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(15) T(2)" }, { "db_id": "battle_death", "query": "SELECT T1.killed , T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'", "query_toks": [ "SELECT", "T1.killed", ",", "T1.injured", "FROM", "death", "AS", "T1", "JOIN", "ship", "AS", "t2", "ON", "T1.caused_by_ship_id", "=", "T2.id", "WHERE", "T2.tonnage", "=", "'t", "'" ], "query_toks_no_value": [ "select", "t1", ".", "killed", ",", "t1", ".", "injured", "from", "death", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "caused_by_ship_id", "=", "t2", ".", "id", "where", "t2", ".", "tonnage", "=", "value" ], "question": "What are the death and injury situations caused by the ship with tonnage 't'?", "question_toks": [ "what", "are", "death", "and", "injury", "situation", "caused", "by", "ship", "with", "tonnage", "'t", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'t'", null ] ] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "death", "and", "injury", "situations", "caused", "by", "the", "ship", "with", "tonnage", "'t", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "death" ], [ "and" ], [ "injury" ], [ "situation" ], [ "caused" ], [ "by" ], [ "ship" ], [ "with" ], [ "tonnage" ], [ "'t" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "death", "NN" ], [ "and", "CC" ], [ "injury", "NN" ], [ "situation", "NN" ], [ "caused", "VBN" ], [ "by", "IN" ], [ "ship", "NN" ], [ "with", "IN" ], [ "tonnage", "NN" ], [ "'t", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "t" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(14) T(2) A(0) C(15) T(2) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "battle_death", "query": "SELECT name , RESULT FROM battle WHERE bulgarian_commander != 'Boril'", "query_toks": [ "SELECT", "name", ",", "RESULT", "FROM", "battle", "WHERE", "bulgarian_commander", "!", "=", "'Boril", "'" ], "query_toks_no_value": [ "select", "name", ",", "result", "from", "battle", "where", "bulgarian_commander", "!", "=", "value" ], "question": "What are the name and results of the battles when the bulgarian commander is not 'Boril'", "question_toks": [ "what", "are", "name", "and", "result", "of", "battle", "when", "bulgarian", "commander", "is", "not", "'", "boril", "'" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "'Boril'", null ] ] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "results", "of", "the", "battles", "when", "the", "bulgarian", "commander", "is", "not", "'Boril", "'" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "result" ], [ "of" ], [ "battle" ], [ "when" ], [ "bulgarian", "commander" ], [ "is" ], [ "not" ], [ "'" ], [ "boril" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "result", "NN" ], [ "of", "IN" ], [ "battle", "NN" ], [ "when", "WRB" ], [ "bulgarian", "JJ" ], [ "commander", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "boril", "NN" ], [ "'", "''" ] ], "values": [ "Boril" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(6) T(0) Filter(3) A(0) C(4) T(0) V(0)" }, { "db_id": "battle_death", "query": "SELECT DISTINCT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig'", "query_toks": [ "SELECT", "DISTINCT", "T1.id", ",", "T1.name", "FROM", "battle", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.id", "=", "T2.lost_in_battle", "WHERE", "T2.ship_type", "=", "'Brig", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "id", ",", "t1", ".", "name", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "ship_type", "=", "value" ], "question": "What are the different ids and names of the battles that lost any 'Brig' type shipes?", "question_toks": [ "what", "are", "different", "id", "and", "name", "of", "battle", "that", "lost", "any", "'", "brig", "'", "type", "shipes", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'Brig'", null ] ] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "different", "ids", "and", "names", "of", "the", "battles", "that", "lost", "any", "'Brig", "'", "type", "shipes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "battle" ], [ "that" ], [ "lost" ], [ "any" ], [ "'" ], [ "brig" ], [ "'" ], [ "type" ], [ "shipes" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "battle", "NN" ], [ "that", "IN" ], [ "lost", "VBD" ], [ "any", "DT" ], [ "'", "''" ], [ "brig", "NN" ], [ "'", "''" ], [ "type", "NN" ], [ "shipes", "NNS" ], [ "?", "." ] ], "values": [ "Brig" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "battle_death", "query": "SELECT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed) > 10", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", "FROM", "battle", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.id", "=", "T2.lost_in_battle", "JOIN", "death", "AS", "T3", "ON", "T2.id", "=", "T3.caused_by_ship_id", "GROUP", "BY", "T1.id", "HAVING", "sum", "(", "T3.killed", ")", ">", "10" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "join", "death", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "caused_by_ship_id", "group", "by", "t1", ".", "id", "having", "sum", "(", "t3", ".", "killed", ")", ">", "value" ], "question": "What are the ids and names of the battles that led to more than 10 people killed in total.", "question_toks": [ "what", "are", "id", "and", "name", "of", "battle", "that", "led", "to", "more", "than", "10", "people", "killed", "in", "total", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 3, [ 0, [ 4, 17, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "names", "of", "the", "battles", "that", "led", "to", "more", "than", "10", "people", "killed", "in", "total", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "battle" ], [ "that" ], [ "led" ], [ "to" ], [ "more" ], [ "than" ], [ "10" ], [ "people" ], [ "killed" ], [ "in" ], [ "total" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "battle", "NN" ], [ "that", "WDT" ], [ "led", "VBD" ], [ "to", "TO" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "people", "NNS" ], [ "killed", "VBN" ], [ "in", "IN" ], [ "total", "JJ" ], [ ".", "." ] ], "values": [ "10" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(1) Filter(5) A(4) C(14) T(2) V(0)" }, { "db_id": "battle_death", "query": "SELECT T2.id , T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.id", ",", "T2.name", "FROM", "death", "AS", "T1", "JOIN", "ship", "AS", "t2", "ON", "T1.caused_by_ship_id", "=", "T2.id", "GROUP", "BY", "T2.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "id", ",", "t2", ".", "name", "from", "death", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "caused_by_ship_id", "=", "t2", ".", "id", "group", "by", "t2", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the ship id and name that caused most total injuries?", "question_toks": [ "what", "is", "ship", "id", "and", "name", "that", "caused", "most", "total", "injury", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "ship", "id", "and", "name", "that", "caused", "most", "total", "injuries", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "ship" ], [ "id" ], [ "and" ], [ "name" ], [ "that" ], [ "caused" ], [ "most" ], [ "total" ], [ "injury" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "ship", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "that", "WDT" ], [ "caused", "VBD" ], [ "most", "RBS" ], [ "total", "JJ" ], [ "injury", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(1) T(1) A(0) C(2) T(1) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(12) T(2)" }, { "db_id": "battle_death", "query": "SELECT name FROM battle WHERE bulgarian_commander = 'Kaloyan' AND latin_commander = 'Baldwin I'", "query_toks": [ "SELECT", "name", "FROM", "battle", "WHERE", "bulgarian_commander", "=", "'Kaloyan", "'", "AND", "latin_commander", "=", "'Baldwin", "I", "'" ], "query_toks_no_value": [ "select", "name", "from", "battle", "where", "bulgarian_commander", "=", "value", "and", "latin_commander", "=", "value" ], "question": "What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?", "question_toks": [ "what", "are", "distinct", "battle", "name", "which", "are", "between", "bulgarian", "commander", "'", "kaloyan", "'", "and", "latin", "commander", "'", "baldwin", "i", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "'Kaloyan'", null ], "and", [ false, 2, [ 0, [ 0, 5, false ], null ], "'Baldwin I'", null ] ] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "distinct", "battle", "names", "which", "are", "between", "bulgarian", "commander", "'Kaloyan", "'", "and", "latin", "commander", "'Baldwin", "I", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "battle" ], [ "name" ], [ "which" ], [ "are" ], [ "between" ], [ "bulgarian", "commander" ], [ "'" ], [ "kaloyan" ], [ "'" ], [ "and" ], [ "latin", "commander" ], [ "'" ], [ "baldwin" ], [ "i" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "battle", "NN" ], [ "name", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "between", "IN" ], [ "bulgarian", "JJ" ], [ "commander", "NN" ], [ "'", "''" ], [ "kaloyan", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "latin", "JJ" ], [ "commander", "NN" ], [ "'", "POS" ], [ "baldwin", "NN" ], [ "i", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Kaloyan", "Baldwin I" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(4) T(0) V(0) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "battle_death", "query": "SELECT count(DISTINCT RESULT) FROM battle", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "RESULT", ")", "FROM", "battle" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "result", ")", "from", "battle" ], "question": "How many different results are there for the battles?", "question_toks": [ "how", "many", "different", "result", "are", "there", "for", "battle", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 6, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "How", "many", "different", "results", "are", "there", "for", "the", "battles", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "result" ], [ "are" ], [ "there" ], [ "for" ], [ "battle" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "result", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "battle", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(6) T(0)" }, { "db_id": "battle_death", "query": "SELECT count(*) FROM battle WHERE id NOT IN ( SELECT lost_in_battle FROM ship WHERE tonnage = '225' );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "battle", "WHERE", "id", "NOT", "IN", "(", "SELECT", "lost_in_battle", "FROM", "ship", "WHERE", "tonnage", "=", "'225", "'", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "battle", "where", "id", "not", "in", "(", "select", "lost_in_battle", "from", "ship", "where", "tonnage", "=", "value", ")" ], "question": "How many battles did not lose any ship with tonnage '225'?", "question_toks": [ "how", "many", "battle", "did", "not", "lose", "any", "ship", "with", "tonnage", "'", "225", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'225'", null ] ] }, null ] ] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "How", "many", "battles", "did", "not", "lose", "any", "ship", "with", "tonnage", "'225", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "battle" ], [ "did" ], [ "not" ], [ "lose" ], [ "any" ], [ "ship" ], [ "with" ], [ "tonnage" ], [ "'" ], [ "225" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "battle", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "lose", "VB" ], [ "any", "DT" ], [ "ship", "NN" ], [ "with", "IN" ], [ "tonnage", "NN" ], [ "'", "POS" ], [ "225", "CD" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "225" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(19) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "battle_death", "query": "SELECT T1.name , T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name , T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'", "query_toks": [ "SELECT", "T1.name", ",", "T1.date", "FROM", "battle", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.id", "=", "T2.lost_in_battle", "WHERE", "T2.name", "=", "'Lettice", "'", "INTERSECT", "SELECT", "T1.name", ",", "T1.date", "FROM", "battle", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.id", "=", "T2.lost_in_battle", "WHERE", "T2.name", "=", "'HMS", "Atalanta", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "date", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", ",", "t1", ".", "date", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "name", "=", "value" ], "question": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'", "question_toks": [ "list", "name", "and", "date", "battle", "that", "ha", "lost", "ship", "named", "'", "lettice", "'", "and", "ship", "named", "'", "hm", "atalanta", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "'HMS Atalanta'", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "'Lettice'", null ] ] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "List", "the", "name", "and", "date", "the", "battle", "that", "has", "lost", "the", "ship", "named", "'Lettice", "'", "and", "the", "ship", "named", "'HMS", "Atalanta", "'" ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "date" ], [ "battle" ], [ "that" ], [ "ha" ], [ "lost" ], [ "ship" ], [ "named" ], [ "'" ], [ "lettice" ], [ "'" ], [ "and" ], [ "ship" ], [ "named" ], [ "'" ], [ "hm" ], [ "atalanta" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "battle", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "lost", "VBN" ], [ "ship", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "lettice", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "ship", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "hm", "NN" ], [ "atalanta", "NN" ], [ "'", "''" ] ], "values": [ "Lettice", "HMS Atalanta" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(2) A(0) C(2) T(1) V(0) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(2) A(0) C(2) T(1) V(1)" }, { "db_id": "battle_death", "query": "SELECT name , RESULT , bulgarian_commander FROM battle EXCEPT SELECT T1.name , T1.result , T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'", "query_toks": [ "SELECT", "name", ",", "RESULT", ",", "bulgarian_commander", "FROM", "battle", "EXCEPT", "SELECT", "T1.name", ",", "T1.result", ",", "T1.bulgarian_commander", "FROM", "battle", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1.id", "=", "T2.lost_in_battle", "WHERE", "T2.location", "=", "'English", "Channel", "'" ], "query_toks_no_value": [ "select", "name", ",", "result", ",", "bulgarian_commander", "from", "battle", "except", "select", "t1", ".", "name", ",", "t1", ".", "result", ",", "t1", ".", "bulgarian_commander", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "location", "=", "value" ], "question": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.", "question_toks": [ "show", "name", ",", "result", "and", "bulgarian", "commander", "of", "battle", "with", "no", "ship", "lost", "in", "'", "english", "channel", "'", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "'English Channel'", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "Show", "names", ",", "results", "and", "bulgarian", "commanders", "of", "the", "battles", "with", "no", "ships", "lost", "in", "the", "'English", "Channel", "'", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "result" ], [ "and" ], [ "bulgarian", "commander" ], [ "of" ], [ "battle" ], [ "with" ], [ "no" ], [ "ship" ], [ "lost", "in", "battle" ], [ "'" ], [ "english" ], [ "channel" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "result", "NN" ], [ "and", "CC" ], [ "bulgarian", "JJ" ], [ "commander", "NN" ], [ "of", "IN" ], [ "battle", "NN" ], [ "with", "IN" ], [ "no", "DT" ], [ "ship", "NN" ], [ "lost", "VBD" ], [ "in", "IN" ], [ "'", "''" ], [ "english", "JJ" ], [ "channel", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "English Channel" ], "all_values_found": true, "rule_label": "Root1(2) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(6) T(0) A(0) C(4) T(0) Root(3) Sel(0) N(2) A(0) C(2) T(0) A(0) C(6) T(0) A(0) C(4) T(0) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "battle_death", "query": "SELECT note FROM death WHERE note LIKE '%East%'", "query_toks": [ "SELECT", "note", "FROM", "death", "WHERE", "note", "LIKE", "'", "%", "East", "%", "'" ], "query_toks_no_value": [ "select", "note", "from", "death", "where", "note", "like", "value" ], "question": "What are the notes of the death events which has substring 'East'?", "question_toks": [ "what", "are", "note", "of", "death", "event", "which", "ha", "substring", "'", "east", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 16, false ], null ], "'%East%'", null ] ] }, "names": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "id", "name", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "id", "note", "killed", "injured" ], "table_names": [ "battle", "ship", "death" ], "col_set": [ "*", "id", "name", "date", "bulgarian commander", "latin commander", "result", "lost in battle", "tonnage", "ship type", "location", "disposition of ship", "caused by ship id", "note", "killed", "injured" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "14": 8, "8": 8, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "notes", "of", "the", "death", "events", "which", "has", "substring", "'East", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "note" ], [ "of" ], [ "death" ], [ "event" ], [ "which" ], [ "ha" ], [ "substring" ], [ "'" ], [ "east" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "location" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "note", "NN" ], [ "of", "IN" ], [ "death", "NN" ], [ "event", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "substring", "VBG" ], [ "'", "''" ], [ "east", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "East" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(9) A(0) C(13) T(2) V(0)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT line_1 , line_2 FROM addresses", "query_toks": [ "SELECT", "line_1", ",", "line_2", "FROM", "addresses" ], "query_toks_no_value": [ "select", "line_1", ",", "line_2", "from", "addresses" ], "question": "what are all the addresses including line 1 and line 2?", "question_toks": [ "what", "are", "all", "address", "including", "line", "1", "and", "line", "2", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "what", "are", "all", "the", "addresses", "including", "line", "1", "and", "line", "2", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "address" ], [ "including" ], [ "line", "1" ], [ "and" ], [ "line", "2" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "address", "JJ" ], [ "including", "VBG" ], [ "line", "NN" ], [ "1", "CD" ], [ "and", "CC" ], [ "line", "NN" ], [ "2", "CD" ], [ "?", "." ] ], "values": [ "2", "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(*) FROM Courses", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Courses" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "courses" ], "question": "How many courses in total are listed?", "question_toks": [ "how", "many", "course", "in", "total", "are", "listed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "How", "many", "courses", "in", "total", "are", "listed", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "course" ], [ "in" ], [ "total" ], [ "are" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "course", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "are", "VBP" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT course_description FROM Courses WHERE course_name = 'math'", "query_toks": [ "SELECT", "course_description", "FROM", "Courses", "WHERE", "course_name", "=", "'math", "'" ], "query_toks_no_value": [ "select", "course_description", "from", "courses", "where", "course_name", "=", "value" ], "question": "How is the math course described?", "question_toks": [ "how", "is", "math", "course", "described", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'math'", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "How", "is", "the", "math", "course", "described", "?" ], "question_arg": [ [ "how" ], [ "is" ], [ "math" ], [ "course" ], [ "described" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "is", "VBZ" ], [ "math", "JJ" ], [ "course", "NN" ], [ "described", "VBN" ], [ "?", "." ] ], "values": [ "math" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(2) A(0) C(11) T(1) V(0)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT zip_postcode FROM Addresses WHERE city = 'Port Chelsea'", "query_toks": [ "SELECT", "zip_postcode", "FROM", "Addresses", "WHERE", "city", "=", "'Port", "Chelsea", "'" ], "query_toks_no_value": [ "select", "zip_postcode", "from", "addresses", "where", "city", "=", "value" ], "question": "What is the zip code of the address in the city Port Chelsea?", "question_toks": [ "what", "is", "zip", "code", "of", "address", "in", "city", "port", "chelsea", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 5, false ], null ], "'Port Chelsea'", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "What", "is", "the", "zip", "code", "of", "the", "address", "in", "the", "city", "Port", "Chelsea", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "zip" ], [ "code" ], [ "of" ], [ "address" ], [ "in" ], [ "city" ], [ "port" ], [ "chelsea" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "zip", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "address", "NN" ], [ "in", "IN" ], [ "city", "NN" ], [ "port", "NN" ], [ "chelsea", "NN" ], [ "?", "." ] ], "values": [ "Port Chelsea" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T2.department_name , T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id = T2.department_id GROUP BY T2.department_name , T1.department_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.department_name", ",", "T1.department_id", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "GROUP", "BY", "T1.department_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "department_name", ",", "t1", ".", "department_id", "from", "degree_programs", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "group", "by", "t1", ".", "department_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which department offers the most number of degrees? List department name and id.", "question_toks": [ "which", "department", "offer", "most", "number", "of", "degree", "?", "list", "department", "name", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 14, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Which", "department", "offers", "the", "most", "number", "of", "degrees", "?", "List", "department", "name", "and", "id", "." ], "question_arg": [ [ "which" ], [ "department" ], [ "offer" ], [ "most" ], [ "number" ], [ "of" ], [ "degree" ], [ "?" ], [ "list" ], [ "department", "name" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "department", "NN" ], [ "offer", "NN" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "degree", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "department", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(15) T(2) A(0) C(14) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(DISTINCT department_id) FROM Degree_Programs", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "department_id", ")", "FROM", "Degree_Programs" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "department_id", ")", "from", "degree_programs" ], "question": "How many departments offer any degree?", "question_toks": [ "how", "many", "department", "offer", "any", "degree", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 19, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "How", "many", "departments", "offer", "any", "degree", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "department" ], [ "offer" ], [ "any" ], [ "degree" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "department", "NN" ], [ "offer", "VBP" ], [ "any", "DT" ], [ "degree", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(14) T(3)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "degree_summary_name", ")", "FROM", "Degree_Programs" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "degree_summary_name", ")", "from", "degree_programs" ], "question": "How many different degree names are offered?", "question_toks": [ "how", "many", "different", "degree", "name", "are", "offered", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 20, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "How", "many", "different", "degree", "names", "are", "offered", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "degree", "summary", "name" ], [ "are" ], [ "offered" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "degree", "NN" ], [ "name", "NN" ], [ "are", "VBP" ], [ "offered", "VBN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(18) T(3)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id = T2.department_id WHERE T1.department_name = 'engineer'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Departments", "AS", "T1", "JOIN", "Degree_Programs", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "WHERE", "T1.department_name", "=", "'engineer", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "departments", "as", "t1", "join", "degree_programs", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "where", "t1", ".", "department_name", "=", "value" ], "question": "How many degrees does the engineering department offer?", "question_toks": [ "how", "many", "degree", "doe", "engineering", "department", "offer", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "'engineer'", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "How", "many", "degrees", "does", "the", "engineering", "department", "offer", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "degree" ], [ "doe" ], [ "engineering" ], [ "department" ], [ "offer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "degree", "VBP" ], [ "doe", "NNS" ], [ "engineering", "NN" ], [ "department", "NN" ], [ "offer", "NN" ], [ "?", "." ] ], "values": [ "engineer" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT section_name , section_description FROM Sections", "query_toks": [ "SELECT", "section_name", ",", "section_description", "FROM", "Sections" ], "query_toks_no_value": [ "select", "section_name", ",", "section_description", "from", "sections" ], "question": "What are the names and descriptions of all the sections?", "question_toks": [ "what", "are", "name", "and", "description", "of", "all", "section", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "descriptions", "of", "all", "the", "sections", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "description" ], [ "of" ], [ "all" ], [ "section" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "description", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "section", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(21) T(4) A(0) C(22) T(4)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.course_name , T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING count(*) <= 2", "query_toks": [ "SELECT", "T1.course_name", ",", "T1.course_id", "FROM", "Courses", "AS", "T1", "JOIN", "Sections", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_id", "HAVING", "count", "(", "*", ")", "<", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", ",", "t1", ".", "course_id", "from", "courses", "as", "t1", "join", "sections", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_id", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "What are the names and id of courses having at most 2 sections?", "question_toks": [ "what", "are", "name", "and", "id", "of", "course", "having", "at", "most", "2", "section", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "id", "of", "courses", "having", "at", "most", "2", "sections", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "course" ], [ "having" ], [ "at" ], [ "most" ], [ "2" ], [ "section" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "having", "VBG" ], [ "at", "IN" ], [ "most", "JJS" ], [ "2", "CD" ], [ "section", "NN" ], [ "?", "." ] ], "values": [ "2" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(1) A(0) C(10) T(1) Filter(0) Filter(18) A(0) C(10) T(1) Root(5) Sel(0) N(0) A(0) C(10) T(4) Filter(6) A(3) C(0) T(4) V(0)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT section_name FROM Sections ORDER BY section_name DESC", "query_toks": [ "SELECT", "section_name", "FROM", "Sections", "ORDER", "BY", "section_name", "DESC" ], "query_toks_no_value": [ "select", "section_name", "from", "sections", "order", "by", "section_name", "desc" ], "question": "List the section_name in reversed lexicographical order.", "question_toks": [ "list", "section_name", "in", "reversed", "lexicographical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 25, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "List", "the", "section_name", "in", "reversed", "lexicographical", "order", "." ], "question_arg": [ [ "list" ], [ "section_name" ], [ "in" ], [ "reversed" ], [ "lexicographical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "section_name", "NN" ], [ "in", "IN" ], [ "reversed", "JJ" ], [ "lexicographical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(21) T(4) Order(0) A(0) C(21) T(4)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.semester_name , T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.semester_name", ",", "T1.semester_id", "FROM", "Semesters", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.semester_id", "=", "T2.semester_id", "GROUP", "BY", "T1.semester_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "semester_name", ",", "t1", ".", "semester_id", "from", "semesters", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "semester_id", "=", "t2", ".", "semester_id", "group", "by", "t1", ".", "semester_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the semester which most student registered in? Show both the name and the id.", "question_toks": [ "what", "is", "semester", "which", "most", "student", "registered", "in", "?", "show", "both", "name", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 46, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 28, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ], [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 28, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "What", "is", "the", "semester", "which", "most", "student", "registered", "in", "?", "Show", "both", "the", "name", "and", "the", "id", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "semester" ], [ "which" ], [ "most" ], [ "student" ], [ "registered" ], [ "in" ], [ "?" ], [ "show" ], [ "both" ], [ "name" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "semester", "JJR" ], [ "which", "WDT" ], [ "most", "JJS" ], [ "student", "NN" ], [ "registered", "VBN" ], [ "in", "IN" ], [ "?", "." ], [ "show", "VB" ], [ "both", "DT" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(24) T(5) A(0) C(23) T(5) Sup(0) A(3) C(0) T(7) Filter(18) A(0) C(23) T(5) Root(5) Sel(0) N(0) A(0) C(23) T(7)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT department_description FROM Departments WHERE department_name LIKE '%computer%'", "query_toks": [ "SELECT", "department_description", "FROM", "Departments", "WHERE", "department_name", "LIKE", "'", "%", "computer", "%", "'" ], "query_toks_no_value": [ "select", "department_description", "from", "departments", "where", "department_name", "like", "value" ], "question": "What is the description of the department whose name has the substring the computer?", "question_toks": [ "what", "is", "description", "of", "department", "whose", "name", "ha", "substring", "computer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "'%computer%'", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "department", "whose", "name", "has", "the", "substring", "the", "computer", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "department" ], [ "whose" ], [ "name" ], [ "ha" ], [ "substring" ], [ "computer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "ha", "NN" ], [ "substring", "VBG" ], [ "computer", "NN" ], [ "?", "." ] ], "values": [ "computer" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(9) A(0) C(15) T(2) V(0)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.middle_name", ",", "T1.last_name", ",", "T1.student_id", "FROM", "Students", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "middle_name", ",", "t1", ".", "last_name", ",", "t1", ".", "student_id", "from", "students", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", "=", "value" ], "question": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.", "question_toks": [ "who", "are", "enrolled", "in", "2", "degree", "program", "in", "one", "semester", "?", "list", "first", "name", ",", "middle", "name", "and", "last", "name", "and", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 47, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Who", "are", "enrolled", "in", "2", "degree", "programs", "in", "one", "semester", "?", "List", "the", "first", "name", ",", "middle", "name", "and", "last", "name", "and", "the", "id", "." ], "question_arg": [ [ "who" ], [ "are" ], [ "enrolled" ], [ "in" ], [ "2" ], [ "degree", "program" ], [ "in" ], [ "one" ], [ "semester" ], [ "?" ], [ "list" ], [ "first", "name" ], [ "," ], [ "middle", "name" ], [ "and" ], [ "last", "name" ], [ "and" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "2", "CD" ], [ "degree", "JJ" ], [ "program", "NN" ], [ "in", "IN" ], [ "one", "CD" ], [ "semester", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ ",", "," ], [ "middle", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "2", "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(29) T(6) A(0) C(30) T(6) A(0) C(31) T(6) A(0) C(26) T(6) Filter(0) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(26) T(7) Filter(2) A(3) C(0) T(7) V(0)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT DISTINCT T1.first_name , T1.middle_name , T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'", "query_toks": [ "SELECT", "DISTINCT", "T1.first_name", ",", "T1.middle_name", ",", "T1.last_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "JOIN", "Degree_Programs", "AS", "T3", "ON", "T2.degree_program_id", "=", "T3.degree_program_id", "WHERE", "T3.degree_summary_name", "=", "'Bachelor", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "first_name", ",", "t1", ".", "middle_name", ",", "t1", ".", "last_name", "from", "students", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "join", "degree_programs", "as", "t3", "on", "t2", ".", "degree_program_id", "=", "t3", ".", "degree_program_id", "where", "t3", ".", "degree_summary_name", "=", "value" ], "question": "Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.", "question_toks": [ "who", "is", "enrolled", "in", "a", "bachelor", "degree", "program", "?", "list", "first", "name", ",", "middle", "name", ",", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 47, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 20, false ], null ], "'Bachelor'", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Who", "is", "enrolled", "in", "a", "Bachelor", "degree", "program", "?", "List", "the", "first", "name", ",", "middle", "name", ",", "last", "name", "." ], "question_arg": [ [ "who" ], [ "is" ], [ "enrolled" ], [ "in" ], [ "a" ], [ "bachelor" ], [ "degree", "program" ], [ "?" ], [ "list" ], [ "first", "name" ], [ "," ], [ "middle", "name" ], [ "," ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "a", "DT" ], [ "bachelor", "NN" ], [ "degree", "NN" ], [ "program", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ ",", "," ], [ "middle", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "Bachelor" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(2) A(0) C(29) T(6) A(0) C(30) T(6) A(0) C(31) T(6) Filter(0) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(26) T(7) Filter(2) A(0) C(18) T(3) V(1)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.degree_summary_name", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.degree_program_id", "=", "T2.degree_program_id", "GROUP", "BY", "T1.degree_summary_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "degree_summary_name", "from", "degree_programs", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "degree_program_id", "=", "t2", ".", "degree_program_id", "group", "by", "t1", ".", "degree_summary_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the kind of program which most number of students are enrolled in?", "question_toks": [ "find", "kind", "of", "program", "which", "most", "number", "of", "student", "are", "enrolled", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Find", "the", "kind", "of", "program", "which", "most", "number", "of", "students", "are", "enrolled", "in", "?" ], "question_arg": [ [ "find" ], [ "kind" ], [ "of" ], [ "program" ], [ "which" ], [ "most" ], [ "number" ], [ "of" ], [ "student" ], [ "are" ], [ "enrolled" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "kind", "NN" ], [ "of", "IN" ], [ "program", "NN" ], [ "which", "WDT" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "are", "VBP" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(18) T(3) Sup(0) A(3) C(0) T(7) Filter(18) A(0) C(17) T(3) Root(5) Sel(0) N(0) A(0) C(17) T(7)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.degree_program_id , T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.degree_program_id", ",", "T1.degree_summary_name", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.degree_program_id", "=", "T2.degree_program_id", "GROUP", "BY", "T1.degree_program_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "degree_program_id", ",", "t1", ".", "degree_summary_name", "from", "degree_programs", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "degree_program_id", "=", "t2", ".", "degree_program_id", "group", "by", "t1", ".", "degree_program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the program which most number of students are enrolled in. List both the id and the summary.", "question_toks": [ "find", "program", "which", "most", "number", "of", "student", "are", "enrolled", "in", ".", "list", "both", "id", "and", "summary", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Find", "the", "program", "which", "most", "number", "of", "students", "are", "enrolled", "in", ".", "List", "both", "the", "id", "and", "the", "summary", "." ], "question_arg": [ [ "find" ], [ "program" ], [ "which" ], [ "most" ], [ "number" ], [ "of" ], [ "student" ], [ "are" ], [ "enrolled" ], [ "in" ], [ "." ], [ "list" ], [ "both" ], [ "id" ], [ "and" ], [ "summary" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "program", "NN" ], [ "which", "WDT" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "are", "VBP" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ ".", "." ], [ "list", "NN" ], [ "both", "DT" ], [ "id", "JJ" ], [ "and", "CC" ], [ "summary", "JJ" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(17) T(3) A(0) C(18) T(3) Sup(0) A(3) C(0) T(7) Filter(18) A(0) C(17) T(3) Root(5) Sel(0) N(0) A(0) C(17) T(7)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.student_id , T1.first_name , T1.middle_name , T1.last_name , count(*) , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.student_id", ",", "T1.first_name", ",", "T1.middle_name", ",", "T1.last_name", ",", "count", "(", "*", ")", ",", "T1.student_id", "FROM", "Students", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t1", ".", "first_name", ",", "t1", ".", "middle_name", ",", "t1", ".", "last_name", ",", "count", "(", "*", ")", ",", "t1", ".", "student_id", "from", "students", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program?", "question_toks": [ "What", "is", "the", "first", ",", "middle", ",", "and", "last", "name", ",", "along", "with", "the", "id", "and", "number", "of", "enrollments", ",", "for", "the", "student", "who", "enrolled", "the", "most", "in", "any", "program", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 47, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [] } }, { "db_id": "student_transcripts_tracking", "query": "SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment )", "query_toks": [ "SELECT", "semester_name", "FROM", "Semesters", "WHERE", "semester_id", "NOT", "IN", "(", "SELECT", "semester_id", "FROM", "Student_Enrolment", ")" ], "query_toks_no_value": [ "select", "semester_name", "from", "semesters", "where", "semester_id", "not", "in", "(", "select", "semester_id", "from", "student_enrolment", ")" ], "question": "Which semesters do not have any student enrolled? List the semester name.", "question_toks": [ "which", "semester", "do", "not", "have", "any", "student", "enrolled", "?", "list", "semester", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 28, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Which", "semesters", "do", "not", "have", "any", "student", "enrolled", "?", "List", "the", "semester", "name", "." ], "question_arg": [ [ "which" ], [ "semester" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "student" ], [ "enrolled" ], [ "?" ], [ "list" ], [ "semester", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "semester", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "?", "." ], [ "list", "NN" ], [ "semester", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(24) T(5) Filter(19) A(0) C(23) T(5) Root(5) Sel(0) N(0) A(0) C(23) T(7)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id", "query_toks": [ "SELECT", "DISTINCT", "T1.course_name", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Enrolment_Courses", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_enrolment_courses", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id" ], "question": "What are all the course names of the courses which ever have students enrolled in?", "question_toks": [ "what", "are", "all", "course", "name", "of", "course", "which", "ever", "have", "student", "enrolled", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 50, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "What", "are", "all", "the", "course", "names", "of", "the", "courses", "which", "ever", "have", "students", "enrolled", "in", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "course", "name" ], [ "of" ], [ "course" ], [ "which" ], [ "ever" ], [ "have" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "course", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "which", "WDT" ], [ "ever", "RB" ], [ "have", "VBP" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(1) Filter(18) A(0) C(10) T(1) Root(5) Sel(0) N(0) A(0) C(10) T(8)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.course_name", "FROM", "Courses", "AS", "T1", "JOIN", "Student_Enrolment_Courses", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T1.course_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_enrolment_courses", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What's the name of the course with most number of enrollments?", "question_toks": [ "what", "'s", "name", "of", "course", "with", "most", "number", "of", "enrollment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 50, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "What", "'s", "the", "name", "of", "the", "course", "with", "most", "number", "of", "enrollments", "?" ], "question_arg": [ [ "what" ], [ "'s" ], [ "name" ], [ "of" ], [ "course" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "'s", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(11) T(1) Sup(0) A(3) C(0) T(8) Filter(18) A(0) C(10) T(1) Root(5) Sel(0) N(0) A(0) C(10) T(8)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id = T2.address_id WHERE T2.state_province_county = 'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id = T4.student_id", "query_toks": [ "SELECT", "T1.last_name", "FROM", "Students", "AS", "T1", "JOIN", "Addresses", "AS", "T2", "ON", "T1.current_address_id", "=", "T2.address_id", "WHERE", "T2.state_province_county", "=", "'NorthCarolina", "'", "EXCEPT", "SELECT", "DISTINCT", "T3.last_name", "FROM", "Students", "AS", "T3", "JOIN", "Student_Enrolment", "AS", "T4", "ON", "T3.student_id", "=", "T4.student_id" ], "query_toks_no_value": [ "select", "t1", ".", "last_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "current_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "state_province_county", "=", "value", "except", "select", "distinct", "t3", ".", "last_name", "from", "students", "as", "t3", "join", "student_enrolment", "as", "t4", "on", "t3", ".", "student_id", "=", "t4", ".", "student_id" ], "question": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.", "question_toks": [ "find", "last", "name", "of", "student", "who", "currently", "live", "in", "state", "of", "north", "carolina", "but", "have", "not", "registered", "in", "any", "degree", "program", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 47, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "'NorthCarolina'", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Find", "the", "last", "name", "of", "the", "students", "who", "currently", "live", "in", "the", "state", "of", "North", "Carolina", "but", "have", "not", "registered", "in", "any", "degree", "program", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "currently" ], [ "live" ], [ "in" ], [ "state" ], [ "of" ], [ "north" ], [ "carolina" ], [ "but" ], [ "have" ], [ "not" ], [ "registered" ], [ "in" ], [ "any" ], [ "degree", "program" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "currently", "RB" ], [ "live", "VBP" ], [ "in", "IN" ], [ "state", "NN" ], [ "of", "IN" ], [ "north", "JJ" ], [ "carolina", "NNS" ], [ "but", "CC" ], [ "have", "VBP" ], [ "not", "RB" ], [ "registered", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "degree", "JJ" ], [ "program", "NN" ], [ ".", "." ] ], "values": [ "NorthCarolina" ], "all_values_found": true, "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(31) T(6) Filter(2) A(0) C(7) T(0) V(0) Root(3) Sel(1) N(0) A(0) C(31) T(6) Filter(18) A(0) C(26) T(6) Root(5) Sel(0) N(0) A(0) C(26) T(7)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T2.transcript_date, T1.transcript_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.transcript_date", ",", "T1.transcript_id", "FROM", "Transcript_Contents", "AS", "T1", "JOIN", "Transcripts", "AS", "T2", "ON", "T1.transcript_id", "=", "T2.transcript_id", "GROUP", "BY", "T1.transcript_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "transcript_date", ",", "t1", ".", "transcript_id", "from", "transcript_contents", "as", "t1", "join", "transcripts", "as", "t2", "on", "t1", ".", "transcript_id", "=", "t2", ".", "transcript_id", "group", "by", "t1", ".", "transcript_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the date and id of the transcript with at least 2 course results.", "question_toks": [ "show", "date", "and", "id", "of", "transcript", "with", "at", "least", "2", "course", "result", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 56, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 57, false ], [ 0, 56, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ], [ 0, [ 0, [ 0, 56, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Show", "the", "date", "and", "id", "of", "the", "transcript", "with", "at", "least", "2", "course", "results", "." ], "question_arg": [ [ "show" ], [ "date" ], [ "and" ], [ "id" ], [ "of" ], [ "transcript" ], [ "with" ], [ "at" ], [ "least" ], [ "2" ], [ "course" ], [ "result" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "transcript", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "course", "NN" ], [ "result", "NN" ], [ ".", "." ] ], "values": [ "2" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(41) T(9) A(0) C(40) T(10) Filter(7) A(3) C(0) T(10) V(0)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'", "query_toks": [ "SELECT", "cell_mobile_number", "FROM", "Students", "WHERE", "first_name", "=", "'Timmothy", "'", "AND", "last_name", "=", "'Ward", "'" ], "query_toks_no_value": [ "select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is the phone number of the man with the first name Timmothy and the last name Ward?", "question_toks": [ "what", "is", "phone", "number", "of", "man", "with", "first", "name", "timmothy", "and", "last", "name", "ward", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "'Timmothy'", null ], "and", [ false, 2, [ 0, [ 0, 37, false ], null ], "'Ward'", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "What", "is", "the", "phone", "number", "of", "the", "man", "with", "the", "first", "name", "Timmothy", "and", "the", "last", "name", "Ward", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "phone" ], [ "number" ], [ "of" ], [ "man" ], [ "with" ], [ "first", "name" ], [ "timmothy" ], [ "and" ], [ "last", "name" ], [ "ward" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "man", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "timmothy", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "ward", "RB" ], [ "?", "." ] ], "values": [ "1", "Timmothy", "Ward" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(32) T(6) Filter(0) Filter(2) A(0) C(29) T(6) V(1) Filter(2) A(0) C(31) T(6) V(2)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1", "query_toks": [ "SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Students", "ORDER", "BY", "date_first_registered", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", ",", "middle_name", ",", "last_name", "from", "students", "order", "by", "date_first_registered", "asc", "limit", "value" ], "question": "Who is the first student to register? List the first name, middle name and last name.", "question_toks": [ "who", "is", "first", "student", "to", "register", "?", "list", "first", "name", ",", "middle", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 41, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Who", "is", "the", "first", "student", "to", "register", "?", "List", "the", "first", "name", ",", "middle", "name", "and", "last", "name", "." ], "question_arg": [ [ "who" ], [ "is" ], [ "first" ], [ "student" ], [ "to" ], [ "register" ], [ "?" ], [ "list" ], [ "first", "name" ], [ "," ], [ "middle", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "student", "NN" ], [ "to", "TO" ], [ "register", "VB" ], [ "?", "." ], [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ ",", "," ], [ "middle", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(29) T(6) A(0) C(30) T(6) A(0) C(31) T(6) Sup(1) A(0) C(35) T(6)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT first_name , middle_name , last_name FROM Students ORDER BY date_left ASC LIMIT 1", "query_toks": [ "SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Students", "ORDER", "BY", "date_left", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "first_name", ",", "middle_name", ",", "last_name", "from", "students", "order", "by", "date_left", "asc", "limit", "value" ], "question": "Who is the earliest graduate of the school? List the first name, middle name and last name.", "question_toks": [ "who", "is", "earliest", "graduate", "of", "school", "?", "list", "first", "name", ",", "middle", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 42, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Who", "is", "the", "earliest", "graduate", "of", "the", "school", "?", "List", "the", "first", "name", ",", "middle", "name", "and", "last", "name", "." ], "question_arg": [ [ "who" ], [ "is" ], [ "earliest" ], [ "graduate" ], [ "of" ], [ "school" ], [ "?" ], [ "list" ], [ "first", "name" ], [ "," ], [ "middle", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "earliest", "JJS" ], [ "graduate", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ ",", "," ], [ "middle", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(29) T(6) A(0) C(30) T(6) A(0) C(31) T(6) Sup(1) A(0) C(36) T(6)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT first_name FROM Students WHERE current_address_id != permanent_address_id", "query_toks": [ "SELECT", "first_name", "FROM", "Students", "WHERE", "current_address_id", "!", "=", "permanent_address_id" ], "query_toks_no_value": [ "select", "first_name", "from", "students", "where", "current_address_id", "!", "=", "permanent_address_id" ], "question": "Whose permanent address is different from his or her current address? List his or her first name.", "question_toks": [ "whose", "permanent", "address", "is", "different", "from", "his", "or", "her", "current", "address", "?", "list", "his", "or", "her", "first", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 33, false ], null ], [ 0, 34, false ], null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Whose", "permanent", "address", "is", "different", "from", "his", "or", "her", "current", "address", "?", "List", "his", "or", "her", "first", "name", "." ], "question_arg": [ [ "whose" ], [ "permanent", "address", "id" ], [ "is" ], [ "different" ], [ "from" ], [ "his" ], [ "or" ], [ "her" ], [ "current", "address", "id" ], [ "?" ], [ "list" ], [ "his" ], [ "or" ], [ "her" ], [ "first", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "whose", "WP$" ], [ "permanent", "JJ" ], [ "address", "NN" ], [ "is", "VBZ" ], [ "different", "JJ" ], [ "from", "IN" ], [ "his", "PRP$" ], [ "or", "CC" ], [ "her", "PRP$" ], [ "current", "JJ" ], [ "address", "NN" ], [ "?", "." ], [ "list", "VB" ], [ "his", "PRP$" ], [ "or", "CC" ], [ "her", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "[0, 34, False]" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(29) T(6) Filter(3) A(0) C(27) T(6) V(1)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.address_id , T1.line_1 , T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.current_address_id GROUP BY T1.address_id, T1.line_1 , T1.line_2 ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.address_id", ",", "T1.line_1", ",", "T1.line_2", "FROM", "Addresses", "AS", "T1", "JOIN", "Students", "AS", "T2", "ON", "T1.address_id", "=", "T2.current_address_id", "GROUP", "BY", "T1.address_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "address_id", ",", "t1", ".", "line_1", ",", "t1", ".", "line_2", "from", "addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "current_address_id", "group", "by", "t1", ".", "address_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which address holds the most number of students currently? List the address id and all lines.", "question_toks": [ "which", "address", "hold", "most", "number", "of", "student", "currently", "?", "list", "address", "id", "and", "all", "line", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 33, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Which", "address", "holds", "the", "most", "number", "of", "students", "currently", "?", "List", "the", "address", "id", "and", "all", "lines", "." ], "question_arg": [ [ "which" ], [ "address" ], [ "hold" ], [ "most" ], [ "number" ], [ "of" ], [ "student" ], [ "currently" ], [ "?" ], [ "list" ], [ "address", "id" ], [ "and" ], [ "all" ], [ "line" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "address", "NN" ], [ "hold", "VBP" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "currently", "RB" ], [ "?", "." ], [ "list", "NN" ], [ "address", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "all", "DT" ], [ "line", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) T(0) A(0) C(3) T(0) Sup(0) A(3) C(0) T(6) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(27) T(6)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT avg(extract(year from transcript_date)) FROM Transcripts", "query_toks": [ "SELECT", "avg", "(", "transcript_date", ")", "FROM", "Transcripts" ], "query_toks_no_value": [ "select", "avg", "(", "transcript_date", ")", "from", "transcripts" ], "question": "On average, when were the transcripts printed?", "question_toks": [ "on", "average", ",", "when", "were", "transcript", "printed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 53, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "On", "average", ",", "when", "were", "the", "transcripts", "printed", "?" ], "question_arg": [ [ "on" ], [ "average" ], [ "," ], [ "when" ], [ "were" ], [ "transcript" ], [ "printed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "on", "IN" ], [ "average", "NN" ], [ ",", "," ], [ "when", "WRB" ], [ "were", "VBD" ], [ "transcript", "RB" ], [ "printed", "VBN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(41) T(9)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT transcript_date , other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1", "query_toks": [ "SELECT", "transcript_date", ",", "other_details", "FROM", "Transcripts", "ORDER", "BY", "transcript_date", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "transcript_date", ",", "other_details", "from", "transcripts", "order", "by", "transcript_date", "asc", "limit", "value" ], "question": "When is the first transcript released? List the date and details.", "question_toks": [ "when", "is", "first", "transcript", "released", "?", "list", "date", "and", "detail", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 53, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ], [ 0, [ 0, [ 0, 54, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "When", "is", "the", "first", "transcript", "released", "?", "List", "the", "date", "and", "details", "." ], "question_arg": [ [ "when" ], [ "is" ], [ "first" ], [ "transcript" ], [ "released" ], [ "?" ], [ "list" ], [ "date" ], [ "and" ], [ "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "transcript", "NN" ], [ "released", "VBN" ], [ "?", "." ], [ "list", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(41) T(9) A(0) C(13) T(9) Sup(1) A(0) C(41) T(9)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(*) FROM Transcripts", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Transcripts" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "transcripts" ], "question": "How many transcripts are released?", "question_toks": [ "how", "many", "transcript", "are", "released", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "How", "many", "transcripts", "are", "released", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "transcript" ], [ "are" ], [ "released" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "transcript", "NN" ], [ "are", "VBP" ], [ "released", "VBN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(9)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1", "query_toks": [ "SELECT", "transcript_date", "FROM", "Transcripts", "ORDER", "BY", "transcript_date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "transcript_date", "from", "transcripts", "order", "by", "transcript_date", "desc", "limit", "value" ], "question": "What is the last transcript release date?", "question_toks": [ "what", "is", "last", "transcript", "release", "date", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 53, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "What", "is", "the", "last", "transcript", "release", "date", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last" ], [ "transcript" ], [ "release" ], [ "date" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "transcript", "JJ" ], [ "release", "NN" ], [ "date", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(41) T(9) Sup(0) A(0) C(41) T(9)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(*) , student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "student_course_id", "FROM", "Transcript_Contents", "GROUP", "BY", "student_course_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "student_course_id", "from", "transcript_contents", "group", "by", "student_course_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.", "question_toks": [ "how", "many", "time", "at", "most", "can", "a", "course", "enrollment", "result", "show", "in", "different", "transcript", "?", "also", "show", "course", "enrollment", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 55, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "How", "many", "times", "at", "most", "can", "a", "course", "enrollment", "result", "show", "in", "different", "transcripts", "?", "Also", "show", "the", "course", "enrollment", "id", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "time" ], [ "at" ], [ "most" ], [ "can" ], [ "a" ], [ "course" ], [ "enrollment" ], [ "result" ], [ "show" ], [ "in" ], [ "different" ], [ "transcript" ], [ "?" ], [ "also" ], [ "show" ], [ "course" ], [ "enrollment" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "time", "NN" ], [ "at", "IN" ], [ "most", "JJS" ], [ "can", "MD" ], [ "a", "DT" ], [ "course", "NN" ], [ "enrollment", "NN" ], [ "result", "NN" ], [ "show", "NN" ], [ "in", "IN" ], [ "different", "JJ" ], [ "transcript", "NN" ], [ "?", "." ], [ "also", "RB" ], [ "show", "VBP" ], [ "course", "NN" ], [ "enrollment", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(3) C(0) T(10) A(0) C(39) T(10) Sup(0) A(3) C(0) T(10)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T2.transcript_date , T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T2.transcript_date, T1.transcript_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T2.transcript_date", ",", "T1.transcript_id", "FROM", "Transcript_Contents", "AS", "T1", "JOIN", "Transcripts", "AS", "T2", "ON", "T1.transcript_id", "=", "T2.transcript_id", "GROUP", "BY", "T1.transcript_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "transcript_date", ",", "t1", ".", "transcript_id", "from", "transcript_contents", "as", "t1", "join", "transcripts", "as", "t2", "on", "t1", ".", "transcript_id", "=", "t2", ".", "transcript_id", "group", "by", "t1", ".", "transcript_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Show the date of the transcript which shows the least number of results, also list the id.", "question_toks": [ "show", "date", "of", "transcript", "which", "show", "least", "number", "of", "result", ",", "also", "list", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 56, false ], null ], [ 0, 52, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 9 ] ] }, "groupBy": [ [ 0, 56, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 53, false ], null ] ], [ 0, [ 0, [ 0, 56, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Show", "the", "date", "of", "the", "transcript", "which", "shows", "the", "least", "number", "of", "results", ",", "also", "list", "the", "id", "." ], "question_arg": [ [ "show" ], [ "date" ], [ "of" ], [ "transcript" ], [ "which" ], [ "show" ], [ "least" ], [ "number" ], [ "of" ], [ "result" ], [ "," ], [ "also" ], [ "list" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "transcript", "NN" ], [ "which", "WDT" ], [ "show", "VBP" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "result", "NN" ], [ ",", "," ], [ "also", "RB" ], [ "list", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(41) T(9) A(0) C(40) T(10) Sup(1) A(3) C(0) T(10)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id WHERE degree_summary_name = 'Bachelor'", "query_toks": [ "SELECT", "DISTINCT", "T2.semester_id", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.degree_program_id", "=", "T2.degree_program_id", "WHERE", "degree_summary_name", "=", "'Master", "'", "INTERSECT", "SELECT", "DISTINCT", "T2.semester_id", "FROM", "Degree_Programs", "AS", "T1", "JOIN", "Student_Enrolment", "AS", "T2", "ON", "T1.degree_program_id", "=", "T2.degree_program_id", "WHERE", "degree_summary_name", "=", "'Bachelor", "'" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "semester_id", "from", "degree_programs", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "degree_program_id", "=", "t2", ".", "degree_program_id", "where", "degree_summary_name", "=", "value", "intersect", "select", "distinct", "t2", ".", "semester_id", "from", "degree_programs", "as", "t1", "join", "student_enrolment", "as", "t2", "on", "t1", ".", "degree_program_id", "=", "t2", ".", "degree_program_id", "where", "degree_summary_name", "=", "value" ], "question": "Find the semester when both Master students and Bachelor students got enrolled in.", "question_toks": [ "find", "semester", "when", "both", "master", "student", "and", "bachelor", "student", "got", "enrolled", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "'Bachelor'", null ] ] }, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "'Master'", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Find", "the", "semester", "when", "both", "Master", "students", "and", "Bachelor", "students", "got", "enrolled", "in", "." ], "question_arg": [ [ "find" ], [ "semester" ], [ "when" ], [ "both" ], [ "master" ], [ "student" ], [ "and" ], [ "bachelor" ], [ "student" ], [ "got" ], [ "enrolled" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "RB" ], [ "semester", "NN" ], [ "when", "WRB" ], [ "both", "DT" ], [ "master", "NN" ], [ "student", "NN" ], [ "and", "CC" ], [ "bachelor", "NN" ], [ "student", "NN" ], [ "got", "VBD" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "Master", "Bachelor" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(1) N(0) A(0) C(23) T(7) Filter(2) A(0) C(18) T(3) V(0) Root(3) Sel(1) N(0) A(0) C(23) T(7) Filter(2) A(0) C(18) T(3) V(1)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT count(DISTINCT current_address_id) FROM Students", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "current_address_id", ")", "FROM", "Students" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "current_address_id", ")", "from", "students" ], "question": "How many different addresses do the students currently live?", "question_toks": [ "how", "many", "different", "address", "do", "student", "currently", "live", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 33, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "How", "many", "different", "addresses", "do", "the", "students", "currently", "live", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "address" ], [ "do" ], [ "student" ], [ "currently" ], [ "live" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "address", "NN" ], [ "do", "VBP" ], [ "student", "NN" ], [ "currently", "RB" ], [ "live", "CD" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(27) T(6)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", "query_toks": [ "SELECT", "other_student_details", "FROM", "Students", "ORDER", "BY", "other_student_details", "DESC" ], "query_toks_no_value": [ "select", "other_student_details", "from", "students", "order", "by", "other_student_details", "desc" ], "question": "List all the student details in reversed lexicographical order.", "question_toks": [ "list", "all", "student", "detail", "in", "reversed", "lexicographical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 43, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "List", "all", "the", "student", "details", "in", "reversed", "lexicographical", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "student" ], [ "detail" ], [ "in" ], [ "reversed" ], [ "lexicographical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "student", "NN" ], [ "detail", "NN" ], [ "in", "IN" ], [ "reversed", "JJ" ], [ "lexicographical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(37) T(6) Order(0) A(0) C(37) T(6)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT section_description FROM Sections WHERE section_name = 'h'", "query_toks": [ "SELECT", "section_description", "FROM", "Sections", "WHERE", "section_name", "=", "'h", "'" ], "query_toks_no_value": [ "select", "section_description", "from", "sections", "where", "section_name", "=", "value" ], "question": "Describe the section h.", "question_toks": [ "describe", "section", "h", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "'h'", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Describe", "the", "section", "h", "." ], "question_arg": [ [ "describe" ], [ "section" ], [ "h" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "describe", "JJ" ], [ "section", "NN" ], [ "h", "NN" ], [ ".", "." ] ], "values": [ "h" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(4) Filter(2) A(0) C(21) T(4) V(0)" }, { "db_id": "student_transcripts_tracking", "query": "SELECT T1.first_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.permanent_address_id = T2.address_id WHERE T2.country = 'Haiti' UNION SELECT first_name FROM Students WHERE cell_mobile_number = '09700166582'", "query_toks": [ "SELECT", "T1.first_name", "FROM", "Students", "AS", "T1", "JOIN", "Addresses", "AS", "T2", "ON", "T1.permanent_address_id", "=", "T2.address_id", "WHERE", "T2.country", "=", "'Haiti", "'", "UNION", "SELECT", "first_name", "FROM", "Students", "WHERE", "cell_mobile_number", "=", "'09700166582", "'" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "country", "=", "value", "union", "select", "first_name", "from", "students", "where", "cell_mobile_number", "=", "value" ], "question": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582.", "question_toks": [ "find", "first", "name", "of", "student", "who", "permanently", "live", "in", "country", "haiti", "or", "have", "cell", "phone", "number", "09700166582", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], "'09700166582'", null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "'Haiti'", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "other details", "degree program id", "department id", "degree summary name", "degree summary description", "other details", "section id", "course id", "section name", "section description", "other details", "semester id", "semester name", "semester description", "other details", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "degree program id", "semester id", "student id", "other details", "student course id", "course id", "student enrolment id", "transcript id", "transcript date", "other details", "student course id", "transcript id" ], "table_names": [ "addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents" ], "col_set": [ "*", "address id", "line 1", "line 2", "line 3", "city", "zip postcode", "state province county", "country", "other address details", "course id", "course name", "course description", "other details", "department id", "department name", "department description", "degree program id", "degree summary name", "degree summary description", "section id", "section name", "section description", "semester id", "semester name", "semester description", "student id", "current address id", "permanent address id", "first name", "middle name", "last name", "cell mobile number", "email address", "ssn", "date first registered", "date left", "other student details", "student enrolment id", "student course id", "transcript id", "transcript date" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 ], "keys": { "19": 14, "14": 14, "24": 10, "10": 10, "34": 1, "1": 1, "33": 1, "47": 32, "32": 32, "46": 28, "28": 28, "45": 18, "18": 18, "51": 44, "44": 44, "50": 10, "56": 52, "52": 52, "55": 49, "49": 49, "23": 23 }, "origin_question_toks": [ "Find", "the", "first", "name", "of", "the", "students", "who", "permanently", "live", "in", "the", "country", "Haiti", "or", "have", "the", "cell", "phone", "number", "09700166582", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "permanently" ], [ "live" ], [ "in" ], [ "country" ], [ "haiti" ], [ "or" ], [ "have" ], [ "cell" ], [ "phone" ], [ "number" ], [ "09700166582" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "permanently", "RB" ], [ "live", "VBP" ], [ "in", "IN" ], [ "country", "NN" ], [ "haiti", "NN" ], [ "or", "CC" ], [ "have", "VBP" ], [ "cell", "VBN" ], [ "phone", "NN" ], [ "number", "NN" ], [ "09700166582", "CD" ], [ ".", "." ] ], "values": [ "Haiti", "09700166582", "1", "9700166582" ], "all_values_found": true, "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(29) T(6) Filter(2) A(0) C(8) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(29) T(6) Filter(2) A(0) C(32) T(6) V(1)" }, { "db_id": "tvshow", "query": "SELECT Title FROM Cartoon ORDER BY title", "query_toks": [ "SELECT", "Title", "FROM", "Cartoon", "ORDER", "BY", "title" ], "query_toks_no_value": [ "select", "title", "from", "cartoon", "order", "by", "title" ], "question": "List the title of all cartoons in alphabetical order.", "question_toks": [ "list", "title", "of", "all", "cartoon", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 20, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "List", "the", "title", "of", "all", "cartoons", "in", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "title" ], [ "of" ], [ "all" ], [ "cartoon" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "cartoon", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(18) T(2) Order(1) A(0) C(18) T(2)" }, { "db_id": "tvshow", "query": "SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones';", "query_toks": [ "SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", ";" ], "query_toks_no_value": [ "select", "title", "from", "cartoon", "where", "directed_by", "=", "value" ], "question": "List all cartoon directed by 'Ben Jones'.", "question_toks": [ "list", "all", "cartoon", "directed", "by", "'", "ben", "jones", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "'Ben Jones'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "List", "all", "cartoon", "directed", "by", "``", "Ben", "Jones", "''", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "cartoon" ], [ "directed", "by" ], [ "'" ], [ "ben" ], [ "jones" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "cartoon", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "ben", "NN" ], [ "jones", "NNS" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Ben Jones" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(2) Filter(2) A(0) C(19) T(2) V(0)" }, { "db_id": "tvshow", "query": "SELECT count(*) FROM Cartoon WHERE Written_by = 'Joseph Kuhr';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Cartoon", "WHERE", "Written_by", "=", "``", "Joseph", "Kuhr", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "cartoon", "where", "written_by", "=", "value" ], "question": "How many cartoons were written by 'Joseph Kuhr'?", "question_toks": [ "how", "many", "cartoon", "were", "written", "by", "'", "joseph", "kuhr", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "'Joseph Kuhr'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "How", "many", "cartoons", "were", "written", "by", "``", "Joseph", "Kuhr", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "cartoon" ], [ "were" ], [ "written", "by" ], [ "'" ], [ "joseph" ], [ "kuhr" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "cartoon", "NN" ], [ "were", "VBD" ], [ "written", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "joseph", "NN" ], [ "kuhr", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Joseph Kuhr" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(20) T(2) V(0)" }, { "db_id": "tvshow", "query": "SELECT title , Directed_by FROM Cartoon ORDER BY Original_air_date", "query_toks": [ "SELECT", "title", ",", "Directed_by", "FROM", "Cartoon", "ORDER", "BY", "Original_air_date" ], "query_toks_no_value": [ "select", "title", ",", "directed_by", "from", "cartoon", "order", "by", "original_air_date" ], "question": "list all cartoon titles and their directors ordered by their air date", "question_toks": [ "list", "all", "cartoon", "title", "and", "their", "director", "ordered", "by", "their", "air", "date" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "list", "all", "cartoon", "titles", "and", "their", "directors", "ordered", "by", "their", "air", "date" ], "question_arg": [ [ "list" ], [ "all" ], [ "cartoon" ], [ "title" ], [ "and" ], [ "their" ], [ "director" ], [ "ordered" ], [ "by" ], [ "their" ], [ "air", "date" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "cartoon", "NN" ], [ "title", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "director", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "air", "NN" ], [ "date", "NN" ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(18) T(2) A(0) C(19) T(2) Order(1) A(0) C(21) T(2)" }, { "db_id": "tvshow", "query": "SELECT Title FROM Cartoon WHERE Directed_by = 'Ben Jones' OR Directed_by = 'Brandon Vietti';", "query_toks": [ "SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", "OR", "Directed_by", "=", "``", "Brandon", "Vietti", "''", ";" ], "query_toks_no_value": [ "select", "title", "from", "cartoon", "where", "directed_by", "=", "value", "or", "directed_by", "=", "value" ], "question": "List the title of all cartoon directed by 'Ben Jones' or 'Brandon Vietti'.", "question_toks": [ "list", "title", "of", "all", "cartoon", "directed", "by", "'", "ben", "jones", "'", "or", "'", "brandon", "vietti", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "'Ben Jones'", null ], "or", [ false, 2, [ 0, [ 0, 21, false ], null ], "'Brandon Vietti'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "List", "the", "title", "of", "all", "cartoon", "directed", "by", "``", "Ben", "Jones", "''", "or", "``", "Brandon", "Vietti", "''", "." ], "question_arg": [ [ "list" ], [ "title" ], [ "of" ], [ "all" ], [ "cartoon" ], [ "directed", "by" ], [ "'" ], [ "ben" ], [ "jones" ], [ "'" ], [ "or" ], [ "'" ], [ "brandon" ], [ "vietti" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "cartoon", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "ben", "NN" ], [ "jones", "NNS" ], [ "'", "POS" ], [ "or", "CC" ], [ "'", "POS" ], [ "brandon", "JJ" ], [ "vietti", "NNS" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Brandon Vietti", "Ben Jones" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(2) Filter(1) Filter(2) A(0) C(19) T(2) V(1) Filter(2) A(0) C(19) T(2) V(0)" }, { "db_id": "tvshow", "query": "SELECT Country , count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "Country", ",", "count", "(", "*", ")", "FROM", "TV_Channel", "GROUP", "BY", "Country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "tv_channel", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which country has the most of TV Channels? List the country and number of TV Channels it has.", "question_toks": [ "which", "country", "ha", "most", "of", "tv", "channel", "?", "list", "country", "and", "number", "of", "tv", "channel", "it", "ha", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "Which", "country", "has", "the", "most", "of", "TV", "Channels", "?", "List", "the", "country", "and", "number", "of", "TV", "Channels", "it", "has", "." ], "question_arg": [ [ "which" ], [ "country" ], [ "ha" ], [ "most" ], [ "of" ], [ "tv", "channel" ], [ "?" ], [ "list" ], [ "country" ], [ "and" ], [ "number" ], [ "of" ], [ "tv", "channel" ], [ "it" ], [ "ha" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "of", "IN" ], [ "tv", "NN" ], [ "channel", "NNS" ], [ "?", "." ], [ "list", "JJ" ], [ "country", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "it", "PRP" ], [ "ha", "VBZ" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "tvshow", "query": "SELECT count(DISTINCT series_name) , count(DISTINCT content) FROM TV_Channel;", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "series_name", ")", ",", "count", "(", "DISTINCT", "content", ")", "FROM", "TV_Channel", ";" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "series_name", ")", ",", "count", "(", "distinct", "content", ")", "from", "tv_channel" ], "question": "List the number of different series names and contents in the TV Channel table.", "question_toks": [ "list", "number", "of", "different", "series", "name", "and", "content", "in", "tv", "channel", "table", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 2, true ], null ] ], [ 3, [ 0, [ 0, 5, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "List", "the", "number", "of", "different", "series", "names", "and", "contents", "in", "the", "TV", "Channel", "table", "." ], "question_arg": [ [ "list" ], [ "number" ], [ "of" ], [ "different" ], [ "series", "name" ], [ "and" ], [ "content" ], [ "in" ], [ "tv", "channel" ], [ "table" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "series", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "content", "NN" ], [ "in", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "table", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(3) C(2) T(0) A(3) C(5) T(0)" }, { "db_id": "tvshow", "query": "SELECT Content FROM TV_Channel WHERE series_name = 'Sky Radio';", "query_toks": [ "SELECT", "Content", "FROM", "TV_Channel", "WHERE", "series_name", "=", "``", "Sky", "Radio", "''", ";" ], "query_toks_no_value": [ "select", "content", "from", "tv_channel", "where", "series_name", "=", "value" ], "question": "What is the content of TV Channel with serial name 'Sky Radio'?", "question_toks": [ "what", "is", "content", "of", "tv", "channel", "with", "serial", "name", "'", "sky", "radio", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Sky Radio'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "What", "is", "the", "content", "of", "TV", "Channel", "with", "serial", "name", "``", "Sky", "Radio", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "content" ], [ "of" ], [ "tv", "channel" ], [ "with" ], [ "serial" ], [ "name" ], [ "'" ], [ "sky" ], [ "radio" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "content", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "with", "IN" ], [ "serial", "JJ" ], [ "name", "NN" ], [ "'", "POS" ], [ "sky", "NN" ], [ "radio", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Sky Radio" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "tvshow", "query": "SELECT Package_Option FROM TV_Channel WHERE series_name = 'Sky Radio';", "query_toks": [ "SELECT", "Package_Option", "FROM", "TV_Channel", "WHERE", "series_name", "=", "``", "Sky", "Radio", "''", ";" ], "query_toks_no_value": [ "select", "package_option", "from", "tv_channel", "where", "series_name", "=", "value" ], "question": "What is the Package Option of TV Channel with serial name 'Sky Radio'?", "question_toks": [ "what", "is", "package", "option", "of", "tv", "channel", "with", "serial", "name", "'", "sky", "radio", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Sky Radio'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "What", "is", "the", "Package", "Option", "of", "TV", "Channel", "with", "serial", "name", "``", "Sky", "Radio", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "package", "option" ], [ "of" ], [ "tv", "channel" ], [ "with" ], [ "serial" ], [ "name" ], [ "'" ], [ "sky" ], [ "radio" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "package", "JJ" ], [ "option", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "with", "IN" ], [ "serial", "JJ" ], [ "name", "NN" ], [ "'", "POS" ], [ "sky", "NN" ], [ "radio", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Option", "Sky Radio" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "tvshow", "query": "SELECT count(*) FROM TV_Channel WHERE LANGUAGE = 'English';", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "TV_Channel", "WHERE", "LANGUAGE", "=", "``", "English", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "tv_channel", "where", "language", "=", "value" ], "question": "How many TV Channel using language English?", "question_toks": [ "how", "many", "tv", "channel", "using", "language", "english", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "'English'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "How", "many", "TV", "Channel", "using", "language", "English", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "tv", "channel" ], [ "using" ], [ "language" ], [ "english" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "language" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "tv", "NN" ], [ "channel", "NNS" ], [ "using", "VBG" ], [ "language", "NN" ], [ "english", "VB" ], [ "?", "." ] ], "values": [ "English" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "tvshow", "query": "SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;", "query_toks": [ "SELECT", "LANGUAGE", ",", "count", "(", "*", ")", "FROM", "TV_Channel", "GROUP", "BY", "LANGUAGE", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "language", ",", "count", "(", "*", ")", "from", "tv_channel", "group", "by", "language", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "List the language used least number of TV Channel. List language and number of TV Channel.", "question_toks": [ "list", "language", "used", "least", "number", "of", "tv", "channel", ".", "list", "language", "and", "number", "of", "tv", "channel", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "List", "the", "language", "used", "least", "number", "of", "TV", "Channel", ".", "List", "language", "and", "number", "of", "TV", "Channel", "." ], "question_arg": [ [ "list" ], [ "language" ], [ "used" ], [ "least" ], [ "number" ], [ "of" ], [ "tv", "channel" ], [ "." ], [ "list" ], [ "language" ], [ "and" ], [ "number" ], [ "of" ], [ "tv", "channel" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "language", "NN" ], [ "used", "VBN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "language", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(4) T(0) A(3) C(0) T(0) Sup(1) A(3) C(0) T(0)" }, { "db_id": "tvshow", "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = 'The Rise of the Blue Beetle!';", "query_toks": [ "SELECT", "T1.series_name", "FROM", "TV_Channel", "AS", "T1", "JOIN", "Cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.Title", "=", "``", "The", "Rise", "of", "the", "Blue", "Beetle", "!", "``", ";" ], "query_toks_no_value": [ "select", "t1", ".", "series_name", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "title", "=", "value" ], "question": "What is the TV Channel that shows the cartoon 'The Rise of the Blue Beetle!'? List the TV Channel's series name.", "question_toks": [ "what", "is", "tv", "channel", "that", "show", "cartoon", "'", "rise", "of", "blue", "beetle", "!", "'", "?", "list", "tv", "channel", "'s", "series", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "'The Rise of the Blue Beetle!'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "What", "is", "the", "TV", "Channel", "that", "shows", "the", "cartoon", "``", "The", "Rise", "of", "the", "Blue", "Beetle", "!", "''", "?", "List", "the", "TV", "Channel", "'s", "series", "name", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "tv", "channel" ], [ "that" ], [ "show" ], [ "cartoon" ], [ "'" ], [ "rise" ], [ "of" ], [ "blue" ], [ "beetle" ], [ "!" ], [ "'" ], [ "?" ], [ "list" ], [ "tv" ], [ "channel" ], [ "'s" ], [ "series", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "tv", "JJ" ], [ "channel", "NNS" ], [ "that", "IN" ], [ "show", "VBP" ], [ "cartoon", "NN" ], [ "'", "''" ], [ "rise", "NN" ], [ "of", "IN" ], [ "blue", "JJ" ], [ "beetle", "NN" ], [ "!", "." ], [ "'", "''" ], [ "?", "." ], [ "list", "JJ" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "'s", "POS" ], [ "series", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "The Rise of the Blue Beetle!", "Fall of the Blue Beetle!" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(18) T(2) V(0)" }, { "db_id": "tvshow", "query": "SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio';", "query_toks": [ "SELECT", "T2.Title", "FROM", "TV_Channel", "AS", "T1", "JOIN", "Cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T1.series_name", "=", "``", "Sky", "Radio", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "title", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t1", ".", "series_name", "=", "value" ], "question": "List the title of all Cartoons showed on TV Channel with series name 'Sky Radio'.", "question_toks": [ "list", "title", "of", "all", "cartoon", "showed", "on", "tv", "channel", "with", "series", "name", "'", "sky", "radio", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Sky Radio'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "List", "the", "title", "of", "all", "Cartoons", "showed", "on", "TV", "Channel", "with", "series", "name", "``", "Sky", "Radio", "''", "." ], "question_arg": [ [ "list" ], [ "title" ], [ "of" ], [ "all" ], [ "cartoon" ], [ "showed" ], [ "on" ], [ "tv", "channel" ], [ "with" ], [ "series", "name" ], [ "'" ], [ "sky" ], [ "radio" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "cartoon", "NN" ], [ "showed", "VBD" ], [ "on", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "with", "IN" ], [ "series", "NN" ], [ "name", "NN" ], [ "'", "''" ], [ "sky", "JJ" ], [ "radio", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Sky Radio" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "tvshow", "query": "SELECT Episode FROM TV_series ORDER BY rating", "query_toks": [ "SELECT", "Episode", "FROM", "TV_series", "ORDER", "BY", "rating" ], "query_toks_no_value": [ "select", "episode", "from", "tv_series", "order", "by", "rating" ], "question": "List the Episode of all TV series sorted by rating.", "question_toks": [ "list", "episode", "of", "all", "tv", "series", "sorted", "by", "rating", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "List", "the", "Episode", "of", "all", "TV", "series", "sorted", "by", "rating", "." ], "question_arg": [ [ "list" ], [ "episode" ], [ "of" ], [ "all" ], [ "tv", "series" ], [ "sorted" ], [ "by" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "episode", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "tv", "NN" ], [ "series", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(10) T(1) Order(1) A(0) C(12) T(1)" }, { "db_id": "tvshow", "query": "SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;", "query_toks": [ "SELECT", "Episode", ",", "Rating", "FROM", "TV_series", "ORDER", "BY", "Rating", "DESC", "LIMIT", "3", ";" ], "query_toks_no_value": [ "select", "episode", ",", "rating", "from", "tv_series", "order", "by", "rating", "desc", "limit", "value" ], "question": "List top 3 highest Rating TV series. List the TV series's Episode and Rating.", "question_toks": [ "list", "top", "3", "highest", "rating", "tv", "series", ".", "list", "tv", "series", "'s", "episode", "and", "rating", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "List", "top", "3", "highest", "Rating", "TV", "series", ".", "List", "the", "TV", "series", "'s", "Episode", "and", "Rating", "." ], "question_arg": [ [ "list" ], [ "top" ], [ "3" ], [ "highest" ], [ "rating" ], [ "tv", "series" ], [ "." ], [ "list" ], [ "tv" ], [ "series" ], [ "'s" ], [ "episode" ], [ "and" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "highest", "JJS" ], [ "rating", "NN" ], [ "tv", "NN" ], [ "series", "NN" ], [ ".", "." ], [ "list", "JJ" ], [ "tv", "NN" ], [ "series", "NN" ], [ "'s", "POS" ], [ "episode", "NN" ], [ "and", "CC" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [ "3" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(1) A(0) C(12) T(1) Sup(0) A(0) C(12) T(1)" }, { "db_id": "tvshow", "query": "SELECT max(SHARE) , min(SHARE) FROM TV_series;", "query_toks": [ "SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series", ";" ], "query_toks_no_value": [ "select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series" ], "question": "What is minimum and maximum share of TV series?", "question_toks": [ "what", "is", "minimum", "and", "maximum", "share", "of", "tv", "series", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ], [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "What", "is", "minimum", "and", "maximum", "share", "of", "TV", "series", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "minimum" ], [ "and" ], [ "maximum" ], [ "share" ], [ "of" ], [ "tv", "series" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "share", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "series", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(13) T(1) A(2) C(13) T(1)" }, { "db_id": "tvshow", "query": "SELECT Air_Date FROM TV_series WHERE Episode = 'A Love of a Lifetime';", "query_toks": [ "SELECT", "Air_Date", "FROM", "TV_series", "WHERE", "Episode", "=", "``", "A", "Love", "of", "a", "Lifetime", "''", ";" ], "query_toks_no_value": [ "select", "air_date", "from", "tv_series", "where", "episode", "=", "value" ], "question": "What is the air date of TV series with Episode 'A Love of a Lifetime'?", "question_toks": [ "what", "is", "air", "date", "of", "tv", "series", "with", "episode", "'", "a", "love", "of", "a", "lifetime", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'A Love of a Lifetime'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "What", "is", "the", "air", "date", "of", "TV", "series", "with", "Episode", "``", "A", "Love", "of", "a", "Lifetime", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "air", "date" ], [ "of" ], [ "tv", "series" ], [ "with" ], [ "episode" ], [ "'" ], [ "a" ], [ "love" ], [ "of" ], [ "a" ], [ "lifetime" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "air", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "series", "NN" ], [ "with", "IN" ], [ "episode", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "love", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "lifetime", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "A Love of a Lifetime" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "tvshow", "query": "SELECT Weekly_Rank FROM TV_series WHERE Episode = 'A Love of a Lifetime';", "query_toks": [ "SELECT", "Weekly_Rank", "FROM", "TV_series", "WHERE", "Episode", "=", "``", "A", "Love", "of", "a", "Lifetime", "''", ";" ], "query_toks_no_value": [ "select", "weekly_rank", "from", "tv_series", "where", "episode", "=", "value" ], "question": "What is Weekly Rank of TV series with Episode 'A Love of a Lifetime'?", "question_toks": [ "what", "is", "weekly", "rank", "of", "tv", "series", "with", "episode", "'", "a", "love", "of", "a", "lifetime", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'A Love of a Lifetime'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "What", "is", "Weekly", "Rank", "of", "TV", "series", "with", "Episode", "``", "A", "Love", "of", "a", "Lifetime", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "weekly", "rank" ], [ "of" ], [ "tv", "series" ], [ "with" ], [ "episode" ], [ "'" ], [ "a" ], [ "love" ], [ "of" ], [ "a" ], [ "lifetime" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "weekly", "JJ" ], [ "rank", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "series", "NN" ], [ "with", "IN" ], [ "episode", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "love", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "lifetime", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "A Love of a Lifetime" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "tvshow", "query": "SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = 'A Love of a Lifetime';", "query_toks": [ "SELECT", "T1.series_name", "FROM", "TV_Channel", "AS", "T1", "JOIN", "TV_series", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.Episode", "=", "``", "A", "Love", "of", "a", "Lifetime", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "series_name", "from", "tv_channel", "as", "t1", "join", "tv_series", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "episode", "=", "value" ], "question": "What is the TV Channel of TV series with Episode 'A Love of a Lifetime'? List the TV Channel's series name.", "question_toks": [ "what", "is", "tv", "channel", "of", "tv", "series", "with", "episode", "'", "a", "love", "of", "a", "lifetime", "'", "?", "list", "tv", "channel", "'s", "series", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'A Love of a Lifetime'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "What", "is", "the", "TV", "Channel", "of", "TV", "series", "with", "Episode", "``", "A", "Love", "of", "a", "Lifetime", "''", "?", "List", "the", "TV", "Channel", "'s", "series", "name", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "tv", "channel" ], [ "of" ], [ "tv", "series" ], [ "with" ], [ "episode" ], [ "'" ], [ "a" ], [ "love" ], [ "of" ], [ "a" ], [ "lifetime" ], [ "'" ], [ "?" ], [ "list" ], [ "tv" ], [ "channel" ], [ "'s" ], [ "series", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "tv", "JJ" ], [ "channel", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "series", "NN" ], [ "with", "IN" ], [ "episode", "NN" ], [ "'", "''" ], [ "a", "DT" ], [ "love", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "lifetime", "NN" ], [ "'", "POS" ], [ "?", "." ], [ "list", "JJ" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "'s", "POS" ], [ "series", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "A Love of a Lifetime" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "tvshow", "query": "SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = 'Sky Radio';", "query_toks": [ "SELECT", "T2.Episode", "FROM", "TV_Channel", "AS", "T1", "JOIN", "TV_series", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T1.series_name", "=", "``", "Sky", "Radio", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "episode", "from", "tv_channel", "as", "t1", "join", "tv_series", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t1", ".", "series_name", "=", "value" ], "question": "List the Episode of all TV series showed on TV Channel with series name 'Sky Radio'.", "question_toks": [ "list", "episode", "of", "all", "tv", "series", "showed", "on", "tv", "channel", "with", "series", "name", "'", "sky", "radio", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Sky Radio'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "List", "the", "Episode", "of", "all", "TV", "series", "showed", "on", "TV", "Channel", "with", "series", "name", "``", "Sky", "Radio", "''", "." ], "question_arg": [ [ "list" ], [ "episode" ], [ "of" ], [ "all" ], [ "tv", "series" ], [ "showed" ], [ "on" ], [ "tv", "channel" ], [ "with" ], [ "series", "name" ], [ "'" ], [ "sky" ], [ "radio" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "episode", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "tv", "NN" ], [ "series", "NN" ], [ "showed", "VBD" ], [ "on", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "with", "IN" ], [ "series", "NN" ], [ "name", "NN" ], [ "'", "''" ], [ "sky", "JJ" ], [ "radio", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Sky Radio" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "tvshow", "query": "SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "Directed_by", "FROM", "cartoon", "GROUP", "BY", "Directed_by" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "directed_by", "from", "cartoon", "group", "by", "directed_by" ], "question": "Find the number of cartoons directed by each of the listed directors.", "question_toks": [ "find", "number", "of", "cartoon", "directed", "by", "each", "of", "listed", "director", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "Find", "the", "number", "of", "cartoons", "directed", "by", "each", "of", "the", "listed", "directors", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "cartoon" ], [ "directed", "by" ], [ "each" ], [ "of" ], [ "listed" ], [ "director" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "cartoon", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "listed", "JJ" ], [ "director", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(19) T(2)" }, { "db_id": "tvshow", "query": "SELECT production_code , channel FROM cartoon ORDER BY original_air_date LIMIT 1", "query_toks": [ "SELECT", "production_code", ",", "channel", "FROM", "cartoon", "ORDER", "BY", "original_air_date", "LIMIT", "1" ], "query_toks_no_value": [ "select", "production_code", ",", "channel", "from", "cartoon", "order", "by", "original_air_date", "limit", "value" ], "question": "Find the production code and channel of the most recently aired cartoon.", "question_toks": [ "find", "production", "code", "and", "channel", "of", "most", "recently", "aired", "cartoon", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 23, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "Find", "the", "production", "code", "and", "channel", "of", "the", "most", "recently", "aired", "cartoon", "." ], "question_arg": [ [ "find" ], [ "production", "code" ], [ "and" ], [ "channel" ], [ "of" ], [ "most" ], [ "recently" ], [ "aired" ], [ "cartoon" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "production", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "channel", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "recently", "RB" ], [ "aired", "VBN" ], [ "cartoon", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(22) T(2) A(0) C(17) T(2) Sup(1) A(0) C(21) T(2)" }, { "db_id": "tvshow", "query": "SELECT package_option , series_name FROM TV_Channel WHERE high_definition_TV = 'yes'", "query_toks": [ "SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "high_definition_TV", "=", "``", "yes", "''" ], "query_toks_no_value": [ "select", "package_option", ",", "series_name", "from", "tv_channel", "where", "high_definition_tv", "=", "value" ], "question": "Find the package choice and series name of the TV channel that has high definition TV.", "question_toks": [ "find", "package", "choice", "and", "series", "name", "of", "tv", "channel", "that", "ha", "high", "definition", "tv", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "'yes'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "high", "definition", "TV", "." ], "question_arg": [ [ "find" ], [ "package" ], [ "choice" ], [ "and" ], [ "series", "name" ], [ "of" ], [ "tv", "channel" ], [ "that" ], [ "ha" ], [ "high" ], [ "high", "definition", "tv" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "package", "NN" ], [ "choice", "NN" ], [ "and", "CC" ], [ "series", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "that", "IN" ], [ "ha", "JJ" ], [ "high", "JJ" ], [ "definition", "NN" ], [ "tv", "NN" ], [ ".", "." ] ], "values": [ "yes" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(0) A(0) C(2) T(0) Filter(2) A(0) C(7) T(0) V(0)" }, { "db_id": "tvshow", "query": "SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", "query_toks": [ "SELECT", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.written_by", "=", "'Todd", "Casey", "'" ], "query_toks_no_value": [ "select", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "written_by", "=", "value" ], "question": "which countries' tv channels are playing some cartoon written by Todd Casey?", "question_toks": [ "which", "country", "'", "tv", "channel", "are", "playing", "some", "cartoon", "written", "by", "todd", "casey", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "'Todd Casey'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "which", "countries", "'", "tv", "channels", "are", "playing", "some", "cartoon", "written", "by", "Todd", "Casey", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "'" ], [ "tv", "channel" ], [ "are" ], [ "playing" ], [ "some" ], [ "cartoon" ], [ "written", "by" ], [ "todd" ], [ "casey" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "'", "''" ], [ "tv", "NN" ], [ "channel", "NNS" ], [ "are", "VBP" ], [ "playing", "VBG" ], [ "some", "DT" ], [ "cartoon", "NN" ], [ "written", "VBN" ], [ "by", "IN" ], [ "todd", "NN" ], [ "casey", "NN" ], [ "?", "." ] ], "values": [ "Todd Casey" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(20) T(2) V(0)" }, { "db_id": "tvshow", "query": "SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'", "query_toks": [ "SELECT", "country", "FROM", "TV_Channel", "EXCEPT", "SELECT", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.written_by", "=", "'Todd", "Casey", "'" ], "query_toks_no_value": [ "select", "country", "from", "tv_channel", "except", "select", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "written_by", "=", "value" ], "question": "which countries' tv channels are not playing any cartoon written by Todd Casey?", "question_toks": [ "which", "country", "'", "tv", "channel", "are", "not", "playing", "any", "cartoon", "written", "by", "todd", "casey", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], "'Todd Casey'", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "which", "countries", "'", "tv", "channels", "are", "not", "playing", "any", "cartoon", "written", "by", "Todd", "Casey", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "'" ], [ "tv", "channel" ], [ "are" ], [ "not" ], [ "playing" ], [ "any" ], [ "cartoon" ], [ "written", "by" ], [ "todd" ], [ "casey" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "'", "''" ], [ "tv", "NN" ], [ "channel", "NNS" ], [ "are", "VBP" ], [ "not", "RB" ], [ "playing", "VBG" ], [ "any", "DT" ], [ "cartoon", "NN" ], [ "written", "VBN" ], [ "by", "IN" ], [ "todd", "NN" ], [ "casey", "NN" ], [ "?", "." ] ], "values": [ "Todd Casey" ], "all_values_found": true, "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(3) T(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(20) T(2) V(0)" }, { "db_id": "tvshow", "query": "SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'", "query_toks": [ "SELECT", "T1.series_name", ",", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.directed_by", "=", "'Michael", "Chang", "'", "INTERSECT", "SELECT", "T1.series_name", ",", "T1.country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1.id", "=", "T2.Channel", "WHERE", "T2.directed_by", "=", "'Ben", "Jones", "'" ], "query_toks_no_value": [ "select", "t1", ".", "series_name", ",", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "value", "intersect", "select", "t1", ".", "series_name", ",", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "value" ], "question": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?", "question_toks": [ "find", "series", "name", "and", "country", "of", "tv", "channel", "that", "is", "playing", "some", "cartoon", "directed", "by", "ben", "jones", "and", "michael", "chang", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 25, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "'Ben Jones'", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "'Michael Chang'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "Find", "the", "series", "name", "and", "country", "of", "the", "tv", "channel", "that", "is", "playing", "some", "cartoons", "directed", "by", "Ben", "Jones", "and", "Michael", "Chang", "?" ], "question_arg": [ [ "find" ], [ "series", "name" ], [ "and" ], [ "country" ], [ "of" ], [ "tv", "channel" ], [ "that" ], [ "is" ], [ "playing" ], [ "some" ], [ "cartoon" ], [ "directed", "by" ], [ "ben" ], [ "jones" ], [ "and" ], [ "michael" ], [ "chang" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "series", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "playing", "VBG" ], [ "some", "DT" ], [ "cartoon", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "ben", "NN" ], [ "jones", "NNS" ], [ "and", "CC" ], [ "michael", "VB" ], [ "chang", "NN" ], [ "?", "." ] ], "values": [ "Ben Jones", "Michael Chang" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(2) A(0) C(19) T(2) V(1) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(2) A(0) C(19) T(2) V(0)" }, { "db_id": "tvshow", "query": "SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'", "query_toks": [ "SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel", "WHERE", "LANGUAGE", "!", "=", "'English", "'" ], "query_toks_no_value": [ "select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel", "where", "language", "!", "=", "value" ], "question": "find the pixel aspect ratio and nation of the tv channels that do not use English.", "question_toks": [ "find", "pixel", "aspect", "ratio", "and", "nation", "of", "tv", "channel", "that", "do", "not", "use", "english", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "'English'", null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "find", "the", "pixel", "aspect", "ratio", "and", "nation", "of", "the", "tv", "channels", "that", "do", "not", "use", "English", "." ], "question_arg": [ [ "find" ], [ "pixel" ], [ "aspect" ], [ "ratio" ], [ "and" ], [ "nation" ], [ "of" ], [ "tv", "channel" ], [ "that" ], [ "do" ], [ "not" ], [ "use" ], [ "english" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "language" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "pixel", "JJ" ], [ "aspect", "NN" ], [ "ratio", "NN" ], [ "and", "CC" ], [ "nation", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "use", "VB" ], [ "english", "JJ" ], [ ".", "." ] ], "values": [ "English" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(0) A(0) C(3) T(0) Filter(3) A(0) C(4) T(0) V(0)" }, { "db_id": "tvshow", "query": "SELECT id FROM tv_channel GROUP BY id HAVING count(*) > 2", "query_toks": [ "SELECT", "id", "FROM", "tv_channel", "GROUP", "BY", "id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "id", "from", "tv_channel", "group", "by", "id", "having", "count", "(", "*", ")", ">", "value" ], "question": "find id of the tv channels that from the countries where have more than two tv channels.", "question_toks": [ "find", "id", "of", "tv", "channel", "that", "from", "country", "where", "have", "more", "than", "two", "tv", "channel", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "find", "id", "of", "the", "tv", "channels", "that", "from", "the", "countries", "where", "have", "more", "than", "two", "tv", "channels", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "tv", "channel" ], [ "that" ], [ "from" ], [ "country" ], [ "where" ], [ "have" ], [ "more" ], [ "than" ], [ "two" ], [ "tv", "channel" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "channel", "NNS" ], [ "that", "IN" ], [ "from", "IN" ], [ "country", "NN" ], [ "where", "WRB" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "tv", "NN" ], [ "channel", "NNS" ], [ ".", "." ] ], "values": [ "2" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "tvshow", "query": "SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'", "query_toks": [ "SELECT", "id", "FROM", "TV_Channel", "EXCEPT", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'" ], "query_toks_no_value": [ "select", "id", "from", "tv_channel", "except", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value" ], "question": "find the id of tv channels that do not play any cartoon directed by Ben Jones.", "question_toks": [ "find", "id", "of", "tv", "channel", "that", "do", "not", "play", "any", "cartoon", "directed", "by", "ben", "jones", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "'Ben Jones'", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "find", "the", "id", "of", "tv", "channels", "that", "do", "not", "play", "any", "cartoon", "directed", "by", "Ben", "Jones", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "tv", "channel" ], [ "that" ], [ "do" ], [ "not" ], [ "play" ], [ "any" ], [ "cartoon" ], [ "directed", "by" ], [ "ben" ], [ "jones" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "play", "VB" ], [ "any", "DT" ], [ "cartoon", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "ben", "NN" ], [ "jones", "NNS" ], [ ".", "." ] ], "values": [ "Ben Jones" ], "all_values_found": true, "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(17) T(2) Filter(2) A(0) C(19) T(2) V(0)" }, { "db_id": "tvshow", "query": "SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')", "query_toks": [ "SELECT", "package_option", "FROM", "TV_Channel", "WHERE", "id", "NOT", "IN", "(", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'", ")" ], "query_toks_no_value": [ "select", "package_option", "from", "tv_channel", "where", "id", "not", "in", "(", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value", ")" ], "question": "find the package option of the tv channel that do not have any cartoon directed by Ben Jones.", "question_toks": [ "find", "package", "option", "of", "tv", "channel", "that", "do", "not", "have", "any", "cartoon", "directed", "by", "ben", "jones", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], "'Ben Jones'", null ] ] }, null ] ] }, "names": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "id", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "id", "title", "directed by", "written by", "original air date", "production code", "channel" ], "table_names": [ "tv channel", "tv series", "cartoon" ], "col_set": [ "*", "id", "series name", "country", "language", "content", "pixel aspect ratio par", "high definition tv", "pay per view ppv", "package option", "episode", "air date", "rating", "share", "18 49 rating share", "viewers m", "weekly rank", "channel", "title", "directed by", "written by", "original air date", "production code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "18": 1, "1": 1, "25": 1, "10": 10, "19": 19 }, "origin_question_toks": [ "find", "the", "package", "option", "of", "the", "tv", "channel", "that", "do", "not", "have", "any", "cartoon", "directed", "by", "Ben", "Jones", "." ], "question_arg": [ [ "find" ], [ "package", "option" ], [ "of" ], [ "tv", "channel" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "cartoon" ], [ "directed", "by" ], [ "ben" ], [ "jones" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "package", "NN" ], [ "option", "NN" ], [ "of", "IN" ], [ "tv", "NN" ], [ "channel", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "cartoon", "NN" ], [ "directed", "VBN" ], [ "by", "IN" ], [ "ben", "NN" ], [ "jones", "NNS" ], [ ".", "." ] ], "values": [ "Ben Jones", "Option" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(0) Filter(19) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(17) T(2) Filter(2) A(0) C(19) T(2) V(0)" }, { "db_id": "poker_player", "query": "SELECT count(*) FROM poker_player", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "poker_player" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "poker_player" ], "question": "How many poker players are there?", "question_toks": [ "how", "many", "poker", "player", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "How", "many", "poker", "players", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "poker", "player" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "poker", "NN" ], [ "player", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "poker_player", "query": "SELECT Earnings FROM poker_player ORDER BY Earnings DESC", "query_toks": [ "SELECT", "Earnings", "FROM", "poker_player", "ORDER", "BY", "Earnings", "DESC" ], "query_toks_no_value": [ "select", "earnings", "from", "poker_player", "order", "by", "earnings", "desc" ], "question": "List the earnings of poker players in descending order.", "question_toks": [ "list", "earnings", "of", "poker", "player", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "List", "the", "earnings", "of", "poker", "players", "in", "descending", "order", "." ], "question_arg": [ [ "list" ], [ "earnings" ], [ "of" ], [ "poker", "player" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "JJ" ], [ "earnings", "NNS" ], [ "of", "IN" ], [ "poker", "NN" ], [ "player", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(0) Order(0) A(0) C(6) T(0)" }, { "db_id": "poker_player", "query": "SELECT Final_Table_Made , Best_Finish FROM poker_player", "query_toks": [ "SELECT", "Final_Table_Made", ",", "Best_Finish", "FROM", "poker_player" ], "query_toks_no_value": [ "select", "final_table_made", ",", "best_finish", "from", "poker_player" ], "question": "List the final tables made and the best finishes of poker players.", "question_toks": [ "list", "final", "table", "made", "and", "best", "finish", "of", "poker", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "List", "the", "final", "tables", "made", "and", "the", "best", "finishes", "of", "poker", "players", "." ], "question_arg": [ [ "list" ], [ "final", "table", "made" ], [ "and" ], [ "best", "finish" ], [ "of" ], [ "poker", "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "final", "JJ" ], [ "table", "NN" ], [ "made", "VBN" ], [ "and", "CC" ], [ "best", "JJS" ], [ "finish", "NN" ], [ "of", "IN" ], [ "poker", "NN" ], [ "player", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0)" }, { "db_id": "poker_player", "query": "SELECT avg(Earnings) FROM poker_player", "query_toks": [ "SELECT", "avg", "(", "Earnings", ")", "FROM", "poker_player" ], "query_toks_no_value": [ "select", "avg", "(", "earnings", ")", "from", "poker_player" ], "question": "What is the average earnings of poker players?", "question_toks": [ "what", "is", "average", "earnings", "of", "poker", "player", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "earnings", "of", "poker", "players", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "earnings" ], [ "of" ], [ "poker", "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "earnings", "NNS" ], [ "of", "IN" ], [ "poker", "NN" ], [ "player", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(6) T(0)" }, { "db_id": "poker_player", "query": "SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1", "query_toks": [ "SELECT", "Money_Rank", "FROM", "poker_player", "ORDER", "BY", "Earnings", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "money_rank", "from", "poker_player", "order", "by", "earnings", "desc", "limit", "value" ], "question": "What is the money rank of the poker player with the highest earnings?", "question_toks": [ "what", "is", "money", "rank", "of", "poker", "player", "with", "highest", "earnings", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "money", "rank", "of", "the", "poker", "player", "with", "the", "highest", "earnings", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "money", "rank" ], [ "of" ], [ "poker", "player" ], [ "with" ], [ "highest" ], [ "earnings" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "money", "NN" ], [ "rank", "NN" ], [ "of", "IN" ], [ "poker", "NN" ], [ "player", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "earnings", "NNS" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(0) C(6) T(0)" }, { "db_id": "poker_player", "query": "SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000", "query_toks": [ "SELECT", "max", "(", "Final_Table_Made", ")", "FROM", "poker_player", "WHERE", "Earnings", "<", "200000" ], "query_toks_no_value": [ "select", "max", "(", "final_table_made", ")", "from", "poker_player", "where", "earnings", "<", "value" ], "question": "What is the maximum number of final tables made among poker players with earnings less than 200000?", "question_toks": [ "what", "is", "maximum", "number", "of", "final", "table", "made", "among", "poker", "player", "with", "earnings", "le", "than", "200000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 6, false ], null ], 200000.0, null ] ] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "maximum", "number", "of", "final", "tables", "made", "among", "poker", "players", "with", "earnings", "less", "than", "200000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "number" ], [ "of" ], [ "final", "table", "made" ], [ "among" ], [ "poker", "player" ], [ "with" ], [ "earnings" ], [ "le" ], [ "than" ], [ "200000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "final", "JJ" ], [ "table", "NN" ], [ "made", "VBN" ], [ "among", "IN" ], [ "poker", "NN" ], [ "player", "NN" ], [ "with", "IN" ], [ "earnings", "NNS" ], [ "le", "NNS" ], [ "than", "IN" ], [ "200000", "CD" ], [ "?", "." ] ], "values": [ "200000" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(3) T(0) Filter(4) A(0) C(6) T(0) V(0)" }, { "db_id": "poker_player", "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id" ], "question": "What are the names of poker players?", "question_toks": [ "what", "are", "name", "of", "poker", "player", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "poker", "players", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "poker", "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "poker", "NN" ], [ "player", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "poker_player", "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Earnings", ">", "300000" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "earnings", ">", "value" ], "question": "What are the names of poker players whose earnings is higher than 300000?", "question_toks": [ "what", "are", "name", "of", "poker", "player", "whose", "earnings", "is", "higher", "than", "300000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], 300000.0, null ] ] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "poker", "players", "whose", "earnings", "is", "higher", "than", "300000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "poker", "player" ], [ "whose" ], [ "earnings" ], [ "is" ], [ "higher" ], [ "than" ], [ "300000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "poker", "NN" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "earnings", "NNS" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "300000", "CD" ], [ "?", "." ] ], "values": [ "300000" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(0) C(6) T(0) V(0)" }, { "db_id": "poker_player", "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Final_Table_Made" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "final_table_made" ], "question": "List the names of poker players ordered by the final tables made in ascending order.", "question_toks": [ "list", "name", "of", "poker", "player", "ordered", "by", "final", "table", "made", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "poker", "players", "ordered", "by", "the", "final", "tables", "made", "in", "ascending", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "poker", "player" ], [ "ordered" ], [ "by" ], [ "final", "table", "made" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "poker", "NN" ], [ "player", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "final", "JJ" ], [ "table", "NN" ], [ "made", "VBN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(1) Order(1) A(0) C(3) T(0)" }, { "db_id": "poker_player", "query": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1", "query_toks": [ "SELECT", "T1.Birth_Date", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Earnings", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "birth_date", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "earnings", "asc", "limit", "value" ], "question": "What is the birth date of the poker player with the lowest earnings?", "question_toks": [ "what", "is", "birth", "date", "of", "poker", "player", "with", "lowest", "earnings", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "birth", "date", "of", "the", "poker", "player", "with", "the", "lowest", "earnings", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "birth", "date" ], [ "of" ], [ "poker", "player" ], [ "with" ], [ "lowest" ], [ "earnings" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "birth", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "poker", "NN" ], [ "player", "NN" ], [ "with", "IN" ], [ "lowest", "JJ" ], [ "earnings", "NNS" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(1) Sup(1) A(0) C(6) T(0)" }, { "db_id": "poker_player", "query": "SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Money_Rank", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "money_rank", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "height", "desc", "limit", "value" ], "question": "What is the money rank of the tallest poker player?", "question_toks": [ "what", "is", "money", "rank", "of", "tallest", "poker", "player", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "money", "rank", "of", "the", "tallest", "poker", "player", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "money", "rank" ], [ "of" ], [ "tallest" ], [ "poker", "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "money", "NN" ], [ "rank", "NN" ], [ "of", "IN" ], [ "tallest", "NN" ], [ "poker", "NN" ], [ "player", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(0) C(10) T(1)" }, { "db_id": "poker_player", "query": "SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200", "query_toks": [ "SELECT", "avg", "(", "T2.Earnings", ")", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Height", ">", "200" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "earnings", ")", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "height", ">", "value" ], "question": "What is the average earnings of poker players with height higher than 200?", "question_toks": [ "what", "is", "average", "earnings", "of", "poker", "player", "with", "height", "higher", "than", "200", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 200.0, null ] ] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "earnings", "of", "poker", "players", "with", "height", "higher", "than", "200", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "earnings" ], [ "of" ], [ "poker", "player" ], [ "with" ], [ "height" ], [ "higher" ], [ "than" ], [ "200" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "earnings", "NNS" ], [ "of", "IN" ], [ "poker", "NN" ], [ "player", "NN" ], [ "with", "IN" ], [ "height", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ "?", "." ] ], "values": [ "200" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(6) T(0) Filter(5) A(0) C(10) T(1) V(0)" }, { "db_id": "poker_player", "query": "SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC", "query_toks": [ "SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Earnings", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "earnings", "desc" ], "question": "What are the names of poker players in descending order of earnings?", "question_toks": [ "what", "are", "name", "of", "poker", "player", "in", "descending", "order", "of", "earnings", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "poker", "players", "in", "descending", "order", "of", "earnings", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "poker", "player" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "earnings" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "poker", "NN" ], [ "player", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "earnings", "NNS" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(1) Order(0) A(0) C(6) T(0)" }, { "db_id": "poker_player", "query": "SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality", "query_toks": [ "SELECT", "Nationality", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Nationality" ], "query_toks_no_value": [ "select", "nationality", ",", "count", "(", "*", ")", "from", "people", "group", "by", "nationality" ], "question": "What are different nationalities of people and the corresponding number of people from each nation?", "question_toks": [ "what", "are", "different", "nationality", "of", "people", "and", "corresponding", "number", "of", "people", "from", "each", "nation", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "different", "nationalities", "of", "people", "and", "the", "corresponding", "number", "of", "people", "from", "each", "nation", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "nationality" ], [ "of" ], [ "people" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "people" ], [ "from" ], [ "each" ], [ "nation" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "from", "IN" ], [ "each", "DT" ], [ "nation", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(1) A(3) C(0) T(1)" }, { "db_id": "poker_player", "query": "SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Nationality", "FROM", "people", "GROUP", "BY", "Nationality", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "nationality", "from", "people", "group", "by", "nationality", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common nationality of people?", "question_toks": [ "what", "is", "most", "common", "nationality", "of", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "nationality", "of", "people", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "nationality" ], [ "of" ], [ "people" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "nationality", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "poker_player", "query": "SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Nationality", "FROM", "people", "GROUP", "BY", "Nationality", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "nationality", "from", "people", "group", "by", "nationality", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the nationalities that are shared by at least two people?", "question_toks": [ "what", "are", "nationality", "that", "are", "shared", "by", "at", "least", "two", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "nationalities", "that", "are", "shared", "by", "at", "least", "two", "people", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "nationality" ], [ "that" ], [ "are" ], [ "shared" ], [ "by" ], [ "at" ], [ "least" ], [ "two" ], [ "people" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "nationality", "JJ" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "people", "NNS" ], [ "?", "." ] ], "values": [ "2" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "poker_player", "query": "SELECT Name , Birth_Date FROM people ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", ",", "Birth_Date", "FROM", "people", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", ",", "birth_date", "from", "people", "order", "by", "name", "asc" ], "question": "List the names and birth dates of people in ascending alphabetical order of name.", "question_toks": [ "list", "name", "and", "birth", "date", "of", "people", "in", "ascending", "alphabetical", "order", "of", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "and", "birth", "dates", "of", "people", "in", "ascending", "alphabetical", "order", "of", "name", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "birth", "date" ], [ "of" ], [ "people" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "birth", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(8) T(1) A(0) C(9) T(1) Order(1) A(0) C(8) T(1)" }, { "db_id": "poker_player", "query": "SELECT Name FROM people WHERE Nationality != 'Russia'", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "Nationality", "!", "=", "``", "Russia", "''" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "nationality", "!", "=", "value" ], "question": "Show names of people whose nationality is not 'Russia'.", "question_toks": [ "show", "name", "of", "people", "whose", "nationality", "is", "not", "'", "russia", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 8, false ], null ], "'Russia'", null ] ] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "Show", "names", "of", "people", "whose", "nationality", "is", "not", "``", "Russia", "''", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "people" ], [ "whose" ], [ "nationality" ], [ "is" ], [ "not" ], [ "'" ], [ "russia" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "whose", "WP$" ], [ "nationality", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "russia", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Russia" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(3) A(0) C(7) T(1) V(0)" }, { "db_id": "poker_player", "query": "SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "poker_player", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "poker_player", ")" ], "question": "List the names of people that are not poker players.", "question_toks": [ "list", "name", "of", "people", "that", "are", "not", "poker", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "people", "that", "are", "not", "poker", "players", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "people" ], [ "that" ], [ "are" ], [ "not" ], [ "poker", "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "poker", "VBN" ], [ "player", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(19) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "poker_player", "query": "SELECT count(DISTINCT Nationality) FROM people", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Nationality", ")", "FROM", "people" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "nationality", ")", "from", "people" ], "question": "How many distinct nationalities are there?", "question_toks": [ "how", "many", "distinct", "nationality", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 8, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "people id", "nationality", "name", "birth date", "height" ], "table_names": [ "poker player", "people" ], "col_set": [ "*", "poker player id", "people id", "final table made", "best finish", "money rank", "earnings", "nationality", "name", "birth date", "height" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 7, "7": 7, "1": 1 }, "origin_question_toks": [ "How", "many", "distinct", "nationalities", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "nationality" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "nationality", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(7) T(1)" }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE IndepYear > 1950", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "IndepYear", ">", "1950" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "indepyear", ">", "value" ], "question": "What are the names of all the countries that became independent after 1950?", "question_toks": [ "what", "are", "name", "of", "all", "country", "that", "became", "independent", "after", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 1950.0, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "countries", "that", "became", "independent", "after", "1950", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "country" ], [ "that" ], [ "became" ], [ "independent" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "country", "NN" ], [ "that", "WDT" ], [ "became", "VBD" ], [ "independent", "JJ" ], [ "after", "IN" ], [ "1950", "CD" ], [ "?", "." ] ], "values": [ "N\u00eemes", "1950" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(5) A(0) C(11) T(2) V(1)" }, { "db_id": "world_1", "query": "SELECT count(*) FROM country WHERE GovernmentForm = 'Republic'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "``", "Republic", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country", "where", "governmentform", "=", "value" ], "question": "How many countries have a republic as their form of government?", "question_toks": [ "how", "many", "country", "have", "a", "republic", "a", "their", "form", "of", "government", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "'Republic'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "How", "many", "countries", "have", "a", "republic", "as", "their", "form", "of", "government", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "country" ], [ "have" ], [ "a" ], [ "republic" ], [ "a" ], [ "their" ], [ "form" ], [ "of" ], [ "government" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "country", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "republic", "NN" ], [ "a", "DT" ], [ "their", "PRP$" ], [ "form", "NN" ], [ "of", "IN" ], [ "government", "NN" ], [ "?", "." ] ], "values": [ "Republic" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(16) T(2) V(0)" }, { "db_id": "world_1", "query": "SELECT sum(SurfaceArea) FROM country WHERE Region = 'Caribbean'", "query_toks": [ "SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Region", "=", "``", "Caribbean", "''" ], "query_toks_no_value": [ "select", "sum", "(", "surfacearea", ")", "from", "country", "where", "region", "=", "value" ], "question": "What is the total surface area of the countries in the Caribbean region?", "question_toks": [ "what", "is", "total", "surface", "area", "of", "country", "in", "caribbean", "region", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'Caribbean'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "surface", "area", "of", "the", "countries", "in", "the", "Caribbean", "region", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "surface", "area" ], [ "of" ], [ "country" ], [ "in" ], [ "caribbean" ], [ "region" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "surface", "JJ" ], [ "area", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "in", "IN" ], [ "caribbean", "JJ" ], [ "region", "NN" ], [ "?", "." ] ], "values": [ "Caribbean", "ARE" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(10) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "world_1", "query": "SELECT Continent FROM country WHERE Name = 'Anguilla'", "query_toks": [ "SELECT", "Continent", "FROM", "country", "WHERE", "Name", "=", "``", "Anguilla", "''" ], "query_toks_no_value": [ "select", "continent", "from", "country", "where", "name", "=", "value" ], "question": "Which continent is Anguilla in?", "question_toks": [ "which", "continent", "is", "anguilla", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "'Anguilla'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Which", "continent", "is", "Anguilla", "in", "?" ], "question_arg": [ [ "which" ], [ "continent" ], [ "is" ], [ "anguilla" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "continent", "NN" ], [ "is", "VBZ" ], [ "anguilla", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Anguilla" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(2) T(2) V(0)" }, { "db_id": "world_1", "query": "SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code = T2.CountryCode WHERE T2.Name = 'Kabul'", "query_toks": [ "SELECT", "Region", "FROM", "country", "AS", "T1", "JOIN", "city", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Name", "=", "``", "Kabul", "''" ], "query_toks_no_value": [ "select", "region", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "name", "=", "value" ], "question": "Which region is the city Kabul located in?", "question_toks": [ "which", "region", "is", "city", "kabul", "located", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Kabul'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Which", "region", "is", "the", "city", "Kabul", "located", "in", "?" ], "question_arg": [ [ "which" ], [ "region" ], [ "is" ], [ "city" ], [ "kabul" ], [ "located" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "capital" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "region", "NN" ], [ "is", "VBZ" ], [ "city", "NN" ], [ "kabul", "NN" ], [ "located", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Kabol", "Kabul" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "world_1", "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba' ORDER BY Percentage DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Aruba", "''", "ORDER", "BY", "Percentage", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "order", "by", "percentage", "desc", "limit", "value" ], "question": "Which language is the most popular in Aruba?", "question_toks": [ "which", "language", "is", "most", "popular", "in", "aruba", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 26, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "'Aruba'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Which", "language", "is", "the", "most", "popular", "in", "Aruba", "?" ], "question_arg": [ [ "which" ], [ "language" ], [ "is" ], [ "most" ], [ "popular" ], [ "in" ], [ "aruba" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "language", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "in", "IN" ], [ "aruba", "NN" ], [ "?", "." ] ], "values": [ "Aruba" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(21) T(3) Sup(0) A(0) C(23) T(3) Filter(2) A(0) C(2) T(2) V(0)" }, { "db_id": "world_1", "query": "SELECT Population , LifeExpectancy FROM country WHERE Name = 'Brazil'", "query_toks": [ "SELECT", "Population", ",", "LifeExpectancy", "FROM", "country", "WHERE", "Name", "=", "``", "Brazil", "''" ], "query_toks_no_value": [ "select", "population", ",", "lifeexpectancy", "from", "country", "where", "name", "=", "value" ], "question": "What are the population and life expectancies in Brazil?", "question_toks": [ "what", "are", "population", "and", "life", "expectancy", "in", "brazil", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "'Brazil'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "population", "and", "life", "expectancies", "in", "Brazil", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "population" ], [ "and" ], [ "life", "expectancy" ], [ "in" ], [ "brazil" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "population", "NN" ], [ "and", "CC" ], [ "life", "NN" ], [ "expectancy", "NN" ], [ "in", "IN" ], [ "brazil", "NN" ], [ "?", "." ] ], "values": [ "Ife", "LIE", "Brazil", "Brasil" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(2) A(0) C(12) T(2) Filter(2) A(0) C(2) T(2) V(2)" }, { "db_id": "world_1", "query": "SELECT Population , Region FROM country WHERE Name = 'Angola'", "query_toks": [ "SELECT", "Population", ",", "Region", "FROM", "country", "WHERE", "Name", "=", "``", "Angola", "''" ], "query_toks_no_value": [ "select", "population", ",", "region", "from", "country", "where", "name", "=", "value" ], "question": "What are the region and population of Angola?", "question_toks": [ "what", "are", "region", "and", "population", "of", "angola", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "'Angola'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "region", "and", "population", "of", "Angola", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "region" ], [ "and" ], [ "population" ], [ "of" ], [ "angola" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "region", "NN" ], [ "and", "CC" ], [ "population", "NN" ], [ "of", "IN" ], [ "angola", "NN" ], [ "?", "." ] ], "values": [ "Angola" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(2) A(0) C(9) T(2) Filter(2) A(0) C(2) T(2) V(0)" }, { "db_id": "world_1", "query": "SELECT avg(LifeExpectancy) FROM country WHERE Region = 'Central Africa'", "query_toks": [ "SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Region", "=", "``", "Central", "Africa", "''" ], "query_toks_no_value": [ "select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "region", "=", "value" ], "question": "What is the average expected life expectancy for countries in the region of Central Africa?", "question_toks": [ "what", "is", "average", "expected", "life", "expectancy", "for", "country", "in", "region", "of", "central", "africa", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'Central Africa'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "expected", "life", "expectancy", "for", "countries", "in", "the", "region", "of", "Central", "Africa", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "expected" ], [ "life", "expectancy" ], [ "for" ], [ "country" ], [ "in" ], [ "region" ], [ "of" ], [ "central" ], [ "africa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "expected", "JJ" ], [ "life", "NN" ], [ "expectancy", "NN" ], [ "for", "IN" ], [ "country", "NN" ], [ "in", "IN" ], [ "region", "NN" ], [ "of", "IN" ], [ "central", "JJ" ], [ "africa", "NNS" ], [ "?", "." ] ], "values": [ "Ife", "Africa", "LIE", "Central America", "Central", "Central Africa", "Arica" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(12) T(2) Filter(2) A(0) C(9) T(2) V(5)" }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE Continent = 'Asia' ORDER BY LifeExpectancy LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "ORDER", "BY", "LifeExpectancy", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "order", "by", "lifeexpectancy", "limit", "value" ], "question": "What is the name of country that has the shortest life expectancy in Asia?", "question_toks": [ "what", "is", "name", "of", "country", "that", "ha", "shortest", "life", "expectancy", "in", "asia", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 15, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Asia'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "country", "that", "has", "the", "shortest", "life", "expectancy", "in", "Asia", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "country" ], [ "that" ], [ "ha" ], [ "shortest" ], [ "life", "expectancy" ], [ "in" ], [ "asia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "continent" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "shortest", "JJ" ], [ "life", "NN" ], [ "expectancy", "NN" ], [ "in", "IN" ], [ "asia", "NN" ], [ "?", "." ] ], "values": [ "Nama", "Asir", "AIA", "LIE", "Asia", "NAM" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(2) Sup(1) A(0) C(12) T(2) Filter(2) A(0) C(8) T(2) V(4)" }, { "db_id": "world_1", "query": "SELECT sum(Population) , max(GNP) FROM country WHERE Continent = 'Asia'", "query_toks": [ "SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "value" ], "question": "What is the total population and maximum GNP in Asia?", "question_toks": [ "what", "is", "total", "population", "and", "maximum", "gnp", "in", "asia", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ], [ 1, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Asia'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "population", "and", "maximum", "GNP", "in", "Asia", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "population" ], [ "and" ], [ "maximum" ], [ "gnp" ], [ "in" ], [ "asia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "continent" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "population", "NN" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "gnp", "NN" ], [ "in", "IN" ], [ "asia", "NN" ], [ "?", "." ] ], "values": [ "Asir", "Apia", "AIA", "Asia" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(5) T(2) A(1) C(13) T(2) Filter(2) A(0) C(8) T(2) V(3)" }, { "db_id": "world_1", "query": "SELECT avg(LifeExpectancy) FROM country WHERE Continent = 'Africa' AND GovernmentForm = 'Republic'", "query_toks": [ "SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "GovernmentForm", "=", "``", "Republic", "''" ], "query_toks_no_value": [ "select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "continent", "=", "value", "and", "governmentform", "=", "value" ], "question": "What is the average life expectancy in African countries that are republics?", "question_toks": [ "what", "is", "average", "life", "expectancy", "in", "african", "country", "that", "are", "republic", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Africa'", null ], "and", [ false, 2, [ 0, [ 0, 19, false ], null ], "'Republic'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "life", "expectancy", "in", "African", "countries", "that", "are", "republics", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "life", "expectancy" ], [ "in" ], [ "african" ], [ "country" ], [ "that" ], [ "are" ], [ "republic" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "life", "NN" ], [ "expectancy", "NN" ], [ "in", "IN" ], [ "african", "JJ" ], [ "country", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "republic", "JJ" ], [ "?", "." ] ], "values": [ "Africa", "Republic", "Ife", "LIE" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(12) T(2) Filter(0) Filter(2) A(0) C(8) T(2) V(0) Filter(2) A(0) C(16) T(2) V(1)" }, { "db_id": "world_1", "query": "SELECT sum(SurfaceArea) FROM country WHERE Continent = 'Asia' OR Continent = 'Europe'", "query_toks": [ "SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "OR", "Continent", "=", "``", "Europe", "''" ], "query_toks_no_value": [ "select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "or", "continent", "=", "value" ], "question": "What is the total surface area of the continents Asia and Europe?", "question_toks": [ "what", "is", "total", "surface", "area", "of", "continent", "asia", "and", "europe", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Asia'", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "'Europe'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "surface", "area", "of", "the", "continents", "Asia", "and", "Europe", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "surface", "area" ], [ "of" ], [ "continent" ], [ "asia" ], [ "and" ], [ "europe" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "continent" ], [ "NONE" ], [ "continent" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "surface", "JJ" ], [ "area", "NN" ], [ "of", "IN" ], [ "continent", "NN" ], [ "asia", "NN" ], [ "and", "CC" ], [ "europe", "NN" ], [ "?", "." ] ], "values": [ "Asir", "Apia", "AIA", "Asia", "Europe", "ARE" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(10) T(2) Filter(1) Filter(2) A(0) C(8) T(2) V(3) Filter(2) A(0) C(8) T(2) V(4)" }, { "db_id": "world_1", "query": "SELECT sum(Population) FROM city WHERE District = 'Gelderland'", "query_toks": [ "SELECT", "sum", "(", "Population", ")", "FROM", "city", "WHERE", "District", "=", "``", "Gelderland", "''" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", "from", "city", "where", "district", "=", "value" ], "question": "How many people live in Gelderland district?", "question_toks": [ "how", "many", "people", "live", "in", "gelderland", "district", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "'Gelderland'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "How", "many", "people", "live", "in", "Gelderland", "district", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "people" ], [ "live" ], [ "in" ], [ "gelderland" ], [ "district" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "people", "NNS" ], [ "live", "VBP" ], [ "in", "IN" ], [ "gelderland", "NN" ], [ "district", "NN" ], [ "?", "." ] ], "values": [ "Nederland", "Gelderland" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(5) T(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "world_1", "query": "SELECT avg(GNP) , sum(population) FROM country WHERE GovernmentForm = 'US Territory'", "query_toks": [ "SELECT", "avg", "(", "GNP", ")", ",", "sum", "(", "population", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "``", "US", "Territory", "''" ], "query_toks_no_value": [ "select", "avg", "(", "gnp", ")", ",", "sum", "(", "population", ")", "from", "country", "where", "governmentform", "=", "value" ], "question": "What is the average GNP and total population in all nations whose government is US territory?", "question_toks": [ "what", "is", "average", "gnp", "and", "total", "population", "in", "all", "nation", "whose", "government", "is", "u", "territory", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 16, false ], null ] ], [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "'US Territory'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "GNP", "and", "total", "population", "in", "all", "nations", "whose", "government", "is", "US", "territory", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "gnp" ], [ "and" ], [ "total" ], [ "population" ], [ "in" ], [ "all" ], [ "nation" ], [ "whose" ], [ "government" ], [ "is" ], [ "u" ], [ "territory" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "gnp", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "population", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "nation", "NN" ], [ "whose", "WP$" ], [ "government", "NN" ], [ "is", "VBZ" ], [ "u", "JJ" ], [ "territory", "NN" ], [ "?", "." ] ], "values": [ "USA", "United States", "US", "US Territory" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(13) T(2) A(4) C(5) T(2) Filter(2) A(0) C(16) T(2) V(3)" }, { "db_id": "world_1", "query": "SELECT count(DISTINCT LANGUAGE) FROM countrylanguage", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "LANGUAGE", ")", "FROM", "countrylanguage" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "language", ")", "from", "countrylanguage" ], "question": "How many unique languages are spoken in the world?", "question_toks": [ "how", "many", "unique", "language", "are", "spoken", "in", "world", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 24, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "How", "many", "unique", "languages", "are", "spoken", "in", "the", "world", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "unique" ], [ "language" ], [ "are" ], [ "spoken" ], [ "in" ], [ "world" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "unique", "JJ" ], [ "language", "NN" ], [ "are", "VBP" ], [ "spoken", "VBN" ], [ "in", "IN" ], [ "world", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(21) T(3)" }, { "db_id": "world_1", "query": "SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent = 'Africa'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "GovernmentForm", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "governmentform", ")", "from", "country", "where", "continent", "=", "value" ], "question": "How many type of governments are in Africa?", "question_toks": [ "how", "many", "type", "of", "government", "are", "in", "africa", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 19, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Africa'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "How", "many", "type", "of", "governments", "are", "in", "Africa", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "type" ], [ "of" ], [ "government" ], [ "are" ], [ "in" ], [ "africa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "continent" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "government", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "africa", "NN" ], [ "?", "." ] ], "values": [ "Arica", "Africa" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(16) T(2) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "world_1", "query": "SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Aruba'", "query_toks": [ "SELECT", "COUNT", "(", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Aruba", "''" ], "query_toks_no_value": [ "select", "count", "(", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value" ], "question": "What is the total number of languages used in Aruba?", "question_toks": [ "what", "is", "total", "number", "of", "language", "used", "in", "aruba", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "'Aruba'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "languages", "used", "in", "Aruba", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "language" ], [ "used" ], [ "in" ], [ "aruba" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "language", "NN" ], [ "used", "VBN" ], [ "in", "IN" ], [ "aruba", "NN" ], [ "?", "." ] ], "values": [ "Aruba" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(21) T(3) Filter(2) A(0) C(2) T(2) V(0)" }, { "db_id": "world_1", "query": "SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Afghanistan' AND IsOfficial = 'T'", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Afghanistan", "''", "AND", "IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value" ], "question": "How many official languages does Afghanistan have?", "question_toks": [ "how", "many", "official", "language", "doe", "afghanistan", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "'Afghanistan'", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "'T'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "How", "many", "official", "languages", "does", "Afghanistan", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "official" ], [ "language" ], [ "doe" ], [ "afghanistan" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "official", "JJ" ], [ "language", "NN" ], [ "doe", "NN" ], [ "afghanistan", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "Afghanistan", "T" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(2) A(0) C(2) T(2) V(0) Filter(2) A(0) C(22) T(3) V(1)" }, { "db_id": "world_1", "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "GROUP", "BY", "T1.Name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is name of the country that speaks the largest number of languages?", "question_toks": [ "what", "is", "name", "of", "country", "that", "speaks", "largest", "number", "of", "language", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "name", "of", "the", "country", "that", "speaks", "the", "largest", "number", "of", "languages", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "country" ], [ "that" ], [ "speaks" ], [ "largest" ], [ "number" ], [ "of" ], [ "language" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "speaks", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "language", "NN" ], [ "?", "." ] ], "values": [ "NAM", "Coventry", "Nama" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(2) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(20) T(3)" }, { "db_id": "world_1", "query": "SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Continent", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "GROUP", "BY", "T1.Continent", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "continent", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "group", "by", "t1", ".", "continent", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which continent has the most diverse languages?", "question_toks": [ "which", "continent", "ha", "most", "diverse", "language", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Which", "continent", "has", "the", "most", "diverse", "languages", "?" ], "question_arg": [ [ "which" ], [ "continent" ], [ "ha" ], [ "most" ], [ "diverse" ], [ "language" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "continent", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "diverse", "JJ" ], [ "language", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(8) T(2) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(0) C(20) T(3)" }, { "db_id": "world_1", "query": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch') as sub", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "(", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "Dutch", "''", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "(", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", ")" ], "question": "How many countries speak both English and Dutch?", "question_toks": [ "how", "many", "country", "speak", "both", "english", "and", "dutch", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "sql", { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'Dutch'", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'English'", null ] ] } ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "How", "many", "countries", "speak", "both", "English", "and", "Dutch", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "country" ], [ "speak" ], [ "both" ], [ "english" ], [ "and" ], [ "dutch" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "language" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "country", "NN" ], [ "speak", "VB" ], [ "both", "DT" ], [ "english", "JJ" ], [ "and", "CC" ], [ "dutch", "VB" ], [ "?", "." ] ], "values": [ "Dutch", "English" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "world_1", "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French'", "query_toks": [ "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "French", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value" ], "question": "What are the names of nations speak both English and French?", "question_toks": [ "what", "are", "name", "of", "nation", "speak", "both", "english", "and", "french", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'French'", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'English'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "nations", "speak", "both", "English", "and", "French", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "nation" ], [ "speak" ], [ "both" ], [ "english" ], [ "and" ], [ "french" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "language" ], [ "NONE" ], [ "language" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "nation", "NN" ], [ "speak", "FW" ], [ "both", "DT" ], [ "english", "JJ" ], [ "and", "CC" ], [ "french", "JJ" ], [ "?", "." ] ], "values": [ "N\u00eemes", "French", "English" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(2) A(0) C(21) T(3) V(2) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(2) A(0) C(21) T(3) V(1)" }, { "db_id": "world_1", "query": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T' INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'French' AND T2.IsOfficial = 'T'", "query_toks": [ "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''", "INTERSECT", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "French", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value" ], "question": "What are the names of nations where both English and French are official languages?", "question_toks": [ "what", "are", "name", "of", "nation", "where", "both", "english", "and", "french", "are", "official", "language", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'French'", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "'T'", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'English'", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "'T'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "are", "official", "languages", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "nation" ], [ "where" ], [ "both" ], [ "english" ], [ "and" ], [ "french" ], [ "are" ], [ "official" ], [ "language" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "language" ], [ "NONE" ], [ "language" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "nation", "NN" ], [ "where", "WRB" ], [ "both", "DT" ], [ "english", "JJ" ], [ "and", "CC" ], [ "french", "JJ" ], [ "are", "VBP" ], [ "official", "JJ" ], [ "language", "NN" ], [ "?", "." ] ], "values": [ "N\u00eemes", "French", "English", "T" ], "all_values_found": false, "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(0) Filter(2) A(0) C(21) T(3) V(2) Filter(2) A(0) C(22) T(3) V(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(0) Filter(2) A(0) C(21) T(3) V(1) Filter(2) A(0) C(22) T(3) V(3)" }, { "db_id": "world_1", "query": "SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Chinese'", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Continent", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "Chinese", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "continent", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value" ], "question": "What is the number of distinct continents where Chinese is spoken?", "question_toks": [ "what", "is", "number", "of", "distinct", "continent", "where", "chinese", "is", "spoken", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 10, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'Chinese'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "distinct", "continents", "where", "Chinese", "is", "spoken", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "distinct" ], [ "continent" ], [ "where" ], [ "chinese" ], [ "is" ], [ "spoken" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "language" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "continent", "NN" ], [ "where", "WRB" ], [ "chinese", "NN" ], [ "is", "VBZ" ], [ "spoken", "VBN" ], [ "?", "." ] ], "values": [ "Chinese" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(8) T(2) Filter(2) A(0) C(21) T(3) V(0)" }, { "db_id": "world_1", "query": "SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' OR T2.Language = 'Dutch'", "query_toks": [ "SELECT", "DISTINCT", "T1.Region", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "OR", "T2.Language", "=", "``", "Dutch", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "region", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "or", "t2", ".", "language", "=", "value" ], "question": "What are the regions that use English or Dutch?", "question_toks": [ "what", "are", "region", "that", "use", "english", "or", "dutch", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'English'", null ], "or", [ false, 2, [ 0, [ 0, 24, false ], null ], "'Dutch'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "regions", "that", "use", "English", "or", "Dutch", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "region" ], [ "that" ], [ "use" ], [ "english" ], [ "or" ], [ "dutch" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "language" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "region", "NN" ], [ "that", "IN" ], [ "use", "NN" ], [ "english", "JJ" ], [ "or", "CC" ], [ "dutch", "VB" ], [ "?", "." ] ], "values": [ "Dutch", "English" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(9) T(2) Filter(1) Filter(2) A(0) C(21) T(3) V(1) Filter(2) A(0) C(21) T(3) V(0)" }, { "db_id": "world_1", "query": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND IsOfficial = 'T' UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'Dutch' AND IsOfficial = 'T'", "query_toks": [ "SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "AND", "IsOfficial", "=", "``", "T", "''", "UNION", "SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "Dutch", "''", "AND", "IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value" ], "question": "What are the countries where either English or Dutch is the official language?", "question_toks": [ "what", "are", "country", "where", "either", "english", "or", "dutch", "is", "official", "language", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'Dutch'", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "'T'", null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'English'", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "'T'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "official", "language", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "where" ], [ "either" ], [ "english" ], [ "or" ], [ "dutch" ], [ "is", "official" ], [ "language" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "language" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "where", "WRB" ], [ "either", "DT" ], [ "english", "JJ" ], [ "or", "CC" ], [ "dutch", "NN" ], [ "is", "VBZ" ], [ "official", "JJ" ], [ "language", "NN" ], [ "?", "." ] ], "values": [ "Dutch", "English", "T" ], "all_values_found": false, "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(0) T(2) Filter(0) Filter(2) A(0) C(21) T(3) V(1) Filter(2) A(0) C(22) T(3) V(2) Root(3) Sel(0) N(0) A(0) C(0) T(2) Filter(0) Filter(2) A(0) C(21) T(3) V(0) Filter(2) A(0) C(22) T(3) V(2)" }, { "db_id": "world_1", "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = 'Asia' GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Continent", "=", "``", "Asia", "''", "GROUP", "BY", "T2.Language", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "continent", "=", "value", "group", "by", "t2", ".", "language", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which language is the most popular on the Asian continent?", "question_toks": [ "which", "language", "is", "most", "popular", "on", "asian", "continent", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Asia'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Which", "language", "is", "the", "most", "popular", "on", "the", "Asian", "continent", "?" ], "question_arg": [ [ "which" ], [ "language" ], [ "is" ], [ "most" ], [ "popular" ], [ "on" ], [ "asian" ], [ "continent" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "language", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "on", "IN" ], [ "asian", "JJ" ], [ "continent", "NN" ], [ "?", "." ] ], "values": [ "Asia", "Asan" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(21) T(3) Sup(0) A(3) C(0) T(3) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "world_1", "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = 'Republic' GROUP BY T2.Language HAVING COUNT(*) = 1", "query_toks": [ "SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.GovernmentForm", "=", "``", "Republic", "''", "GROUP", "BY", "T2.Language", "HAVING", "COUNT", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "governmentform", "=", "value", "group", "by", "t2", ".", "language", "having", "count", "(", "*", ")", "=", "value" ], "question": "Which languages are spoken by only one country in republic governments?", "question_toks": [ "which", "language", "are", "spoken", "by", "only", "one", "country", "in", "republic", "government", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "'Republic'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Which", "languages", "are", "spoken", "by", "only", "one", "country", "in", "republic", "governments", "?" ], "question_arg": [ [ "which" ], [ "language" ], [ "are" ], [ "spoken" ], [ "by" ], [ "only" ], [ "one" ], [ "country" ], [ "in" ], [ "republic" ], [ "government" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "language", "NN" ], [ "are", "VBP" ], [ "spoken", "VBN" ], [ "by", "IN" ], [ "only", "RB" ], [ "one", "CD" ], [ "country", "NN" ], [ "in", "IN" ], [ "republic", "JJ" ], [ "government", "NN" ], [ "?", "." ] ], "values": [ "Coventry", "1", "Republic" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(3) Filter(0) Filter(2) A(0) C(16) T(2) V(2) Filter(2) A(3) C(0) T(3) V(1)" }, { "db_id": "world_1", "query": "SELECT T1.Name , T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode = T2.CountryCode WHERE T2.Language = 'English' ORDER BY T1.Population DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", ",", "T1.Population", "FROM", "city", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.CountryCode", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "ORDER", "BY", "T1.Population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "population", "from", "city", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "countrycode", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "order", "by", "t1", ".", "population", "desc", "limit", "value" ], "question": "Find the city with the largest population that uses English.", "question_toks": [ "find", "city", "with", "largest", "population", "that", "us", "english", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'English'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Find", "the", "city", "with", "the", "largest", "population", "that", "uses", "English", "." ], "question_arg": [ [ "find" ], [ "city" ], [ "with" ], [ "largest" ], [ "population" ], [ "that" ], [ "us" ], [ "english" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "language" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "city", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "population", "NN" ], [ "that", "IN" ], [ "us", "PRP" ], [ "english", "VB" ], [ ".", "." ] ], "values": [ "English", "city" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(2) T(0) A(0) C(5) T(0) Sup(0) A(0) C(5) T(0) Filter(2) A(0) C(21) T(3) V(0)" }, { "db_id": "world_1", "query": "SELECT Name , Population , LifeExpectancy FROM country WHERE Continent = 'Asia' ORDER BY SurfaceArea DESC LIMIT 1", "query_toks": [ "SELECT", "Name", ",", "Population", ",", "LifeExpectancy", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "ORDER", "BY", "SurfaceArea", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "population", ",", "lifeexpectancy", "from", "country", "where", "continent", "=", "value", "order", "by", "surfacearea", "desc", "limit", "value" ], "question": "Find the name, population and expected life length of asian country with the largest area?", "question_toks": [ "find", "name", ",", "population", "and", "expected", "life", "length", "of", "asian", "country", "with", "largest", "area", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Asia'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", ",", "population", "and", "expected", "life", "length", "of", "asian", "country", "with", "the", "largest", "area", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "population" ], [ "and" ], [ "expected" ], [ "life" ], [ "length" ], [ "of" ], [ "asian" ], [ "country" ], [ "with" ], [ "largest" ], [ "area" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "population", "NN" ], [ "and", "CC" ], [ "expected", "VBN" ], [ "life", "NN" ], [ "length", "NN" ], [ "of", "IN" ], [ "asian", "JJ" ], [ "country", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "area", "NN" ], [ "?", "." ] ], "values": [ "ARE", "Asan", "Ife", "Nama", "Coventry", "NAM", "Asia", "LIE" ], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(2) A(0) C(2) T(2) A(0) C(5) T(2) A(0) C(12) T(2) Sup(0) A(0) C(10) T(2) Filter(2) A(0) C(8) T(2) V(6)" }, { "db_id": "world_1", "query": "SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English' AND T2.IsOfficial = 'T')", "query_toks": [ "SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Name", "NOT", "IN", "(", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''", ")" ], "query_toks_no_value": [ "select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "name", "not", "in", "(", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", ")" ], "question": "What is average life expectancy in the countries where English is not the official language?", "question_toks": [ "what", "is", "average", "life", "expectancy", "in", "country", "where", "english", "is", "not", "official", "language", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 9, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'English'", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "'T'", null ] ] }, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "average", "life", "expectancy", "in", "the", "countries", "where", "English", "is", "not", "the", "official", "language", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "life", "expectancy" ], [ "in" ], [ "country" ], [ "where" ], [ "english" ], [ "is" ], [ "not" ], [ "official" ], [ "language" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "language" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "life", "NN" ], [ "expectancy", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "where", "WRB" ], [ "english", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "official", "JJ" ], [ "language", "NN" ], [ "?", "." ] ], "values": [ "Ife", "LIE", "English", "T" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(12) T(2) Filter(19) A(0) C(2) T(2) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(0) Filter(2) A(0) C(21) T(3) V(2) Filter(2) A(0) C(22) T(3) V(3)" }, { "db_id": "world_1", "query": "SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = 'English')", "query_toks": [ "SELECT", "sum", "(", "Population", ")", "FROM", "country", "WHERE", "Name", "NOT", "IN", "(", "SELECT", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "English", "''", ")" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", "from", "country", "where", "name", "not", "in", "(", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", ")" ], "question": "What is the total number of people living in the nations that do not use English?", "question_toks": [ "what", "is", "total", "number", "of", "people", "living", "in", "nation", "that", "do", "not", "use", "english", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 9, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'English'", null ] ] }, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "people", "living", "in", "the", "nations", "that", "do", "not", "use", "English", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "people" ], [ "living" ], [ "in" ], [ "nation" ], [ "that" ], [ "do" ], [ "not" ], [ "use" ], [ "english" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "language" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "living", "VBG" ], [ "in", "IN" ], [ "nation", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "use", "VB" ], [ "english", "JJ" ], [ "?", "." ] ], "values": [ "English" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(5) T(2) Filter(19) A(0) C(2) T(2) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(2) A(0) C(21) T(3) V(0)" }, { "db_id": "world_1", "query": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = 'Beatrix' AND T2.IsOfficial = 'T'", "query_toks": [ "SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.HeadOfState", "=", "``", "Beatrix", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value" ], "question": "What is the official language spoken in the country whose head of state is Beatrix?", "question_toks": [ "what", "is", "official", "language", "spoken", "in", "country", "whose", "head", "of", "state", "is", "beatrix", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], "'Beatrix'", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "'T'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "official", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?" ], "question_arg": [ [ "what" ], [ "is", "official" ], [ "language" ], [ "spoken" ], [ "in" ], [ "country" ], [ "whose" ], [ "head", "of", "state" ], [ "is" ], [ "beatrix" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "official", "JJ" ], [ "language", "NN" ], [ "spoken", "VBN" ], [ "in", "IN" ], [ "country", "NN" ], [ "whose", "WP$" ], [ "head", "NN" ], [ "of", "IN" ], [ "state", "NN" ], [ "is", "VBZ" ], [ "beatrix", "VBN" ], [ "?", "." ] ], "values": [ "Beatrix", "Coventry", "T" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(3) Filter(0) Filter(2) A(0) C(17) T(2) V(0) Filter(2) A(0) C(22) T(3) V(2)" }, { "db_id": "world_1", "query": "SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = 'T'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "IndepYear", "<", "1930", "AND", "T2.IsOfficial", "=", "``", "T", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value" ], "question": "What is the total number of unique official languages spoken in the countries that are founded before 1930?", "question_toks": [ "what", "is", "total", "number", "of", "unique", "official", "language", "spoken", "in", "country", "that", "are", "founded", "before", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 24, true ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 13, false ], null ], 1930.0, null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "'T'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "unique", "official", "languages", "spoken", "in", "the", "countries", "that", "are", "founded", "before", "1930", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "unique" ], [ "official" ], [ "language" ], [ "spoken" ], [ "in" ], [ "country" ], [ "that" ], [ "are" ], [ "founded" ], [ "before" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "unique", "JJ" ], [ "official", "JJ" ], [ "language", "NN" ], [ "spoken", "VBN" ], [ "in", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "founded", "VBN" ], [ "before", "IN" ], [ "1930", "CD" ], [ "?", "." ] ], "values": [ "1930", "T" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(21) T(3) Filter(0) Filter(4) A(0) C(11) T(2) V(0) Filter(2) A(0) C(22) T(3) V(1)" }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE SurfaceArea > (SELECT min(SurfaceArea) FROM country WHERE Continent = 'Europe')", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "SurfaceArea", ">", "(", "SELECT", "min", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Europe", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "surfacearea", ">", "(", "select", "min", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", ")" ], "question": "What are the countries that have greater surface area than any country in Europe?", "question_toks": [ "what", "are", "country", "that", "have", "greater", "surface", "area", "than", "any", "country", "in", "europe", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Europe'", null ] ] }, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "countries", "that", "have", "greater", "surface", "area", "than", "any", "country", "in", "Europe", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "that" ], [ "have" ], [ "greater" ], [ "surface", "area" ], [ "than" ], [ "any" ], [ "country" ], [ "in" ], [ "europe" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "continent" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "greater", "JJR" ], [ "surface", "NN" ], [ "area", "NN" ], [ "than", "IN" ], [ "any", "DT" ], [ "country", "NN" ], [ "in", "IN" ], [ "europe", "NN" ], [ "?", "." ] ], "values": [ "Europe", "Coventry", "ARE" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(13) A(0) C(10) T(2) Root(3) Sel(0) N(0) A(2) C(10) T(2) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE Continent = 'Africa' AND population < (SELECT max(population) FROM country WHERE Continent = 'Asia')", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "population", "<", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")" ], "question": "What are the African countries that have a population less than any country in Asia?", "question_toks": [ "what", "are", "african", "country", "that", "have", "a", "population", "le", "than", "any", "country", "in", "asia", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Africa'", null ], "and", [ false, 4, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Asia'", null ] ] }, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "African", "countries", "that", "have", "a", "population", "less", "than", "any", "country", "in", "Asia", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "african" ], [ "country" ], [ "that" ], [ "have" ], [ "a" ], [ "population" ], [ "le" ], [ "than" ], [ "any" ], [ "country" ], [ "in" ], [ "asia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "continent" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "african", "JJ" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "population", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "any", "DT" ], [ "country", "NN" ], [ "in", "IN" ], [ "asia", "NN" ], [ "?", "." ] ], "values": [ "AIA", "Apia", "Asir", "Coventry", "Africa", "Asia" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(0) Filter(2) A(0) C(8) T(2) V(4) Filter(12) A(0) C(5) T(2) Root(3) Sel(0) N(0) A(1) C(5) T(2) Filter(2) A(0) C(8) T(2) V(5)" }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE Continent = 'Africa' AND population < (SELECT min(population) FROM country WHERE Continent = 'Asia')", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "population", "<", "(", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "(", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")" ], "question": "Which African countries have a smaller population than that of any country in Asia?", "question_toks": [ "which", "african", "country", "have", "a", "smaller", "population", "than", "that", "of", "any", "country", "in", "asia", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Africa'", null ], "and", [ false, 4, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Asia'", null ] ] }, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Which", "African", "countries", "have", "a", "smaller", "population", "than", "that", "of", "any", "country", "in", "Asia", "?" ], "question_arg": [ [ "which" ], [ "african" ], [ "country" ], [ "have" ], [ "a" ], [ "smaller" ], [ "population" ], [ "than" ], [ "that" ], [ "of" ], [ "any" ], [ "country" ], [ "in" ], [ "asia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "continent" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "african", "JJ" ], [ "country", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "smaller", "JJR" ], [ "population", "NN" ], [ "than", "IN" ], [ "that", "DT" ], [ "of", "IN" ], [ "any", "DT" ], [ "country", "NN" ], [ "in", "IN" ], [ "asia", "NN" ], [ "?", "." ] ], "values": [ "AIA", "Asir", "Africa", "Coventry", "Asia", "Apia" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(0) Filter(2) A(0) C(8) T(2) V(2) Filter(12) A(0) C(5) T(2) Root(3) Sel(0) N(0) A(2) C(5) T(2) Filter(2) A(0) C(8) T(2) V(4)" }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE Continent = 'Asia' AND population > (SELECT max(population) FROM country WHERE Continent = 'Africa')", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "AND", "population", ">", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", ">", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")" ], "question": "Which Asian countries have a population that is larger than any country in Africa?", "question_toks": [ "which", "asian", "country", "have", "a", "population", "that", "is", "larger", "than", "any", "country", "in", "africa", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Asia'", null ], "and", [ false, 3, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Africa'", null ] ] }, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Which", "Asian", "countries", "have", "a", "population", "that", "is", "larger", "than", "any", "country", "in", "Africa", "?" ], "question_arg": [ [ "which" ], [ "asian" ], [ "country" ], [ "have" ], [ "a" ], [ "population" ], [ "that" ], [ "is" ], [ "larger" ], [ "than" ], [ "any" ], [ "country" ], [ "in" ], [ "africa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "continent" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "asian", "JJ" ], [ "country", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "population", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "any", "DT" ], [ "country", "NN" ], [ "in", "IN" ], [ "africa", "NN" ], [ "?", "." ] ], "values": [ "Arica", "Asia", "Africa", "Coventry", "Asan" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(0) Filter(2) A(0) C(8) T(2) V(1) Filter(13) A(0) C(5) T(2) Root(3) Sel(0) N(0) A(1) C(5) T(2) Filter(2) A(0) C(8) T(2) V(2)" }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE Continent = 'Asia' AND population > (SELECT min(population) FROM country WHERE Continent = 'Africa')", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "AND", "population", ">", "(", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", ")" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", ">", "(", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")" ], "question": "What are the Asian countries which have a population larger than that of any country in Africa?", "question_toks": [ "what", "are", "asian", "country", "which", "have", "a", "population", "larger", "than", "that", "of", "any", "country", "in", "africa", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Asia'", null ], "and", [ false, 3, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Africa'", null ] ] }, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "Asian", "countries", "which", "have", "a", "population", "larger", "than", "that", "of", "any", "country", "in", "Africa", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "asian" ], [ "country" ], [ "which" ], [ "have" ], [ "a" ], [ "population" ], [ "larger" ], [ "than" ], [ "that" ], [ "of" ], [ "any" ], [ "country" ], [ "in" ], [ "africa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "continent" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "asian", "JJ" ], [ "country", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "population", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "of", "IN" ], [ "any", "DT" ], [ "country", "NN" ], [ "in", "IN" ], [ "africa", "NN" ], [ "?", "." ] ], "values": [ "Asia", "Africa", "Asan", "Coventry", "Arica" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(0) Filter(2) A(0) C(8) T(2) V(0) Filter(13) A(0) C(5) T(2) Root(3) Sel(0) N(0) A(2) C(5) T(2) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "world_1", "query": "SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English'", "query_toks": [ "SELECT", "CountryCode", "FROM", "countrylanguage", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''" ], "query_toks_no_value": [ "select", "countrycode", "from", "countrylanguage", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value" ], "question": "What are the country codes for countries that do not speak English?", "question_toks": [ "what", "are", "country", "code", "for", "country", "that", "do", "not", "speak", "english", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'English'", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "country", "codes", "for", "countries", "that", "do", "not", "speak", "English", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country", "code" ], [ "for" ], [ "country" ], [ "that" ], [ "do" ], [ "not" ], [ "speak" ], [ "english" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "language" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "speak", "VB" ], [ "english", "JJ" ], [ "?", "." ] ], "values": [ "Coventry", "English" ], "all_values_found": true, "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(20) T(3) Root(3) Sel(0) N(0) A(0) C(20) T(3) Filter(2) A(0) C(21) T(3) V(1)" }, { "db_id": "world_1", "query": "SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != 'English'", "query_toks": [ "SELECT", "DISTINCT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "!", "=", "``", "English", "''" ], "query_toks_no_value": [ "select", "distinct", "countrycode", "from", "countrylanguage", "where", "language", "!", "=", "value" ], "question": "What are the country codes of countries where people use languages other than English?", "question_toks": [ "what", "are", "country", "code", "of", "country", "where", "people", "use", "language", "other", "than", "english", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 24, false ], null ], "'English'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "country", "codes", "of", "countries", "where", "people", "use", "languages", "other", "than", "English", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country", "code" ], [ "of" ], [ "country" ], [ "where" ], [ "people" ], [ "use" ], [ "language" ], [ "other" ], [ "than" ], [ "english" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "language" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "where", "WRB" ], [ "people", "NNS" ], [ "use", "VBP" ], [ "language", "NN" ], [ "other", "JJ" ], [ "than", "IN" ], [ "english", "JJ" ], [ "?", "." ] ], "values": [ "English", "Coventry" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(20) T(3) Filter(3) A(0) C(21) T(3) V(0)" }, { "db_id": "world_1", "query": "SELECT Code FROM country WHERE GovernmentForm != 'Republic' EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = 'English'", "query_toks": [ "SELECT", "Code", "FROM", "country", "WHERE", "GovernmentForm", "!", "=", "``", "Republic", "''", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''" ], "query_toks_no_value": [ "select", "code", "from", "country", "where", "governmentform", "!", "=", "value", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value" ], "question": "What are the codes of the countries that do not speak English and whose government forms are not Republic?", "question_toks": [ "what", "are", "code", "of", "country", "that", "do", "not", "speak", "english", "and", "whose", "government", "form", "are", "not", "republic", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'English'", null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 19, false ], null ], "'Republic'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "codes", "of", "the", "countries", "that", "do", "not", "speak", "English", "and", "whose", "government", "forms", "are", "not", "Republic", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "code" ], [ "of" ], [ "country" ], [ "that" ], [ "do" ], [ "not" ], [ "speak" ], [ "english" ], [ "and" ], [ "whose" ], [ "government", "form" ], [ "are" ], [ "not" ], [ "republic" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "language" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "code", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "speak", "VB" ], [ "english", "JJ" ], [ "and", "CC" ], [ "whose", "WP$" ], [ "government", "NN" ], [ "form", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "republic", "JJ" ], [ "?", "." ] ], "values": [ "English", "Republic" ], "all_values_found": true, "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(3) A(0) C(16) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(20) T(3) Filter(2) A(0) C(21) T(3) V(0)" }, { "db_id": "world_1", "query": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')", "query_toks": [ "SELECT", "DISTINCT", "T2.Name", "FROM", "country", "AS", "T1", "JOIN", "city", "AS", "T2", "ON", "T2.CountryCode", "=", "T1.Code", "WHERE", "T1.Continent", "=", "'Europe", "'", "AND", "T1.Name", "NOT", "IN", "(", "SELECT", "T3.Name", "FROM", "country", "AS", "T3", "JOIN", "countrylanguage", "AS", "T4", "ON", "T3.Code", "=", "T4.CountryCode", "WHERE", "T4.IsOfficial", "=", "'T", "'", "AND", "T4.Language", "=", "'English", "'", ")" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t2", ".", "countrycode", "=", "t1", ".", "code", "where", "t1", ".", "continent", "=", "value", "and", "t1", ".", "name", "not", "in", "(", "select", "t3", ".", "name", "from", "country", "as", "t3", "join", "countrylanguage", "as", "t4", "on", "t3", ".", "code", "=", "t4", ".", "countrycode", "where", "t4", ".", "isofficial", "=", "value", "and", "t4", ".", "language", "=", "value", ")" ], "question": "Which cities are in European countries where English is not the official language?", "question_toks": [ "which", "city", "are", "in", "european", "country", "where", "english", "is", "not", "official", "language", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Europe'", null ], "and", [ true, 8, [ 0, [ 0, 9, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "'T'", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "'English'", null ] ] }, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Which", "cities", "are", "in", "European", "countries", "where", "English", "is", "not", "the", "official", "language", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "are" ], [ "in" ], [ "european" ], [ "country" ], [ "where" ], [ "english" ], [ "is" ], [ "not" ], [ "official" ], [ "language" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "language" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "european", "JJ" ], [ "country", "NN" ], [ "where", "WRB" ], [ "english", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "official", "JJ" ], [ "language", "NN" ], [ "?", "." ] ], "values": [ "Europe", "English", "T" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(8) T(2) V(0) Filter(19) A(0) C(2) T(2) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(0) Filter(2) A(0) C(22) T(3) V(2) Filter(2) A(0) C(21) T(3) V(1)" }, { "db_id": "world_1", "query": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = 'Asia'", "query_toks": [ "SELECT", "DISTINCT", "T3.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "JOIN", "city", "AS", "T3", "ON", "T1.Code", "=", "T3.CountryCode", "WHERE", "T2.IsOfficial", "=", "'T", "'", "AND", "T2.Language", "=", "'Chinese", "'", "AND", "T1.Continent", "=", "``", "Asia", "''" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "join", "city", "as", "t3", "on", "t1", ".", "code", "=", "t3", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value" ], "question": "Whic`h unique cities are in Asian countries where Chinese is the official language?", "question_toks": [ "whic`h", "unique", "city", "are", "in", "asian", "country", "where", "chinese", "is", "official", "language", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "'T'", null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "'Chinese'", null ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "'Asia'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Whic`h", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "official", "language", "?" ], "question_arg": [ [ "whic`h" ], [ "unique" ], [ "city" ], [ "are" ], [ "in" ], [ "asian" ], [ "country" ], [ "where" ], [ "chinese" ], [ "is", "official" ], [ "language" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "language" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "whic`h", "JJ" ], [ "unique", "JJ" ], [ "city", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "asian", "JJ" ], [ "country", "NN" ], [ "where", "WRB" ], [ "chinese", "NN" ], [ "is", "VBZ" ], [ "official", "JJ" ], [ "language", "NN" ], [ "?", "." ] ], "values": [ "Asan", "Chinese", "Asia", "T" ], "all_values_found": false, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(22) T(3) V(3) Filter(0) Filter(2) A(0) C(21) T(3) V(1) Filter(2) A(0) C(8) T(2) V(2)" }, { "db_id": "world_1", "query": "SELECT Name , SurfaceArea , IndepYear FROM country ORDER BY Population LIMIT 1", "query_toks": [ "SELECT", "Name", ",", "SurfaceArea", ",", "IndepYear", "FROM", "country", "ORDER", "BY", "Population", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "surfacearea", ",", "indepyear", "from", "country", "order", "by", "population", "limit", "value" ], "question": "What are the name, independence year, and surface area of the country with the smallest population?", "question_toks": [ "what", "are", "name", ",", "independence", "year", ",", "and", "surface", "area", "of", "country", "with", "smallest", "population", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "name", ",", "independence", "year", ",", "and", "surface", "area", "of", "the", "country", "with", "the", "smallest", "population", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "independence" ], [ "year" ], [ "," ], [ "and" ], [ "surface", "area" ], [ "of" ], [ "country" ], [ "with" ], [ "smallest" ], [ "population" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "independence", "JJ" ], [ "year", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "surface", "JJ" ], [ "area", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "with", "IN" ], [ "smallest", "JJS" ], [ "population", "NN" ], [ "?", "." ] ], "values": [ "Independence", "ARE", "Coventry", "NAM", "Nama" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(2) T(2) A(0) C(10) T(2) A(0) C(11) T(2) Sup(1) A(0) C(5) T(2)" }, { "db_id": "world_1", "query": "SELECT Name , population , HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1", "query_toks": [ "SELECT", "Name", ",", "population", ",", "HeadOfState", "FROM", "country", "ORDER", "BY", "SurfaceArea", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "population", ",", "headofstate", "from", "country", "order", "by", "surfacearea", "desc", "limit", "value" ], "question": "What are the population, name and leader of the country with the largest area?", "question_toks": [ "what", "are", "population", ",", "name", "and", "leader", "of", "country", "with", "largest", "area", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "population", ",", "name", "and", "leader", "of", "the", "country", "with", "the", "largest", "area", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "population" ], [ "," ], [ "name" ], [ "and" ], [ "leader" ], [ "of" ], [ "country" ], [ "with" ], [ "largest" ], [ "area" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "population", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "leader", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "area", "NN" ], [ "?", "." ] ], "values": [ "NAM", "Nama", "Coventry", "ARE" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(2) T(2) A(0) C(5) T(2) A(0) C(17) T(2) Sup(0) A(0) C(10) T(2)" }, { "db_id": "world_1", "query": "SELECT COUNT(T2.Language) , T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) >= 3", "query_toks": [ "SELECT", "COUNT", "(", "T2.Language", ")", ",", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "GROUP", "BY", "T1.Name", "HAVING", "COUNT", "(", "*", ")", ">=", "3" ], "query_toks_no_value": [ "select", "count", "(", "t2", ".", "language", ")", ",", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "group", "by", "t1", ".", "name", "having", "count", "(", "*", ")", ">=", "value" ], "question": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.", "question_toks": [ "return", "country", "name", "and", "number", "of", "language", "spoken", "for", "each", "country", "that", "speaks", "at", "least", "3", "language", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Return", "the", "country", "name", "and", "the", "numbers", "of", "languages", "spoken", "for", "each", "country", "that", "speaks", "at", "least", "3", "languages", "." ], "question_arg": [ [ "return" ], [ "country" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "language" ], [ "spoken" ], [ "for" ], [ "each" ], [ "country" ], [ "that" ], [ "speaks" ], [ "at" ], [ "least" ], [ "3" ], [ "language" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "country", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "language", "NN" ], [ "spoken", "VBN" ], [ "for", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ "that", "WDT" ], [ "speaks", "VBZ" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "language", "NN" ], [ ".", "." ] ], "values": [ "Nama", "Coventry", "NAM", "3" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(21) T(3) A(0) C(2) T(2) Filter(7) A(3) C(0) T(2) V(3)" }, { "db_id": "world_1", "query": "SELECT COUNT(T2.Language) , T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "COUNT", "(", "T2.Language", ")", ",", "T1.Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "GROUP", "BY", "T1.Name", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "count", "(", "t2", ".", "language", ")", ",", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "group", "by", "t1", ".", "name", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the names of countries that speak more than 2 languages, as well as how many languages they speak?", "question_toks": [ "what", "are", "name", "of", "country", "that", "speak", "more", "than", "2", "language", ",", "a", "well", "a", "how", "many", "language", "they", "speak", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "countries", "that", "speak", "more", "than", "2", "languages", ",", "as", "well", "as", "how", "many", "languages", "they", "speak", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "country" ], [ "that" ], [ "speak" ], [ "more" ], [ "than" ], [ "2" ], [ "language" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "how" ], [ "many" ], [ "language" ], [ "they" ], [ "speak" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "speak", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "language", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "language", "NN" ], [ "they", "PRP" ], [ "speak", "VBP" ], [ "?", "." ] ], "values": [ "2", "N\u00eemes" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(21) T(3) A(0) C(2) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "world_1", "query": "SELECT count(*) , District FROM city WHERE Population > (SELECT avg(Population) FROM city) GROUP BY District", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "District", "FROM", "city", "WHERE", "Population", ">", "(", "SELECT", "avg", "(", "Population", ")", "FROM", "city", ")", "GROUP", "BY", "District" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "district", "from", "city", "where", "population", ">", "(", "select", "avg", "(", "population", ")", "from", "city", ")", "group", "by", "district" ], "question": "Find the number of cities in each district whose population is greater than the average population of cities?", "question_toks": [ "find", "number", "of", "city", "in", "each", "district", "whose", "population", "is", "greater", "than", "average", "population", "of", "city", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "cities", "in", "each", "district", "whose", "population", "is", "greater", "than", "the", "average", "population", "of", "cities", "?" ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "city" ], [ "in" ], [ "each" ], [ "district" ], [ "whose" ], [ "population" ], [ "is" ], [ "greater" ], [ "than" ], [ "average" ], [ "population" ], [ "of" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "district", "NN" ], [ "whose", "WP$" ], [ "population", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "population", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(4) T(0) Filter(13) A(0) C(5) T(0) Root(5) Sel(0) N(0) A(5) C(5) T(0)" }, { "db_id": "world_1", "query": "SELECT sum(Population) , GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy) > 72", "query_toks": [ "SELECT", "sum", "(", "Population", ")", ",", "GovernmentForm", "FROM", "country", "GROUP", "BY", "GovernmentForm", "HAVING", "avg", "(", "LifeExpectancy", ")", ">", "72" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", ",", "governmentform", "from", "country", "group", "by", "governmentform", "having", "avg", "(", "lifeexpectancy", ")", ">", "value" ], "question": "Find the government form name and total population for each government form whose average life expectancy is longer than 72.", "question_toks": [ "find", "government", "form", "name", "and", "total", "population", "for", "each", "government", "form", "whose", "average", "life", "expectancy", "is", "longer", "than", "72", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [ [ false, 3, [ 0, [ 5, 15, false ], null ], 72.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Find", "the", "government", "form", "name", "and", "total", "population", "for", "each", "government", "form", "whose", "average", "life", "expectancy", "is", "longer", "than", "72", "." ], "question_arg": [ [ "find" ], [ "government", "form" ], [ "name" ], [ "and" ], [ "total" ], [ "population" ], [ "for" ], [ "each" ], [ "government", "form" ], [ "whose" ], [ "average" ], [ "life", "expectancy" ], [ "is" ], [ "longer" ], [ "than" ], [ "72" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "government", "NN" ], [ "form", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "population", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "government", "NN" ], [ "form", "NN" ], [ "whose", "WP$" ], [ "average", "JJ" ], [ "life", "NN" ], [ "expectancy", "NN" ], [ "is", "VBZ" ], [ "longer", "JJR" ], [ "than", "IN" ], [ "72", "CD" ], [ ".", "." ] ], "values": [ "Ife", "Nama", "72", "NAM", "LIE" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(5) T(2) A(0) C(16) T(2) Filter(5) A(5) C(12) T(2) V(2)" }, { "db_id": "world_1", "query": "SELECT sum(Population) , avg(LifeExpectancy) , Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy) < 72", "query_toks": [ "SELECT", "sum", "(", "Population", ")", ",", "avg", "(", "LifeExpectancy", ")", ",", "Continent", "FROM", "country", "GROUP", "BY", "Continent", "HAVING", "avg", "(", "LifeExpectancy", ")", "<", "72" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", ",", "avg", "(", "lifeexpectancy", ")", ",", "continent", "from", "country", "group", "by", "continent", "having", "avg", "(", "lifeexpectancy", ")", "<", "value" ], "question": "Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?", "question_toks": [ "find", "average", "life", "expectancy", "and", "total", "population", "for", "each", "continent", "where", "average", "life", "expectancy", "is", "shorter", "than", "72", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [ [ false, 4, [ 0, [ 5, 15, false ], null ], 72.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ], [ 5, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Find", "the", "average", "life", "expectancy", "and", "total", "population", "for", "each", "continent", "where", "the", "average", "life", "expectancy", "is", "shorter", "than", "72", "?" ], "question_arg": [ [ "find" ], [ "average" ], [ "life", "expectancy" ], [ "and" ], [ "total" ], [ "population" ], [ "for" ], [ "each" ], [ "continent" ], [ "where" ], [ "average" ], [ "life", "expectancy" ], [ "is" ], [ "shorter" ], [ "than" ], [ "72" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "average", "JJ" ], [ "life", "NN" ], [ "expectancy", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "population", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "continent", "NN" ], [ "where", "WRB" ], [ "average", "JJ" ], [ "life", "NN" ], [ "expectancy", "NN" ], [ "is", "VBZ" ], [ "shorter", "JJR" ], [ "than", "IN" ], [ "72", "CD" ], [ "?", "." ] ], "values": [ "Ife", "72", "LIE" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(4) C(5) T(2) A(5) C(12) T(2) A(0) C(8) T(2) Filter(4) A(5) C(12) T(2) V(1)" }, { "db_id": "world_1", "query": "SELECT Name , SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5", "query_toks": [ "SELECT", "Name", ",", "SurfaceArea", "FROM", "country", "ORDER", "BY", "SurfaceArea", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "name", ",", "surfacearea", "from", "country", "order", "by", "surfacearea", "desc", "limit", "value" ], "question": "What are the names and areas of countries with the top 5 largest area?", "question_toks": [ "what", "are", "name", "and", "area", "of", "country", "with", "top", "5", "largest", "area", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "areas", "of", "countries", "with", "the", "top", "5", "largest", "area", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "area" ], [ "of" ], [ "country" ], [ "with" ], [ "top" ], [ "5" ], [ "largest" ], [ "area" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "area", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "5", "CD" ], [ "largest", "JJS" ], [ "area", "NN" ], [ "?", "." ] ], "values": [ "5", "ARE", "N\u00eemes" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(2) A(0) C(10) T(2) Sup(0) A(0) C(10) T(2)" }, { "db_id": "world_1", "query": "SELECT Name FROM country ORDER BY Population DESC LIMIT 3", "query_toks": [ "SELECT", "Name", "FROM", "country", "ORDER", "BY", "Population", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "country", "order", "by", "population", "desc", "limit", "value" ], "question": "What are names of countries with the top 3 largest population?", "question_toks": [ "what", "are", "name", "of", "country", "with", "top", "3", "largest", "population", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "names", "of", "countries", "with", "the", "top", "3", "largest", "population", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "country" ], [ "with" ], [ "top" ], [ "3" ], [ "largest" ], [ "population" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "largest", "JJS" ], [ "population", "NN" ], [ "?", "." ] ], "values": [ "3", "N\u00eemes" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(2) Sup(0) A(0) C(5) T(2)" }, { "db_id": "world_1", "query": "SELECT Name FROM country ORDER BY Population ASC LIMIT 3", "query_toks": [ "SELECT", "Name", "FROM", "country", "ORDER", "BY", "Population", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "country", "order", "by", "population", "asc", "limit", "value" ], "question": "What are the names of the nations with the 3 lowest populations?", "question_toks": [ "what", "are", "name", "of", "nation", "with", "3", "lowest", "population", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "nations", "with", "the", "3", "lowest", "populations", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "nation" ], [ "with" ], [ "3" ], [ "lowest" ], [ "population" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "nation", "NN" ], [ "with", "IN" ], [ "3", "CD" ], [ "lowest", "JJS" ], [ "population", "NN" ], [ "?", "." ] ], "values": [ "3", "N\u00eemes" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(2) Sup(1) A(0) C(5) T(2)" }, { "db_id": "world_1", "query": "SELECT count(*) FROM country WHERE continent = 'Asia'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "country", "WHERE", "continent", "=", "``", "Asia", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country", "where", "continent", "=", "value" ], "question": "how many countries are in Asia?", "question_toks": [ "how", "many", "country", "are", "in", "asia", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Asia'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "how", "many", "countries", "are", "in", "Asia", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "country" ], [ "are" ], [ "in" ], [ "asia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "continent" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "country", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "asia", "NN" ], [ "?", "." ] ], "values": [ "AIA", "Asia", "Asir", "Apia" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "world_1", "query": "SELECT Name FROM country WHERE continent = 'Europe' AND Population = '80000'", "query_toks": [ "SELECT", "Name", "FROM", "country", "WHERE", "continent", "=", "``", "Europe", "''", "AND", "Population", "=", "``", "80000", "''" ], "query_toks_no_value": [ "select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "=", "value" ], "question": "What are the names of the countries that are in the continent of Europe and have a population of 80000?", "question_toks": [ "what", "are", "name", "of", "country", "that", "are", "in", "continent", "of", "europe", "and", "have", "a", "population", "of", "80000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Europe'", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "'80000'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "countries", "that", "are", "in", "the", "continent", "of", "Europe", "and", "have", "a", "population", "of", "80000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "country" ], [ "that" ], [ "are" ], [ "in" ], [ "continent" ], [ "of" ], [ "europe" ], [ "and" ], [ "have" ], [ "a" ], [ "population" ], [ "of" ], [ "80000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "continent" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "continent", "NN" ], [ "of", "IN" ], [ "europe", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "a", "DT" ], [ "population", "NN" ], [ "of", "IN" ], [ "80000", "CD" ], [ "?", "." ] ], "values": [ "80000", "Europe", "N\u00eemes" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(2) Filter(0) Filter(2) A(0) C(8) T(2) V(1) Filter(2) A(0) C(5) T(2) V(0)" }, { "db_id": "world_1", "query": "SELECT sum(Population) , avg(SurfaceArea) FROM country WHERE Continent = 'North America' AND SurfaceArea > 3000", "query_toks": [ "SELECT", "sum", "(", "Population", ")", ",", "avg", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "North", "America", "''", "AND", "SurfaceArea", ">", "3000" ], "query_toks_no_value": [ "select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "and", "surfacearea", ">", "value" ], "question": "What is the total population and average area of countries in the continent of North America whose area is bigger than 3000\uff1f", "question_toks": [ "what", "is", "total", "population", "and", "average", "area", "of", "country", "in", "continent", "of", "north", "america", "whose", "area", "is", "bigger", "than", "3000\uff1f" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ], [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'North America'", null ], "and", [ false, 3, [ 0, [ 0, 12, false ], null ], 3000.0, null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "population", "and", "average", "area", "of", "countries", "in", "the", "continent", "of", "North", "America", "whose", "area", "is", "bigger", "than", "3000\uff1f" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "population" ], [ "and" ], [ "average" ], [ "area" ], [ "of" ], [ "country" ], [ "in" ], [ "continent" ], [ "of" ], [ "north" ], [ "america" ], [ "whose" ], [ "area" ], [ "is" ], [ "bigger" ], [ "than" ], [ "3000\uff1f" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "continent" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "population", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "area", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "in", "IN" ], [ "continent", "NN" ], [ "of", "IN" ], [ "north", "JJ" ], [ "america", "NNS" ], [ "whose", "WP$" ], [ "area", "NN" ], [ "is", "VBZ" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "3000\uff1f", "CD" ] ], "values": [ "3000", "South America", "Americana", "ARE", "North America" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(5) T(2) A(5) C(10) T(2) Filter(0) Filter(2) A(0) C(8) T(2) V(4) Filter(5) A(0) C(10) T(2) V(0)" }, { "db_id": "world_1", "query": "SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000", "query_toks": [ "SELECT", "name", "FROM", "city", "WHERE", "Population", "BETWEEN", "160000", "AND", "900000" ], "query_toks_no_value": [ "select", "name", "from", "city", "where", "population", "between", "value", "and", "value" ], "question": "Return the names of cities that have a population between 160000 and 900000.", "question_toks": [ "return", "name", "of", "city", "that", "have", "a", "population", "between", "160000", "and", "900000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 5, false ], null ], 160000.0, 900000.0 ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Return", "the", "names", "of", "cities", "that", "have", "a", "population", "between", "160000", "and", "900000", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "city" ], [ "that" ], [ "have" ], [ "a" ], [ "population" ], [ "between" ], [ "160000" ], [ "and" ], [ "900000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "population", "NN" ], [ "between", "IN" ], [ "160000", "CD" ], [ "and", "CC" ], [ "900000", "CD" ], [ ".", "." ] ], "values": [ "N\u00eemes", "900000", "160000" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(8) A(0) C(5) T(0) V(2) V(1)" }, { "db_id": "world_1", "query": "SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "LANGUAGE", "FROM", "countrylanguage", "GROUP", "BY", "LANGUAGE", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "language", "from", "countrylanguage", "group", "by", "language", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which language is spoken by the largest number of countries?", "question_toks": [ "which", "language", "is", "spoken", "by", "largest", "number", "of", "country", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 24, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "Which", "language", "is", "spoken", "by", "the", "largest", "number", "of", "countries", "?" ], "question_arg": [ [ "which" ], [ "language" ], [ "is" ], [ "spoken" ], [ "by" ], [ "largest" ], [ "number" ], [ "of" ], [ "country" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "language", "NN" ], [ "is", "VBZ" ], [ "spoken", "VBN" ], [ "by", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(21) T(3) Sup(0) A(3) C(0) T(3)" }, { "db_id": "world_1", "query": "SELECT LANGUAGE , CountryCode , max(Percentage) FROM countrylanguage GROUP BY CountryCode, Language", "query_toks": [ "SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode", "Language" ], "query_toks_no_value": [ "select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode", "language" ], "question": "What is the language spoken by the largest percentage of people in each country?", "question_toks": [ "what", "is", "language", "spoken", "by", "largest", "percentage", "of", "people", "in", "each", "country", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 23, false ], [ 0, 24, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ], [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "language", "spoken", "by", "the", "largest", "percentage", "of", "people", "in", "each", "country", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "language" ], [ "spoken" ], [ "by" ], [ "largest" ], [ "percentage" ], [ "of" ], [ "people" ], [ "in" ], [ "each" ], [ "country" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "language", "NN" ], [ "spoken", "VBN" ], [ "by", "IN" ], [ "largest", "JJS" ], [ "percentage", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "in", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ "?", "." ] ], "values": [ "Coventry" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(21) T(3) A(0) C(20) T(3) A(1) C(23) T(3)" }, { "db_id": "world_1", "query": "SELECT count(*) , max(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode" ], "question": "What is the total number of countries where Spanish is spoken by the largest percentage of people?", "question_toks": [ "what", "is", "total", "number", "of", "country", "where", "spanish", "is", "spoken", "by", "largest", "percentage", "of", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'Spanish'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "largest", "percentage", "of", "people", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "country" ], [ "where" ], [ "spanish" ], [ "is" ], [ "spoken" ], [ "by" ], [ "largest" ], [ "percentage" ], [ "of" ], [ "people" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "language" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "where", "WRB" ], [ "spanish", "NN" ], [ "is", "VBZ" ], [ "spoken", "VBN" ], [ "by", "IN" ], [ "largest", "JJS" ], [ "percentage", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "?", "." ] ], "values": [ "Spanish" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(3) A(1) C(23) T(3) Filter(2) A(0) C(21) T(3) V(0)" }, { "db_id": "world_1", "query": "SELECT CountryCode , max(Percentage) FROM countrylanguage WHERE LANGUAGE = 'Spanish' GROUP BY CountryCode", "query_toks": [ "SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode" ], "query_toks_no_value": [ "select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode" ], "question": "What are the codes of countries where Spanish is spoken by the largest percentage of people?", "question_toks": [ "what", "are", "code", "of", "country", "where", "spanish", "is", "spoken", "by", "largest", "percentage", "of", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "'Spanish'", null ] ] }, "names": [ "*", "id", "name", "country code", "district", "population", "name", "seq", "code", "name", "continent", "region", "surface area", "indepdent year", "population", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "table_names": [ "city", "sqlite sequence", "country", "countrylanguage" ], "col_set": [ "*", "id", "name", "country code", "district", "population", "seq", "code", "continent", "region", "surface area", "indepdent year", "life expectancy", "gnp", "gnp old", "local name", "government form", "head of state", "capital", "code2", "countrycode", "language", "is official", "percentage" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3 ], "keys": { "3": 8, "8": 8, "23": 23, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "codes", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "largest", "percentage", "of", "people", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "code" ], [ "of" ], [ "country" ], [ "where" ], [ "spanish" ], [ "is" ], [ "spoken" ], [ "by" ], [ "largest" ], [ "percentage" ], [ "of" ], [ "people" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "language" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "code", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "where", "WRB" ], [ "spanish", "NN" ], [ "is", "VBZ" ], [ "spoken", "VBN" ], [ "by", "IN" ], [ "largest", "JJS" ], [ "percentage", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "?", "." ] ], "values": [ "Spanish" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(20) T(3) A(1) C(23) T(3) Filter(2) A(0) C(21) T(3) V(0)" }, { "db_id": "orchestra", "query": "SELECT count(*) FROM conductor", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "conductor" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "conductor" ], "question": "How many conductors are there?", "question_toks": [ "how", "many", "conductor", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "How", "many", "conductors", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "conductor" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "conductor", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "orchestra", "query": "SELECT Name FROM conductor ORDER BY Age ASC", "query_toks": [ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Age", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "conductor", "order", "by", "age", "asc" ], "question": "List the names of conductors in ascending order of age.", "question_toks": [ "list", "name", "of", "conductor", "in", "ascending", "order", "of", "age", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "List", "the", "names", "of", "conductors", "in", "ascending", "order", "of", "age", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "conductor" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "conductor", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "orchestra", "query": "SELECT Name FROM conductor WHERE Nationality != 'USA'", "query_toks": [ "SELECT", "Name", "FROM", "conductor", "WHERE", "Nationality", "!", "=", "'USA", "'" ], "query_toks_no_value": [ "select", "name", "from", "conductor", "where", "nationality", "!", "=", "value" ], "question": "What are the names of conductors whose nationalities are not 'USA'?", "question_toks": [ "what", "are", "name", "of", "conductor", "whose", "nationality", "are", "not", "'", "usa", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "'USA'", null ] ] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "conductors", "whose", "nationalities", "are", "not", "``", "USA", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "conductor" ], [ "whose" ], [ "nationality" ], [ "are" ], [ "not" ], [ "'" ], [ "usa" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "conductor", "NN" ], [ "whose", "WP$" ], [ "nationality", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "'", "''" ], [ "usa", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "USA" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(3) A(0) C(4) T(0) V(0)" }, { "db_id": "orchestra", "query": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", "query_toks": [ "SELECT", "Record_Company", "FROM", "orchestra", "ORDER", "BY", "Year_of_Founded", "DESC" ], "query_toks_no_value": [ "select", "record_company", "from", "orchestra", "order", "by", "year_of_founded", "desc" ], "question": "What are the record companies of orchestras in descending order of years in which they were founded?", "question_toks": [ "what", "are", "record", "company", "of", "orchestra", "in", "descending", "order", "of", "year", "in", "which", "they", "were", "founded", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "record", "companies", "of", "orchestras", "in", "descending", "order", "of", "years", "in", "which", "they", "were", "founded", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "record", "company" ], [ "of" ], [ "orchestra" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "year" ], [ "in" ], [ "which" ], [ "they" ], [ "were" ], [ "founded" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "record", "JJ" ], [ "company", "NN" ], [ "of", "IN" ], [ "orchestra", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "year", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "they", "PRP" ], [ "were", "VBD" ], [ "founded", "VBN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(1) Order(0) A(0) C(9) T(1)" }, { "db_id": "orchestra", "query": "SELECT avg(Attendance) FROM SHOW", "query_toks": [ "SELECT", "avg", "(", "Attendance", ")", "FROM", "SHOW" ], "query_toks_no_value": [ "select", "avg", "(", "attendance", ")", "from", "show" ], "question": "What is the average attendance of shows?", "question_toks": [ "what", "is", "average", "attendance", "of", "show", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "average", "attendance", "of", "shows", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "attendance" ], [ "of" ], [ "show" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "attendance", "NN" ], [ "of", "IN" ], [ "show", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(20) T(3)" }, { "db_id": "orchestra", "query": "SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != 'Live final'", "query_toks": [ "SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!", "=", "``", "Live", "final", "''" ], "query_toks_no_value": [ "select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!", "=", "value" ], "question": "What are the maximum and minimum share of performances whose type is not 'Live final'.", "question_toks": [ "what", "are", "maximum", "and", "minimum", "share", "of", "performance", "whose", "type", "is", "not", "'", "live", "final", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 18, false ], null ] ], [ 2, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 14, false ], null ], "'Live final'", null ] ] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "share", "of", "performances", "whose", "type", "is", "not", "``", "Live", "final", "''", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "share" ], [ "of" ], [ "performance" ], [ "whose" ], [ "type" ], [ "is" ], [ "not" ], [ "'" ], [ "live" ], [ "final" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "share", "NN" ], [ "of", "IN" ], [ "performance", "NN" ], [ "whose", "WP$" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "live", "JJ" ], [ "final", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Live final" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(16) T(2) A(2) C(16) T(2) Filter(3) A(0) C(12) T(2) V(0)" }, { "db_id": "orchestra", "query": "SELECT count(DISTINCT Nationality) FROM conductor", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Nationality", ")", "FROM", "conductor" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "nationality", ")", "from", "conductor" ], "question": "How many different nationalities do conductors have?", "question_toks": [ "how", "many", "different", "nationality", "do", "conductor", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 4, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "How", "many", "different", "nationalities", "do", "conductors", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "nationality" ], [ "do" ], [ "conductor" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "nationality", "NN" ], [ "do", "VBP" ], [ "conductor", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(0)" }, { "db_id": "orchestra", "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC", "query_toks": [ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "conductor", "order", "by", "year_of_work", "desc" ], "question": "List names of conductors in descending order of years of work.", "question_toks": [ "list", "name", "of", "conductor", "in", "descending", "order", "of", "year", "of", "work", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "List", "names", "of", "conductors", "in", "descending", "order", "of", "years", "of", "work", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "conductor" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "year", "of", "work" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "conductor", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "work", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(0) A(0) C(5) T(0)" }, { "db_id": "orchestra", "query": "SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "conductor", "order", "by", "year_of_work", "desc", "limit", "value" ], "question": "List the name of the conductor with the most years of work.", "question_toks": [ "list", "name", "of", "conductor", "with", "most", "year", "of", "work", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "List", "the", "name", "of", "the", "conductor", "with", "the", "most", "years", "of", "work", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "conductor" ], [ "with" ], [ "most" ], [ "year", "of", "work" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "conductor", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "year", "NN" ], [ "of", "IN" ], [ "work", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "orchestra", "query": "SELECT T1.Name , T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Orchestra", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "orchestra", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id" ], "question": "Show the names of conductors and the orchestras they have conducted.", "question_toks": [ "show", "name", "of", "conductor", "and", "orchestra", "they", "have", "conducted", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "Show", "the", "names", "of", "conductors", "and", "the", "orchestras", "they", "have", "conducted", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "conductor" ], [ "and" ], [ "orchestra" ], [ "they" ], [ "have" ], [ "conducted" ], [ "." ] ], "question_arg_type": [ [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "conductor", "NN" ], [ "and", "CC" ], [ "orchestra", "NN" ], [ "they", "PRP" ], [ "have", "VBP" ], [ "conducted", "VBN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(7) T(1)" }, { "db_id": "orchestra", "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T1.Name HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID", "GROUP", "BY", "T2.Conductor_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id", "group", "by", "t2", ".", "conductor_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the names of conductors that have conducted more than one orchestras.", "question_toks": [ "show", "name", "of", "conductor", "that", "have", "conducted", "more", "than", "one", "orchestra", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "Show", "the", "names", "of", "conductors", "that", "have", "conducted", "more", "than", "one", "orchestras", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "conductor" ], [ "that" ], [ "have" ], [ "conducted" ], [ "more" ], [ "than" ], [ "one" ], [ "orchestra" ], [ "." ] ], "question_arg_type": [ [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "conductor", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "conducted", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "orchestra", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "orchestra", "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID", "GROUP", "BY", "T2.Conductor_ID", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id", "group", "by", "t2", ".", "conductor_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the name of the conductor that has conducted the most number of orchestras.", "question_toks": [ "show", "name", "of", "conductor", "that", "ha", "conducted", "most", "number", "of", "orchestra", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "Show", "the", "name", "of", "the", "conductor", "that", "has", "conducted", "the", "most", "number", "of", "orchestras", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "conductor" ], [ "that" ], [ "ha" ], [ "conducted" ], [ "most" ], [ "number" ], [ "of" ], [ "orchestra" ], [ "." ] ], "question_arg_type": [ [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "conductor", "NN" ], [ "that", "WDT" ], [ "ha", "RB" ], [ "conducted", "VBD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "orchestra", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "orchestra", "query": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", "query_toks": [ "SELECT", "T1.Name", "FROM", "conductor", "AS", "T1", "JOIN", "orchestra", "AS", "T2", "ON", "T1.Conductor_ID", "=", "T2.Conductor_ID", "WHERE", "Year_of_Founded", ">", "2008" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "conductor", "as", "t1", "join", "orchestra", "as", "t2", "on", "t1", ".", "conductor_id", "=", "t2", ".", "conductor_id", "where", "year_of_founded", ">", "value" ], "question": "Please show the name of the conductor that has conducted orchestras founded after 2008.", "question_toks": [ "please", "show", "name", "of", "conductor", "that", "ha", "conducted", "orchestra", "founded", "after", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 2008.0, null ] ] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "Please", "show", "the", "name", "of", "the", "conductor", "that", "has", "conducted", "orchestras", "founded", "after", "2008", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "name" ], [ "of" ], [ "conductor" ], [ "that" ], [ "ha" ], [ "conducted" ], [ "orchestra" ], [ "founded" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "conductor", "NN" ], [ "that", "WDT" ], [ "ha", "NN" ], [ "conducted", "VBD" ], [ "orchestra", "NN" ], [ "founded", "VBN" ], [ "after", "IN" ], [ "2008", "CD" ], [ ".", "." ] ], "values": [ "2008" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "orchestra", "query": "SELECT Record_Company , COUNT(*) FROM orchestra GROUP BY Record_Company", "query_toks": [ "SELECT", "Record_Company", ",", "COUNT", "(", "*", ")", "FROM", "orchestra", "GROUP", "BY", "Record_Company" ], "query_toks_no_value": [ "select", "record_company", ",", "count", "(", "*", ")", "from", "orchestra", "group", "by", "record_company" ], "question": "Please show the different record companies and the corresponding number of orchestras.", "question_toks": [ "please", "show", "different", "record", "company", "and", "corresponding", "number", "of", "orchestra", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "Please", "show", "the", "different", "record", "companies", "and", "the", "corresponding", "number", "of", "orchestras", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "different" ], [ "record", "company" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "orchestra" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "VB" ], [ "different", "JJ" ], [ "record", "NN" ], [ "company", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "orchestra", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(1) A(3) C(0) T(1)" }, { "db_id": "orchestra", "query": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC", "query_toks": [ "SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC" ], "query_toks_no_value": [ "select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format", "order", "by", "count", "(", "*", ")", "asc" ], "question": "Please show the record formats of orchestras in ascending order of count.", "question_toks": [ "please", "show", "record", "format", "of", "orchestra", "in", "ascending", "order", "of", "count", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "Please", "show", "the", "record", "formats", "of", "orchestras", "in", "ascending", "order", "of", "count", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "major", "record", "format" ], [ "of" ], [ "orchestra" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "record", "NN" ], [ "format", "NN" ], [ "of", "IN" ], [ "orchestra", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(10) T(1) Order(1) A(3) C(0) T(1)" }, { "db_id": "orchestra", "query": "SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Record_Company", "FROM", "orchestra", "GROUP", "BY", "Record_Company", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "record_company", "from", "orchestra", "group", "by", "record_company", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the record company shared by the most number of orchestras.", "question_toks": [ "list", "record", "company", "shared", "by", "most", "number", "of", "orchestra", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "List", "the", "record", "company", "shared", "by", "the", "most", "number", "of", "orchestras", "." ], "question_arg": [ [ "list" ], [ "record", "company" ], [ "shared" ], [ "by" ], [ "most" ], [ "number" ], [ "of" ], [ "orchestra" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "record", "NN" ], [ "company", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "orchestra", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "orchestra", "query": "SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)", "query_toks": [ "SELECT", "Orchestra", "FROM", "orchestra", "WHERE", "Orchestra_ID", "NOT", "IN", "(", "SELECT", "Orchestra_ID", "FROM", "performance", ")" ], "query_toks_no_value": [ "select", "orchestra", "from", "orchestra", "where", "orchestra_id", "not", "in", "(", "select", "orchestra_id", "from", "performance", ")" ], "question": "List the names of orchestras that have no performance.", "question_toks": [ "list", "name", "of", "orchestra", "that", "have", "no", "performance", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "List", "the", "names", "of", "orchestras", "that", "have", "no", "performance", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "orchestra" ], [ "that" ], [ "have" ], [ "no" ], [ "performance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "orchestra", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "no", "DT" ], [ "performance", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(19) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "orchestra", "query": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", "query_toks": [ "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "2003", "INTERSECT", "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", ">", "2003" ], "query_toks_no_value": [ "select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "value", "intersect", "select", "record_company", "from", "orchestra", "where", "year_of_founded", ">", "value" ], "question": "Show the record companies shared by orchestras founded before 2003 and after 2003.", "question_toks": [ "show", "record", "company", "shared", "by", "orchestra", "founded", "before", "year", "and", "after", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 2003.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 10, false ], null ], 2003.0, null ] ] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "Show", "the", "record", "companies", "shared", "by", "orchestras", "founded", "before", "2003", "and", "after", "2003", "." ], "question_arg": [ [ "show" ], [ "record", "company" ], [ "shared" ], [ "by" ], [ "orchestra" ], [ "founded" ], [ "before" ], [ "year" ], [ "and" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "record", "NN" ], [ "company", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "orchestra", "NN" ], [ "founded", "VBN" ], [ "before", "IN" ], [ "2003", "CD" ], [ "and", "CC" ], [ "after", "IN" ], [ "2003", "CD" ], [ ".", "." ] ], "values": [ "2003" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(4) A(0) C(9) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "orchestra", "query": "SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format = 'CD' OR Major_Record_Format = 'DVD'", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "``", "CD", "''", "OR", "Major_Record_Format", "=", "``", "DVD", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "orchestra", "where", "major_record_format", "=", "value", "or", "major_record_format", "=", "value" ], "question": "Find the number of orchestras whose record format is 'CD' or 'DVD'.", "question_toks": [ "find", "number", "of", "orchestra", "whose", "record", "format", "is", "'", "cd", "'", "or", "'", "dvd", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "'CD'", null ], "or", [ false, 2, [ 0, [ 0, 11, false ], null ], "'DVD'", null ] ] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "Find", "the", "number", "of", "orchestras", "whose", "record", "format", "is", "``", "CD", "''", "or", "``", "DVD", "''", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "orchestra" ], [ "whose" ], [ "major", "record", "format" ], [ "is" ], [ "'" ], [ "cd" ], [ "'" ], [ "or" ], [ "'" ], [ "dvd" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "orchestra", "JJ" ], [ "whose", "WP$" ], [ "record", "NN" ], [ "format", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "cd", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "dvd", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "DVD", "CD" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(1) Filter(2) A(0) C(10) T(1) V(1) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "orchestra", "query": "SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID = T2.Orchestra_ID GROUP BY T1.Year_of_Founded HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Year_of_Founded", "FROM", "orchestra", "AS", "T1", "JOIN", "performance", "AS", "T2", "ON", "T1.Orchestra_ID", "=", "T2.Orchestra_ID", "GROUP", "BY", "T1.Year_of_Founded", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "year_of_founded", "from", "orchestra", "as", "t1", "join", "performance", "as", "t2", "on", "t1", ".", "orchestra_id", "=", "t2", ".", "orchestra_id", "group", "by", "t1", ".", "year_of_founded", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the years in which orchestras that have given more than one performance are founded.", "question_toks": [ "show", "year", "in", "which", "orchestra", "that", "have", "given", "more", "than", "one", "performance", "are", "founded", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "conductor id", "record company", "year of founded", "major record format", "performance id", "orchestra id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "performance id", "if first show", "result", "attendance" ], "table_names": [ "conductor", "orchestra", "performance", "show" ], "col_set": [ "*", "conductor id", "name", "age", "nationality", "year of work", "orchestra id", "orchestra", "record company", "year of founded", "major record format", "performance id", "type", "date", "official ratings (millions)", "weekly rank", "share", "show id", "if first show", "result", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3 ], "keys": { "8": 1, "1": 1, "13": 6, "6": 6, "20": 12, "12": 12 }, "origin_question_toks": [ "Show", "the", "years", "in", "which", "orchestras", "that", "have", "given", "more", "than", "one", "performance", "are", "founded", "." ], "question_arg": [ [ "show" ], [ "year" ], [ "in" ], [ "which" ], [ "orchestra" ], [ "that" ], [ "have" ], [ "given" ], [ "more" ], [ "than" ], [ "one" ], [ "performance" ], [ "are" ], [ "founded" ], [ "." ] ], "question_arg_type": [ [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "year", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "orchestra", "VBP" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "given", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "performance", "NN" ], [ "are", "VBP" ], [ "founded", "VBN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "network_1", "query": "SELECT count(*) FROM high_schooler", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "high_schooler" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "high_schooler" ], "question": "How many high schoolers are there?", "question_toks": [ "how", "many", "high", "schoolers", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "How", "many", "high", "schoolers", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "high" ], [ "schoolers" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "high", "JJ" ], [ "schoolers", "NNS" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "network_1", "query": "SELECT name , grade FROM high_schooler", "query_toks": [ "SELECT", "name", ",", "grade", "FROM", "high_schooler" ], "query_toks_no_value": [ "select", "name", ",", "grade", "from", "high_schooler" ], "question": "Show the names and grades of each high schooler.", "question_toks": [ "show", "name", "and", "grade", "of", "each", "high", "schooler", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "the", "names", "and", "grades", "of", "each", "high", "schooler", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "grade" ], [ "of" ], [ "each" ], [ "high", "schooler" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "grade", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "high", "JJ" ], [ "schooler", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0)" }, { "db_id": "network_1", "query": "SELECT grade FROM high_schooler", "query_toks": [ "SELECT", "grade", "FROM", "high_schooler" ], "query_toks_no_value": [ "select", "grade", "from", "high_schooler" ], "question": "Show all the grades of the high schoolers.", "question_toks": [ "show", "all", "grade", "of", "high", "schoolers", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "all", "the", "grades", "of", "the", "high", "schoolers", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "grade" ], [ "of" ], [ "high" ], [ "schoolers" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "grade", "NN" ], [ "of", "IN" ], [ "high", "JJ" ], [ "schoolers", "NNS" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(3) T(0)" }, { "db_id": "network_1", "query": "SELECT grade FROM high_schooler WHERE name = 'Kyle'", "query_toks": [ "SELECT", "grade", "FROM", "high_schooler", "WHERE", "name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "grade", "from", "high_schooler", "where", "name", "=", "value" ], "question": "What grade is Kyle in?", "question_toks": [ "what", "grade", "is", "kyle", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Kyle'", null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "What", "grade", "is", "Kyle", "in", "?" ], "question_arg": [ [ "what" ], [ "grade" ], [ "is" ], [ "kyle" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "grade", "NN" ], [ "is", "VBZ" ], [ "kyle", "VBN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Kyle" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "network_1", "query": "SELECT name FROM high_schooler WHERE grade = 10", "query_toks": [ "SELECT", "name", "FROM", "high_schooler", "WHERE", "grade", "=", "10" ], "query_toks_no_value": [ "select", "name", "from", "high_schooler", "where", "grade", "=", "value" ], "question": "Show the names of all high schoolers in grade 10.", "question_toks": [ "show", "name", "of", "all", "high", "schoolers", "in", "grade", "10", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 10.0, null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "all", "high", "schoolers", "in", "grade", "10", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "all" ], [ "high" ], [ "schoolers" ], [ "in" ], [ "grade" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "high", "JJ" ], [ "schoolers", "NNS" ], [ "in", "IN" ], [ "grade", "NN" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "10" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "network_1", "query": "SELECT ID FROM high_schooler WHERE name = 'Kyle'", "query_toks": [ "SELECT", "ID", "FROM", "high_schooler", "WHERE", "name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "id", "from", "high_schooler", "where", "name", "=", "value" ], "question": "Show the ID of the high schooler named Kyle.", "question_toks": [ "show", "id", "of", "high", "schooler", "named", "kyle", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Kyle'", null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "the", "ID", "of", "the", "high", "schooler", "named", "Kyle", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "high", "schooler" ], [ "named" ], [ "kyle" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "high", "JJ" ], [ "schooler", "NN" ], [ "named", "VBN" ], [ "kyle", "NN" ], [ ".", "." ] ], "values": [ "Kyle" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "network_1", "query": "SELECT count(*) FROM high_schooler WHERE grade = 9 OR grade = 10", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "high_schooler", "WHERE", "grade", "=", "9", "OR", "grade", "=", "10" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "high_schooler", "where", "grade", "=", "value", "or", "grade", "=", "value" ], "question": "How many high schoolers are there in grade 9 or 10?", "question_toks": [ "how", "many", "high", "schoolers", "are", "there", "in", "grade", "9", "or", "10", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 9.0, null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], 10.0, null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "How", "many", "high", "schoolers", "are", "there", "in", "grade", "9", "or", "10", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "high" ], [ "schoolers" ], [ "are" ], [ "there" ], [ "in" ], [ "grade" ], [ "9" ], [ "or" ], [ "10" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "high", "JJ" ], [ "schoolers", "NNS" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "grade", "NN" ], [ "9", "CD" ], [ "or", "CC" ], [ "10", "CD" ], [ "?", "." ] ], "values": [ "9", "10" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(1) Filter(2) A(0) C(3) T(0) V(0) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "network_1", "query": "SELECT grade , count(*) FROM high_schooler GROUP BY grade", "query_toks": [ "SELECT", "grade", ",", "count", "(", "*", ")", "FROM", "high_schooler", "GROUP", "BY", "grade" ], "query_toks_no_value": [ "select", "grade", ",", "count", "(", "*", ")", "from", "high_schooler", "group", "by", "grade" ], "question": "Show the number of high schoolers for each grade.", "question_toks": [ "show", "number", "of", "high", "schoolers", "for", "each", "grade", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "the", "number", "of", "high", "schoolers", "for", "each", "grade", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "high" ], [ "schoolers" ], [ "for" ], [ "each" ], [ "grade" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "high", "JJ" ], [ "schoolers", "NNS" ], [ "for", "IN" ], [ "each", "DT" ], [ "grade", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(0)" }, { "db_id": "network_1", "query": "SELECT grade FROM high_schooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "grade", "FROM", "high_schooler", "GROUP", "BY", "grade", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "grade", "from", "high_schooler", "group", "by", "grade", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which grade has the most high schoolers?", "question_toks": [ "which", "grade", "ha", "most", "high", "schoolers", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Which", "grade", "has", "the", "most", "high", "schoolers", "?" ], "question_arg": [ [ "which" ], [ "grade" ], [ "ha" ], [ "most" ], [ "high" ], [ "schoolers" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "grade", "VBD" ], [ "ha", "NNS" ], [ "most", "RBS" ], [ "high", "JJ" ], [ "schoolers", "NNS" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "network_1", "query": "SELECT grade FROM high_schooler GROUP BY grade HAVING count(*) >= 4", "query_toks": [ "SELECT", "grade", "FROM", "high_schooler", "GROUP", "BY", "grade", "HAVING", "count", "(", "*", ")", ">", "=", "4" ], "query_toks_no_value": [ "select", "grade", "from", "high_schooler", "group", "by", "grade", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show me all grades that have at least 4 students.", "question_toks": [ "show", "me", "all", "grade", "that", "have", "at", "least", "4", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "me", "all", "grades", "that", "have", "at", "least", "4", "students", "." ], "question_arg": [ [ "show" ], [ "me" ], [ "all" ], [ "grade" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "4" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "me", "PRP" ], [ "all", "DT" ], [ "grade", "VBP" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "4", "CD" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "4" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "network_1", "query": "SELECT student_id , count(*) FROM Friend GROUP BY student_id", "query_toks": [ "SELECT", "student_id", ",", "count", "(", "*", ")", "FROM", "Friend", "GROUP", "BY", "student_id" ], "query_toks_no_value": [ "select", "student_id", ",", "count", "(", "*", ")", "from", "friend", "group", "by", "student_id" ], "question": "Show the student IDs and numbers of friends corresponding to each.", "question_toks": [ "show", "student", "id", "and", "number", "of", "friend", "corresponding", "to", "each", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "the", "student", "IDs", "and", "numbers", "of", "friends", "corresponding", "to", "each", "." ], "question_arg": [ [ "show" ], [ "student", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "friend" ], [ "corresponding" ], [ "to" ], [ "each" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "student", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "friend", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "each", "DT" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(1) A(3) C(0) T(1)" }, { "db_id": "network_1", "query": "SELECT T2.name , count(*) FROM Friend AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id GROUP BY T2.name", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id" ], "question": "Show the names of high school students and their corresponding number of friends.", "question_toks": [ "show", "name", "of", "high", "school", "student", "and", "their", "corresponding", "number", "of", "friend", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "high", "school", "students", "and", "their", "corresponding", "number", "of", "friends", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "high" ], [ "school" ], [ "student" ], [ "and" ], [ "their" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "friend" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "high", "JJ" ], [ "school", "NN" ], [ "student", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "corresponding", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "friend", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(1)" }, { "db_id": "network_1", "query": "SELECT T2.name FROM Friend AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id GROUP BY T2.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T2.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t2", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the high schooler who has the greatest number of friends?", "question_toks": [ "what", "is", "name", "of", "high", "schooler", "who", "has", "greatest", "number", "of", "friend", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "high", "schooler", "who", "has", "the", "greatest", "number", "of", "friends", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "high", "schooler" ], [ "who" ], [ "ha" ], [ "greatest" ], [ "number" ], [ "of" ], [ "friend" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "high", "JJ" ], [ "schooler", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "friend", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "network_1", "query": "SELECT T2.name FROM Friend AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id GROUP BY T2.name HAVING count(*) >= 3", "query_toks": [ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the names of high schoolers who have at least 3 friends.", "question_toks": [ "show", "name", "of", "high", "schoolers", "who", "have", "at", "least", "3", "friend", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "high", "schoolers", "who", "have", "at", "least", "3", "friends", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "high" ], [ "schoolers" ], [ "who" ], [ "have" ], [ "at" ], [ "least" ], [ "3" ], [ "friend" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "high", "JJ" ], [ "schoolers", "NNS" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "friend", "NN" ], [ ".", "." ] ], "values": [ "3" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(4) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "network_1", "query": "SELECT T3.name FROM Friend AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id JOIN high_schooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = 'Kyle'", "query_toks": [ "SELECT", "T3.name", "FROM", "Friend", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "JOIN", "high_schooler", "AS", "T3", "ON", "T1.friend_id", "=", "T3.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "friend", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "join", "high_schooler", "as", "t3", "on", "t1", ".", "friend_id", "=", "t3", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "Show the names of all of the high schooler Kyle's friends.", "question_toks": [ "show", "name", "of", "all", "of", "high", "schooler", "kyle", "'s", "friend", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "'Kyle'", null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "all", "of", "the", "high", "schooler", "Kyle", "'s", "friends", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "all" ], [ "of" ], [ "high", "schooler" ], [ "kyle" ], [ "'s" ], [ "friend" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "of", "IN" ], [ "high", "JJ" ], [ "schooler", "NN" ], [ "kyle", "NN" ], [ "'s", "POS" ], [ "friend", "NN" ], [ ".", "." ] ], "values": [ "Kyle" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "network_1", "query": "SELECT count(*) FROM Friend AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "How many friends does the high school student Kyle have?", "question_toks": [ "how", "many", "friend", "doe", "high", "school", "student", "kyle", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Kyle'", null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "How", "many", "friends", "does", "the", "high", "school", "student", "Kyle", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "friend" ], [ "doe" ], [ "high" ], [ "school" ], [ "student" ], [ "kyle" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "friend", "VBP" ], [ "doe", "JJ" ], [ "high", "JJ" ], [ "school", "NN" ], [ "student", "NN" ], [ "kyle", "NN" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [ "Kyle" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "network_1", "query": "SELECT id FROM high_schooler EXCEPT SELECT student_id FROM Friend", "query_toks": [ "SELECT", "id", "FROM", "high_schooler", "EXCEPT", "SELECT", "student_id", "FROM", "Friend" ], "query_toks_no_value": [ "select", "id", "from", "high_schooler", "except", "select", "student_id", "from", "friend" ], "question": "Show ids of all students who do not have any friends.", "question_toks": [ "show", "id", "of", "all", "student", "who", "do", "not", "have", "any", "friend", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "ids", "of", "all", "students", "who", "do", "not", "have", "any", "friends", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "friend" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "friend", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "network_1", "query": "SELECT name FROM high_schooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id", "query_toks": [ "SELECT", "name", "FROM", "high_schooler", "EXCEPT", "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id" ], "query_toks_no_value": [ "select", "name", "from", "high_schooler", "except", "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id" ], "question": "Show names of all high school students who do not have any friends.", "question_toks": [ "show", "name", "of", "all", "high", "school", "student", "who", "do", "not", "have", "any", "friend", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "names", "of", "all", "high", "school", "students", "who", "do", "not", "have", "any", "friends", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "all" ], [ "high" ], [ "school" ], [ "student" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "friend" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "high", "JJ" ], [ "school", "NN" ], [ "student", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "friend", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "network_1", "query": "SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes", "query_toks": [ "SELECT", "student_id", "FROM", "Friend", "INTERSECT", "SELECT", "liked_id", "FROM", "Likes" ], "query_toks_no_value": [ "select", "student_id", "from", "friend", "intersect", "select", "liked_id", "from", "likes" ], "question": "Show the ids of high schoolers who have friends and are also liked by someone else.", "question_toks": [ "show", "id", "of", "high", "schoolers", "who", "have", "friend", "and", "are", "also", "liked", "by", "someone", "else", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "the", "ids", "of", "high", "schoolers", "who", "have", "friends", "and", "are", "also", "liked", "by", "someone", "else", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "of" ], [ "high" ], [ "schoolers" ], [ "who" ], [ "have" ], [ "friend" ], [ "and" ], [ "are" ], [ "also" ], [ "liked" ], [ "by" ], [ "someone" ], [ "else" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "high", "JJ" ], [ "schoolers", "NNS" ], [ "who", "WP" ], [ "have", "VBP" ], [ "friend", "VBN" ], [ "and", "CC" ], [ "are", "VBP" ], [ "also", "RB" ], [ "liked", "VBN" ], [ "by", "IN" ], [ "someone", "NN" ], [ "else", "RB" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "network_1", "query": "SELECT T2.name FROM Friend AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN high_schooler AS T2 ON T1.liked_id = T2.id", "query_toks": [ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "INTERSECT", "SELECT", "T2.name", "FROM", "Likes", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.liked_id", "=", "T2.id" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "intersect", "select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "liked_id", "=", "t2", ".", "id" ], "question": "Show name of all students who have some friends and also are liked by someone else.", "question_toks": [ "show", "name", "of", "all", "student", "who", "have", "some", "friend", "and", "also", "are", "liked", "by", "someone", "else", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "name", "of", "all", "students", "who", "have", "some", "friends", "and", "also", "are", "liked", "by", "someone", "else", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "have" ], [ "some" ], [ "friend" ], [ "and" ], [ "also" ], [ "are" ], [ "liked" ], [ "by" ], [ "someone" ], [ "else" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "some", "DT" ], [ "friend", "NN" ], [ "and", "CC" ], [ "also", "RB" ], [ "are", "VBP" ], [ "liked", "VBN" ], [ "by", "IN" ], [ "someone", "NN" ], [ "else", "RB" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "network_1", "query": "SELECT student_id , count(*) FROM Likes GROUP BY student_id", "query_toks": [ "SELECT", "student_id", ",", "count", "(", "*", ")", "FROM", "Likes", "GROUP", "BY", "student_id" ], "query_toks_no_value": [ "select", "student_id", ",", "count", "(", "*", ")", "from", "likes", "group", "by", "student_id" ], "question": "Count the number of likes for each student id.", "question_toks": [ "count", "number", "of", "like", "for", "each", "student", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "likes", "for", "each", "student", "id", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "like" ], [ "for" ], [ "each" ], [ "student", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "like", "IN" ], [ "for", "IN" ], [ "each", "DT" ], [ "student", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(2) A(3) C(0) T(2)" }, { "db_id": "network_1", "query": "SELECT T2.name , count(*) FROM Likes AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id GROUP BY T2.name", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "Likes", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T1.student_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "likes", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id" ], "question": "Show the names of high schoolers who have likes, and numbers of likes for each.", "question_toks": [ "show", "name", "of", "high", "schoolers", "who", "have", "like", ",", "and", "number", "of", "like", "for", "each", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "high", "schoolers", "who", "have", "likes", ",", "and", "numbers", "of", "likes", "for", "each", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "high" ], [ "schoolers" ], [ "who" ], [ "have" ], [ "like" ], [ "," ], [ "and" ], [ "number" ], [ "of" ], [ "like" ], [ "for" ], [ "each" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "high", "JJ" ], [ "schoolers", "NNS" ], [ "who", "WP" ], [ "have", "VBP" ], [ "like", "VBN" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "like", "IN" ], [ "for", "IN" ], [ "each", "DT" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(2)" }, { "db_id": "network_1", "query": "SELECT T2.name FROM Likes AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id GROUP BY T2.name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "Likes", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T2.name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t2", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the high schooler who has the greatest number of likes?", "question_toks": [ "what", "is", "name", "of", "high", "schooler", "who", "ha", "greatest", "number", "of", "like", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "high", "schooler", "who", "has", "the", "greatest", "number", "of", "likes", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "high", "schooler" ], [ "who" ], [ "ha" ], [ "greatest" ], [ "number" ], [ "of" ], [ "like" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "high", "JJ" ], [ "schooler", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "like", "IN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(4) T(2)" }, { "db_id": "network_1", "query": "SELECT T2.name FROM Likes AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id GROUP BY T2.name HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.name", "FROM", "Likes", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "GROUP", "BY", "T2.name", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t2", ".", "name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the names of students who have at least 2 likes.", "question_toks": [ "show", "name", "of", "student", "who", "have", "at", "least", "2", "like", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "students", "who", "have", "at", "least", "2", "likes", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "at" ], [ "least" ], [ "2" ], [ "like" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "like", "IN" ], [ ".", "." ] ], "values": [ "2" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(4) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "network_1", "query": "SELECT T2.name FROM Friend AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T2.name HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.grade", ">", "5", "GROUP", "BY", "T2.name", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "grade", ">", "value", "group", "by", "t2", ".", "name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the names of students who have a grade higher than 5 and have at least 2 friends.", "question_toks": [ "show", "name", "of", "student", "who", "have", "a", "grade", "higher", "than", "5", "and", "have", "at", "least", "2", "friend", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 3, false ], null ], 5.0, null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "students", "who", "have", "a", "grade", "higher", "than", "5", "and", "have", "at", "least", "2", "friends", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "a" ], [ "grade" ], [ "higher" ], [ "than" ], [ "5" ], [ "and" ], [ "have" ], [ "at" ], [ "least" ], [ "2" ], [ "friend" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "grade", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ "and", "CC" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "friend", "NN" ], [ ".", "." ] ], "values": [ "5", "2" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(4) T(1) Filter(5) A(0) C(3) T(0) V(0) Filter(7) A(3) C(0) T(1) V(1)" }, { "db_id": "network_1", "query": "SELECT count(*) FROM Likes AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id WHERE T2.name = 'Kyle'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Likes", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "likes", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "How many likes does Kyle have?", "question_toks": [ "how", "many", "like", "doe", "kyle", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "'Kyle'", null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "How", "many", "likes", "does", "Kyle", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "like" ], [ "doe" ], [ "kyle" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "like", "IN" ], [ "doe", "JJ" ], [ "kyle", "NNS" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [ "Kyle" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "network_1", "query": "SELECT avg(grade) FROM high_schooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id)", "query_toks": [ "SELECT", "avg", "(", "grade", ")", "FROM", "high_schooler", "WHERE", "id", "IN", "(", "SELECT", "T1.student_id", "FROM", "Friend", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", ")" ], "query_toks_no_value": [ "select", "avg", "(", "grade", ")", "from", "high_schooler", "where", "id", "in", "(", "select", "t1", ".", "student_id", "from", "friend", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", ")" ], "question": "Find the average grade of all students who have some friends.", "question_toks": [ "find", "average", "grade", "of", "all", "student", "who", "have", "some", "friend", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Find", "the", "average", "grade", "of", "all", "students", "who", "have", "some", "friends", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "grade" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "have" ], [ "some" ], [ "friend" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "grade", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "some", "DT" ], [ "friend", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(3) T(0) Filter(18) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "network_1", "query": "SELECT min(grade) FROM high_schooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN high_schooler AS T2 ON T1.student_id = T2.id)", "query_toks": [ "SELECT", "min", "(", "grade", ")", "FROM", "high_schooler", "WHERE", "id", "NOT", "IN", "(", "SELECT", "T1.student_id", "FROM", "Friend", "AS", "T1", "JOIN", "high_schooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", ")" ], "query_toks_no_value": [ "select", "min", "(", "grade", ")", "from", "high_schooler", "where", "id", "not", "in", "(", "select", "t1", ".", "student_id", "from", "friend", "as", "t1", "join", "high_schooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", ")" ], "question": "Find the minimum grade of students who have no friends.", "question_toks": [ "find", "minimum", "grade", "of", "student", "who", "have", "no", "friend", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, null ] ] }, "names": [ "*", "id", "name", "grade", "student id", "friend id", "student id", "liked id" ], "table_names": [ "high schooler", "friend", "likes" ], "col_set": [ "*", "id", "name", "grade", "student id", "friend id", "liked id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2 ], "keys": { "5": 1, "1": 1, "4": 4, "6": 6, "7": 1 }, "origin_question_toks": [ "Find", "the", "minimum", "grade", "of", "students", "who", "have", "no", "friends", "." ], "question_arg": [ [ "find" ], [ "minimum" ], [ "grade" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "no" ], [ "friend" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "minimum", "JJ" ], [ "grade", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "no", "DT" ], [ "friend", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(2) C(3) T(0) Filter(19) A(0) C(1) T(0) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(18) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "dog_kennels", "query": "SELECT state FROM Owners INTERSECT SELECT state FROM Professionals", "query_toks": [ "SELECT", "state", "FROM", "Owners", "INTERSECT", "SELECT", "state", "FROM", "Professionals" ], "query_toks_no_value": [ "select", "state", "from", "owners", "intersect", "select", "state", "from", "professionals" ], "question": "Which states have both owners and professionals living there?", "question_toks": [ "which", "state", "have", "both", "owner", "and", "professional", "living", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "states", "have", "both", "owners", "and", "professionals", "living", "there", "?" ], "question_arg": [ [ "which" ], [ "state" ], [ "have" ], [ "both" ], [ "owner" ], [ "and" ], [ "professional" ], [ "living" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "state", "NN" ], [ "have", "VBP" ], [ "both", "DT" ], [ "owner", "NN" ], [ "and", "CC" ], [ "professional", "JJ" ], [ "living", "NN" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(0) Root(5) Sel(0) N(0) A(0) C(15) T(4) Root(5) Sel(0) N(0) A(0) C(15) T(6)" }, { "db_id": "dog_kennels", "query": "SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "Dogs", "WHERE", "dog_id", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "dogs", "where", "dog_id", "in", "(", "select", "dog_id", "from", "treatments", ")" ], "question": "What is the average age of the dogs who have gone through any treatments?", "question_toks": [ "what", "is", "average", "age", "of", "dog", "who", "have", "gone", "through", "any", "treatment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 20, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "of", "the", "dogs", "who", "have", "gone", "through", "any", "treatments", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "of" ], [ "dog" ], [ "who" ], [ "have" ], [ "gone" ], [ "through" ], [ "any" ], [ "treatment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "dog", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "gone", "VBN" ], [ "through", "IN" ], [ "any", "DT" ], [ "treatment", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(23) T(5) Filter(18) A(0) C(20) T(5) Root(5) Sel(0) N(0) A(0) C(20) T(7)" }, { "db_id": "dog_kennels", "query": "SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2", "query_toks": [ "SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "'Indiana", "'", "UNION", "SELECT", "T1.professional_id", ",", "T1.last_name", ",", "T1.cell_number", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "GROUP", "BY", "T1.professional_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value", "union", "select", "t1", ".", "professional_id", ",", "t1", ".", "last_name", ",", "t1", ".", "cell_number", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "group", "by", "t1", ".", "professional_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.", "question_toks": [ "which", "professional", "live", "in", "state", "of", "indiana", "or", "have", "done", "treatment", "on", "more", "than", "2", "treatment", "?", "list", "his", "or", "her", "id", ",", "last", "name", "and", "cell", "phone", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 40, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 33, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 40, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 33, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], "'Indiana'", null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "professionals", "live", "in", "the", "state", "of", "Indiana", "or", "have", "done", "treatment", "on", "more", "than", "2", "treatments", "?", "List", "his", "or", "her", "id", ",", "last", "name", "and", "cell", "phone", "." ], "question_arg": [ [ "which" ], [ "professional" ], [ "live" ], [ "in" ], [ "state" ], [ "of" ], [ "indiana" ], [ "or" ], [ "have" ], [ "done" ], [ "treatment" ], [ "on" ], [ "more" ], [ "than" ], [ "2" ], [ "treatment" ], [ "?" ], [ "list" ], [ "his" ], [ "or" ], [ "her" ], [ "id" ], [ "," ], [ "last", "name" ], [ "and" ], [ "cell" ], [ "phone" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "state" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "professional", "JJ" ], [ "live", "NN" ], [ "in", "IN" ], [ "state", "NN" ], [ "of", "IN" ], [ "indiana", "NN" ], [ "or", "CC" ], [ "have", "VBP" ], [ "done", "VBN" ], [ "treatment", "NN" ], [ "on", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "treatment", "NN" ], [ "?", "." ], [ "list", "VB" ], [ "his", "PRP$" ], [ "or", "CC" ], [ "her", "PRP$" ], [ "id", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "cell", "NN" ], [ "phone", "NN" ], [ ".", "." ] ], "values": [ "2", "Indiana" ], "all_values_found": true, "rule_label": "Root1(1) Root(3) Sel(0) N(2) A(0) C(30) T(6) A(0) C(12) T(6) A(0) C(19) T(6) Filter(2) A(0) C(15) T(6) V(1) Root(3) Sel(0) N(2) A(0) C(30) T(6) A(0) C(12) T(6) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(30) T(6) Root(5) Sel(0) N(0) A(0) C(30) T(7) Filter(5) A(3) C(0) T(7) V(0)" }, { "db_id": "dog_kennels", "query": "SELECT name FROM Dogs WHERE dog_id NOT IN( SELECT dog_id FROM Treatments GROUP BY dog_id HAVING sum(cost_of_treatment) > 1000 )", "query_toks": [ "SELECT", "name", "FROM", "Dogs", "WHERE", "dog_id", "NOT", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", "GROUP", "BY", "dog_id", "HAVING", "sum", "(", "cost_of_treatment", ")", ">", "1000", ")" ], "query_toks_no_value": [ "select", "name", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", "group", "by", "dog_id", "having", "sum", "(", "cost_of_treatment", ")", ">", "value", ")" ], "question": "Which dogs have not cost their owner more than 1000 for treatment? List the dog names.", "question_toks": [ "which", "dog", "have", "not", "cost", "their", "owner", "more", "than", "1000", "for", "treatment", "?", "list", "dog", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 20, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 3, [ 0, [ 4, 49, false ], null ], 1000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "dogs", "have", "not", "cost", "their", "owner", "more", "than", "1000", "for", "treatment", "?", "List", "the", "dog", "names", "." ], "question_arg": [ [ "which" ], [ "dog" ], [ "have" ], [ "not" ], [ "cost" ], [ "their" ], [ "owner" ], [ "more" ], [ "than" ], [ "1000" ], [ "for" ], [ "treatment" ], [ "?" ], [ "list" ], [ "dog" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "dog", "NN" ], [ "have", "VBP" ], [ "not", "RB" ], [ "cost", "VBN" ], [ "their", "PRP$" ], [ "owner", "NN" ], [ "more", "RBR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "for", "IN" ], [ "treatment", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "dog", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1000" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(5) Filter(19) A(0) C(20) T(5) Root(3) Sel(0) N(0) A(0) C(20) T(7) Filter(5) A(4) C(34) T(7) V(0)" }, { "db_id": "dog_kennels", "query": "SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs", "query_toks": [ "SELECT", "first_name", "FROM", "Professionals", "UNION", "SELECT", "first_name", "FROM", "Owners", "EXCEPT", "SELECT", "name", "FROM", "Dogs" ], "query_toks_no_value": [ "select", "first_name", "from", "professionals", "union", "select", "first_name", "from", "owners", "except", "select", "name", "from", "dogs" ], "question": "Which first names are used for professionals or owners but are not used as dog names?", "question_toks": [ "which", "first", "name", "are", "used", "for", "professional", "or", "owner", "but", "are", "not", "used", "a", "dog", "name", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "first", "names", "are", "used", "for", "professionals", "or", "owners", "but", "are", "not", "used", "as", "dog", "names", "?" ], "question_arg": [ [ "which" ], [ "first", "name" ], [ "are" ], [ "used" ], [ "for" ], [ "professional" ], [ "or" ], [ "owner" ], [ "but" ], [ "are" ], [ "not" ], [ "used" ], [ "a" ], [ "dog" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "first", "RB" ], [ "name", "NN" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "for", "IN" ], [ "professional", "JJ" ], [ "or", "CC" ], [ "owner", "NN" ], [ "but", "CC" ], [ "are", "VBP" ], [ "not", "RB" ], [ "used", "VBN" ], [ "a", "DT" ], [ "dog", "NN" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(11) T(6) Root(5) Sel(0) N(0) A(0) C(11) T(4)" }, { "db_id": "dog_kennels", "query": "SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", "query_toks": [ "SELECT", "professional_id", ",", "role_code", ",", "email_address", "FROM", "Professionals", "EXCEPT", "SELECT", "T1.professional_id", ",", "T1.role_code", ",", "T1.email_address", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id" ], "query_toks_no_value": [ "select", "professional_id", ",", "role_code", ",", "email_address", "from", "professionals", "except", "select", "t1", ".", "professional_id", ",", "t1", ".", "role_code", ",", "t1", ".", "email_address", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id" ], "question": "Which professional did not operate any treatment on dogs? List the professional's id, role and email.", "question_toks": [ "which", "professional", "did", "not", "operate", "any", "treatment", "on", "dog", "?", "list", "professional", "'s", "id", ",", "role", "and", "email", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 33, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "professional", "did", "not", "operate", "any", "treatment", "on", "dogs", "?", "List", "the", "professional", "'s", "id", ",", "role", "and", "email", "." ], "question_arg": [ [ "which" ], [ "professional" ], [ "did" ], [ "not" ], [ "operate" ], [ "any" ], [ "treatment" ], [ "on" ], [ "dog" ], [ "?" ], [ "list" ], [ "professional" ], [ "'s" ], [ "id" ], [ "," ], [ "role" ], [ "and" ], [ "email" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "professional", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "operate", "VB" ], [ "any", "DT" ], [ "treatment", "NN" ], [ "on", "IN" ], [ "dog", "NN" ], [ "?", "." ], [ "list", "JJ" ], [ "professional", "NN" ], [ "'s", "POS" ], [ "id", "NN" ], [ ",", "," ], [ "role", "NN" ], [ "and", "CC" ], [ "email", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(2) Root(5) Sel(0) N(2) A(0) C(30) T(6) A(0) C(31) T(6) A(0) C(17) T(6) Root(3) Sel(0) N(2) A(0) C(30) T(6) A(0) C(31) T(6) A(0) C(17) T(6) Filter(18) A(0) C(30) T(6) Root(5) Sel(0) N(0) A(0) C(30) T(7)" }, { "db_id": "dog_kennels", "query": "SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id, T2.first_name, T2.last_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.owner_id", ",", "T2.first_name", ",", "T2.last_name", "FROM", "Dogs", "AS", "T1", "JOIN", "Owners", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "GROUP", "BY", "T1.owner_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "owner_id", ",", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "dogs", "as", "t1", "join", "owners", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "group", "by", "t1", ".", "owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which owner owns the most dogs? List the owner id, first name and last name.", "question_toks": [ "which", "owner", "owns", "most", "dog", "?", "list", "owner", "id", ",", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "owner", "owns", "the", "most", "dogs", "?", "List", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "." ], "question_arg": [ [ "which" ], [ "owner" ], [ "owns" ], [ "most" ], [ "dog" ], [ "?" ], [ "list" ], [ "owner", "id" ], [ "," ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "owner", "NN" ], [ "owns", "VBZ" ], [ "most", "RBS" ], [ "dog", "VB" ], [ "?", "." ], [ "list", "NN" ], [ "owner", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(10) T(5) A(0) C(11) T(4) A(0) C(12) T(4) Sup(0) A(3) C(0) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.professional_id", ",", "T1.role_code", ",", "T1.first_name", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "GROUP", "BY", "T1.professional_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "professional_id", ",", "t1", ".", "role_code", ",", "t1", ".", "first_name", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "group", "by", "t1", ".", "professional_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which professionals have done at least two treatments? List the professional's id, role, and first name.", "question_toks": [ "which", "professional", "have", "done", "at", "least", "two", "treatment", "?", "list", "professional", "'s", "id", ",", "role", ",", "and", "first", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 33, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 33, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "professionals", "have", "done", "at", "least", "two", "treatments", "?", "List", "the", "professional", "'s", "id", ",", "role", ",", "and", "first", "name", "." ], "question_arg": [ [ "which" ], [ "professional" ], [ "have" ], [ "done" ], [ "at" ], [ "least" ], [ "two" ], [ "treatment" ], [ "?" ], [ "list" ], [ "professional" ], [ "'s" ], [ "id" ], [ "," ], [ "role" ], [ "," ], [ "and" ], [ "first", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "professional", "NN" ], [ "have", "VBP" ], [ "done", "VBN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "treatment", "NN" ], [ "?", "." ], [ "list", "JJ" ], [ "professional", "NN" ], [ "'s", "POS" ], [ "id", "NN" ], [ ",", "," ], [ "role", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "first", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "2", "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(30) T(6) A(0) C(31) T(6) A(0) C(11) T(6) Filter(0) Filter(18) A(0) C(30) T(6) Root(5) Sel(0) N(0) A(0) C(30) T(7) Filter(7) A(3) C(0) T(7) V(0)" }, { "db_id": "dog_kennels", "query": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.breed_name", "FROM", "Breeds", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.breed_code", "=", "T2.breed_code", "GROUP", "BY", "T1.breed_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "breed_name", "from", "breeds", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "breed_code", "=", "t2", ".", "breed_code", "group", "by", "t1", ".", "breed_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the breed with the most dogs?", "question_toks": [ "what", "is", "name", "of", "breed", "with", "most", "dog", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "breed", "with", "the", "most", "dogs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "breed" ], [ "with" ], [ "most" ], [ "dog" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "breed", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "dog", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.owner_id", ",", "T1.last_name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "JOIN", "Treatments", "AS", "T3", "ON", "T2.dog_id", "=", "T3.dog_id", "GROUP", "BY", "T1.owner_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "owner_id", ",", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "join", "treatments", "as", "t3", "on", "t2", ".", "dog_id", "=", "t3", ".", "dog_id", "group", "by", "t1", ".", "owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", "question_toks": [ "which", "owner", "ha", "paid", "for", "most", "treatment", "on", "his", "or", "her", "dog", "?", "list", "owner", "id", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "owner", "has", "paid", "for", "the", "most", "treatments", "on", "his", "or", "her", "dogs", "?", "List", "the", "owner", "id", "and", "last", "name", "." ], "question_arg": [ [ "which" ], [ "owner" ], [ "ha" ], [ "paid" ], [ "for" ], [ "most" ], [ "treatment" ], [ "on" ], [ "his" ], [ "or" ], [ "her" ], [ "dog" ], [ "?" ], [ "list" ], [ "owner", "id" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "owner", "NN" ], [ "ha", "NN" ], [ "paid", "VBN" ], [ "for", "IN" ], [ "most", "JJS" ], [ "treatment", "NN" ], [ "on", "IN" ], [ "his", "PRP$" ], [ "or", "CC" ], [ "her", "PRP$" ], [ "dog", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "owner", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(10) T(4) A(0) C(12) T(4) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(10) T(4) Root(5) Sel(0) N(0) A(0) C(10) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.treatment_type_description", "FROM", "Treatment_types", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.treatment_type_code", "=", "T2.treatment_type_code", "GROUP", "BY", "T1.treatment_type_code", "ORDER", "BY", "sum", "(", "cost_of_treatment", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "treatment_type_description", "from", "treatment_types", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "treatment_type_code", "=", "t2", ".", "treatment_type_code", "group", "by", "t1", ".", "treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "value" ], "question": "What is the description of the treatment type that costs the least money in total?", "question_toks": [ "what", "is", "description", "of", "treatment", "type", "that", "cost", "least", "money", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 47, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 4, 49, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "treatment", "type", "that", "costs", "the", "least", "money", "in", "total", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "of" ], [ "treatment", "type" ], [ "that" ], [ "cost" ], [ "least" ], [ "money" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "treatment", "NN" ], [ "type", "NN" ], [ "that", "IN" ], [ "cost", "NN" ], [ "least", "JJS" ], [ "money", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(3) Sup(1) A(4) C(34) T(7)" }, { "db_id": "dog_kennels", "query": "SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.owner_id", ",", "T1.zip_code", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "JOIN", "Treatments", "AS", "T3", "ON", "T2.dog_id", "=", "T3.dog_id", "GROUP", "BY", "T1.owner_id", "ORDER", "BY", "sum", "(", "T3.cost_of_treatment", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "owner_id", ",", "t1", ".", "zip_code", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "join", "treatments", "as", "t3", "on", "t2", ".", "dog_id", "=", "t3", ".", "dog_id", "group", "by", "t1", ".", "owner_id", "order", "by", "sum", "(", "t3", ".", "cost_of_treatment", ")", "desc", "limit", "value" ], "question": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", "question_toks": [ "which", "owner", "ha", "paid", "largest", "amount", "of", "money", "in", "total", "for", "their", "dog", "?", "show", "owner", "id", "and", "zip", "code", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 49, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 10, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "owner", "has", "paid", "the", "largest", "amount", "of", "money", "in", "total", "for", "their", "dogs", "?", "Show", "the", "owner", "id", "and", "zip", "code", "." ], "question_arg": [ [ "which" ], [ "owner" ], [ "ha" ], [ "paid" ], [ "largest" ], [ "amount" ], [ "of" ], [ "money" ], [ "in" ], [ "total" ], [ "for" ], [ "their" ], [ "dog" ], [ "?" ], [ "show" ], [ "owner", "id" ], [ "and" ], [ "zip", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "owner", "NN" ], [ "ha", "NN" ], [ "paid", "VBD" ], [ "largest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "money", "NN" ], [ "in", "IN" ], [ "total", "NN" ], [ "for", "IN" ], [ "their", "PRP$" ], [ "dog", "NN" ], [ "?", "." ], [ "show", "NN" ], [ "owner", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "zip", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(10) T(4) A(0) C(16) T(4) Sup(0) A(4) C(34) T(7) Filter(18) A(0) C(10) T(4) Root(5) Sel(0) N(0) A(0) C(10) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.professional_id", ",", "T1.cell_number", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "GROUP", "BY", "T1.professional_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "professional_id", ",", "t1", ".", "cell_number", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "group", "by", "t1", ".", "professional_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Which professionals have done at least two types of treatments? List the professional id and cell phone.", "question_toks": [ "which", "professional", "have", "done", "at", "least", "two", "type", "of", "treatment", "?", "list", "professional", "id", "and", "cell", "phone", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 33, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 33, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "professionals", "have", "done", "at", "least", "two", "types", "of", "treatments", "?", "List", "the", "professional", "id", "and", "cell", "phone", "." ], "question_arg": [ [ "which" ], [ "professional" ], [ "have" ], [ "done" ], [ "at" ], [ "least" ], [ "two" ], [ "type" ], [ "of" ], [ "treatment" ], [ "?" ], [ "list" ], [ "professional", "id" ], [ "and" ], [ "cell" ], [ "phone" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "professional", "NN" ], [ "have", "VBP" ], [ "done", "VBN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "type", "NN" ], [ "of", "IN" ], [ "treatment", "NN" ], [ "?", "." ], [ "list", "JJ" ], [ "professional", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "cell", "NN" ], [ "phone", "NN" ], [ ".", "." ] ], "values": [ "2" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(30) T(6) A(0) C(19) T(6) Filter(0) Filter(18) A(0) C(30) T(6) Root(5) Sel(0) N(0) A(0) C(30) T(7) Filter(7) A(3) C(0) T(7) V(0)" }, { "db_id": "dog_kennels", "query": "SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id WHERE cost_of_treatment < (SELECT avg(cost_of_treatment) FROM Treatments );", "query_toks": [ "SELECT", "DISTINCT", "T1.first_name", ",", "T1.last_name", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "WHERE", "cost_of_treatment", "<", "(", "SELECT", "avg", "(", "cost_of_treatment", ")", "FROM", "Treatments", ")" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "where", "cost_of_treatment", "<", "(", "select", "avg", "(", "cost_of_treatment", ")", "from", "treatments", ")" ], "question": "What are the first name and last name of the professionals who have done treatment with cost below average?", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "professional", "who", "have", "done", "treatment", "with", "cost", "below", "average", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 40, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 49, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 49, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "What", "are", "the", "first", "name", "and", "last", "name", "of", "the", "professionals", "who", "have", "done", "treatment", "with", "cost", "below", "average", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "professional" ], [ "who" ], [ "have" ], [ "done" ], [ "treatment" ], [ "with" ], [ "cost" ], [ "below" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "professional", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "done", "VBN" ], [ "treatment", "NN" ], [ "with", "IN" ], [ "cost", "NN" ], [ "below", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(11) T(6) A(0) C(12) T(6) Filter(12) A(0) C(34) T(7) Root(5) Sel(0) N(0) A(5) C(34) T(7)" }, { "db_id": "dog_kennels", "query": "SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id", "query_toks": [ "SELECT", "T1.date_of_treatment", ",", "T2.first_name", "FROM", "Treatments", "AS", "T1", "JOIN", "Professionals", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id" ], "query_toks_no_value": [ "select", "t1", ".", "date_of_treatment", ",", "t2", ".", "first_name", "from", "treatments", "as", "t1", "join", "professionals", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id" ], "question": "List the date of each treatment, together with the first name of the professional who operated it.", "question_toks": [ "list", "date", "of", "each", "treatment", ",", "together", "with", "first", "name", "of", "professional", "who", "operated", "it", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 33, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 48, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "List", "the", "date", "of", "each", "treatment", ",", "together", "with", "the", "first", "name", "of", "the", "professional", "who", "operated", "it", "." ], "question_arg": [ [ "list" ], [ "date" ], [ "of" ], [ "each" ], [ "treatment" ], [ "," ], [ "together" ], [ "with" ], [ "first", "name" ], [ "of" ], [ "professional" ], [ "who" ], [ "operated" ], [ "it" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "treatment", "NN" ], [ ",", "," ], [ "together", "RB" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "professional", "NN" ], [ "who", "WP" ], [ "operated", "VBD" ], [ "it", "PRP" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(33) T(7) A(0) C(11) T(6)" }, { "db_id": "dog_kennels", "query": "SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code", "query_toks": [ "SELECT", "T1.cost_of_treatment", ",", "T2.treatment_type_description", "FROM", "Treatments", "AS", "T1", "JOIN", "treatment_types", "AS", "T2", "ON", "T1.treatment_type_code", "=", "T2.treatment_type_code" ], "query_toks_no_value": [ "select", "t1", ".", "cost_of_treatment", ",", "t2", ".", "treatment_type_description", "from", "treatments", "as", "t1", "join", "treatment_types", "as", "t2", "on", "t1", ".", "treatment_type_code", "=", "t2", ".", "treatment_type_code" ], "question": "List the cost of each treatment and the corresponding treatment type description.", "question_toks": [ "list", "cost", "of", "each", "treatment", "and", "corresponding", "treatment", "type", "description", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 47, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 49, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "List", "the", "cost", "of", "each", "treatment", "and", "the", "corresponding", "treatment", "type", "description", "." ], "question_arg": [ [ "list" ], [ "cost", "of", "treatment" ], [ "each" ], [ "treatment" ], [ "and" ], [ "corresponding" ], [ "treatment", "type", "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "cost", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "treatment", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "treatment", "NN" ], [ "type", "NN" ], [ "description", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(34) T(7) A(0) C(9) T(3)" }, { "db_id": "dog_kennels", "query": "SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "T2.size_code", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t2", ".", "size_code", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id" ], "question": "List each owner's first name, last name, and the size of his for her dog.", "question_toks": [ "list", "each", "owner", "'s", "first", "name", ",", "last", "name", ",", "and", "size", "of", "his", "for", "her", "dog", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "List", "each", "owner", "'s", "first", "name", ",", "last", "name", ",", "and", "the", "size", "of", "his", "for", "her", "dog", "." ], "question_arg": [ [ "list" ], [ "each" ], [ "owner" ], [ "'s" ], [ "first", "name" ], [ "," ], [ "last", "name" ], [ "," ], [ "and" ], [ "size" ], [ "of" ], [ "his" ], [ "for" ], [ "her" ], [ "dog" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "each", "DT" ], [ "owner", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "size", "NN" ], [ "of", "IN" ], [ "his", "PRP$" ], [ "for", "IN" ], [ "her", "PRP$" ], [ "dog", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(11) T(4) A(0) C(12) T(4) A(0) C(6) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id", "query_toks": [ "SELECT", "T1.first_name", ",", "T2.name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t2", ".", "name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id" ], "question": "List pairs of the owner's first name and the dogs's name.", "question_toks": [ "list", "pair", "of", "owner", "'s", "first", "name", "and", "dog", "'s", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "List", "pairs", "of", "the", "owner", "'s", "first", "name", "and", "the", "dogs", "'s", "name", "." ], "question_arg": [ [ "list" ], [ "pair" ], [ "of" ], [ "owner" ], [ "'s" ], [ "first", "name" ], [ "and" ], [ "dog" ], [ "'s" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "pair", "NN" ], [ "of", "IN" ], [ "owner", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "dog", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(4) A(0) C(22) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )", "query_toks": [ "SELECT", "T1.name", ",", "T2.date_of_treatment", "FROM", "Dogs", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.dog_id", "=", "T2.dog_id", "WHERE", "T1.breed_code", "=", "(", "SELECT", "breed_code", "FROM", "Dogs", "GROUP", "BY", "breed_code", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "date_of_treatment", "from", "dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "dog_id", "=", "t2", ".", "dog_id", "where", "t1", ".", "breed_code", "=", "(", "select", "breed_code", "from", "dogs", "group", "by", "breed_code", "order", "by", "count", "(", "*", ")", "asc", "limit", "value", ")" ], "question": "List the names of the dogs of the rarest breed and the treatment dates of them.", "question_toks": [ "list", "name", "of", "dog", "of", "rarest", "breed", "and", "treatment", "date", "of", "them", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 48, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "List", "the", "names", "of", "the", "dogs", "of", "the", "rarest", "breed", "and", "the", "treatment", "dates", "of", "them", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "dog" ], [ "of" ], [ "rarest" ], [ "breed" ], [ "and" ], [ "treatment" ], [ "date" ], [ "of" ], [ "them" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "dog", "NN" ], [ "of", "IN" ], [ "rarest", "NN" ], [ "breed", "NN" ], [ "and", "CC" ], [ "treatment", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "them", "PRP" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(22) T(5) A(0) C(33) T(7) Filter(11) A(0) C(1) T(5) Root(2) Sel(0) N(0) A(0) C(1) T(5) Sup(1) A(3) C(0) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'", "query_toks": [ "SELECT", "T1.first_name", ",", "T2.name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "WHERE", "T1.state", "=", "'Virginia", "'" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t2", ".", "name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t1", ".", "state", "=", "value" ], "question": "Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.", "question_toks": [ "which", "dog", "are", "owned", "by", "someone", "who", "life", "in", "virginia", "?", "list", "owner", "'s", "first", "name", "and", "dog", "'s", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "'Virginia'", null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "dogs", "are", "owned", "by", "someone", "who", "lives", "in", "Virginia", "?", "List", "the", "owner", "'s", "first", "name", "and", "the", "dog", "'s", "name", "." ], "question_arg": [ [ "which" ], [ "dog" ], [ "are" ], [ "owned" ], [ "by" ], [ "someone" ], [ "who" ], [ "life" ], [ "in" ], [ "virginia" ], [ "?" ], [ "list" ], [ "owner" ], [ "'s" ], [ "first", "name" ], [ "and" ], [ "dog" ], [ "'s" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "state" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "dog", "NN" ], [ "are", "VBP" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "someone", "NN" ], [ "who", "WP" ], [ "life", "NN" ], [ "in", "IN" ], [ "virginia", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "owner", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "dog", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "Virginia" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(11) T(4) A(0) C(22) T(5) Filter(2) A(0) C(15) T(4) V(1)" }, { "db_id": "dog_kennels", "query": "SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id", "query_toks": [ "SELECT", "DISTINCT", "T1.date_arrived", ",", "T1.date_departed", "FROM", "Dogs", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.dog_id", "=", "T2.dog_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "date_arrived", ",", "t1", ".", "date_departed", "from", "dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "dog_id", "=", "t2", ".", "dog_id" ], "question": "What are the arriving date and the departing date of the dogs who have gone through a treatment?", "question_toks": [ "what", "are", "arriving", "date", "and", "departing", "date", "of", "dog", "who", "have", "gone", "through", "a", "treatment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 20, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 20, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "What", "are", "the", "arriving", "date", "and", "the", "departing", "date", "of", "the", "dogs", "who", "have", "gone", "through", "a", "treatment", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "arriving" ], [ "date" ], [ "and" ], [ "departing" ], [ "date" ], [ "of" ], [ "dog" ], [ "who" ], [ "have" ], [ "gone" ], [ "through" ], [ "a" ], [ "treatment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "arriving", "VBG" ], [ "date", "NN" ], [ "and", "CC" ], [ "departing", "VBG" ], [ "date", "NN" ], [ "of", "IN" ], [ "dog", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "gone", "VBN" ], [ "through", "IN" ], [ "a", "DT" ], [ "treatment", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(27) T(5) A(0) C(29) T(5) Filter(18) A(0) C(20) T(5) Root(5) Sel(0) N(0) A(0) C(20) T(7)" }, { "db_id": "dog_kennels", "query": "SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )", "query_toks": [ "SELECT", "T1.last_name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1.owner_id", "=", "T2.owner_id", "WHERE", "T2.age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Dogs", ")" ], "query_toks_no_value": [ "select", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t2", ".", "age", "=", "(", "select", "max", "(", "age", ")", "from", "dogs", ")" ], "question": "List the last name of the owner owning the youngest dog.", "question_toks": [ "list", "last", "name", "of", "owner", "owning", "youngest", "dog", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "List", "the", "last", "name", "of", "the", "owner", "owning", "the", "youngest", "dog", "." ], "question_arg": [ [ "list" ], [ "last", "name" ], [ "of" ], [ "owner" ], [ "owning" ], [ "youngest" ], [ "dog" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "owner", "NN" ], [ "owning", "VBG" ], [ "youngest", "JJS" ], [ "dog", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(4) Filter(11) A(0) C(23) T(5) Root(5) Sel(0) N(0) A(1) C(23) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'", "query_toks": [ "SELECT", "email_address", "FROM", "Professionals", "WHERE", "state", "=", "'Hawaii", "'", "OR", "state", "=", "'Wisconsin", "'" ], "query_toks_no_value": [ "select", "email_address", "from", "professionals", "where", "state", "=", "value", "or", "state", "=", "value" ], "question": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.", "question_toks": [ "list", "email", "of", "professional", "who", "live", "in", "state", "of", "hawaii", "or", "state", "of", "wisconsin", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 38, false ], null ], "'Hawaii'", null ], "or", [ false, 2, [ 0, [ 0, 38, false ], null ], "'Wisconsin'", null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "List", "the", "emails", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Hawaii", "or", "the", "state", "of", "Wisconsin", "." ], "question_arg": [ [ "list" ], [ "email" ], [ "of" ], [ "professional" ], [ "who" ], [ "live" ], [ "in" ], [ "state" ], [ "of" ], [ "hawaii" ], [ "or" ], [ "state" ], [ "of" ], [ "wisconsin" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "state" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "state" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "email", "NN" ], [ "of", "IN" ], [ "professional", "JJ" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "state", "NN" ], [ "of", "IN" ], [ "hawaii", "NN" ], [ "or", "CC" ], [ "state", "NN" ], [ "of", "IN" ], [ "wisconsin", "NN" ], [ ".", "." ] ], "values": [ "Hawaii", "Wisconsin" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(17) T(6) Filter(1) Filter(2) A(0) C(15) T(6) V(0) Filter(2) A(0) C(15) T(6) V(1)" }, { "db_id": "dog_kennels", "query": "SELECT date_arrived , date_departed FROM Dogs", "query_toks": [ "SELECT", "date_arrived", ",", "date_departed", "FROM", "Dogs" ], "query_toks_no_value": [ "select", "date_arrived", ",", "date_departed", "from", "dogs" ], "question": "What are the arriving date and the departing date of all the dogs?", "question_toks": [ "what", "are", "arriving", "date", "and", "departing", "date", "of", "all", "dog", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "What", "are", "the", "arriving", "date", "and", "the", "departing", "date", "of", "all", "the", "dogs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "arriving" ], [ "date" ], [ "and" ], [ "departing" ], [ "date" ], [ "of" ], [ "all" ], [ "dog" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "arriving", "VBG" ], [ "date", "NN" ], [ "and", "CC" ], [ "departing", "VBG" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "dog", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(27) T(5) A(0) C(29) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT count(DISTINCT dog_id) FROM Treatments", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dog_id", ")", "FROM", "Treatments" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dog_id", ")", "from", "treatments" ], "question": "How many dogs went through any treatments?", "question_toks": [ "how", "many", "dog", "went", "through", "any", "treatment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 45, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "How", "many", "dogs", "went", "through", "any", "treatments", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "dog" ], [ "went" ], [ "through" ], [ "any" ], [ "treatment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "dog", "NN" ], [ "went", "VBD" ], [ "through", "IN" ], [ "any", "DT" ], [ "treatment", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(20) T(7)" }, { "db_id": "dog_kennels", "query": "SELECT count(DISTINCT professional_id) FROM Treatments", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "professional_id", ")", "FROM", "Treatments" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "professional_id", ")", "from", "treatments" ], "question": "How many professionals have performed any treatment to dogs?", "question_toks": [ "how", "many", "professional", "have", "performed", "any", "treatment", "to", "dog", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 46, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "How", "many", "professionals", "have", "performed", "any", "treatment", "to", "dogs", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "professional" ], [ "have" ], [ "performed" ], [ "any" ], [ "treatment" ], [ "to" ], [ "dog" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "professional", "NN" ], [ "have", "VBP" ], [ "performed", "VBN" ], [ "any", "DT" ], [ "treatment", "NN" ], [ "to", "TO" ], [ "dog", "VB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(30) T(7)" }, { "db_id": "dog_kennels", "query": "SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'", "query_toks": [ "SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "'", "%", "West", "%", "'" ], "query_toks_no_value": [ "select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "value" ], "question": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.", "question_toks": [ "which", "professional", "live", "in", "a", "city", "containing", "substring", "'", "west", "'", "?", "list", "his", "or", "her", "role", ",", "street", ",", "city", "and", "state", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ], [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 37, false ], null ], "'%West%'", null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "professionals", "live", "in", "a", "city", "containing", "the", "substring", "'West", "'", "?", "List", "his", "or", "her", "role", ",", "street", ",", "city", "and", "state", "." ], "question_arg": [ [ "which" ], [ "professional" ], [ "live" ], [ "in" ], [ "a" ], [ "city" ], [ "containing" ], [ "substring" ], [ "'" ], [ "west" ], [ "'" ], [ "?" ], [ "list" ], [ "his" ], [ "or" ], [ "her" ], [ "role" ], [ "," ], [ "street" ], [ "," ], [ "city" ], [ "and" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "professional", "JJ" ], [ "live", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "city", "NN" ], [ "containing", "VBG" ], [ "substring", "VBG" ], [ "'", "''" ], [ "west", "JJS" ], [ "'", "POS" ], [ "?", "." ], [ "list", "VB" ], [ "his", "PRP$" ], [ "or", "CC" ], [ "her", "PRP$" ], [ "role", "NN" ], [ ",", "," ], [ "street", "NN" ], [ ",", "," ], [ "city", "NN" ], [ "and", "CC" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "West" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(31) T(6) A(0) C(13) T(6) A(0) C(14) T(6) A(0) C(15) T(6) Filter(9) A(0) C(14) T(6) V(0)" }, { "db_id": "dog_kennels", "query": "SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'", "query_toks": [ "SELECT", "first_name", ",", "last_name", ",", "email_address", "FROM", "Owners", "WHERE", "state", "LIKE", "'", "%", "North", "%", "'" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", ",", "email_address", "from", "owners", "where", "state", "like", "value" ], "question": "Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.", "question_toks": [ "which", "owner", "live", "in", "state", "whose", "name", "contains", "substring", "'", "north", "'", "?", "list", "his", "first", "name", ",", "last", "name", "and", "email", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 15, false ], null ], "'%North%'", null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "Which", "owners", "live", "in", "the", "state", "whose", "name", "contains", "the", "substring", "'North", "'", "?", "List", "his", "first", "name", ",", "last", "name", "and", "email", "." ], "question_arg": [ [ "which" ], [ "owner" ], [ "live" ], [ "in" ], [ "state" ], [ "whose" ], [ "name" ], [ "contains" ], [ "substring" ], [ "'" ], [ "north" ], [ "'" ], [ "?" ], [ "list" ], [ "his" ], [ "first", "name" ], [ "," ], [ "last", "name" ], [ "and" ], [ "email" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "owner", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "state", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "substring", "VBG" ], [ "'", "''" ], [ "north", "NN" ], [ "'", "''" ], [ "?", "." ], [ "list", "VB" ], [ "his", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "email", "NN" ], [ ".", "." ] ], "values": [ "1", "North" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(11) T(4) A(0) C(12) T(4) A(0) C(17) T(4) Filter(9) A(0) C(15) T(4) V(1)" }, { "db_id": "dog_kennels", "query": "SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Dogs", "WHERE", "age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "Dogs", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "dogs", "where", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "dogs", ")" ], "question": "How many dogs have an age below the average?", "question_toks": [ "how", "many", "dog", "have", "an", "age", "below", "average", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 26, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "How", "many", "dogs", "have", "an", "age", "below", "the", "average", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "dog" ], [ "have" ], [ "an" ], [ "age" ], [ "below" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "dog", "NN" ], [ "have", "VBP" ], [ "an", "DT" ], [ "age", "NN" ], [ "below", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(12) A(0) C(23) T(5) Root(5) Sel(0) N(0) A(5) C(23) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1", "query_toks": [ "SELECT", "cost_of_treatment", "FROM", "Treatments", "ORDER", "BY", "date_of_treatment", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "cost_of_treatment", "from", "treatments", "order", "by", "date_of_treatment", "desc", "limit", "value" ], "question": "How much does the most recent treatment cost?", "question_toks": [ "how", "much", "doe", "most", "recent", "treatment", "cost", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 48, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 49, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "How", "much", "does", "the", "most", "recent", "treatment", "cost", "?" ], "question_arg": [ [ "how" ], [ "much" ], [ "doe" ], [ "most" ], [ "recent" ], [ "treatment" ], [ "cost" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "much", "JJ" ], [ "doe", "NN" ], [ "most", "RBS" ], [ "recent", "JJ" ], [ "treatment", "NN" ], [ "cost", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(34) T(7) Sup(0) A(0) C(33) T(7)" }, { "db_id": "dog_kennels", "query": "SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Dogs", "WHERE", "dog_id", "NOT", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")" ], "question": "How many dogs have not gone through any treatment?", "question_toks": [ "how", "many", "dog", "have", "not", "gone", "through", "any", "treatment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 20, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "How", "many", "dogs", "have", "not", "gone", "through", "any", "treatment", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "dog" ], [ "have" ], [ "not" ], [ "gone" ], [ "through" ], [ "any" ], [ "treatment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "dog", "NNS" ], [ "have", "VBP" ], [ "not", "RB" ], [ "gone", "VBN" ], [ "through", "IN" ], [ "any", "DT" ], [ "treatment", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(19) A(0) C(20) T(5) Root(5) Sel(0) N(0) A(0) C(20) T(7)" }, { "db_id": "dog_kennels", "query": "SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")" ], "question": "How many owners temporarily do not have any dogs?", "question_toks": [ "how", "many", "owner", "temporarily", "do", "not", "have", "any", "dog", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 10, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "How", "many", "owners", "temporarily", "do", "not", "have", "any", "dogs", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "owner" ], [ "temporarily" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "dog" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "owner", "NN" ], [ "temporarily", "RB" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "dog", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(19) A(0) C(10) T(4) Root(5) Sel(0) N(0) A(0) C(10) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")" ], "question": "How many professionals did not operate any treatment on dogs?", "question_toks": [ "how", "many", "professional", "did", "not", "operate", "any", "treatment", "on", "dog", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 33, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "How", "many", "professionals", "did", "not", "operate", "any", "treatment", "on", "dogs", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "professional" ], [ "did" ], [ "not" ], [ "operate" ], [ "any" ], [ "treatment" ], [ "on" ], [ "dog" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "professional", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "operate", "VB" ], [ "any", "DT" ], [ "treatment", "NN" ], [ "on", "IN" ], [ "dog", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(19) A(0) C(30) T(6) Root(5) Sel(0) N(0) A(0) C(30) T(7)" }, { "db_id": "dog_kennels", "query": "SELECT name , age , weight FROM Dogs WHERE abandoned_yn = '1'", "query_toks": [ "SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "1" ], "query_toks_no_value": [ "select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value" ], "question": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.", "question_toks": [ "list", "dog", "name", ",", "age", "and", "weight", "of", "dog", "who", "have", "been", "abandoned", "?", "1", "stand", "for", "yes", ",", "and", "0", "stand", "for", "no", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 1.0, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "been", "abandoned", "?", "1", "stands", "for", "yes", ",", "and", "0", "stands", "for", "no", "." ], "question_arg": [ [ "list" ], [ "dog" ], [ "name" ], [ "," ], [ "age" ], [ "and" ], [ "weight" ], [ "of" ], [ "dog" ], [ "who" ], [ "have" ], [ "been" ], [ "abandoned" ], [ "?" ], [ "1" ], [ "stand" ], [ "for" ], [ "yes" ], [ "," ], [ "and" ], [ "0" ], [ "stand" ], [ "for" ], [ "no" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "dog", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "age", "NN" ], [ "and", "CC" ], [ "weight", "NN" ], [ "of", "IN" ], [ "dog", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "abandoned", "VBN" ], [ "?", "." ], [ "1", "CD" ], [ "stand", "NN" ], [ "for", "IN" ], [ "yes", "UH" ], [ ",", "," ], [ "and", "CC" ], [ "0", "CD" ], [ "stand", "NN" ], [ "for", "IN" ], [ "no", "DT" ], [ ".", "." ] ], "values": [ "0", "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(22) T(5) A(0) C(23) T(5) A(0) C(26) T(5) Filter(2) A(0) C(21) T(5) V(1)" }, { "db_id": "dog_kennels", "query": "SELECT avg(age) FROM Dogs", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "Dogs" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "dogs" ], "question": "What is the average age of all the dogs?", "question_toks": [ "what", "is", "average", "age", "of", "all", "dog", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "of", "all", "the", "dogs", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "of" ], [ "all" ], [ "dog" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "dog", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(23) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT max(age) FROM Dogs", "query_toks": [ "SELECT", "max", "(", "age", ")", "FROM", "Dogs" ], "query_toks_no_value": [ "select", "max", "(", "age", ")", "from", "dogs" ], "question": "What is the age of the oldest dog?", "question_toks": [ "what", "is", "age", "of", "oldest", "dog", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "What", "is", "the", "age", "of", "the", "oldest", "dog", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "age" ], [ "of" ], [ "oldest" ], [ "dog" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "age", "NN" ], [ "of", "IN" ], [ "oldest", "JJS" ], [ "dog", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(1) C(23) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT charge_type , charge_amount FROM Charges", "query_toks": [ "SELECT", "charge_type", ",", "charge_amount", "FROM", "Charges" ], "query_toks_no_value": [ "select", "charge_type", ",", "charge_amount", "from", "charges" ], "question": "How much does each charge type costs? List both charge type and amount.", "question_toks": [ "how", "much", "doe", "each", "charge", "type", "cost", "?", "list", "both", "charge", "type", "and", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "How", "much", "does", "each", "charge", "type", "costs", "?", "List", "both", "charge", "type", "and", "amount", "." ], "question_arg": [ [ "how" ], [ "much" ], [ "doe" ], [ "each" ], [ "charge", "type" ], [ "cost" ], [ "?" ], [ "list" ], [ "both" ], [ "charge", "type" ], [ "and" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "much", "JJ" ], [ "doe", "NN" ], [ "each", "DT" ], [ "charge", "NN" ], [ "type", "NN" ], [ "cost", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "both", "DT" ], [ "charge", "NN" ], [ "type", "NN" ], [ "and", "CC" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1)" }, { "db_id": "dog_kennels", "query": "SELECT max(charge_amount) FROM Charges", "query_toks": [ "SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges" ], "query_toks_no_value": [ "select", "max", "(", "charge_amount", ")", "from", "charges" ], "question": "How much does the most expensive charge type costs?", "question_toks": [ "how", "much", "doe", "most", "expensive", "charge", "type", "cost", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "How", "much", "does", "the", "most", "expensive", "charge", "type", "costs", "?" ], "question_arg": [ [ "how" ], [ "much" ], [ "doe" ], [ "most" ], [ "expensive" ], [ "charge", "type" ], [ "cost" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "much", "JJ" ], [ "doe", "NN" ], [ "most", "RBS" ], [ "expensive", "JJ" ], [ "charge", "NN" ], [ "type", "NN" ], [ "cost", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(1) C(5) T(1)" }, { "db_id": "dog_kennels", "query": "SELECT email_address , cell_number , home_phone FROM professionals", "query_toks": [ "SELECT", "email_address", ",", "cell_number", ",", "home_phone", "FROM", "professionals" ], "query_toks_no_value": [ "select", "email_address", ",", "cell_number", ",", "home_phone", "from", "professionals" ], "question": "List the email, cell phone and home phone of all the professionals.", "question_toks": [ "list", "email", ",", "cell", "phone", "and", "home", "phone", "of", "all", "professional", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 41, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ], [ 0, [ 0, [ 0, 42, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "List", "the", "email", ",", "cell", "phone", "and", "home", "phone", "of", "all", "the", "professionals", "." ], "question_arg": [ [ "list" ], [ "email" ], [ "," ], [ "cell" ], [ "phone" ], [ "and" ], [ "home", "phone" ], [ "of" ], [ "all" ], [ "professional" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "email", "NN" ], [ ",", "," ], [ "cell", "NN" ], [ "phone", "NN" ], [ "and", "CC" ], [ "home", "NN" ], [ "phone", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "professional", "JJ" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(17) T(6) A(0) C(19) T(6) A(0) C(18) T(6)" }, { "db_id": "dog_kennels", "query": "SELECT DISTINCT breed_code , size_code FROM dogs", "query_toks": [ "SELECT", "DISTINCT", "breed_code", ",", "size_code", "FROM", "dogs" ], "query_toks_no_value": [ "select", "distinct", "breed_code", ",", "size_code", "from", "dogs" ], "question": "What are all the possible breed type and size type combinations?", "question_toks": [ "what", "are", "all", "possible", "breed", "type", "and", "size", "type", "combination", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "What", "are", "all", "the", "possible", "breed", "type", "and", "size", "type", "combinations", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "possible" ], [ "breed" ], [ "type" ], [ "and" ], [ "size" ], [ "type" ], [ "combination" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "possible", "JJ" ], [ "breed", "NN" ], [ "type", "NN" ], [ "and", "CC" ], [ "size", "NN" ], [ "type", "NN" ], [ "combination", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(1) T(5) A(0) C(6) T(5)" }, { "db_id": "dog_kennels", "query": "SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code", "query_toks": [ "SELECT", "DISTINCT", "T1.first_name", ",", "T3.treatment_type_description", "FROM", "professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1.professional_id", "=", "T2.professional_id", "JOIN", "Treatment_types", "AS", "T3", "ON", "T2.treatment_type_code", "=", "T3.treatment_type_code" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "first_name", ",", "t3", ".", "treatment_type_description", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "join", "treatment_types", "as", "t3", "on", "t2", ".", "treatment_type_code", "=", "t3", ".", "treatment_type_code" ], "question": "List the first name of all the professionals along with the description of the treatment they have done.", "question_toks": [ "list", "first", "name", "of", "all", "professional", "along", "with", "description", "of", "treatment", "they", "have", "done", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 46, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 35, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 33, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 7 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "owner id", "abandoned yes or no", "breed code", "size code", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "first name", "street", "city", "state", "zip code", "last name", "email address", "home phone", "cell number", "treatment id", "dog id", "professional id", "treatment type code", "date of treatment", "cost of treatment" ], "table_names": [ "breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments" ], "col_set": [ "*", "breed code", "breed name", "charge id", "charge type", "charge amount", "size code", "size description", "treatment type code", "treatment type description", "owner id", "first name", "last name", "street", "city", "state", "zip code", "email address", "home phone", "cell number", "dog id", "abandoned yes or no", "name", "age", "date of birth", "gender", "weight", "date arrived", "date adopted", "date departed", "professional id", "role code", "treatment id", "date of treatment", "cost of treatment" ], "col_table": [ -1, 0, 0, 1, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7 ], "keys": { "21": 10, "10": 10, "24": 6, "6": 6, "23": 1, "1": 1, "45": 20, "20": 20, "46": 33, "33": 33, "47": 8, "8": 8, "3": 3, "44": 44 }, "origin_question_toks": [ "List", "the", "first", "name", "of", "all", "the", "professionals", "along", "with", "the", "description", "of", "the", "treatment", "they", "have", "done", "." ], "question_arg": [ [ "list" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "professional" ], [ "along" ], [ "with" ], [ "description" ], [ "of" ], [ "treatment" ], [ "they" ], [ "have" ], [ "done" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "professional", "JJ" ], [ "along", "IN" ], [ "with", "IN" ], [ "description", "NN" ], [ "of", "IN" ], [ "treatment", "NN" ], [ "they", "PRP" ], [ "have", "VBP" ], [ "done", "VBN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(11) T(6) A(0) C(9) T(3) Filter(18) A(0) C(30) T(6) Root(5) Sel(0) N(0) A(0) C(30) T(7)" }, { "db_id": "singer", "query": "SELECT count(*) FROM singer", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "singer" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "singer" ], "question": "How many singers are there?", "question_toks": [ "how", "many", "singer", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "How", "many", "singers", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "singer" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "singer", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "singer", "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC", "query_toks": [ "SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "singer", "order", "by", "net_worth_millions", "asc" ], "question": "List the name of singers in ascending order of net worth.", "question_toks": [ "list", "name", "of", "singer", "in", "ascending", "order", "of", "net", "worth", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "List", "the", "name", "of", "singers", "in", "ascending", "order", "of", "net", "worth", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "singer" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "net", "worth", "million" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "net", "JJ" ], [ "worth", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "singer", "query": "SELECT Birth_Year , Citizenship FROM singer", "query_toks": [ "SELECT", "Birth_Year", ",", "Citizenship", "FROM", "singer" ], "query_toks_no_value": [ "select", "birth_year", ",", "citizenship", "from", "singer" ], "question": "What are the birth year and citizenship of singers?", "question_toks": [ "what", "are", "birth", "year", "and", "citizenship", "of", "singer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "birth", "year", "and", "citizenship", "of", "singers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "birth", "year" ], [ "and" ], [ "citizenship" ], [ "of" ], [ "singer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "birth", "JJ" ], [ "year", "NN" ], [ "and", "CC" ], [ "citizenship", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(0) C(5) T(0)" }, { "db_id": "singer", "query": "SELECT Name FROM singer WHERE Citizenship != 'France'", "query_toks": [ "SELECT", "Name", "FROM", "singer", "WHERE", "Citizenship", "!", "=", "``", "France", "''" ], "query_toks_no_value": [ "select", "name", "from", "singer", "where", "citizenship", "!", "=", "value" ], "question": "List the name of singers whose citizenship is not 'France'.", "question_toks": [ "list", "name", "of", "singer", "whose", "citizenship", "is", "not", "'", "france", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 5, false ], null ], "'France'", null ] ] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "List", "the", "name", "of", "singers", "whose", "citizenship", "is", "not", "``", "France", "''", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "singer" ], [ "whose" ], [ "citizenship" ], [ "is" ], [ "not" ], [ "'" ], [ "france" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "whose", "WP$" ], [ "citizenship", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "france", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "France" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(3) A(0) C(5) T(0) V(0)" }, { "db_id": "singer", "query": "SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949", "query_toks": [ "SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "1948", "OR", "Birth_Year", "=", "1949" ], "query_toks_no_value": [ "select", "name", "from", "singer", "where", "birth_year", "=", "value", "or", "birth_year", "=", "value" ], "question": "Show the name of singers whose birth year is either 1948 or 1949?", "question_toks": [ "show", "name", "of", "singer", "whose", "birth", "year", "is", "either", "year", "or", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], 1948.0, null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], 1949.0, null ] ] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Show", "the", "name", "of", "singers", "whose", "birth", "year", "is", "either", "1948", "or", "1949", "?" ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "singer" ], [ "whose" ], [ "birth", "year" ], [ "is" ], [ "either" ], [ "year" ], [ "or" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "whose", "WP$" ], [ "birth", "JJ" ], [ "year", "NN" ], [ "is", "VBZ" ], [ "either", "DT" ], [ "1948", "CD" ], [ "or", "CC" ], [ "1949", "CD" ], [ "?", "." ] ], "values": [ "1949", "1948" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(3) T(0) V(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "singer", "query": "SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "singer", "order", "by", "net_worth_millions", "desc", "limit", "value" ], "question": "What is the name of the singer with the largest net worth?", "question_toks": [ "what", "is", "name", "of", "singer", "with", "largest", "net", "worth", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "singer", "with", "the", "largest", "net", "worth", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "singer" ], [ "with" ], [ "largest" ], [ "net", "worth", "million" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "net", "NN" ], [ "worth", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(4) T(0)" }, { "db_id": "singer", "query": "SELECT Citizenship , COUNT(*) FROM singer GROUP BY Citizenship", "query_toks": [ "SELECT", "Citizenship", ",", "COUNT", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "Citizenship" ], "query_toks_no_value": [ "select", "citizenship", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "citizenship" ], "question": "Show different citizenship of singers and the number of singers of each citizenship.", "question_toks": [ "show", "different", "citizenship", "of", "singer", "and", "number", "of", "singer", "of", "each", "citizenship", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Show", "different", "citizenship", "of", "singers", "and", "the", "number", "of", "singers", "of", "each", "citizenship", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "citizenship" ], [ "of" ], [ "singer" ], [ "and" ], [ "number" ], [ "of" ], [ "singer" ], [ "of" ], [ "each" ], [ "citizenship" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "citizenship", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "citizenship", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(0) A(3) C(0) T(0)" }, { "db_id": "singer", "query": "SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Citizenship", "FROM", "singer", "GROUP", "BY", "Citizenship", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "citizenship", "from", "singer", "group", "by", "citizenship", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Please show the most common citizenship of singers.", "question_toks": [ "please", "show", "most", "common", "citizenship", "of", "singer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Please", "show", "the", "most", "common", "citizenship", "of", "singers", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "most" ], [ "common" ], [ "citizenship" ], [ "of" ], [ "singer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "citizenship", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "singer", "query": "SELECT Citizenship , max(Net_Worth_Millions) FROM singer GROUP BY Citizenship", "query_toks": [ "SELECT", "Citizenship", ",", "max", "(", "Net_Worth_Millions", ")", "FROM", "singer", "GROUP", "BY", "Citizenship" ], "query_toks_no_value": [ "select", "citizenship", ",", "max", "(", "net_worth_millions", ")", "from", "singer", "group", "by", "citizenship" ], "question": "Show different citizenships and the maximum net worth of singers of each citizenship.", "question_toks": [ "show", "different", "citizenship", "and", "maximum", "net", "worth", "of", "singer", "of", "each", "citizenship", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 1, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Show", "different", "citizenships", "and", "the", "maximum", "net", "worth", "of", "singers", "of", "each", "citizenship", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "citizenship" ], [ "and" ], [ "maximum" ], [ "net", "worth", "million" ], [ "of" ], [ "singer" ], [ "of" ], [ "each" ], [ "citizenship" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "citizenship", "NN" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "net", "JJ" ], [ "worth", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "citizenship", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(0) A(1) C(4) T(0)" }, { "db_id": "singer", "query": "SELECT T2.Title , T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID", "query_toks": [ "SELECT", "T2.Title", ",", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID" ], "query_toks_no_value": [ "select", "t2", ".", "title", ",", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id" ], "question": "Show titles of songs and names of singers.", "question_toks": [ "show", "title", "of", "song", "and", "name", "of", "singer", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Show", "titles", "of", "songs", "and", "names", "of", "singers", "." ], "question_arg": [ [ "show" ], [ "title" ], [ "of" ], [ "song" ], [ "and" ], [ "name" ], [ "of" ], [ "singer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "song", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(1) A(0) C(2) T(0)" }, { "db_id": "singer", "query": "SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID WHERE T2.Sales > 300000", "query_toks": [ "SELECT", "DISTINCT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "WHERE", "T2.Sales", ">", "300000" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "where", "t2", ".", "sales", ">", "value" ], "question": "Show distinct names of singers that have songs with sales more than 300000.", "question_toks": [ "show", "distinct", "name", "of", "singer", "that", "have", "song", "with", "sale", "more", "than", "300000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 300000.0, null ] ] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Show", "distinct", "names", "of", "singers", "that", "have", "songs", "with", "sales", "more", "than", "300000", "." ], "question_arg": [ [ "show" ], [ "distinct" ], [ "name" ], [ "of" ], [ "singer" ], [ "that" ], [ "have" ], [ "song" ], [ "with" ], [ "sale" ], [ "more" ], [ "than" ], [ "300000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "song", "VBN" ], [ "with", "IN" ], [ "sale", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "300000", "CD" ], [ ".", "." ] ], "values": [ "300000" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(5) A(0) C(8) T(1) V(0)" }, { "db_id": "singer", "query": "SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "GROUP", "BY", "T1.Name", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "group", "by", "t1", ".", "name", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the names of singers that have more than one song.", "question_toks": [ "show", "name", "of", "singer", "that", "have", "more", "than", "one", "song", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "singers", "that", "have", "more", "than", "one", "song", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "singer" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "song" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "song", "NN" ], [ ".", "." ] ], "values": [ "1" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "singer", "query": "SELECT T1.Name , sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name", "query_toks": [ "SELECT", "T1.Name", ",", "sum", "(", "T2.Sales", ")", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "GROUP", "BY", "T1.Name" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "sum", "(", "t2", ".", "sales", ")", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "group", "by", "t1", ".", "name" ], "question": "Show the names of singers and the total sales of their songs.", "question_toks": [ "show", "name", "of", "singer", "and", "total", "sale", "of", "their", "song", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 4, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "singers", "and", "the", "total", "sales", "of", "their", "songs", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "singer" ], [ "and" ], [ "total" ], [ "sale" ], [ "of" ], [ "their" ], [ "song" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "sale", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "song", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(4) C(8) T(1)" }, { "db_id": "singer", "query": "SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song)", "query_toks": [ "SELECT", "Name", "FROM", "singer", "WHERE", "Singer_ID", "NOT", "IN", "(", "SELECT", "Singer_ID", "FROM", "song", ")" ], "query_toks_no_value": [ "select", "name", "from", "singer", "where", "singer_id", "not", "in", "(", "select", "singer_id", "from", "song", ")" ], "question": "List the name of singers that do not have any song.", "question_toks": [ "list", "name", "of", "singer", "that", "do", "not", "have", "any", "song", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 1, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "List", "the", "name", "of", "singers", "that", "do", "not", "have", "any", "song", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "singer" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "song" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "singer", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "song", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(19) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "singer", "query": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", "query_toks": [ "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", "<", "1945", "INTERSECT", "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", ">", "1955" ], "query_toks_no_value": [ "select", "citizenship", "from", "singer", "where", "birth_year", "<", "value", "intersect", "select", "citizenship", "from", "singer", "where", "birth_year", ">", "value" ], "question": "Show the citizenship shared by singers with birth year before 1945 and after 1955.", "question_toks": [ "show", "citizenship", "shared", "by", "singer", "with", "birth", "year", "before", "year", "and", "after", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 1955.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 1945.0, null ] ] }, "names": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "singer id", "sales", "highest position" ], "table_names": [ "singer", "song" ], "col_set": [ "*", "singer id", "name", "birth year", "net worth millions", "citizenship", "song id", "title", "sales", "highest position" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "6": 6 }, "origin_question_toks": [ "Show", "the", "citizenship", "shared", "by", "singers", "with", "birth", "year", "before", "1945", "and", "after", "1955", "." ], "question_arg": [ [ "show" ], [ "citizenship" ], [ "shared" ], [ "by" ], [ "singer" ], [ "with" ], [ "birth", "year" ], [ "before" ], [ "year" ], [ "and" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "citizenship", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "singer", "NN" ], [ "with", "IN" ], [ "birth", "JJ" ], [ "year", "NN" ], [ "before", "IN" ], [ "1945", "CD" ], [ "and", "CC" ], [ "after", "IN" ], [ "1955", "CD" ], [ ".", "." ] ], "values": [ "1945", "1955" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(4) A(0) C(3) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(5) A(0) C(3) T(0) V(1)" }, { "db_id": "real_estate_properties", "query": "SELECT count(*) FROM Other_Available_Features", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Other_Available_Features" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "other_available_features" ], "question": "How many available features are there in total?", "question_toks": [ "how", "many", "available", "feature", "are", "there", "in", "total", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "feature type code", "feature type name", "property type code", "property type description", "feature id", "feature type code", "feature name", "feature description", "property id", "property type code", "date on market", "date sold", "property name", "property address", "room count", "vendor requested price", "buyer offered price", "agreed selling price", "apt feature 1", "apt feature 2", "apt feature 3", "fld feature 1", "fld feature 2", "fld feature 3", "hse feature 1", "hse feature 2", "hse feature 3", "oth feature 1", "oth feature 2", "oth feature 3", "shp feature 1", "shp feature 2", "shp feature 3", "other property details", "property id", "feature id", "property feature description" ], "table_names": [ "reference feature types", "reference property types", "other available features", "properties", "other property features" ], "col_set": [ "*", "feature type code", "feature type name", "property type code", "property type description", "feature id", "feature name", "feature description", "property id", "date on market", "date sold", "property name", "property address", "room count", "vendor requested price", "buyer offered price", "agreed selling price", "apt feature 1", "apt feature 2", "apt feature 3", "fld feature 1", "fld feature 2", "fld feature 3", "hse feature 1", "hse feature 2", "hse feature 3", "oth feature 1", "oth feature 2", "oth feature 3", "shp feature 1", "shp feature 2", "shp feature 3", "other property details", "property feature description" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "10": 3, "3": 3, "35": 9, "9": 9, "36": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "available", "features", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "available" ], [ "feature" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "available", "JJ" ], [ "feature", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "total", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "real_estate_properties", "query": "SELECT T2.feature_type_name FROM other_available_features AS T1 JOIN reference_feature_types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = 'AirCon'", "query_toks": [ "SELECT", "T2.feature_type_name", "FROM", "Other_Available_Features", "AS", "T1", "JOIN", "reference_feature_types", "AS", "T2", "ON", "T1.feature_type_code", "=", "T2.feature_type_code", "WHERE", "T1.feature_name", "=", "``", "AirCon", "''" ], "query_toks_no_value": [ "select", "t2", ".", "feature_type_name", "from", "other_available_features", "as", "t1", "join", "reference_feature_types", "as", "t2", "on", "t1", ".", "feature_type_code", "=", "t2", ".", "feature_type_code", "where", "t1", ".", "feature_name", "=", "value" ], "question": "What is the feature type name of feature AirCon?", "question_toks": [ "what", "is", "feature", "type", "name", "of", "feature", "aircon", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "'AirCon'", null ] ] }, "names": [ "*", "feature type code", "feature type name", "property type code", "property type description", "feature id", "feature type code", "feature name", "feature description", "property id", "property type code", "date on market", "date sold", "property name", "property address", "room count", "vendor requested price", "buyer offered price", "agreed selling price", "apt feature 1", "apt feature 2", "apt feature 3", "fld feature 1", "fld feature 2", "fld feature 3", "hse feature 1", "hse feature 2", "hse feature 3", "oth feature 1", "oth feature 2", "oth feature 3", "shp feature 1", "shp feature 2", "shp feature 3", "other property details", "property id", "feature id", "property feature description" ], "table_names": [ "reference feature types", "reference property types", "other available features", "properties", "other property features" ], "col_set": [ "*", "feature type code", "feature type name", "property type code", "property type description", "feature id", "feature name", "feature description", "property id", "date on market", "date sold", "property name", "property address", "room count", "vendor requested price", "buyer offered price", "agreed selling price", "apt feature 1", "apt feature 2", "apt feature 3", "fld feature 1", "fld feature 2", "fld feature 3", "hse feature 1", "hse feature 2", "hse feature 3", "oth feature 1", "oth feature 2", "oth feature 3", "shp feature 1", "shp feature 2", "shp feature 3", "other property details", "property feature description" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "10": 3, "3": 3, "35": 9, "9": 9, "36": 5, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "feature", "type", "name", "of", "feature", "AirCon", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "feature", "type", "name" ], [ "of" ], [ "feature" ], [ "aircon" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "feature", "JJ" ], [ "type", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "feature", "NN" ], [ "aircon", "NN" ], [ "?", "." ] ], "values": [ "AirCon" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "real_estate_properties", "query": "SELECT T2.property_type_description FROM properties AS T1 JOIN reference_property_types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T2.property_type_description", "query_toks": [ "SELECT", "T2.property_type_description", "FROM", "Properties", "AS", "T1", "JOIN", "Reference_Property_Types", "AS", "T2", "ON", "T1.property_type_code", "=", "T2.property_type_code", "GROUP", "BY", "T1.property_type_code" ], "query_toks_no_value": [ "select", "t2", ".", "property_type_description", "from", "properties", "as", "t1", "join", "reference_property_types", "as", "t2", "on", "t1", ".", "property_type_code", "=", "t2", ".", "property_type_code", "group", "by", "t1", ".", "property_type_code" ], "question": "Show the property type descriptions of properties belonging to that code.", "question_toks": [ "show", "property", "type", "description", "of", "property", "belonging", "to", "that", "code", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "feature type code", "feature type name", "property type code", "property type description", "feature id", "feature type code", "feature name", "feature description", "property id", "property type code", "date on market", "date sold", "property name", "property address", "room count", "vendor requested price", "buyer offered price", "agreed selling price", "apt feature 1", "apt feature 2", "apt feature 3", "fld feature 1", "fld feature 2", "fld feature 3", "hse feature 1", "hse feature 2", "hse feature 3", "oth feature 1", "oth feature 2", "oth feature 3", "shp feature 1", "shp feature 2", "shp feature 3", "other property details", "property id", "feature id", "property feature description" ], "table_names": [ "reference feature types", "reference property types", "other available features", "properties", "other property features" ], "col_set": [ "*", "feature type code", "feature type name", "property type code", "property type description", "feature id", "feature name", "feature description", "property id", "date on market", "date sold", "property name", "property address", "room count", "vendor requested price", "buyer offered price", "agreed selling price", "apt feature 1", "apt feature 2", "apt feature 3", "fld feature 1", "fld feature 2", "fld feature 3", "hse feature 1", "hse feature 2", "hse feature 3", "oth feature 1", "oth feature 2", "oth feature 3", "shp feature 1", "shp feature 2", "shp feature 3", "other property details", "property feature description" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "10": 3, "3": 3, "35": 9, "9": 9, "36": 5, "5": 5 }, "origin_question_toks": [ "Show", "the", "property", "type", "descriptions", "of", "properties", "belonging", "to", "that", "code", "." ], "question_arg": [ [ "show" ], [ "property", "type", "description" ], [ "of" ], [ "property" ], [ "belonging" ], [ "to" ], [ "that" ], [ "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "property", "NN" ], [ "type", "JJ" ], [ "description", "NN" ], [ "of", "IN" ], [ "property", "NN" ], [ "belonging", "NN" ], [ "to", "TO" ], [ "that", "DT" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(3)" }, { "db_id": "real_estate_properties", "query": "SELECT property_name FROM Properties WHERE property_type_code = 'House' UNION SELECT property_name FROM Properties WHERE property_type_code = 'Apartment' AND room_count > 1", "query_toks": [ "SELECT", "property_name", "FROM", "Properties", "WHERE", "property_type_code", "=", "``", "House", "''", "UNION", "SELECT", "property_name", "FROM", "Properties", "WHERE", "property_type_code", "=", "``", "Apartment", "''", "AND", "room_count", ">", "1" ], "query_toks_no_value": [ "select", "property_name", "from", "properties", "where", "property_type_code", "=", "value", "union", "select", "property_name", "from", "properties", "where", "property_type_code", "=", "value", "and", "room_count", ">", "value" ], "question": "What are the names of properties that are either houses or apartments with more than 1 room?", "question_toks": [ "what", "are", "name", "of", "property", "that", "are", "either", "house", "or", "apartment", "with", "more", "than", "1", "room", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'Apartment'", null ], "and", [ false, 3, [ 0, [ 0, 15, false ], null ], 1.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "'House'", null ] ] }, "names": [ "*", "feature type code", "feature type name", "property type code", "property type description", "feature id", "feature type code", "feature name", "feature description", "property id", "property type code", "date on market", "date sold", "property name", "property address", "room count", "vendor requested price", "buyer offered price", "agreed selling price", "apt feature 1", "apt feature 2", "apt feature 3", "fld feature 1", "fld feature 2", "fld feature 3", "hse feature 1", "hse feature 2", "hse feature 3", "oth feature 1", "oth feature 2", "oth feature 3", "shp feature 1", "shp feature 2", "shp feature 3", "other property details", "property id", "feature id", "property feature description" ], "table_names": [ "reference feature types", "reference property types", "other available features", "properties", "other property features" ], "col_set": [ "*", "feature type code", "feature type name", "property type code", "property type description", "feature id", "feature name", "feature description", "property id", "date on market", "date sold", "property name", "property address", "room count", "vendor requested price", "buyer offered price", "agreed selling price", "apt feature 1", "apt feature 2", "apt feature 3", "fld feature 1", "fld feature 2", "fld feature 3", "hse feature 1", "hse feature 2", "hse feature 3", "oth feature 1", "oth feature 2", "oth feature 3", "shp feature 1", "shp feature 2", "shp feature 3", "other property details", "property feature description" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4 ], "keys": { "6": 1, "1": 1, "10": 3, "3": 3, "35": 9, "9": 9, "36": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "properties", "that", "are", "either", "houses", "or", "apartments", "with", "more", "than", "1", "room", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "property" ], [ "that" ], [ "are" ], [ "either" ], [ "house" ], [ "or" ], [ "apartment" ], [ "with" ], [ "more" ], [ "than" ], [ "1" ], [ "room" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "property", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "either", "DT" ], [ "house", "NN" ], [ "or", "CC" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "room", "NN" ], [ "?", "." ] ], "values": [ "1", "Apartment", "House" ], "all_values_found": true, "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(2) A(0) C(3) T(3) V(2) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(0) Filter(2) A(0) C(3) T(3) V(1) Filter(5) A(0) C(13) T(3) V(0)" }, { "db_id": "voter_1", "query": "SELECT count(*) FROM area_code_state", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "area_code_state" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "area_code_state" ], "question": "How many states are there?", "question_toks": [ "how", "many", "state", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "How", "many", "states", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "state" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "state", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "voter_1", "query": "SELECT contestant_number , contestant_name FROM contestants ORDER BY contestant_name DESC", "query_toks": [ "SELECT", "contestant_number", ",", "contestant_name", "FROM", "contestants", "ORDER", "BY", "contestant_name", "DESC" ], "query_toks_no_value": [ "select", "contestant_number", ",", "contestant_name", "from", "contestants", "order", "by", "contestant_name", "desc" ], "question": "List the contestant numbers and names, ordered by contestant name descending.", "question_toks": [ "list", "contestant", "number", "and", "name", ",", "ordered", "by", "contestant", "name", "descending", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "List", "the", "contestant", "numbers", "and", "names", ",", "ordered", "by", "contestant", "name", "descending", "." ], "question_arg": [ [ "list" ], [ "contestant", "number" ], [ "and" ], [ "name" ], [ "," ], [ "ordered" ], [ "by" ], [ "contestant", "name" ], [ "descending" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "contestant", "JJ" ], [ "number", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "contestant", "JJ" ], [ "name", "NN" ], [ "descending", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(3) T(1) A(0) C(4) T(1) Order(0) A(0) C(4) T(1)" }, { "db_id": "voter_1", "query": "SELECT vote_id , phone_number , state FROM votes as T1 join area_code_state as T2 on T1.area_code = T2.area_code", "query_toks": [ "SELECT", "vote_id", ",", "phone_number", ",", "state", "FROM", "votes" ], "query_toks_no_value": [ "select", "vote_id", ",", "phone_number", ",", "state", "from", "votes" ], "question": "List the vote ids, phone numbers and states of all votes.", "question_toks": [ "list", "vote", "id", ",", "phone", "number", "and", "state", "of", "all", "vote", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "List", "the", "vote", "ids", ",", "phone", "numbers", "and", "states", "of", "all", "votes", "." ], "question_arg": [ [ "list" ], [ "vote", "id" ], [ "," ], [ "phone", "number" ], [ "and" ], [ "state" ], [ "of" ], [ "all" ], [ "vote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "vote", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "phone", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "state", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "vote", "NN" ], [ ".", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(5) T(2) A(0) C(6) T(2) A(0) C(2) T(0)" }, { "db_id": "voter_1", "query": "SELECT max(area_code) , min(area_code) FROM area_code_state", "query_toks": [ "SELECT", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "FROM", "area_code_state" ], "query_toks_no_value": [ "select", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "from", "area_code_state" ], "question": "What are the maximum and minimum values of area codes?", "question_toks": [ "what", "are", "maximum", "and", "minimum", "value", "of", "area", "code", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 1, false ], null ] ], [ 2, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "values", "of", "area", "codes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "value" ], [ "of" ], [ "area", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "value", "NN" ], [ "of", "IN" ], [ "area", "NN" ], [ "code", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(1) T(0) A(2) C(1) T(0)" }, { "db_id": "voter_1", "query": "SELECT max(created) FROM votes as T1 join area_code_state as T2 on T1.area_code = T2.area_code WHERE state = 'CA'", "query_toks": [ "SELECT", "max", "(", "created", ")", "FROM", "votes", "WHERE", "state", "=", "'CA", "'" ], "query_toks_no_value": [ "select", "max", "(", "created", ")", "from", "votes", "where", "state", "=", "value" ], "question": "What is last date created of votes from the state 'CA'?", "question_toks": [ "what", "is", "last", "date", "created", "of", "vote", "from", "state", "'", "ca", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"CA\"", null ] ] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "is", "last", "date", "created", "of", "votes", "from", "the", "state", "'CA", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last" ], [ "date" ], [ "created" ], [ "of" ], [ "vote" ], [ "from" ], [ "state" ], [ "'" ], [ "ca" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "date", "NN" ], [ "created", "VBD" ], [ "of", "IN" ], [ "vote", "NN" ], [ "from", "IN" ], [ "state", "NN" ], [ "'", "''" ], [ "ca", "MD" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "CA" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(7) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "voter_1", "query": "SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway'", "query_toks": [ "SELECT", "contestant_name", "FROM", "contestants", "WHERE", "contestant_name", "!", "=", "'Jessie", "Alloway", "'" ], "query_toks_no_value": [ "select", "contestant_name", "from", "contestants", "where", "contestant_name", "!", "=", "value" ], "question": "What are the names of the contestants whose names are not 'Jessie Alloway'", "question_toks": [ "what", "are", "name", "of", "contestant", "whose", "name", "are", "not", "'", "jessie", "alloway", "'" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"Jessie Alloway\"", null ] ] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "contestants", "whose", "names", "are", "not", "'Jessie", "Alloway", "'" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "contestant" ], [ "whose" ], [ "name" ], [ "are" ], [ "not" ], [ "'" ], [ "jessie" ], [ "alloway" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "contestant", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "'", "POS" ], [ "jessie", "NN" ], [ "alloway", "NN" ], [ "'", "''" ] ], "values": [ "Jessie Alloway" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(3) A(0) C(4) T(1) V(0)" }, { "db_id": "voter_1", "query": "SELECT DISTINCT state , created FROM votes as T1 join area_code_state as T2 on T1.area_code = T2.area_code", "query_toks": [ "SELECT", "DISTINCT", "state", ",", "created", "FROM", "votes" ], "query_toks_no_value": [ "select", "distinct", "state", ",", "created", "from", "votes" ], "question": "What are the distinct states and create time of all votes?", "question_toks": [ "what", "are", "distinct", "state", "and", "create", "time", "of", "all", "vote", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "distinct", "states", "and", "create", "time", "of", "all", "votes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "state" ], [ "and" ], [ "create" ], [ "time" ], [ "of" ], [ "all" ], [ "vote" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "state", "NN" ], [ "and", "CC" ], [ "create", "NN" ], [ "time", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "vote", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(2) T(0) A(0) C(7) T(2)" }, { "db_id": "voter_1", "query": "SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.contestant_number", ",", "T1.contestant_name", "FROM", "contestants", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1.contestant_number", "=", "T2.contestant_number", "GROUP", "BY", "T1.contestant_number", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "contestant_number", ",", "t1", ".", "contestant_name", "from", "contestants", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "contestant_number", "=", "t2", ".", "contestant_number", "group", "by", "t1", ".", "contestant_number", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the contestant numbers and names of the contestants who had at least two votes?", "question_toks": [ "what", "are", "contestant", "number", "and", "name", "of", "contestant", "who", "had", "at", "least", "two", "vote", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "contestant", "numbers", "and", "names", "of", "the", "contestants", "who", "had", "at", "least", "two", "votes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "contestant", "number" ], [ "and" ], [ "name" ], [ "of" ], [ "contestant" ], [ "who" ], [ "had" ], [ "at" ], [ "least" ], [ "two" ], [ "vote" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "contestant", "JJ" ], [ "number", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "contestant", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "vote", "NN" ], [ "?", "." ] ], "values": [ "2" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(1) A(0) C(4) T(1) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "voter_1", "query": "SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.contestant_number", ",", "T1.contestant_name", "FROM", "contestants", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1.contestant_number", "=", "T2.contestant_number", "GROUP", "BY", "T1.contestant_number", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "contestant_number", ",", "t1", ".", "contestant_name", "from", "contestants", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "contestant_number", "=", "t2", ".", "contestant_number", "group", "by", "t1", ".", "contestant_number", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?", "question_toks": [ "of", "all", "contestant", "who", "got", "voted", ",", "what", "is", "contestant", "number", "and", "name", "of", "contestant", "who", "got", "least", "vote", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "Of", "all", "the", "contestants", "who", "got", "voted", ",", "what", "is", "the", "contestant", "number", "and", "name", "of", "the", "contestant", "who", "got", "least", "votes", "?" ], "question_arg": [ [ "of" ], [ "all" ], [ "contestant" ], [ "who" ], [ "got" ], [ "voted" ], [ "," ], [ "what" ], [ "is" ], [ "contestant", "number" ], [ "and" ], [ "name" ], [ "of" ], [ "contestant" ], [ "who" ], [ "got" ], [ "least" ], [ "vote" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "of", "IN" ], [ "all", "DT" ], [ "contestant", "NN" ], [ "who", "WP" ], [ "got", "VBD" ], [ "voted", "VBN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "contestant", "JJ" ], [ "number", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "contestant", "NN" ], [ "who", "WP" ], [ "got", "VBD" ], [ "least", "JJS" ], [ "vote", "NN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(3) T(1) A(0) C(4) T(1) Sup(1) A(3) C(0) T(2) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(2)" }, { "db_id": "voter_1", "query": "SELECT count(*) FROM votes as T1 join area_code_state as T2 on T1.area_code = T2.area_code WHERE state = 'NY' OR state = 'CA'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "votes", "WHERE", "state", "=", "'NY", "'", "OR", "state", "=", "'CA", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "votes", "where", "state", "=", "value", "or", "state", "=", "value" ], "question": "What are the number of votes from state 'NY' or 'CA'?", "question_toks": [ "what", "are", "number", "of", "vote", "from", "state", "'", "ny", "'", "or", "'", "ca", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"NY\"", null ], "or", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"CA\"", null ] ] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "number", "of", "votes", "from", "state", "'NY", "'", "or", "'CA", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "number" ], [ "of" ], [ "vote" ], [ "from" ], [ "state" ], [ "'" ], [ "ny" ], [ "'" ], [ "or" ], [ "'" ], [ "ca" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "vote", "NN" ], [ "from", "IN" ], [ "state", "NN" ], [ "'", "''" ], [ "ny", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "ca", "MD" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "NY", "CA" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(1) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "voter_1", "query": "SELECT count(*) FROM contestants WHERE contestant_number NOT IN ( SELECT contestant_number FROM votes )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "contestants", "WHERE", "contestant_number", "NOT", "IN", "(", "SELECT", "contestant_number", "FROM", "votes", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "contestants", "where", "contestant_number", "not", "in", "(", "select", "contestant_number", "from", "votes", ")" ], "question": "How many contestants did not get voted?", "question_toks": [ "how", "many", "contestant", "did", "not", "get", "voted", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 3, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "How", "many", "contestants", "did", "not", "get", "voted", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "contestant" ], [ "did" ], [ "not" ], [ "get" ], [ "voted" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "contestant", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "get", "VB" ], [ "voted", "VBN" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(2)" }, { "db_id": "voter_1", "query": "SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.area_code = T2.area_code GROUP BY T1.area_code ORDER BY count(*)", "query_toks": [ "SELECT", "T1.area_code", "FROM", "area_code_state", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1.state", "=", "T2.state", "GROUP", "BY", "T1.area_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "area_code", "from", "area_code_state", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "state", "=", "t2", ".", "state", "group", "by", "t1", ".", "area_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the area code in which the most voters voted?", "question_toks": [ "what", "is", "area", "code", "in", "which", "most", "voter", "voted", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 2, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "area", "code", "in", "which", "the", "most", "voters", "voted", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "area", "code" ], [ "in" ], [ "which" ], [ "most" ], [ "voter" ], [ "voted" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "area", "NN" ], [ "code", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "most", "JJS" ], [ "voter", "NN" ], [ "voted", "VBD" ], [ "?", "." ] ], "values": [], "all_values_found": true, "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(1) T(0) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "voter_1", "query": "SELECT T2.created , T2.phone_number, T3.state FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number join area_code_state as T3 on T3.area_code = T2.area_code WHERE T1.contestant_name = 'Tabatha Gehling'", "query_toks": [ "SELECT", "T2.created", ",", "T2.state", ",", "T2.phone_number", "FROM", "contestants", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1.contestant_number", "=", "T2.contestant_number", "WHERE", "T1.contestant_name", "=", "'Tabatha", "Gehling", "'" ], "query_toks_no_value": [ "select", "t2", ".", "created", ",", "t2", ".", "state", ",", "t2", ".", "phone_number", "from", "contestants", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "contestant_number", "=", "t2", ".", "contestant_number", "where", "t1", ".", "contestant_name", "=", "value" ], "question": "What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?", "question_toks": [ "what", "are", "create", "date", ",", "state", ",", "and", "phone", "number", "of", "vote", "that", "were", "for", "contestant", "named", "'", "tabatha", "gehling", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Tabatha Gehling\"", null ] ] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "create", "dates", ",", "states", ",", "and", "phone", "numbers", "of", "the", "votes", "that", "were", "for", "the", "contestant", "named", "'Tabatha", "Gehling", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "create" ], [ "date" ], [ "," ], [ "state" ], [ "," ], [ "and" ], [ "phone", "number" ], [ "of" ], [ "vote" ], [ "that" ], [ "were" ], [ "for" ], [ "contestant" ], [ "named" ], [ "'" ], [ "tabatha" ], [ "gehling" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "create", "JJ" ], [ "date", "NN" ], [ ",", "," ], [ "state", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "vote", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "for", "IN" ], [ "contestant", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "tabatha", "NN" ], [ "gehling", "VBG" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Tabatha Gehling" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(7) T(2) A(0) C(2) T(0) A(0) C(6) T(2) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "voter_1", "query": "SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.area_code = T3.area_code WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.area_code = T3.area_code WHERE T1.contestant_name = 'Kelly Clauss'", "query_toks": [ "SELECT", "T3.area_code", "FROM", "contestants", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1.contestant_number", "=", "T2.contestant_number", "JOIN", "area_code_state", "AS", "T3", "ON", "T2.state", "=", "T3.state", "WHERE", "T1.contestant_name", "=", "'Tabatha", "Gehling", "'", "INTERSECT", "SELECT", "T3.area_code", "FROM", "contestants", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1.contestant_number", "=", "T2.contestant_number", "JOIN", "area_code_state", "AS", "T3", "ON", "T2.state", "=", "T3.state", "WHERE", "T1.contestant_name", "=", "'Kelly", "Clauss", "'" ], "query_toks_no_value": [ "select", "t3", ".", "area_code", "from", "contestants", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "contestant_number", "=", "t2", ".", "contestant_number", "join", "area_code_state", "as", "t3", "on", "t2", ".", "state", "=", "t3", ".", "state", "where", "t1", ".", "contestant_name", "=", "value", "intersect", "select", "t3", ".", "area_code", "from", "contestants", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "contestant_number", "=", "t2", ".", "contestant_number", "join", "area_code_state", "as", "t3", "on", "t2", ".", "state", "=", "t3", ".", "state", "where", "t1", ".", "contestant_name", "=", "value" ], "question": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.", "question_toks": [ "list", "area", "code", "in", "which", "voter", "voted", "both", "for", "contestant", "'", "tabatha", "gehling", "'", "and", "contestant", "'", "kelly", "clauss", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Kelly Clauss\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 3, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Tabatha Gehling\"", null ] ] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "List", "the", "area", "codes", "in", "which", "voters", "voted", "both", "for", "the", "contestant", "'Tabatha", "Gehling", "'", "and", "the", "contestant", "'Kelly", "Clauss", "'", "." ], "question_arg": [ [ "list" ], [ "area", "code" ], [ "in" ], [ "which" ], [ "voter" ], [ "voted" ], [ "both" ], [ "for" ], [ "contestant" ], [ "'" ], [ "tabatha" ], [ "gehling" ], [ "'" ], [ "and" ], [ "contestant" ], [ "'" ], [ "kelly" ], [ "clauss" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "area", "NN" ], [ "code", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "voter", "NN" ], [ "voted", "VBD" ], [ "both", "DT" ], [ "for", "IN" ], [ "contestant", "NN" ], [ "'", "''" ], [ "tabatha", "NN" ], [ "gehling", "VBG" ], [ "'", "''" ], [ "and", "CC" ], [ "contestant", "VB" ], [ "'", "''" ], [ "kelly", "RB" ], [ "clauss", "VBP" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Kelly Clauss", "Tabatha Gehling" ], "all_values_found": true, "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(2) Filter(2) A(0) C(4) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(2) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "voter_1", "query": "SELECT contestant_name FROM contestants WHERE contestant_name LIKE '%Al%'", "query_toks": [ "SELECT", "contestant_name", "FROM", "contestants", "WHERE", "contestant_name", "LIKE", "``", "%", "Al", "%", "''" ], "query_toks_no_value": [ "select", "contestant_name", "from", "contestants", "where", "contestant_name", "like", "value" ], "question": "Return the names the contestants whose names contain the substring 'Al'.", "question_toks": [ "return", "name", "contestant", "whose", "name", "contain", "substring", "'", "al", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 4, false ], null ], "\"%Al%\"", null ] ] }, "names": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "state", "contestant number", "created" ], "table_names": [ "area code state", "contestants", "votes" ], "col_set": [ "*", "area code", "state", "contestant number", "contestant name", "vote id", "phone number", "created" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "8": 3, "3": 3, "7": 2, "2": 7, "1": 1, "5": 5 }, "origin_question_toks": [ "Return", "the", "names", "the", "contestants", "whose", "names", "contain", "the", "substring", "'Al", "'", "." ], "question_arg": [ [ "return" ], [ "contestant", "name" ], [ "whose" ], [ "name" ], [ "contain" ], [ "substring" ], [ "'" ], [ "al" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "contestant", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contain", "VBP" ], [ "substring", "VBG" ], [ "'", "''" ], [ "al", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "AL", "Al" ], "all_values_found": true, "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(9) A(0) C(4) T(1) V(1)" } ]