[ { "db_id": "department_management", "query": "SELECT count(*) FROM head WHERE age > 56", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "head", "WHERE", "age", ">", "56" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "head", "where", "age", ">", "value" ], "question": "How many heads of the departments are older than 56 ?", "question_toks": [ "how", "many", "head", "of", "department", "are", "older", "than", "56", "?" ], "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, 3, [ 0, [ 0, 10, false ], null ], 56.0, null ] ] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "How", "many", "heads", "of", "the", "departments", "are", "older", "than", "56", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "head" ], [ "of" ], [ "department" ], [ "are" ], [ "older" ], [ "than" ], [ "56" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "head", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "56", "CD" ], [ "?", "." ] ], "values": [ "56" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "department_management", "query": "SELECT name , born_state , age FROM head ORDER BY age", "query_toks": [ "SELECT", "name", ",", "born_state", ",", "age", "FROM", "head", "ORDER", "BY", "age" ], "query_toks_no_value": [ "select", "name", ",", "born_state", ",", "age", "from", "head", "order", "by", "age" ], "question": "List the name, born state and age of the heads of departments ordered by age.", "question_toks": [ "list", "name", ",", "born", "state", "and", "age", "of", "head", "of", "department", "ordered", "by", "age", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "List", "the", "name", ",", "born", "state", "and", "age", "of", "the", "heads", "of", "departments", "ordered", "by", "age", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "," ], [ "born", "state" ], [ "and" ], [ "age" ], [ "of" ], [ "head" ], [ "of" ], [ "department" ], [ "ordered" ], [ "by" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "born", "VBN" ], [ "state", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "head", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "age", "NN" ], [ ".", "." ] ], "values": [ "State" ], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(2) T(1) A(0) C(8) T(1) A(0) C(9) T(1) Order(1) A(0) C(9) T(1)" }, { "db_id": "department_management", "query": "SELECT creation , name , budget_in_billions FROM department", "query_toks": [ "SELECT", "creation", ",", "name", ",", "budget_in_billions", "FROM", "department" ], "query_toks_no_value": [ "select", "creation", ",", "name", ",", "budget_in_billions", "from", "department" ], "question": "List the creation year, name and budget of each department.", "question_toks": [ "list", "creation", "year", ",", "name", "and", "budget", "of", "each", "department", "." ], "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, 2, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "List", "the", "creation", "year", ",", "name", "and", "budget", "of", "each", "department", "." ], "question_arg": [ [ "list" ], [ "creation" ], [ "year" ], [ "," ], [ "name" ], [ "and" ], [ "budget" ], [ "of" ], [ "each" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "creation", "NN" ], [ "year", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "budget", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(3) T(0) A(0) C(2) T(0) A(0) C(5) T(0)" }, { "db_id": "department_management", "query": "SELECT max(budget_in_billions) , min(budget_in_billions) FROM department", "query_toks": [ "SELECT", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "FROM", "department" ], "query_toks_no_value": [ "select", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "from", "department" ], "question": "What are the maximum and minimum budget of the departments?", "question_toks": [ "what", "are", "maximum", "and", "minimum", "budget", "of", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 5, false ], null ] ], [ 2, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "budget", "of", "the", "departments", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "budget" ], [ "of" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "budget", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(5) T(0) A(2) C(5) T(0)" }, { "db_id": "department_management", "query": "SELECT avg(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15", "query_toks": [ "SELECT", "avg", "(", "num_employees", ")", "FROM", "department", "WHERE", "ranking", "BETWEEN", "10", "AND", "15" ], "query_toks_no_value": [ "select", "avg", "(", "num_employees", ")", "from", "department", "where", "ranking", "between", "value", "and", "value" ], "question": "What is the average number of employees of the departments whose rank is between 10 and 15?", "question_toks": [ "what", "is", "average", "number", "of", "employee", "of", "department", "whose", "rank", "is", "between", "10", "and", "15", "?" ], "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": [ [ false, 1, [ 0, [ 0, 4, false ], null ], 10.0, 15.0 ] ] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "employees", "of", "the", "departments", "whose", "rank", "is", "between", "10", "and", "15", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "employee" ], [ "of" ], [ "department" ], [ "whose" ], [ "rank" ], [ "is" ], [ "between" ], [ "10" ], [ "and" ], [ "15" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "whose", "WP$" ], [ "rank", "NN" ], [ "is", "VBZ" ], [ "between", "IN" ], [ "10", "CD" ], [ "and", "CC" ], [ "15", "CD" ], [ "?", "." ] ], "values": [ "10", "15" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(6) T(0) Filter(8) A(0) C(4) T(0) V(0) V(1)" }, { "db_id": "department_management", "query": "SELECT name FROM head WHERE born_state != 'California'", "query_toks": [ "SELECT", "name", "FROM", "head", "WHERE", "born_state", "!", "=", "'California", "'" ], "query_toks_no_value": [ "select", "name", "from", "head", "where", "born_state", "!", "=", "value" ], "question": "What are the names of the heads who are born outside the California state?", "question_toks": [ "what", "are", "name", "of", "head", "who", "are", "born", "outside", "california", "state", "?" ], "sql": { "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, 7, [ 0, [ 0, 9, false ], null ], "\"California\"", null ] ] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "heads", "who", "are", "born", "outside", "the", "California", "state", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "head" ], [ "who" ], [ "are" ], [ "born" ], [ "outside" ], [ "california" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "head", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "born", "VBN" ], [ "outside", "IN" ], [ "california", "NN" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "State", "California" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(3) A(0) C(8) T(1) V(1)" }, { "db_id": "department_management", "query": "SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T3.born_state = 'Alabama'", "query_toks": [ "SELECT", "DISTINCT", "T1.creation", "FROM", "department", "AS", "T1", "JOIN", "management", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "head", "AS", "T3", "ON", "T2.head_id", "=", "T3.head_id", "WHERE", "T3.born_state", "=", "'Alabama", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "creation", "from", "department", "as", "t1", "join", "management", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "head", "as", "t3", "on", "t2", ".", "head_id", "=", "t3", ".", "head_id", "where", "t3", ".", "born_state", "=", "value" ], "question": "What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?", "question_toks": [ "what", "are", "distinct", "creation", "year", "of", "department", "managed", "by", "a", "secretary", "born", "in", "state", "'", "alabama", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "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, 11, 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, 9, false ], null ], "\"Alabama\"", null ] ] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "creation", "years", "of", "the", "departments", "managed", "by", "a", "secretary", "born", "in", "state", "'Alabama", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "creation" ], [ "year" ], [ "of" ], [ "department" ], [ "managed" ], [ "by" ], [ "a" ], [ "secretary" ], [ "born" ], [ "in" ], [ "state" ], [ "'" ], [ "alabama" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "creation", "NN" ], [ "year", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "managed", "VBN" ], [ "by", "IN" ], [ "a", "DT" ], [ "secretary", "NN" ], [ "born", "VBN" ], [ "in", "IN" ], [ "state", "NN" ], [ "'", "''" ], [ "alabama", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "State", "Alabama" ], "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(2) Filter(2) A(0) C(8) T(1) V(1)" }, { "db_id": "department_management", "query": "SELECT born_state FROM head GROUP BY born_state HAVING count(*) >= 3", "query_toks": [ "SELECT", "born_state", "FROM", "head", "GROUP", "BY", "born_state", "HAVING", "count", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "born_state", "from", "head", "group", "by", "born_state", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the names of the states where at least 3 heads were born?", "question_toks": [ "what", "are", "name", "of", "state", "where", "at", "least", "3", "head", "were", "born", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "states", "where", "at", "least", "3", "heads", "were", "born", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "state" ], [ "where" ], [ "at" ], [ "least" ], [ "3" ], [ "head" ], [ "were" ], [ "born" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "state", "NN" ], [ "where", "WRB" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "head", "NN" ], [ "were", "VBD" ], [ "born", "VBN" ], [ "?", "." ] ], "values": [ "State", "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(7) A(3) C(0) T(1) V(1)" }, { "db_id": "department_management", "query": "SELECT creation FROM department GROUP BY creation ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "creation", "FROM", "department", "GROUP", "BY", "creation", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "creation", "from", "department", "group", "by", "creation", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "In which year were most departments established?", "question_toks": [ "in", "which", "year", "were", "most", "department", "established", "?" ], "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": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "In", "which", "year", "were", "most", "departments", "established", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "year" ], [ "were" ], [ "most" ], [ "department" ], [ "established" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "year", "NN" ], [ "were", "VBD" ], [ "most", "RBS" ], [ "department", "NN" ], [ "established", "VBN" ], [ "?", "." ] ], "values": [], "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": "department_management", "query": "SELECT T1.name , T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes'", "query_toks": [ "SELECT", "T1.name", ",", "T1.num_employees", "FROM", "department", "AS", "T1", "JOIN", "management", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "WHERE", "T2.temporary_acting", "=", "'Yes", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "num_employees", "from", "department", "as", "t1", "join", "management", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "where", "t2", ".", "temporary_acting", "=", "value" ], "question": "Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?", "question_toks": [ "show", "name", "and", "number", "of", "employee", "for", "department", "managed", "by", "head", "whose", "temporary", "acting", "value", "is", "'", "yes", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Yes\"", null ] ] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "and", "number", "of", "employees", "for", "the", "departments", "managed", "by", "heads", "whose", "temporary", "acting", "value", "is", "'Yes", "'", "?" ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "employee" ], [ "for" ], [ "department" ], [ "managed" ], [ "by" ], [ "head" ], [ "whose" ], [ "temporary", "acting" ], [ "value" ], [ "is" ], [ "'" ], [ "yes" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "for", "IN" ], [ "department", "NN" ], [ "managed", "VBN" ], [ "by", "IN" ], [ "head", "NN" ], [ "whose", "WP$" ], [ "temporary", "JJ" ], [ "acting", "VBG" ], [ "value", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "yes", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Yes" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(6) T(0) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "department_management", "query": "SELECT count(DISTINCT temporary_acting) FROM management", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "temporary_acting", ")", "FROM", "management" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "temporary_acting", ")", "from", "management" ], "question": "How many acting statuses are there?", "question_toks": [ "how", "many", "acting", "status", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "How", "many", "acting", "statuses", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "acting" ], [ "status" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "acting", "JJ" ], [ "status", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(2)" }, { "db_id": "department_management", "query": "SELECT count(*) FROM department WHERE department_id NOT IN (SELECT department_id FROM management);", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "department", "WHERE", "department_id", "NOT", "IN", "(", "SELECT", "department_id", "FROM", "management", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "department", "where", "department_id", "not", "in", "(", "select", "department_id", "from", "management", ")" ], "question": "How many departments are led by heads who are not mentioned?", "question_toks": [ "how", "many", "department", "are", "led", "by", "head", "who", "are", "not", "mentioned", "?" ], "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", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "How", "many", "departments", "are", "led", "by", "heads", "who", "are", "not", "mentioned", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "department" ], [ "are" ], [ "led" ], [ "by" ], [ "head" ], [ "who" ], [ "are" ], [ "not" ], [ "mentioned" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "department", "NN" ], [ "are", "VBP" ], [ "led", "VBN" ], [ "by", "IN" ], [ "head", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "mentioned", "VBN" ], [ "?", "." ] ], "values": [], "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(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "department_management", "query": "SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id = T2.head_id WHERE T2.temporary_acting = 'Yes'", "query_toks": [ "SELECT", "DISTINCT", "T1.age", "FROM", "management", "AS", "T2", "JOIN", "head", "AS", "T1", "ON", "T1.head_id", "=", "T2.head_id", "WHERE", "T2.temporary_acting", "=", "'Yes", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "age", "from", "management", "as", "t2", "join", "head", "as", "t1", "on", "t1", ".", "head_id", "=", "t2", ".", "head_id", "where", "t2", ".", "temporary_acting", "=", "value" ], "question": "What are the distinct ages of the heads who are acting?", "question_toks": [ "what", "are", "distinct", "age", "of", "head", "who", "are", "acting", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Yes\"", null ] ] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "ages", "of", "the", "heads", "who", "are", "acting", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "age" ], [ "of" ], [ "head" ], [ "who" ], [ "are" ], [ "acting" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "head", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "acting", "VBG" ], [ "?", "." ] ], "values": [ "Yes" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(9) T(1) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "department_management", "query": "SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Homeland Security'", "query_toks": [ "SELECT", "T3.born_state", "FROM", "department", "AS", "T1", "JOIN", "management", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "head", "AS", "T3", "ON", "T2.head_id", "=", "T3.head_id", "WHERE", "T1.name", "=", "'Treasury", "'", "INTERSECT", "SELECT", "T3.born_state", "FROM", "department", "AS", "T1", "JOIN", "management", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "JOIN", "head", "AS", "T3", "ON", "T2.head_id", "=", "T3.head_id", "WHERE", "T1.name", "=", "'Homeland", "Security", "'" ], "query_toks_no_value": [ "select", "t3", ".", "born_state", "from", "department", "as", "t1", "join", "management", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "head", "as", "t3", "on", "t2", ".", "head_id", "=", "t3", ".", "head_id", "where", "t1", ".", "name", "=", "value", "intersect", "select", "t3", ".", "born_state", "from", "department", "as", "t1", "join", "management", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "join", "head", "as", "t3", "on", "t2", ".", "head_id", "=", "t3", ".", "head_id", "where", "t1", ".", "name", "=", "value" ], "question": "List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.", "question_toks": [ "list", "state", "where", "both", "secretary", "of", "'", "treasury", "'", "department", "and", "secretary", "of", "'", "homeland", "security", "'", "were", "born", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, 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, 11, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Homeland Security\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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 ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Treasury\"", null ] ] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "List", "the", "states", "where", "both", "the", "secretary", "of", "'Treasury", "'", "department", "and", "the", "secretary", "of", "'Homeland", "Security", "'", "were", "born", "." ], "question_arg": [ [ "list" ], [ "state" ], [ "where" ], [ "both" ], [ "secretary" ], [ "of" ], [ "'" ], [ "treasury" ], [ "'" ], [ "department" ], [ "and" ], [ "secretary" ], [ "of" ], [ "'" ], [ "homeland" ], [ "security" ], [ "'" ], [ "were" ], [ "born" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "state", "NN" ], [ "where", "WRB" ], [ "both", "DT" ], [ "secretary", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "treasury", "NN" ], [ "'", "POS" ], [ "department", "NN" ], [ "and", "CC" ], [ "secretary", "NN" ], [ "of", "IN" ], [ "'", "POS" ], [ "homeland", "NN" ], [ "security", "NN" ], [ "'", "POS" ], [ "were", "VBD" ], [ "born", "VBN" ], [ ".", "." ] ], "values": [ "Homeland Security", "State", "Treasury" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) 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(2) T(0) V(2) Root(3) Sel(0) N(0) A(0) C(8) 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(2) T(0) V(0)" }, { "db_id": "department_management", "query": "SELECT T1.department_id , T1.name , count(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.department_id", ",", "T1.name", ",", "count", "(", "*", ")", "FROM", "management", "AS", "T2", "JOIN", "department", "AS", "T1", "ON", "T1.department_id", "=", "T2.department_id", "GROUP", "BY", "T1.department_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "department_id", ",", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "management", "as", "t2", "join", "department", "as", "t1", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "group", "by", "t1", ".", "department_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which department has more than 1 head at a time? List the id, name and the number of heads.", "question_toks": [ "which", "department", "ha", "more", "than", "1", "head", "at", "a", "time", "?", "list", "id", ",", "name", "and", "number", "of", "head", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "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, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "Which", "department", "has", "more", "than", "1", "head", "at", "a", "time", "?", "List", "the", "id", ",", "name", "and", "the", "number", "of", "heads", "." ], "question_arg": [ [ "which" ], [ "department" ], [ "ha" ], [ "more" ], [ "than" ], [ "1" ], [ "head" ], [ "at" ], [ "a" ], [ "time" ], [ "?" ], [ "list" ], [ "id" ], [ "," ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "head" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "department", "NN" ], [ "ha", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "head", "NN" ], [ "at", "IN" ], [ "a", "DT" ], [ "time", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "head", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) T(0) A(3) C(0) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "department_management", "query": "SELECT head_id , name FROM head WHERE name LIKE '%Ha%'", "query_toks": [ "SELECT", "head_id", ",", "name", "FROM", "head", "WHERE", "name", "LIKE", "'", "%", "Ha", "%", "'" ], "query_toks_no_value": [ "select", "head_id", ",", "name", "from", "head", "where", "name", "like", "value" ], "question": "Which head's name has the substring 'Ha'? List the id and name.", "question_toks": [ "which", "head", "'s", "name", "ha", "substring", "'", "ha", "'", "?", "list", "id", "and", "name", "." ], "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 ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 8, false ], null ], "\"%Ha%\"", null ] ] }, "names": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "name", "born state", "age", "department id", "head id", "temporary acting" ], "table_names": [ "department", "head", "management" ], "col_set": [ "*", "department id", "name", "creation", "ranking", "budget in billions", "num employees", "head id", "born state", "age", "temporary acting" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "12": 7, "7": 7, "11": 11, "1": 1 }, "origin_question_toks": [ "Which", "head", "'s", "name", "has", "the", "substring", "'Ha", "'", "?", "List", "the", "id", "and", "name", "." ], "question_arg": [ [ "which" ], [ "head" ], [ "'s" ], [ "name" ], [ "ha" ], [ "substring" ], [ "'" ], [ "ha" ], [ "'" ], [ "?" ], [ "list" ], [ "id" ], [ "and" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "head", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ "ha", "VBD" ], [ "substring", "VBG" ], [ "'", "''" ], [ "ha", "NN" ], [ "'", "''" ], [ "?", "." ], [ "list", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Ha" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(1) A(0) C(2) T(1) Filter(9) A(0) C(2) T(1) V(0)" }, { "db_id": "farm", "query": "SELECT count(*) FROM farm", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "farm" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "farm" ], "question": "How many farms are there?", "question_toks": [ "how", "many", "farm", "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": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "How", "many", "farms", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "farm" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "farm", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "farm", "query": "SELECT count(*) FROM farm", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "farm" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "farm" ], "question": "Count the number of farms.", "question_toks": [ "count", "number", "of", "farm", "." ], "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": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Count", "the", "number", "of", "farms", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "farm" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "farm", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "farm", "query": "SELECT Total_Horses FROM farm ORDER BY Total_Horses ASC", "query_toks": [ "SELECT", "Total_Horses", "FROM", "farm", "ORDER", "BY", "Total_Horses", "ASC" ], "query_toks_no_value": [ "select", "total_horses", "from", "farm", "order", "by", "total_horses", "asc" ], "question": "List the total number of horses on farms in ascending order.", "question_toks": [ "list", "total", "number", "of", "horse", "on", "farm", "in", "ascending", "order", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "List", "the", "total", "number", "of", "horses", "on", "farms", "in", "ascending", "order", "." ], "question_arg": [ [ "list" ], [ "total" ], [ "number" ], [ "of" ], [ "horse" ], [ "on" ], [ "farm" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "horse", "NN" ], [ "on", "IN" ], [ "farm", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(9) T(1) Order(1) A(0) C(9) T(1)" }, { "db_id": "farm", "query": "SELECT Total_Horses FROM farm ORDER BY Total_Horses ASC", "query_toks": [ "SELECT", "Total_Horses", "FROM", "farm", "ORDER", "BY", "Total_Horses", "ASC" ], "query_toks_no_value": [ "select", "total_horses", "from", "farm", "order", "by", "total_horses", "asc" ], "question": "What is the total horses record for each farm, sorted ascending?", "question_toks": [ "what", "is", "total", "horse", "record", "for", "each", "farm", ",", "sorted", "ascending", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "is", "the", "total", "horses", "record", "for", "each", "farm", ",", "sorted", "ascending", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total", "horse" ], [ "record" ], [ "for" ], [ "each" ], [ "farm" ], [ "," ], [ "sorted" ], [ "ascending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "horse", "NN" ], [ "record", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "farm", "NN" ], [ ",", "," ], [ "sorted", "VBD" ], [ "ascending", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(9) T(1) Order(1) A(0) C(9) T(1)" }, { "db_id": "farm", "query": "SELECT Hosts FROM farm_competition WHERE Theme != 'Aliens'", "query_toks": [ "SELECT", "Hosts", "FROM", "farm_competition", "WHERE", "Theme", "!", "=", "'Aliens", "'" ], "query_toks_no_value": [ "select", "hosts", "from", "farm_competition", "where", "theme", "!", "=", "value" ], "question": "What are the hosts of competitions whose theme is not \"Aliens\"?", "question_toks": [ "what", "are", "host", "of", "competition", "whose", "theme", "is", "not", "'", "alien", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 19, false ], null ], "\"Aliens\"", null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "hosts", "of", "competitions", "whose", "theme", "is", "not", "``", "Aliens", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "host" ], [ "of" ], [ "competition" ], [ "whose" ], [ "theme" ], [ "is" ], [ "not" ], [ "'" ], [ "alien" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "host", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ "whose", "WP$" ], [ "theme", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "alien", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Aliens" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(2) Filter(3) A(0) C(18) T(2) V(0)" }, { "db_id": "farm", "query": "SELECT Hosts FROM farm_competition WHERE Theme != 'Aliens'", "query_toks": [ "SELECT", "Hosts", "FROM", "farm_competition", "WHERE", "Theme", "!", "=", "'Aliens", "'" ], "query_toks_no_value": [ "select", "hosts", "from", "farm_competition", "where", "theme", "!", "=", "value" ], "question": "Return the hosts of competitions for which the theme is not Aliens?", "question_toks": [ "return", "host", "of", "competition", "for", "which", "theme", "is", "not", "alien", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 19, false ], null ], "\"Aliens\"", null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Return", "the", "hosts", "of", "competitions", "for", "which", "the", "theme", "is", "not", "Aliens", "?" ], "question_arg": [ [ "return" ], [ "host" ], [ "of" ], [ "competition" ], [ "for" ], [ "which" ], [ "theme" ], [ "is" ], [ "not" ], [ "alien" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "host", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ "for", "IN" ], [ "which", "WDT" ], [ "theme", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "alien", "JJ" ], [ "?", "." ] ], "values": [ "Aliens" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(2) Filter(3) A(0) C(18) T(2) V(0)" }, { "db_id": "farm", "query": "SELECT Theme FROM farm_competition ORDER BY YEAR ASC", "query_toks": [ "SELECT", "Theme", "FROM", "farm_competition", "ORDER", "BY", "YEAR", "ASC" ], "query_toks_no_value": [ "select", "theme", "from", "farm_competition", "order", "by", "year", "asc" ], "question": "What are the themes of farm competitions sorted by year in ascending order?", "question_toks": [ "what", "are", "theme", "of", "farm", "competition", "sorted", "by", "year", "in", "ascending", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "themes", "of", "farm", "competitions", "sorted", "by", "year", "in", "ascending", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "theme" ], [ "of" ], [ "farm", "competition" ], [ "sorted" ], [ "by" ], [ "year" ], [ "in" ], [ "ascending" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "theme", "JJ" ], [ "of", "IN" ], [ "farm", "NN" ], [ "competition", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(18) T(2) Order(1) A(0) C(8) T(2)" }, { "db_id": "farm", "query": "SELECT Theme FROM farm_competition ORDER BY YEAR ASC", "query_toks": [ "SELECT", "Theme", "FROM", "farm_competition", "ORDER", "BY", "YEAR", "ASC" ], "query_toks_no_value": [ "select", "theme", "from", "farm_competition", "order", "by", "year", "asc" ], "question": "Return the themes of farm competitions, sorted by year ascending.", "question_toks": [ "return", "theme", "of", "farm", "competition", ",", "sorted", "by", "year", "ascending", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Return", "the", "themes", "of", "farm", "competitions", ",", "sorted", "by", "year", "ascending", "." ], "question_arg": [ [ "return" ], [ "theme" ], [ "of" ], [ "farm", "competition" ], [ "," ], [ "sorted" ], [ "by" ], [ "year" ], [ "ascending" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "theme", "NN" ], [ "of", "IN" ], [ "farm", "NN" ], [ "competition", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "ascending", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(18) T(2) Order(1) A(0) C(8) T(2)" }, { "db_id": "farm", "query": "SELECT avg(Working_Horses) FROM farm WHERE Total_Horses > 5000", "query_toks": [ "SELECT", "avg", "(", "Working_Horses", ")", "FROM", "farm", "WHERE", "Total_Horses", ">", "5000" ], "query_toks_no_value": [ "select", "avg", "(", "working_horses", ")", "from", "farm", "where", "total_horses", ">", "value" ], "question": "What is the average number of working horses of farms with more than 5000 total number of horses?", "question_toks": [ "what", "is", "average", "number", "of", "working", "horse", "of", "farm", "with", "more", "than", "5000", "total", "number", "of", "horse", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 5000.0, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "working", "horses", "of", "farms", "with", "more", "than", "5000", "total", "number", "of", "horses", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "working", "horse" ], [ "of" ], [ "farm" ], [ "with" ], [ "more" ], [ "than" ], [ "5000" ], [ "total" ], [ "number" ], [ "of" ], [ "horse" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "working", "VBG" ], [ "horse", "NN" ], [ "of", "IN" ], [ "farm", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "horse", "NN" ], [ "?", "." ] ], "values": [ "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(10) T(1) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "farm", "query": "SELECT avg(Working_Horses) FROM farm WHERE Total_Horses > 5000", "query_toks": [ "SELECT", "avg", "(", "Working_Horses", ")", "FROM", "farm", "WHERE", "Total_Horses", ">", "5000" ], "query_toks_no_value": [ "select", "avg", "(", "working_horses", ")", "from", "farm", "where", "total_horses", ">", "value" ], "question": "Give the average number of working horses on farms with more than 5000 total horses.", "question_toks": [ "give", "average", "number", "of", "working", "horse", "on", "farm", "with", "more", "than", "5000", "total", "horse", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 5000.0, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Give", "the", "average", "number", "of", "working", "horses", "on", "farms", "with", "more", "than", "5000", "total", "horses", "." ], "question_arg": [ [ "give" ], [ "average" ], [ "number" ], [ "of" ], [ "working", "horse" ], [ "on" ], [ "farm" ], [ "with" ], [ "more" ], [ "than" ], [ "5000" ], [ "total", "horse" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "working", "VBG" ], [ "horse", "NN" ], [ "on", "IN" ], [ "farm", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ "total", "JJ" ], [ "horse", "NN" ], [ ".", "." ] ], "values": [ "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(10) T(1) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "farm", "query": "SELECT max(Cows) , min(Cows) FROM farm", "query_toks": [ "SELECT", "max", "(", "Cows", ")", ",", "min", "(", "Cows", ")", "FROM", "farm" ], "query_toks_no_value": [ "select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm" ], "question": "What are the maximum and minimum number of cows across all farms.", "question_toks": [ "what", "are", "maximum", "and", "minimum", "number", "of", "cow", "across", "all", "farm", "." ], "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": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "number", "of", "cows", "across", "all", "farms", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "number" ], [ "of" ], [ "cow" ], [ "across" ], [ "all" ], [ "farm" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "cow", "JJ" ], [ "across", "IN" ], [ "all", "DT" ], [ "farm", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(14) T(1) A(2) C(14) T(1)" }, { "db_id": "farm", "query": "SELECT max(Cows) , min(Cows) FROM farm", "query_toks": [ "SELECT", "max", "(", "Cows", ")", ",", "min", "(", "Cows", ")", "FROM", "farm" ], "query_toks_no_value": [ "select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm" ], "question": "Return the maximum and minimum number of cows across all farms.", "question_toks": [ "return", "maximum", "and", "minimum", "number", "of", "cow", "across", "all", "farm", "." ], "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": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Return", "the", "maximum", "and", "minimum", "number", "of", "cows", "across", "all", "farms", "." ], "question_arg": [ [ "return" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "number" ], [ "of" ], [ "cow" ], [ "across" ], [ "all" ], [ "farm" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "maximum", "NN" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "cow", "JJ" ], [ "across", "IN" ], [ "all", "DT" ], [ "farm", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(14) T(1) A(2) C(14) T(1)" }, { "db_id": "farm", "query": "SELECT count(DISTINCT Status) FROM city", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Status", ")", "FROM", "city" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "status", ")", "from", "city" ], "question": "How many different statuses do cities have?", "question_toks": [ "how", "many", "different", "status", "do", "city", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 3, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "How", "many", "different", "statuses", "do", "cities", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "status" ], [ "do" ], [ "city" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "status", "NN" ], [ "do", "VBP" ], [ "city", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(3) T(0)" }, { "db_id": "farm", "query": "SELECT count(DISTINCT Status) FROM city", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Status", ")", "FROM", "city" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "status", ")", "from", "city" ], "question": "Count the number of different statuses.", "question_toks": [ "count", "number", "of", "different", "status", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 3, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "statuses", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "status" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "status", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(3) T(0)" }, { "db_id": "farm", "query": "SELECT Official_Name FROM city ORDER BY Population DESC", "query_toks": [ "SELECT", "Official_Name", "FROM", "city", "ORDER", "BY", "Population", "DESC" ], "query_toks_no_value": [ "select", "official_name", "from", "city", "order", "by", "population", "desc" ], "question": "List official names of cities in descending order of population.", "question_toks": [ "list", "official", "name", "of", "city", "in", "descending", "order", "of", "population", "." ], "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": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "List", "official", "names", "of", "cities", "in", "descending", "order", "of", "population", "." ], "question_arg": [ [ "list" ], [ "official", "name" ], [ "of" ], [ "city" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "population" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "official", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "population", "NN" ], [ ".", "." ] ], "values": [], "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": "farm", "query": "SELECT Official_Name FROM city ORDER BY Population DESC", "query_toks": [ "SELECT", "Official_Name", "FROM", "city", "ORDER", "BY", "Population", "DESC" ], "query_toks_no_value": [ "select", "official_name", "from", "city", "order", "by", "population", "desc" ], "question": "What are the official names of cities, ordered descending by population?", "question_toks": [ "what", "are", "official", "name", "of", "city", ",", "ordered", "descending", "by", "population", "?" ], "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": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "official", "names", "of", "cities", ",", "ordered", "descending", "by", "population", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "official", "name" ], [ "of" ], [ "city" ], [ "," ], [ "ordered" ], [ "descending" ], [ "by" ], [ "population" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "official", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ ",", "," ], [ "ordered", "VBD" ], [ "descending", "NN" ], [ "by", "IN" ], [ "population", "NN" ], [ "?", "." ] ], "values": [], "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": "farm", "query": "SELECT Official_Name , Status FROM city ORDER BY Population DESC LIMIT 1", "query_toks": [ "SELECT", "Official_Name", ",", "Status", "FROM", "city", "ORDER", "BY", "Population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "official_name", ",", "status", "from", "city", "order", "by", "population", "desc", "limit", "value" ], "question": "List the official name and status of the city with the largest population.", "question_toks": [ "list", "official", "name", "and", "status", "of", "city", "with", "largest", "population", "." ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "List", "the", "official", "name", "and", "status", "of", "the", "city", "with", "the", "largest", "population", "." ], "question_arg": [ [ "list" ], [ "official", "name" ], [ "and" ], [ "status" ], [ "of" ], [ "city" ], [ "with" ], [ "largest" ], [ "population" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "official", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "status", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "population", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "farm", "query": "SELECT Official_Name , Status FROM city ORDER BY Population DESC LIMIT 1", "query_toks": [ "SELECT", "Official_Name", ",", "Status", "FROM", "city", "ORDER", "BY", "Population", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "official_name", ",", "status", "from", "city", "order", "by", "population", "desc", "limit", "value" ], "question": "What is the official name and status of the city with the most residents?", "question_toks": [ "what", "is", "official", "name", "and", "status", "of", "city", "with", "most", "resident", "?" ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "is", "the", "official", "name", "and", "status", "of", "the", "city", "with", "the", "most", "residents", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "official", "name" ], [ "and" ], [ "status" ], [ "of" ], [ "city" ], [ "with" ], [ "most" ], [ "resident" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "official", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "status", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "resident", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "farm", "query": "SELECT T2.Year , T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID", "query_toks": [ "SELECT", "T2.Year", ",", "T1.Official_Name", "FROM", "city", "AS", "T1", "JOIN", "farm_competition", "AS", "T2", "ON", "T1.City_ID", "=", "T2.Host_city_ID" ], "query_toks_no_value": [ "select", "t2", ".", "year", ",", "t1", ".", "official_name", "from", "city", "as", "t1", "join", "farm_competition", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city_id" ], "question": "Show the years and the official names of the host cities of competitions.", "question_toks": [ "show", "year", "and", "official", "name", "of", "host", "city", "of", "competition", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Show", "the", "years", "and", "the", "official", "names", "of", "the", "host", "cities", "of", "competitions", "." ], "question_arg": [ [ "show" ], [ "year" ], [ "and" ], [ "official", "name" ], [ "of" ], [ "host" ], [ "city" ], [ "of" ], [ "competition" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "year", "NN" ], [ "and", "CC" ], [ "official", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "host", "NN" ], [ "city", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(2) A(0) C(2) T(0)" }, { "db_id": "farm", "query": "SELECT T2.Year , T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID", "query_toks": [ "SELECT", "T2.Year", ",", "T1.Official_Name", "FROM", "city", "AS", "T1", "JOIN", "farm_competition", "AS", "T2", "ON", "T1.City_ID", "=", "T2.Host_city_ID" ], "query_toks_no_value": [ "select", "t2", ".", "year", ",", "t1", ".", "official_name", "from", "city", "as", "t1", "join", "farm_competition", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city_id" ], "question": "Give the years and official names of the cities of each competition.", "question_toks": [ "give", "year", "and", "official", "name", "of", "city", "of", "each", "competition", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Give", "the", "years", "and", "official", "names", "of", "the", "cities", "of", "each", "competition", "." ], "question_arg": [ [ "give" ], [ "year" ], [ "and" ], [ "official", "name" ], [ "of" ], [ "city" ], [ "of" ], [ "each" ], [ "competition" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "year", "NN" ], [ "and", "CC" ], [ "official", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "competition", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(2) A(0) C(2) T(0)" }, { "db_id": "farm", "query": "SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T1.Official_Name", "FROM", "city", "AS", "T1", "JOIN", "farm_competition", "AS", "T2", "ON", "T1.City_ID", "=", "T2.Host_city_ID", "GROUP", "BY", "T2.Host_city_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "official_name", "from", "city", "as", "t1", "join", "farm_competition", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city_id", "group", "by", "t2", ".", "host_city_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show the official names of the cities that have hosted more than one competition.", "question_toks": [ "show", "official", "name", "of", "city", "that", "have", "hosted", "more", "than", "one", "competition", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 20, 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, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Show", "the", "official", "names", "of", "the", "cities", "that", "have", "hosted", "more", "than", "one", "competition", "." ], "question_arg": [ [ "show" ], [ "official", "name" ], [ "of" ], [ "city" ], [ "that" ], [ "have" ], [ "hosted" ], [ "more" ], [ "than" ], [ "one" ], [ "competition" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "official", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "hosted", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "competition", "NN" ], [ ".", "." ] ], "values": [ "1" ], "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(19) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "farm", "query": "SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "T1.Official_Name", "FROM", "city", "AS", "T1", "JOIN", "farm_competition", "AS", "T2", "ON", "T1.City_ID", "=", "T2.Host_city_ID", "GROUP", "BY", "T2.Host_city_ID", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "official_name", "from", "city", "as", "t1", "join", "farm_competition", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city_id", "group", "by", "t2", ".", "host_city_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the official names of cities that have hosted more than one competition?", "question_toks": [ "what", "are", "official", "name", "of", "city", "that", "have", "hosted", "more", "than", "one", "competition", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 20, 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, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "official", "names", "of", "cities", "that", "have", "hosted", "more", "than", "one", "competition", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "official", "name" ], [ "of" ], [ "city" ], [ "that" ], [ "have" ], [ "hosted" ], [ "more" ], [ "than" ], [ "one" ], [ "competition" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "official", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "hosted", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "competition", "NN" ], [ "?", "." ] ], "values": [ "1" ], "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(19) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "farm", "query": "SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Status", "FROM", "city", "AS", "T1", "JOIN", "farm_competition", "AS", "T2", "ON", "T1.City_ID", "=", "T2.Host_city_ID", "GROUP", "BY", "T2.Host_city_ID", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "status", "from", "city", "as", "t1", "join", "farm_competition", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city_id", "group", "by", "t2", ".", "host_city_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the status of the city that has hosted the greatest number of competitions.", "question_toks": [ "show", "status", "of", "city", "that", "ha", "hosted", "greatest", "number", "of", "competition", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Show", "the", "status", "of", "the", "city", "that", "has", "hosted", "the", "greatest", "number", "of", "competitions", "." ], "question_arg": [ [ "show" ], [ "status" ], [ "of" ], [ "city" ], [ "that" ], [ "ha" ], [ "hosted" ], [ "greatest" ], [ "number" ], [ "of" ], [ "competition" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "status", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "ha", "VBD" ], [ "hosted", "VBN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(3) 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(19) T(2)" }, { "db_id": "farm", "query": "SELECT T1.Status FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Status", "FROM", "city", "AS", "T1", "JOIN", "farm_competition", "AS", "T2", "ON", "T1.City_ID", "=", "T2.Host_city_ID", "GROUP", "BY", "T2.Host_city_ID", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "status", "from", "city", "as", "t1", "join", "farm_competition", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city_id", "group", "by", "t2", ".", "host_city_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the status of the city that has hosted the most competitions?", "question_toks": [ "what", "is", "status", "of", "city", "that", "ha", "hosted", "most", "competition", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 20, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "is", "the", "status", "of", "the", "city", "that", "has", "hosted", "the", "most", "competitions", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "status" ], [ "of" ], [ "city" ], [ "that" ], [ "ha" ], [ "hosted" ], [ "most" ], [ "competition" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "status", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "ha", "VBP" ], [ "hosted", "VBN" ], [ "most", "JJS" ], [ "competition", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(3) 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(19) T(2)" }, { "db_id": "farm", "query": "SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population > 1000", "query_toks": [ "SELECT", "T2.Theme", "FROM", "city", "AS", "T1", "JOIN", "farm_competition", "AS", "T2", "ON", "T1.City_ID", "=", "T2.Host_city_ID", "WHERE", "T1.Population", ">", "1000" ], "query_toks_no_value": [ "select", "t2", ".", "theme", "from", "city", "as", "t1", "join", "farm_competition", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city_id", "where", "t1", ".", "population", ">", "value" ], "question": "Please show the themes of competitions with host cities having populations larger than 1000.", "question_toks": [ "please", "show", "theme", "of", "competition", "with", "host", "city", "having", "population", "larger", "than", "1000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 1000.0, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Please", "show", "the", "themes", "of", "competitions", "with", "host", "cities", "having", "populations", "larger", "than", "1000", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "theme" ], [ "of" ], [ "competition" ], [ "with" ], [ "host" ], [ "city" ], [ "having" ], [ "population" ], [ "larger" ], [ "than" ], [ "1000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "JJ" ], [ "theme", "NN" ], [ "of", "IN" ], [ "competition", "NN" ], [ "with", "IN" ], [ "host", "NN" ], [ "city", "NN" ], [ "having", "VBG" ], [ "population", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ ".", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(2) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "farm", "query": "SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population > 1000", "query_toks": [ "SELECT", "T2.Theme", "FROM", "city", "AS", "T1", "JOIN", "farm_competition", "AS", "T2", "ON", "T1.City_ID", "=", "T2.Host_city_ID", "WHERE", "T1.Population", ">", "1000" ], "query_toks_no_value": [ "select", "t2", ".", "theme", "from", "city", "as", "t1", "join", "farm_competition", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "host_city_id", "where", "t1", ".", "population", ">", "value" ], "question": "What are the themes of competitions that have corresponding host cities with more than 1000 residents?", "question_toks": [ "what", "are", "theme", "of", "competition", "that", "have", "corresponding", "host", "city", "with", "more", "than", "1000", "resident", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 1000.0, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "themes", "of", "competitions", "that", "have", "corresponding", "host", "cities", "with", "more", "than", "1000", "residents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "theme" ], [ "of" ], [ "competition" ], [ "that" ], [ "have" ], [ "corresponding" ], [ "host" ], [ "city" ], [ "with" ], [ "more" ], [ "than" ], [ "1000" ], [ "resident" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "theme", "JJ" ], [ "of", "IN" ], [ "competition", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "corresponding", "VBG" ], [ "host", "NN" ], [ "city", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "resident", "NN" ], [ "?", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(2) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "farm", "query": "SELECT Status , avg(Population) FROM city GROUP BY Status", "query_toks": [ "SELECT", "Status", ",", "avg", "(", "Population", ")", "FROM", "city", "GROUP", "BY", "Status" ], "query_toks_no_value": [ "select", "status", ",", "avg", "(", "population", ")", "from", "city", "group", "by", "status" ], "question": "Please show the different statuses of cities and the average population of cities with each status.", "question_toks": [ "please", "show", "different", "status", "of", "city", "and", "average", "population", "of", "city", "with", "each", "status", "." ], "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 ] ], [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Please", "show", "the", "different", "statuses", "of", "cities", "and", "the", "average", "population", "of", "cities", "with", "each", "status", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "different" ], [ "status" ], [ "of" ], [ "city" ], [ "and" ], [ "average" ], [ "population" ], [ "of" ], [ "city" ], [ "with" ], [ "each" ], [ "status" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "VB" ], [ "different", "JJ" ], [ "status", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "population", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "each", "DT" ], [ "status", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(5) C(5) T(0)" }, { "db_id": "farm", "query": "SELECT Status , avg(Population) FROM city GROUP BY Status", "query_toks": [ "SELECT", "Status", ",", "avg", "(", "Population", ")", "FROM", "city", "GROUP", "BY", "Status" ], "query_toks_no_value": [ "select", "status", ",", "avg", "(", "population", ")", "from", "city", "group", "by", "status" ], "question": "What are the statuses and average populations of each city?", "question_toks": [ "what", "are", "status", "and", "average", "population", "of", "each", "city", "?" ], "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 ] ], [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "statuses", "and", "average", "populations", "of", "each", "city", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "status" ], [ "and" ], [ "average" ], [ "population" ], [ "of" ], [ "each" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "status", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "population", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(5) C(5) T(0)" }, { "db_id": "farm", "query": "SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC", "query_toks": [ "SELECT", "Status", "FROM", "city", "GROUP", "BY", "Status", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC" ], "query_toks_no_value": [ "select", "status", "from", "city", "group", "by", "status", "order", "by", "count", "(", "*", ")", "asc" ], "question": "Please show the different statuses, ordered by the number of cities that have each.", "question_toks": [ "please", "show", "different", "status", ",", "ordered", "by", "number", "of", "city", "that", "have", "each", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Please", "show", "the", "different", "statuses", ",", "ordered", "by", "the", "number", "of", "cities", "that", "have", "each", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "different" ], [ "status" ], [ "," ], [ "ordered" ], [ "by" ], [ "number" ], [ "of" ], [ "city" ], [ "that" ], [ "have" ], [ "each" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "VB" ], [ "different", "JJ" ], [ "status", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "each", "DT" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(1) A(3) C(0) T(0)" }, { "db_id": "farm", "query": "SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) ASC", "query_toks": [ "SELECT", "Status", "FROM", "city", "GROUP", "BY", "Status", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC" ], "query_toks_no_value": [ "select", "status", "from", "city", "group", "by", "status", "order", "by", "count", "(", "*", ")", "asc" ], "question": "Return the different statuses of cities, ascending by frequency.", "question_toks": [ "return", "different", "status", "of", "city", ",", "ascending", "by", "frequency", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Return", "the", "different", "statuses", "of", "cities", ",", "ascending", "by", "frequency", "." ], "question_arg": [ [ "return" ], [ "different" ], [ "status" ], [ "of" ], [ "city" ], [ "," ], [ "ascending" ], [ "by" ], [ "frequency" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "different", "JJ" ], [ "status", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ ",", "," ], [ "ascending", "VBG" ], [ "by", "IN" ], [ "frequency", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(1) A(3) C(0) T(0)" }, { "db_id": "farm", "query": "SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Status", "FROM", "city", "GROUP", "BY", "Status", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "status", "from", "city", "group", "by", "status", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the most common type of Status across cities.", "question_toks": [ "list", "most", "common", "type", "of", "status", "across", "city", "." ], "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": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "List", "the", "most", "common", "type", "of", "Status", "across", "cities", "." ], "question_arg": [ [ "list" ], [ "most" ], [ "common" ], [ "type" ], [ "of" ], [ "status" ], [ "across" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "status", "NN" ], [ "across", "IN" ], [ "city", "NN" ], [ ".", "." ] ], "values": [], "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": "farm", "query": "SELECT Status FROM city GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Status", "FROM", "city", "GROUP", "BY", "Status", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "status", "from", "city", "group", "by", "status", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common status across all cities?", "question_toks": [ "what", "is", "most", "common", "status", "across", "all", "city", "?" ], "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": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "status", "across", "all", "cities", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "status" ], [ "across" ], [ "all" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "status", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "city", "NN" ], [ "?", "." ] ], "values": [], "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": "farm", "query": "SELECT Official_Name FROM city WHERE City_ID NOT IN (SELECT Host_city_ID FROM farm_competition)", "query_toks": [ "SELECT", "Official_Name", "FROM", "city", "WHERE", "City_ID", "NOT", "IN", "(", "SELECT", "Host_city_ID", "FROM", "farm_competition", ")" ], "query_toks_no_value": [ "select", "official_name", "from", "city", "where", "city_id", "not", "in", "(", "select", "host_city_id", "from", "farm_competition", ")" ], "question": "List the official names of cities that have not held any competition.", "question_toks": [ "list", "official", "name", "of", "city", "that", "have", "not", "held", "any", "competition", "." ], "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, 20, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "List", "the", "official", "names", "of", "cities", "that", "have", "not", "held", "any", "competition", "." ], "question_arg": [ [ "list" ], [ "official", "name" ], [ "of" ], [ "city" ], [ "that" ], [ "have" ], [ "not" ], [ "held" ], [ "any" ], [ "competition" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "official", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "not", "RB" ], [ "held", "VBN" ], [ "any", "DT" ], [ "competition", "NN" ], [ ".", "." ] ], "values": [], "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(19) T(2)" }, { "db_id": "farm", "query": "SELECT Official_Name FROM city WHERE City_ID NOT IN (SELECT Host_city_ID FROM farm_competition)", "query_toks": [ "SELECT", "Official_Name", "FROM", "city", "WHERE", "City_ID", "NOT", "IN", "(", "SELECT", "Host_city_ID", "FROM", "farm_competition", ")" ], "query_toks_no_value": [ "select", "official_name", "from", "city", "where", "city_id", "not", "in", "(", "select", "host_city_id", "from", "farm_competition", ")" ], "question": "What are the official names of cities that have not hosted a farm competition?", "question_toks": [ "what", "are", "official", "name", "of", "city", "that", "have", "not", "hosted", "a", "farm", "competition", "?" ], "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, 20, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "official", "names", "of", "cities", "that", "have", "not", "hosted", "a", "farm", "competition", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "official", "name" ], [ "of" ], [ "city" ], [ "that" ], [ "have" ], [ "not" ], [ "hosted" ], [ "a" ], [ "farm", "competition" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "official", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "not", "RB" ], [ "hosted", "VBN" ], [ "a", "DT" ], [ "farm", "NN" ], [ "competition", "NN" ], [ "?", "." ] ], "values": [], "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(19) T(2)" }, { "db_id": "farm", "query": "SELECT Status FROM city WHERE Population > 1500 INTERSECT SELECT Status FROM city WHERE Population < 500", "query_toks": [ "SELECT", "Status", "FROM", "city", "WHERE", "Population", ">", "1500", "INTERSECT", "SELECT", "Status", "FROM", "city", "WHERE", "Population", "<", "500" ], "query_toks_no_value": [ "select", "status", "from", "city", "where", "population", ">", "value", "intersect", "select", "status", "from", "city", "where", "population", "<", "value" ], "question": "Show the status shared by cities with population bigger than 1500 and smaller than 500.", "question_toks": [ "show", "status", "shared", "by", "city", "with", "population", "bigger", "than", "1500", "and", "smaller", "than", "500", "." ], "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 500.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 1500.0, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Show", "the", "status", "shared", "by", "cities", "with", "population", "bigger", "than", "1500", "and", "smaller", "than", "500", "." ], "question_arg": [ [ "show" ], [ "status" ], [ "shared" ], [ "by" ], [ "city" ], [ "with" ], [ "population" ], [ "bigger" ], [ "than" ], [ "1500" ], [ "and" ], [ "smaller" ], [ "than" ], [ "500" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "status", "NN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "population", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "1500", "CD" ], [ "and", "CC" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "500", "CD" ], [ ".", "." ] ], "values": [ "1500", "500" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(0) C(5) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(4) A(0) C(5) T(0) V(1)" }, { "db_id": "farm", "query": "SELECT Status FROM city WHERE Population > 1500 INTERSECT SELECT Status FROM city WHERE Population < 500", "query_toks": [ "SELECT", "Status", "FROM", "city", "WHERE", "Population", ">", "1500", "INTERSECT", "SELECT", "Status", "FROM", "city", "WHERE", "Population", "<", "500" ], "query_toks_no_value": [ "select", "status", "from", "city", "where", "population", ">", "value", "intersect", "select", "status", "from", "city", "where", "population", "<", "value" ], "question": "Which statuses correspond to both cities that have a population over 1500 and cities that have a population lower than 500?", "question_toks": [ "which", "status", "correspond", "to", "both", "city", "that", "have", "a", "population", "over", "1500", "and", "city", "that", "have", "a", "population", "lower", "than", "500", "?" ], "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 500.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 1500.0, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Which", "statuses", "correspond", "to", "both", "cities", "that", "have", "a", "population", "over", "1500", "and", "cities", "that", "have", "a", "population", "lower", "than", "500", "?" ], "question_arg": [ [ "which" ], [ "status" ], [ "correspond" ], [ "to" ], [ "both" ], [ "city" ], [ "that" ], [ "have" ], [ "a" ], [ "population" ], [ "over" ], [ "1500" ], [ "and" ], [ "city" ], [ "that" ], [ "have" ], [ "a" ], [ "population" ], [ "lower" ], [ "than" ], [ "500" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "status", "NN" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "both", "DT" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "population", "NN" ], [ "over", "IN" ], [ "1500", "CD" ], [ "and", "CC" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "population", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "500", "CD" ], [ "?", "." ] ], "values": [ "500", "1500" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(0) C(5) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "farm", "query": "SELECT Official_Name FROM city WHERE Population > 1500 OR Population < 500", "query_toks": [ "SELECT", "Official_Name", "FROM", "city", "WHERE", "Population", ">", "1500", "OR", "Population", "<", "500" ], "query_toks_no_value": [ "select", "official_name", "from", "city", "where", "population", ">", "value", "or", "population", "<", "value" ], "question": "Find the official names of cities with population bigger than 1500 or smaller than 500.", "question_toks": [ "find", "official", "name", "of", "city", "with", "population", "bigger", "than", "1500", "or", "smaller", "than", "500", "." ], "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, 5, false ], null ], 1500.0, null ], "or", [ false, 4, [ 0, [ 0, 5, false ], null ], 500.0, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Find", "the", "official", "names", "of", "cities", "with", "population", "bigger", "than", "1500", "or", "smaller", "than", "500", "." ], "question_arg": [ [ "find" ], [ "official", "name" ], [ "of" ], [ "city" ], [ "with" ], [ "population" ], [ "bigger" ], [ "than" ], [ "1500" ], [ "or" ], [ "smaller" ], [ "than" ], [ "500" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "official", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "with", "IN" ], [ "population", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "1500", "CD" ], [ "or", "CC" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "500", "CD" ], [ ".", "." ] ], "values": [ "500", "1500" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(5) A(0) C(5) T(0) V(1) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "farm", "query": "SELECT Official_Name FROM city WHERE Population > 1500 OR Population < 500", "query_toks": [ "SELECT", "Official_Name", "FROM", "city", "WHERE", "Population", ">", "1500", "OR", "Population", "<", "500" ], "query_toks_no_value": [ "select", "official_name", "from", "city", "where", "population", ">", "value", "or", "population", "<", "value" ], "question": "What are the official names of cities that have population over 1500 or less than 500?", "question_toks": [ "what", "are", "official", "name", "of", "city", "that", "have", "population", "over", "1500", "or", "le", "than", "500", "?" ], "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, 5, false ], null ], 1500.0, null ], "or", [ false, 4, [ 0, [ 0, 5, false ], null ], 500.0, null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "official", "names", "of", "cities", "that", "have", "population", "over", "1500", "or", "less", "than", "500", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "official", "name" ], [ "of" ], [ "city" ], [ "that" ], [ "have" ], [ "population" ], [ "over" ], [ "1500" ], [ "or" ], [ "le" ], [ "than" ], [ "500" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "official", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "population", "NN" ], [ "over", "IN" ], [ "1500", "CD" ], [ "or", "CC" ], [ "le", "JJR" ], [ "than", "IN" ], [ "500", "CD" ], [ "?", "." ] ], "values": [ "1500", "500" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(5) A(0) C(5) T(0) V(0) Filter(4) A(0) C(5) T(0) V(1)" }, { "db_id": "farm", "query": "SELECT Census_Ranking FROM city WHERE Status != \"Village\"", "query_toks": [ "SELECT", "Census_Ranking", "FROM", "city", "WHERE", "Status", "!", "=", "``", "Village", "''" ], "query_toks_no_value": [ "select", "census_ranking", "from", "city", "where", "status", "!", "=", "value" ], "question": "Show the census ranking of cities whose status are not \"Village\".", "question_toks": [ "show", "census", "ranking", "of", "city", "whose", "status", "are", "not", "'", "village", "'", "." ], "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, 7, [ 0, [ 0, 3, false ], null ], "\"Village\"", null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "Show", "the", "census", "ranking", "of", "cities", "whose", "status", "are", "not", "``", "Village", "''", "." ], "question_arg": [ [ "show" ], [ "census", "ranking" ], [ "of" ], [ "city" ], [ "whose" ], [ "status" ], [ "are" ], [ "not" ], [ "'" ], [ "village" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "census", "NN" ], [ "ranking", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "whose", "WP$" ], [ "status", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "'", "POS" ], [ "village", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Village" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(3) A(0) C(3) T(0) V(0)" }, { "db_id": "farm", "query": "SELECT Census_Ranking FROM city WHERE Status != \"Village\"", "query_toks": [ "SELECT", "Census_Ranking", "FROM", "city", "WHERE", "Status", "!", "=", "``", "Village", "''" ], "query_toks_no_value": [ "select", "census_ranking", "from", "city", "where", "status", "!", "=", "value" ], "question": "What are the census rankings of cities that do not have the status \"Village\"?", "question_toks": [ "what", "are", "census", "ranking", "of", "city", "that", "do", "not", "have", "status", "'", "village", "'", "?" ], "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, 7, [ 0, [ 0, 3, false ], null ], "\"Village\"", null ] ] }, "names": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "year", "theme", "host city id", "hosts", "competition id", "farm id", "rank" ], "table_names": [ "city", "farm", "farm competition", "competition record" ], "col_set": [ "*", "city id", "official name", "status", "area km 2", "population", "census ranking", "farm id", "year", "total horses", "working horses", "total cattle", "oxen", "bulls", "cows", "pigs", "sheep and goats", "competition id", "theme", "host city id", "hosts", "rank" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "20": 1, "1": 1, "23": 7, "7": 7, "22": 22, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "census", "rankings", "of", "cities", "that", "do", "not", "have", "the", "status", "``", "Village", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "census", "ranking" ], [ "of" ], [ "city" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "status" ], [ "'" ], [ "village" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "census", "JJ" ], [ "ranking", "NN" ], [ "of", "IN" ], [ "city", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "status", "NN" ], [ "'", "''" ], [ "village", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Village" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(3) A(0) C(3) T(0) V(0)" }, { "db_id": "student_assessment", "query": "SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.course_name", "FROM", "courses", "AS", "T1", "JOIN", "student_course_registrations", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_Id", "GROUP", "BY", "T1.course_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "which course has most number of registered students?", "question_toks": [ "which", "course", "ha", "most", "number", "of", "registered", "student", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "which", "course", "has", "most", "number", "of", "registered", "students", "?" ], "question_arg": [ [ "which" ], [ "course" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "registered" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "course", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "registered", "JJ" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(19) T(3) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(18) T(3) Root(5) Sel(0) N(0) A(0) C(18) T(5)" }, { "db_id": "student_assessment", "query": "SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.course_name", "FROM", "courses", "AS", "T1", "JOIN", "student_course_registrations", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_Id", "GROUP", "BY", "T1.course_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "course_name", "from", "courses", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t1", ".", "course_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the course with the most registered students?", "question_toks": [ "what", "is", "name", "of", "course", "with", "most", "registered", "student", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "course", "with", "the", "most", "registered", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "course" ], [ "with" ], [ "most" ], [ "registered" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "registered", "JJ" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(19) T(3) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(18) T(3) Root(5) Sel(0) N(0) A(0) C(18) T(5)" }, { "db_id": "student_assessment", "query": "SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "student_id", "FROM", "student_course_registrations", "GROUP", "BY", "student_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "student_id", "from", "student_course_registrations", "group", "by", "student_id", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "what is id of students who registered some courses but the least number of courses in these students?", "question_toks": [ "what", "is", "id", "of", "student", "who", "registered", "some", "course", "but", "least", "number", "of", "course", "in", "these", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 27, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "what", "is", "id", "of", "students", "who", "registered", "some", "courses", "but", "the", "least", "number", "of", "courses", "in", "these", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "some" ], [ "course" ], [ "but" ], [ "least" ], [ "number" ], [ "of" ], [ "course" ], [ "in" ], [ "these" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "some", "DT" ], [ "course", "NN" ], [ "but", "CC" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "in", "IN" ], [ "these", "DT" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(16) T(5) Sup(1) A(3) C(0) T(5)" }, { "db_id": "student_assessment", "query": "SELECT student_id FROM student_course_registrations GROUP BY student_id ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "student_id", "FROM", "student_course_registrations", "GROUP", "BY", "student_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "student_id", "from", "student_course_registrations", "group", "by", "student_id", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "What are the ids of the students who registered for some courses but had the least number of courses for all students?", "question_toks": [ "what", "are", "id", "of", "student", "who", "registered", "for", "some", "course", "but", "had", "least", "number", "of", "course", "for", "all", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 27, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "students", "who", "registered", "for", "some", "courses", "but", "had", "the", "least", "number", "of", "courses", "for", "all", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "for" ], [ "some" ], [ "course" ], [ "but" ], [ "had" ], [ "least" ], [ "number" ], [ "of" ], [ "course" ], [ "for" ], [ "all" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "for", "IN" ], [ "some", "DT" ], [ "course", "NN" ], [ "but", "CC" ], [ "had", "VBD" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(16) T(5) Sup(1) A(3) C(0) T(5)" }, { "db_id": "student_assessment", "query": "SELECT T2.first_name , T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "candidates", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.candidate_id", "=", "T2.person_id" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "candidates", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "candidate_id", "=", "t2", ".", "person_id" ], "question": "what are the first name and last name of all candidates?", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "all", "candidate", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 33, 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", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "what", "are", "the", "first", "name", "and", "last", "name", "of", "all", "candidates", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "candidate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "candidate", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(11) T(1) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(27) T(7)" }, { "db_id": "student_assessment", "query": "SELECT T2.first_name , T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "candidates", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.candidate_id", "=", "T2.person_id" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "candidates", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "candidate_id", "=", "t2", ".", "person_id" ], "question": "What are the first and last names of all the candidates?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "all", "candidate", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 33, 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", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "all", "the", "candidates", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "candidate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "candidate", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(11) T(1) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(27) T(7)" }, { "db_id": "student_assessment", "query": "SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "query_toks": [ "SELECT", "student_id", "FROM", "students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "student_course_attendance", ")" ], "query_toks_no_value": [ "select", "student_id", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_attendance", ")" ], "question": "List the id of students who never attends courses?", "question_toks": [ "list", "id", "of", "student", "who", "never", "attends", "course", "?" ], "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": [ [ true, 8, [ 0, [ 0, 16, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "List", "the", "id", "of", "students", "who", "never", "attends", "courses", "?" ], "question_arg": [ [ "list" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "never" ], [ "attends" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "never", "RB" ], [ "attends", "VBZ" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(19) A(0) C(16) T(2) Root(5) Sel(0) N(0) A(0) C(16) T(6)" }, { "db_id": "student_assessment", "query": "SELECT student_id FROM students WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "query_toks": [ "SELECT", "student_id", "FROM", "students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "student_course_attendance", ")" ], "query_toks_no_value": [ "select", "student_id", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_attendance", ")" ], "question": "What are the ids of every student who has never attended a course?", "question_toks": [ "what", "are", "id", "of", "every", "student", "who", "ha", "never", "attended", "a", "course", "?" ], "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": [ [ true, 8, [ 0, [ 0, 16, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "every", "student", "who", "has", "never", "attended", "a", "course", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "every" ], [ "student" ], [ "who" ], [ "ha" ], [ "never" ], [ "attended" ], [ "a" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "every", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "never", "RB" ], [ "attended", "VBD" ], [ "a", "DT" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(19) A(0) C(16) T(2) Root(5) Sel(0) N(0) A(0) C(16) T(6)" }, { "db_id": "student_assessment", "query": "SELECT student_id FROM student_course_attendance", "query_toks": [ "SELECT", "student_id", "FROM", "student_course_attendance" ], "query_toks_no_value": [ "select", "student_id", "from", "student_course_attendance" ], "question": "List the id of students who attended some courses?", "question_toks": [ "list", "id", "of", "student", "who", "attended", "some", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "List", "the", "id", "of", "students", "who", "attended", "some", "courses", "?" ], "question_arg": [ [ "list" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "attended" ], [ "some" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "attended", "VBD" ], [ "some", "DT" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(16) T(6)" }, { "db_id": "student_assessment", "query": "SELECT student_id FROM student_course_attendance", "query_toks": [ "SELECT", "student_id", "FROM", "student_course_attendance" ], "query_toks_no_value": [ "select", "student_id", "from", "student_course_attendance" ], "question": "What are the ids of all students who have attended at least one course?", "question_toks": [ "what", "are", "id", "of", "all", "student", "who", "have", "attended", "at", "least", "one", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "students", "who", "have", "attended", "at", "least", "one", "course", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "student" ], [ "who" ], [ "have" ], [ "attended" ], [ "at" ], [ "least" ], [ "one" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "attended", "VBN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(16) T(6)" }, { "db_id": "student_assessment", "query": "SELECT T1.student_id , T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id", "query_toks": [ "SELECT", "T1.student_id", ",", "T2.course_name", "FROM", "student_course_registrations", "AS", "T1", "JOIN", "courses", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "t2", ".", "course_name", "from", "student_course_registrations", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id" ], "question": "What are the ids of all students for courses and what are the names of those courses?", "question_toks": [ "what", "are", "id", "of", "all", "student", "for", "course", "and", "what", "are", "name", "of", "those", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "students", "for", "courses", "and", "what", "are", "the", "names", "of", "those", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "student" ], [ "for" ], [ "course" ], [ "and" ], [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "those" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "for", "IN" ], [ "course", "NN" ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "those", "DT" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(5) A(0) C(19) T(3)" }, { "db_id": "student_assessment", "query": "SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1", "query_toks": [ "SELECT", "T2.student_details", "FROM", "student_course_registrations", "AS", "T1", "JOIN", "students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "ORDER", "BY", "T1.registration_date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "student_details", "from", "student_course_registrations", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "order", "by", "t1", ".", "registration_date", "desc", "limit", "value" ], "question": "What is detail of the student who most recently registered course?", "question_toks": [ "what", "is", "detail", "of", "student", "who", "most", "recently", "registered", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 29, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "is", "detail", "of", "the", "student", "who", "most", "recently", "registered", "course", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "detail" ], [ "of" ], [ "student" ], [ "who" ], [ "most" ], [ "recently" ], [ "registered" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "detail", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "registered", "VBD" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(17) T(2) Sup(0) A(0) C(25) T(5)" }, { "db_id": "student_assessment", "query": "SELECT T2.student_details FROM student_course_registrations AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.registration_date DESC LIMIT 1", "query_toks": [ "SELECT", "T2.student_details", "FROM", "student_course_registrations", "AS", "T1", "JOIN", "students", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "ORDER", "BY", "T1.registration_date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "student_details", "from", "student_course_registrations", "as", "t1", "join", "students", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "order", "by", "t1", ".", "registration_date", "desc", "limit", "value" ], "question": "What details do we have on the students who registered for courses most recently?", "question_toks": [ "what", "detail", "do", "we", "have", "on", "student", "who", "registered", "for", "course", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 29, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "details", "do", "we", "have", "on", "the", "students", "who", "registered", "for", "courses", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "detail" ], [ "do" ], [ "we" ], [ "have" ], [ "on" ], [ "student" ], [ "who" ], [ "registered" ], [ "for" ], [ "course" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "detail", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "on", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "for", "IN" ], [ "course", "NN" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(17) T(2) Sup(0) A(0) C(25) T(5)" }, { "db_id": "student_assessment", "query": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"English\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "courses", "AS", "T1", "JOIN", "student_course_attendance", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T1.course_name", "=", "``", "English", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "student_course_attendance", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t1", ".", "course_name", "=", "value" ], "question": "How many students attend course English?", "question_toks": [ "how", "many", "student", "attend", "course", "english", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "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 ], "\"English\"", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "How", "many", "students", "attend", "course", "English", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "attend" ], [ "course" ], [ "english" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "attend", "VBP" ], [ "course", "NN" ], [ "english", "NN" ], [ "?", "." ] ], "values": [ "English" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(2) A(0) C(19) T(3) V(0)" }, { "db_id": "student_assessment", "query": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"English\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "courses", "AS", "T1", "JOIN", "student_course_attendance", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T1.course_name", "=", "``", "English", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "student_course_attendance", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t1", ".", "course_name", "=", "value" ], "question": "How many students are attending English courses?", "question_toks": [ "how", "many", "student", "are", "attending", "english", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "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 ], "\"English\"", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "How", "many", "students", "are", "attending", "English", "courses", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "attending" ], [ "english" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "attending", "VBG" ], [ "english", "JJ" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "English" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(2) A(0) C(19) T(3) V(0)" }, { "db_id": "student_assessment", "query": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "courses", "AS", "T1", "JOIN", "student_course_attendance", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.student_id", "=", "171" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "student_course_attendance", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "student_id", "=", "value" ], "question": "How many courses do the student whose id is 171 attend?", "question_toks": [ "how", "many", "course", "do", "student", "whose", "id", "is", "171", "attend", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 30, false ], null ], 171.0, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "How", "many", "courses", "do", "the", "student", "whose", "id", "is", "171", "attend", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "course" ], [ "do" ], [ "student" ], [ "whose" ], [ "id" ], [ "is" ], [ "171" ], [ "attend" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "course", "NN" ], [ "do", "VBP" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "id", "NN" ], [ "is", "VBZ" ], [ "171", "CD" ], [ "attend", "NN" ], [ "?", "." ] ], "values": [ "171" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(16) T(6) V(0)" }, { "db_id": "student_assessment", "query": "SELECT count(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T2.student_id = 171", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "courses", "AS", "T1", "JOIN", "student_course_attendance", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.student_id", "=", "171" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "student_course_attendance", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "student_id", "=", "value" ], "question": "How many courses does the student with id 171 actually attend?", "question_toks": [ "how", "many", "course", "doe", "student", "with", "id", "171", "actually", "attend", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 30, false ], null ], 171.0, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "How", "many", "courses", "does", "the", "student", "with", "id", "171", "actually", "attend", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "course" ], [ "doe" ], [ "student" ], [ "with" ], [ "id" ], [ "171" ], [ "actually" ], [ "attend" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "course", "NN" ], [ "doe", "JJ" ], [ "student", "NN" ], [ "with", "IN" ], [ "id", "JJ" ], [ "171", "CD" ], [ "actually", "RB" ], [ "attend", "VB" ], [ "?", "." ] ], "values": [ "171" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(16) T(6) V(0)" }, { "db_id": "student_assessment", "query": "SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = \"stanley.monahan@example.org\"", "query_toks": [ "SELECT", "T2.candidate_id", "FROM", "people", "AS", "T1", "JOIN", "candidates", "AS", "T2", "ON", "T1.person_id", "=", "T2.candidate_id", "WHERE", "T1.email_address", "=", "``", "stanley.monahan", "@", "example.org", "''" ], "query_toks_no_value": [ "select", "t2", ".", "candidate_id", "from", "people", "as", "t1", "join", "candidates", "as", "t2", "on", "t1", ".", "person_id", "=", "t2", ".", "candidate_id", "where", "t1", ".", "email_address", "=", "value" ], "question": "Find id of the candidate whose email is stanley.monahan@example.org?", "question_toks": [ "find", "id", "of", "candidate", "whose", "email", "is", "stanley.monahan", "@", "example.org", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 33, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"stanley.monahan@example.org\"", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "Find", "id", "of", "the", "candidate", "whose", "email", "is", "stanley.monahan", "@", "example.org", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "candidate" ], [ "whose" ], [ "email" ], [ "is" ], [ "stanley.monahan" ], [ "@" ], [ "example.org" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "whose", "WP$" ], [ "email", "NN" ], [ "is", "VBZ" ], [ "stanley.monahan", "JJ" ], [ "@", "NNP" ], [ "example.org", "NN" ], [ "?", "." ] ], "values": [ "stanley.monahan@example.org" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(27) T(7) Filter(2) A(0) C(13) T(1) V(0)" }, { "db_id": "student_assessment", "query": "SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = \"stanley.monahan@example.org\"", "query_toks": [ "SELECT", "T2.candidate_id", "FROM", "people", "AS", "T1", "JOIN", "candidates", "AS", "T2", "ON", "T1.person_id", "=", "T2.candidate_id", "WHERE", "T1.email_address", "=", "``", "stanley.monahan", "@", "example.org", "''" ], "query_toks_no_value": [ "select", "t2", ".", "candidate_id", "from", "people", "as", "t1", "join", "candidates", "as", "t2", "on", "t1", ".", "person_id", "=", "t2", ".", "candidate_id", "where", "t1", ".", "email_address", "=", "value" ], "question": "What is the id of the candidate whose email is stanley.monahan@example.org?", "question_toks": [ "what", "is", "id", "of", "candidate", "whose", "email", "is", "stanley.monahan", "@", "example.org", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 33, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"stanley.monahan@example.org\"", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "candidate", "whose", "email", "is", "stanley.monahan", "@", "example.org", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "candidate" ], [ "whose" ], [ "email" ], [ "is" ], [ "stanley.monahan" ], [ "@" ], [ "example.org" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "whose", "WP$" ], [ "email", "NN" ], [ "is", "VBZ" ], [ "stanley.monahan", "JJ" ], [ "@", "NNP" ], [ "example.org", "NN" ], [ "?", "." ] ], "values": [ "stanley.monahan@example.org" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(27) T(7) Filter(2) A(0) C(13) T(1) V(0)" }, { "db_id": "student_assessment", "query": "SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1", "query_toks": [ "SELECT", "candidate_id", "FROM", "candidate_assessments", "ORDER", "BY", "assessment_date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "candidate_id", "from", "candidate_assessments", "order", "by", "assessment_date", "desc", "limit", "value" ], "question": "Find id of the candidate who most recently accessed the course?", "question_toks": [ "find", "id", "of", "candidate", "who", "most", "recently", "accessed", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 37, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "Find", "id", "of", "the", "candidate", "who", "most", "recently", "accessed", "the", "course", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "candidate" ], [ "who" ], [ "most" ], [ "recently" ], [ "accessed" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "who", "WP" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "accessed", "VBD" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(27) T(8) Sup(0) A(0) C(30) T(8)" }, { "db_id": "student_assessment", "query": "SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1", "query_toks": [ "SELECT", "candidate_id", "FROM", "candidate_assessments", "ORDER", "BY", "assessment_date", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "candidate_id", "from", "candidate_assessments", "order", "by", "assessment_date", "desc", "limit", "value" ], "question": "What is the id of the candidate who most recently accessed the course?", "question_toks": [ "what", "is", "id", "of", "candidate", "who", "most", "recently", "accessed", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 37, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "candidate", "who", "most", "recently", "accessed", "the", "course", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "candidate" ], [ "who" ], [ "most" ], [ "recently" ], [ "accessed" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "who", "WP" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "accessed", "VBD" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(27) T(8) Sup(0) A(0) C(30) T(8)" }, { "db_id": "student_assessment", "query": "SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations 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_details", "FROM", "students", "AS", "T1", "JOIN", "student_course_registrations", "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_details", "from", "students", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is detail of the student who registered the most number of courses?", "question_toks": [ "what", "is", "detail", "of", "student", "who", "registered", "most", "number", "of", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 16, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "is", "detail", "of", "the", "student", "who", "registered", "the", "most", "number", "of", "courses", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "detail" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "most" ], [ "number" ], [ "of" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "detail", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(17) T(2) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(16) T(2) Root(5) Sel(0) N(0) A(0) C(16) T(5)" }, { "db_id": "student_assessment", "query": "SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations 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_details", "FROM", "students", "AS", "T1", "JOIN", "student_course_registrations", "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_details", "from", "students", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the details of the student who registered for the most number of courses?", "question_toks": [ "what", "are", "detail", "of", "student", "who", "registered", "for", "most", "number", "of", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 16, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "details", "of", "the", "student", "who", "registered", "for", "the", "most", "number", "of", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "detail" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "for" ], [ "most" ], [ "number" ], [ "of" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "detail", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "for", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(17) T(2) Sup(0) A(3) C(0) T(5) Filter(18) A(0) C(16) T(2) Root(5) Sel(0) N(0) A(0) C(16) T(5)" }, { "db_id": "student_assessment", "query": "SELECT T1.student_id , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id", "query_toks": [ "SELECT", "T1.student_id", ",", "count", "(", "*", ")", "FROM", "students", "AS", "T1", "JOIN", "student_course_registrations", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "count", "(", "*", ")", "from", "students", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id" ], "question": "List the id of students who registered some courses and the number of their registered courses?", "question_toks": [ "list", "id", "of", "student", "who", "registered", "some", "course", "and", "number", "of", "their", "registered", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "List", "the", "id", "of", "students", "who", "registered", "some", "courses", "and", "the", "number", "of", "their", "registered", "courses", "?" ], "question_arg": [ [ "list" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "some" ], [ "course" ], [ "and" ], [ "number" ], [ "of" ], [ "their" ], [ "registered" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "some", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "registered", "JJ" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(2) A(3) C(0) T(5)" }, { "db_id": "student_assessment", "query": "SELECT T1.student_id , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id", "query_toks": [ "SELECT", "T1.student_id", ",", "count", "(", "*", ")", "FROM", "students", "AS", "T1", "JOIN", "student_course_registrations", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "GROUP", "BY", "T1.student_id" ], "query_toks_no_value": [ "select", "t1", ".", "student_id", ",", "count", "(", "*", ")", "from", "students", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "group", "by", "t1", ".", "student_id" ], "question": "For every student who is registered for some course, how many courses are they registered for?", "question_toks": [ "for", "every", "student", "who", "is", "registered", "for", "some", "course", ",", "how", "many", "course", "are", "they", "registered", "for", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "For", "every", "student", "who", "is", "registered", "for", "some", "course", ",", "how", "many", "courses", "are", "they", "registered", "for", "?" ], "question_arg": [ [ "for" ], [ "every" ], [ "student" ], [ "who" ], [ "is" ], [ "registered" ], [ "for" ], [ "some" ], [ "course" ], [ "," ], [ "how" ], [ "many" ], [ "course" ], [ "are" ], [ "they" ], [ "registered" ], [ "for" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "every", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "registered", "VBN" ], [ "for", "IN" ], [ "some", "DT" ], [ "course", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "course", "NN" ], [ "are", "VBP" ], [ "they", "PRP" ], [ "registered", "VBD" ], [ "for", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(2) A(3) C(0) T(5)" }, { "db_id": "student_assessment", "query": "SELECT T3.course_name , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id", "query_toks": [ "SELECT", "T3.course_name", ",", "count", "(", "*", ")", "FROM", "students", "AS", "T1", "JOIN", "student_course_registrations", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "JOIN", "courses", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "GROUP", "BY", "T2.course_id" ], "query_toks_no_value": [ "select", "t3", ".", "course_name", ",", "count", "(", "*", ")", "from", "students", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "join", "courses", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "group", "by", "t2", ".", "course_id" ], "question": "How many registed students do each course have? List course name and the number of their registered students?", "question_toks": [ "how", "many", "registed", "student", "do", "each", "course", "have", "?", "list", "course", "name", "and", "number", "of", "their", "registered", "student", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 28, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 16, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "How", "many", "registed", "students", "do", "each", "course", "have", "?", "List", "course", "name", "and", "the", "number", "of", "their", "registered", "students", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "registed" ], [ "student" ], [ "do" ], [ "each" ], [ "course" ], [ "have" ], [ "?" ], [ "list" ], [ "course", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "their" ], [ "registered" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "registed", "VBD" ], [ "student", "NN" ], [ "do", "VB" ], [ "each", "DT" ], [ "course", "NN" ], [ "have", "VBP" ], [ "?", "." ], [ "list", "JJ" ], [ "course", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "registered", "JJ" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(3) A(3) C(0) T(5) Filter(18) A(0) C(16) T(2) Root(5) Sel(0) N(0) A(0) C(16) T(5)" }, { "db_id": "student_assessment", "query": "SELECT T3.course_name , count(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id", "query_toks": [ "SELECT", "T3.course_name", ",", "count", "(", "*", ")", "FROM", "students", "AS", "T1", "JOIN", "student_course_registrations", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "JOIN", "courses", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "GROUP", "BY", "T2.course_id" ], "query_toks_no_value": [ "select", "t3", ".", "course_name", ",", "count", "(", "*", ")", "from", "students", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "join", "courses", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "group", "by", "t2", ".", "course_id" ], "question": "For each course id, how many students are registered and what are the course names?", "question_toks": [ "for", "each", "course", "id", ",", "how", "many", "student", "are", "registered", "and", "what", "are", "course", "name", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 28, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 16, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "For", "each", "course", "id", ",", "how", "many", "students", "are", "registered", "and", "what", "are", "the", "course", "names", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "course", "id" ], [ "," ], [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "registered" ], [ "and" ], [ "what" ], [ "are" ], [ "course", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "course", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "registered", "VBN" ], [ "and", "CC" ], [ "what", "WP" ], [ "are", "VBP" ], [ "course", "NN" ], [ "name", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(19) T(3) A(3) C(0) T(5) Filter(18) A(0) C(16) T(2) Root(5) Sel(0) N(0) A(0) C(16) T(5)" }, { "db_id": "student_assessment", "query": "SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = \"Pass\"", "query_toks": [ "SELECT", "candidate_id", "FROM", "candidate_assessments", "WHERE", "asessment_outcome_code", "=", "``", "Pass", "''" ], "query_toks_no_value": [ "select", "candidate_id", "from", "candidate_assessments", "where", "asessment_outcome_code", "=", "value" ], "question": "Find id of candidates whose assessment code is \"Pass\"?", "question_toks": [ "find", "id", "of", "candidate", "whose", "assessment", "code", "is", "'", "pas", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "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 ], "\"Pass\"", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "Find", "id", "of", "candidates", "whose", "assessment", "code", "is", "``", "Pass", "''", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "candidate" ], [ "whose" ], [ "assessment" ], [ "code" ], [ "is" ], [ "'" ], [ "pas" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "whose", "WP$" ], [ "assessment", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "pas", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Pass" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(27) T(8) Filter(2) A(0) C(31) T(8) V(0)" }, { "db_id": "student_assessment", "query": "SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = \"Pass\"", "query_toks": [ "SELECT", "candidate_id", "FROM", "candidate_assessments", "WHERE", "asessment_outcome_code", "=", "``", "Pass", "''" ], "query_toks_no_value": [ "select", "candidate_id", "from", "candidate_assessments", "where", "asessment_outcome_code", "=", "value" ], "question": "What are the ids of the candidates that have an outcome code of Pass?", "question_toks": [ "what", "are", "id", "of", "candidate", "that", "have", "an", "outcome", "code", "of", "pas", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "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 ], "\"Pass\"", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "candidates", "that", "have", "an", "outcome", "code", "of", "Pass", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "candidate" ], [ "that" ], [ "have" ], [ "an" ], [ "asessment", "outcome", "code" ], [ "of" ], [ "pa" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "outcome", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "pas", "NN" ], [ "?", "." ] ], "values": [ "Pass" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(27) T(8) Filter(2) A(0) C(31) T(8) V(0)" }, { "db_id": "student_assessment", "query": "SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = \"Fail\"", "query_toks": [ "SELECT", "T3.cell_mobile_number", "FROM", "candidates", "AS", "T1", "JOIN", "candidate_assessments", "AS", "T2", "ON", "T1.candidate_id", "=", "T2.candidate_id", "JOIN", "people", "AS", "T3", "ON", "T1.candidate_id", "=", "T3.person_id", "WHERE", "T2.asessment_outcome_code", "=", "``", "Fail", "''" ], "query_toks_no_value": [ "select", "t3", ".", "cell_mobile_number", "from", "candidates", "as", "t1", "join", "candidate_assessments", "as", "t2", "on", "t1", ".", "candidate_id", "=", "t2", ".", "candidate_id", "join", "people", "as", "t3", "on", "t1", ".", "candidate_id", "=", "t3", ".", "person_id", "where", "t2", ".", "asessment_outcome_code", "=", "value" ], "question": "Find the cell mobile number of the candidates whose assessment code is \"Fail\"?", "question_toks": [ "find", "cell", "mobile", "number", "of", "candidate", "whose", "assessment", "code", "is", "'", "fail", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 35, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 35, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 33, 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, 38, false ], null ], "\"Fail\"", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "Find", "the", "cell", "mobile", "number", "of", "the", "candidates", "whose", "assessment", "code", "is", "``", "Fail", "''", "?" ], "question_arg": [ [ "find" ], [ "cell", "mobile", "number" ], [ "of" ], [ "candidate" ], [ "whose" ], [ "assessment" ], [ "code" ], [ "is" ], [ "'" ], [ "fail" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "cell", "NN" ], [ "mobile", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "whose", "WP$" ], [ "assessment", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "fail", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Fail", "Bell" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(0) Filter(18) A(0) C(27) T(8) Root(5) Sel(0) N(0) A(0) C(27) T(7) Filter(2) A(0) C(31) T(8) V(0)" }, { "db_id": "student_assessment", "query": "SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = \"Fail\"", "query_toks": [ "SELECT", "T3.cell_mobile_number", "FROM", "candidates", "AS", "T1", "JOIN", "candidate_assessments", "AS", "T2", "ON", "T1.candidate_id", "=", "T2.candidate_id", "JOIN", "people", "AS", "T3", "ON", "T1.candidate_id", "=", "T3.person_id", "WHERE", "T2.asessment_outcome_code", "=", "``", "Fail", "''" ], "query_toks_no_value": [ "select", "t3", ".", "cell_mobile_number", "from", "candidates", "as", "t1", "join", "candidate_assessments", "as", "t2", "on", "t1", ".", "candidate_id", "=", "t2", ".", "candidate_id", "join", "people", "as", "t3", "on", "t1", ".", "candidate_id", "=", "t3", ".", "person_id", "where", "t2", ".", "asessment_outcome_code", "=", "value" ], "question": "What are the cell phone numbers of the candidates that received an assessment code of \"Fail\"?", "question_toks": [ "what", "are", "cell", "phone", "number", "of", "candidate", "that", "received", "an", "assessment", "code", "of", "'", "fail", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 33, false ], null ], [ 0, 35, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 35, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 33, 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, 38, false ], null ], "\"Fail\"", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "cell", "phone", "numbers", "of", "the", "candidates", "that", "received", "an", "assessment", "code", "of", "``", "Fail", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "cell" ], [ "phone" ], [ "number" ], [ "of" ], [ "candidate" ], [ "that" ], [ "received" ], [ "an" ], [ "assessment" ], [ "code" ], [ "of" ], [ "'" ], [ "fail" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "cell", "JJ" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "candidate", "NN" ], [ "that", "WDT" ], [ "received", "VBD" ], [ "an", "DT" ], [ "assessment", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "fail", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Fail", "Bell" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(1) Filter(0) Filter(18) A(0) C(27) T(8) Root(5) Sel(0) N(0) A(0) C(27) T(7) Filter(2) A(0) C(31) T(8) V(0)" }, { "db_id": "student_assessment", "query": "SELECT student_id FROM student_course_attendance WHERE course_id = 301", "query_toks": [ "SELECT", "student_id", "FROM", "student_course_attendance", "WHERE", "course_id", "=", "301" ], "query_toks_no_value": [ "select", "student_id", "from", "student_course_attendance", "where", "course_id", "=", "value" ], "question": "What are the id of students who registered course 301?", "question_toks": [ "what", "are", "id", "of", "student", "who", "registered", "course", "301", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], 301.0, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "id", "of", "students", "who", "registered", "course", "301", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "course" ], [ "301" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "course", "NN" ], [ "301", "CD" ], [ "?", "." ] ], "values": [ "301" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(6) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "student_assessment", "query": "SELECT student_id FROM student_course_attendance WHERE course_id = 301", "query_toks": [ "SELECT", "student_id", "FROM", "student_course_attendance", "WHERE", "course_id", "=", "301" ], "query_toks_no_value": [ "select", "student_id", "from", "student_course_attendance", "where", "course_id", "=", "value" ], "question": "What are the ids of the students who registered for course 301?", "question_toks": [ "what", "are", "id", "of", "student", "who", "registered", "for", "course", "301", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], 301.0, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "students", "who", "registered", "for", "course", "301", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "for" ], [ "course" ], [ "301" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "for", "IN" ], [ "course", "NN" ], [ "301", "CD" ], [ "?", "." ] ], "values": [ "301" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(6) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "student_assessment", "query": "SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1", "query_toks": [ "SELECT", "student_id", "FROM", "student_course_attendance", "WHERE", "course_id", "=", "301", "ORDER", "BY", "date_of_attendance", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "student_id", "from", "student_course_attendance", "where", "course_id", "=", "value", "order", "by", "date_of_attendance", "desc", "limit", "value" ], "question": "What is the id of the student who most recently registered course 301?", "question_toks": [ "what", "is", "id", "of", "student", "who", "most", "recently", "registered", "course", "301", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 32, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], 301.0, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "student", "who", "most", "recently", "registered", "course", "301", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "most" ], [ "recently" ], [ "registered" ], [ "course" ], [ "301" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "registered", "VBD" ], [ "course", "NN" ], [ "301", "CD" ], [ "?", "." ] ], "values": [ "301" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(16) T(6) Sup(0) A(0) C(26) T(6) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "student_assessment", "query": "SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1", "query_toks": [ "SELECT", "student_id", "FROM", "student_course_attendance", "WHERE", "course_id", "=", "301", "ORDER", "BY", "date_of_attendance", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "student_id", "from", "student_course_attendance", "where", "course_id", "=", "value", "order", "by", "date_of_attendance", "desc", "limit", "value" ], "question": "What are the ids of the students who registered for course 301 most recently?", "question_toks": [ "what", "are", "id", "of", "student", "who", "registered", "for", "course", "301", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 32, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], 301.0, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "students", "who", "registered", "for", "course", "301", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "for" ], [ "course" ], [ "301" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "for", "IN" ], [ "course", "NN" ], [ "301", "CD" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [ "301" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(16) T(6) Sup(0) A(0) C(26) T(6) Filter(2) A(0) C(18) T(6) V(0)" }, { "db_id": "student_assessment", "query": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id", "query_toks": [ "SELECT", "DISTINCT", "T1.city", "FROM", "addresses", "AS", "T1", "JOIN", "people_addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "people_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id" ], "question": "Find distinct cities of addresses of people?", "question_toks": [ "find", "distinct", "city", "of", "address", "of", "people", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "Find", "distinct", "cities", "of", "addresses", "of", "people", "?" ], "question_arg": [ [ "find" ], [ "distinct" ], [ "city" ], [ "of" ], [ "address" ], [ "of" ], [ "people" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "city", "NN" ], [ "of", "IN" ], [ "address", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(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(4)" }, { "db_id": "student_assessment", "query": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id", "query_toks": [ "SELECT", "DISTINCT", "T1.city", "FROM", "addresses", "AS", "T1", "JOIN", "people_addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "people_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id" ], "question": "What are the different cities where people live?", "question_toks": [ "what", "are", "different", "city", "where", "people", "live", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "different", "cities", "where", "people", "live", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "city" ], [ "where" ], [ "people" ], [ "live" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "city", "NN" ], [ "where", "WRB" ], [ "people", "NNS" ], [ "live", "VBP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(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(4)" }, { "db_id": "student_assessment", "query": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id", "query_toks": [ "SELECT", "DISTINCT", "T1.city", "FROM", "addresses", "AS", "T1", "JOIN", "people_addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "JOIN", "students", "AS", "T3", "ON", "T2.person_id", "=", "T3.student_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "people_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "join", "students", "as", "t3", "on", "t2", ".", "person_id", "=", "t3", ".", "student_id" ], "question": "Find distinct cities of address of students?", "question_toks": [ "find", "distinct", "city", "of", "address", "of", "student", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "Find", "distinct", "cities", "of", "address", "of", "students", "?" ], "question_arg": [ [ "find" ], [ "distinct" ], [ "city" ], [ "of" ], [ "address" ], [ "of" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "city", "NN" ], [ "of", "IN" ], [ "address", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(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(4)" }, { "db_id": "student_assessment", "query": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id", "query_toks": [ "SELECT", "DISTINCT", "T1.city", "FROM", "addresses", "AS", "T1", "JOIN", "people_addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "JOIN", "students", "AS", "T3", "ON", "T2.person_id", "=", "T3.student_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "people_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "join", "students", "as", "t3", "on", "t2", ".", "person_id", "=", "t3", ".", "student_id" ], "question": "What are the different cities where students live?", "question_toks": [ "what", "are", "different", "city", "where", "student", "live", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 24, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "different", "cities", "where", "students", "live", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "city" ], [ "where" ], [ "student" ], [ "live" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "city", "NN" ], [ "where", "WRB" ], [ "student", "NN" ], [ "live", "CD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(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(4)" }, { "db_id": "student_assessment", "query": "SELECT course_name FROM courses ORDER BY course_name", "query_toks": [ "SELECT", "course_name", "FROM", "courses", "ORDER", "BY", "course_name" ], "query_toks_no_value": [ "select", "course_name", "from", "courses", "order", "by", "course_name" ], "question": "List the names of courses in alphabetical order?", "question_toks": [ "list", "name", "of", "course", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "List", "the", "names", "of", "courses", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "course" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(19) T(3) Order(1) A(0) C(19) T(3)" }, { "db_id": "student_assessment", "query": "SELECT course_name FROM courses ORDER BY course_name", "query_toks": [ "SELECT", "course_name", "FROM", "courses", "ORDER", "BY", "course_name" ], "query_toks_no_value": [ "select", "course_name", "from", "courses", "order", "by", "course_name" ], "question": "What are the names of the courses in alphabetical order?", "question_toks": [ "what", "are", "name", "of", "course", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "courses", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "course" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(19) T(3) Order(1) A(0) C(19) T(3)" }, { "db_id": "student_assessment", "query": "SELECT first_name FROM people ORDER BY first_name", "query_toks": [ "SELECT", "first_name", "FROM", "people", "ORDER", "BY", "first_name" ], "query_toks_no_value": [ "select", "first_name", "from", "people", "order", "by", "first_name" ], "question": "List the first names of people in alphabetical order?", "question_toks": [ "list", "first", "name", "of", "people", "in", "alphabetical", "order", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "List", "the", "first", "names", "of", "people", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "list" ], [ "first", "name" ], [ "of" ], [ "people" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(9) T(1) Order(1) A(0) C(9) T(1)" }, { "db_id": "student_assessment", "query": "SELECT first_name FROM people ORDER BY first_name", "query_toks": [ "SELECT", "first_name", "FROM", "people", "ORDER", "BY", "first_name" ], "query_toks_no_value": [ "select", "first_name", "from", "people", "order", "by", "first_name" ], "question": "What are the first names of the people in alphabetical order?", "question_toks": [ "what", "are", "first", "name", "of", "people", "in", "alphabetical", "order", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "of", "the", "people", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "of" ], [ "people" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(9) T(1) Order(1) A(0) C(9) T(1)" }, { "db_id": "student_assessment", "query": "SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance", "query_toks": [ "SELECT", "student_id", "FROM", "student_course_registrations", "UNION", "SELECT", "student_id", "FROM", "student_course_attendance" ], "query_toks_no_value": [ "select", "student_id", "from", "student_course_registrations", "union", "select", "student_id", "from", "student_course_attendance" ], "question": "What are the id of students who registered courses or attended courses?", "question_toks": [ "what", "are", "id", "of", "student", "who", "registered", "course", "or", "attended", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "id", "of", "students", "who", "registered", "courses", "or", "attended", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "course" ], [ "or" ], [ "attended" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "course", "NN" ], [ "or", "CC" ], [ "attended", "VBD" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(16) T(5) Root(5) Sel(0) N(0) A(0) C(16) T(6)" }, { "db_id": "student_assessment", "query": "SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance", "query_toks": [ "SELECT", "student_id", "FROM", "student_course_registrations", "UNION", "SELECT", "student_id", "FROM", "student_course_attendance" ], "query_toks_no_value": [ "select", "student_id", "from", "student_course_registrations", "union", "select", "student_id", "from", "student_course_attendance" ], "question": "What are the ids of the students who either registered or attended a course?", "question_toks": [ "what", "are", "id", "of", "student", "who", "either", "registered", "or", "attended", "a", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, "where": [] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "students", "who", "either", "registered", "or", "attended", "a", "course", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "either" ], [ "registered" ], [ "or" ], [ "attended" ], [ "a" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "either", "RB" ], [ "registered", "VBD" ], [ "or", "CC" ], [ "attended", "VBD" ], [ "a", "DT" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(16) T(5) Root(5) Sel(0) N(0) A(0) C(16) T(6)" }, { "db_id": "student_assessment", "query": "SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121", "query_toks": [ "SELECT", "course_id", "FROM", "student_course_registrations", "WHERE", "student_id", "=", "121", "UNION", "SELECT", "course_id", "FROM", "student_course_attendance", "WHERE", "student_id", "=", "121" ], "query_toks_no_value": [ "select", "course_id", "from", "student_course_registrations", "where", "student_id", "=", "value", "union", "select", "course_id", "from", "student_course_attendance", "where", "student_id", "=", "value" ], "question": "Find the id of courses which are registered or attended by student whose id is 121?", "question_toks": [ "find", "id", "of", "course", "which", "are", "registered", "or", "attended", "by", "student", "whose", "id", "is", "121", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 30, false ], null ], 121.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], 121.0, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "Find", "the", "id", "of", "courses", "which", "are", "registered", "or", "attended", "by", "student", "whose", "id", "is", "121", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "course" ], [ "which" ], [ "are" ], [ "registered" ], [ "or" ], [ "attended" ], [ "by" ], [ "student" ], [ "whose" ], [ "id" ], [ "is" ], [ "121" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "registered", "VBN" ], [ "or", "CC" ], [ "attended", "VBN" ], [ "by", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "id", "NN" ], [ "is", "VBZ" ], [ "121", "CD" ], [ "?", "." ] ], "values": [ "121" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(2) A(0) C(16) T(5) V(0) Root(3) Sel(0) N(0) A(0) C(18) T(6) Filter(2) A(0) C(16) T(6) V(0)" }, { "db_id": "student_assessment", "query": "SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121", "query_toks": [ "SELECT", "course_id", "FROM", "student_course_registrations", "WHERE", "student_id", "=", "121", "UNION", "SELECT", "course_id", "FROM", "student_course_attendance", "WHERE", "student_id", "=", "121" ], "query_toks_no_value": [ "select", "course_id", "from", "student_course_registrations", "where", "student_id", "=", "value", "union", "select", "course_id", "from", "student_course_attendance", "where", "student_id", "=", "value" ], "question": "What are the ids of the courses that are registered or attended by the student whose id is 121?", "question_toks": [ "what", "are", "id", "of", "course", "that", "are", "registered", "or", "attended", "by", "student", "whose", "id", "is", "121", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 30, false ], null ], 121.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], 121.0, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "courses", "that", "are", "registered", "or", "attended", "by", "the", "student", "whose", "id", "is", "121", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "course" ], [ "that" ], [ "are" ], [ "registered" ], [ "or" ], [ "attended" ], [ "by" ], [ "student" ], [ "whose" ], [ "id" ], [ "is" ], [ "121" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "registered", "VBN" ], [ "or", "CC" ], [ "attended", "VBN" ], [ "by", "IN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "id", "NN" ], [ "is", "VBZ" ], [ "121", "CD" ], [ "?", "." ] ], "values": [ "121" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(18) T(5) Filter(2) A(0) C(16) T(5) V(0) Root(3) Sel(0) N(0) A(0) C(18) T(6) Filter(2) A(0) C(16) T(6) V(0)" }, { "db_id": "student_assessment", "query": "SELECT * FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "query_toks": [ "SELECT", "*", "FROM", "student_course_registrations", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "student_course_attendance", ")" ], "query_toks_no_value": [ "select", "*", "from", "student_course_registrations", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_attendance", ")" ], "question": "What are all info of students who registered courses but not attended courses?", "question_toks": [ "what", "are", "all", "info", "of", "student", "who", "registered", "course", "but", "not", "attended", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 27, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "all", "info", "of", "students", "who", "registered", "courses", "but", "not", "attended", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "info" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "course" ], [ "but" ], [ "not" ], [ "attended" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "info", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "course", "NN" ], [ "but", "CC" ], [ "not", "RB" ], [ "attended", "VBD" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(5) Filter(19) A(0) C(16) T(5) Root(5) Sel(0) N(0) A(0) C(16) T(6)" }, { "db_id": "student_assessment", "query": "SELECT * FROM student_course_registrations WHERE student_id NOT IN (SELECT student_id FROM student_course_attendance)", "query_toks": [ "SELECT", "*", "FROM", "student_course_registrations", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "student_course_attendance", ")" ], "query_toks_no_value": [ "select", "*", "from", "student_course_registrations", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_attendance", ")" ], "question": "What are all details of the students who registered but did not attend any course?", "question_toks": [ "what", "are", "all", "detail", "of", "student", "who", "registered", "but", "did", "not", "attend", "any", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 27, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "all", "details", "of", "the", "students", "who", "registered", "but", "did", "not", "attend", "any", "course", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "detail" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "but" ], [ "did" ], [ "not" ], [ "attend" ], [ "any" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "detail", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "but", "CC" ], [ "did", "VBD" ], [ "not", "RB" ], [ "attend", "VB" ], [ "any", "DT" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(5) Filter(19) A(0) C(16) T(5) Root(5) Sel(0) N(0) A(0) C(16) T(6)" }, { "db_id": "student_assessment", "query": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.registration_date", "query_toks": [ "SELECT", "T2.student_id", "FROM", "courses", "AS", "T1", "JOIN", "student_course_registrations", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T1.course_name", "=", "``", "statistics", "''", "ORDER", "BY", "T2.registration_date" ], "query_toks_no_value": [ "select", "t2", ".", "student_id", "from", "courses", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t1", ".", "course_name", "=", "value", "order", "by", "t2", ".", "registration_date" ], "question": "List the id of students who registered course statistics in the order of registration date.", "question_toks": [ "list", "id", "of", "student", "who", "registered", "course", "statistic", "in", "order", "of", "registration", "date", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 29, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"statistics\"", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "List", "the", "id", "of", "students", "who", "registered", "course", "statistics", "in", "the", "order", "of", "registration", "date", "." ], "question_arg": [ [ "list" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "course" ], [ "statistic" ], [ "in" ], [ "order" ], [ "of" ], [ "registration", "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "course", "NN" ], [ "statistic", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "registration", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "statistics" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(16) T(5) Filter(2) A(0) C(19) T(3) V(0) Order(1) A(0) C(25) T(5)" }, { "db_id": "student_assessment", "query": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.registration_date", "query_toks": [ "SELECT", "T2.student_id", "FROM", "courses", "AS", "T1", "JOIN", "student_course_registrations", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T1.course_name", "=", "``", "statistics", "''", "ORDER", "BY", "T2.registration_date" ], "query_toks_no_value": [ "select", "t2", ".", "student_id", "from", "courses", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t1", ".", "course_name", "=", "value", "order", "by", "t2", ".", "registration_date" ], "question": "What are the ids of the students who registered course statistics by order of registration date?", "question_toks": [ "what", "are", "id", "of", "student", "who", "registered", "course", "statistic", "by", "order", "of", "registration", "date", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 29, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"statistics\"", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "students", "who", "registered", "course", "statistics", "by", "order", "of", "registration", "date", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "registered" ], [ "course" ], [ "statistic" ], [ "by" ], [ "order" ], [ "of" ], [ "registration", "date" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "registered", "VBD" ], [ "course", "NN" ], [ "statistic", "JJ" ], [ "by", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "registration", "NN" ], [ "date", "NN" ], [ "?", "." ] ], "values": [ "statistics" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(16) T(5) Filter(2) A(0) C(19) T(3) V(0) Order(1) A(0) C(25) T(5)" }, { "db_id": "student_assessment", "query": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.date_of_attendance", "query_toks": [ "SELECT", "T2.student_id", "FROM", "courses", "AS", "T1", "JOIN", "student_course_attendance", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T1.course_name", "=", "``", "statistics", "''", "ORDER", "BY", "T2.date_of_attendance" ], "query_toks_no_value": [ "select", "t2", ".", "student_id", "from", "courses", "as", "t1", "join", "student_course_attendance", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t1", ".", "course_name", "=", "value", "order", "by", "t2", ".", "date_of_attendance" ], "question": "List the id of students who attended statistics courses in the order of attendance date.", "question_toks": [ "list", "id", "of", "student", "who", "attended", "statistic", "course", "in", "order", "of", "attendance", "date", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 32, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"statistics\"", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "List", "the", "id", "of", "students", "who", "attended", "statistics", "courses", "in", "the", "order", "of", "attendance", "date", "." ], "question_arg": [ [ "list" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "attended" ], [ "statistic" ], [ "course" ], [ "in" ], [ "order" ], [ "date", "of", "attendance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "attended", "VBD" ], [ "statistic", "JJ" ], [ "course", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "attendance", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "statistics" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(16) T(6) Filter(2) A(0) C(19) T(3) V(0) Order(1) A(0) C(26) T(6)" }, { "db_id": "student_assessment", "query": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.date_of_attendance", "query_toks": [ "SELECT", "T2.student_id", "FROM", "courses", "AS", "T1", "JOIN", "student_course_attendance", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T1.course_name", "=", "``", "statistics", "''", "ORDER", "BY", "T2.date_of_attendance" ], "query_toks_no_value": [ "select", "t2", ".", "student_id", "from", "courses", "as", "t1", "join", "student_course_attendance", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t1", ".", "course_name", "=", "value", "order", "by", "t2", ".", "date_of_attendance" ], "question": "What are the ids of the students who attended courses in the statistics department in order of attendance date.", "question_toks": [ "what", "are", "id", "of", "student", "who", "attended", "course", "in", "statistic", "department", "in", "order", "of", "attendance", "date", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 32, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"statistics\"", null ] ] }, "names": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "person id", "address id", "date from", "date to", "student id", "course id", "registration date", "student id", "course id", "date of attendance", "candidate id", "candidate details", "candidate id", "qualification", "assessment date", "asessment outcome code" ], "table_names": [ "addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments" ], "col_set": [ "*", "address id", "line 1", "line 2", "city", "zip postcode", "state province county", "country", "person id", "first name", "middle name", "last name", "cell mobile number", "email address", "login name", "password", "student id", "student details", "course id", "course name", "course description", "other details", "person address id", "date from", "date to", "registration date", "date of attendance", "candidate id", "candidate details", "qualification", "assessment date", "asessment outcome code" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 8 ], "keys": { "16": 16, "8": 8, "24": 1, "1": 1, "23": 8, "28": 31, "18": 18, "27": 27, "30": 30, "31": 28, "33": 33, "35": 35, "22": 22 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "students", "who", "attended", "courses", "in", "the", "statistics", "department", "in", "order", "of", "attendance", "date", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "attended" ], [ "course" ], [ "in" ], [ "statistic" ], [ "department" ], [ "in" ], [ "order" ], [ "date", "of", "attendance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "attended", "VBD" ], [ "course", "NN" ], [ "in", "IN" ], [ "statistic", "JJ" ], [ "department", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "attendance", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [ "statistics" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(16) T(6) Filter(2) A(0) C(19) T(3) V(0) Order(1) A(0) C(26) T(6)" }, { "db_id": "bike_1", "query": "SELECT date FROM weather WHERE max_temperature_f > 85", "query_toks": [ "SELECT", "date", "FROM", "weather", "WHERE", "max_temperature_f", ">", "85" ], "query_toks_no_value": [ "select", "date", "from", "weather", "where", "max_temperature_f", ">", "value" ], "question": "Give me the dates when the max temperature was higher than 85.", "question_toks": [ "give", "me", "date", "when", "max", "temperature", "wa", "higher", "than", "85", "." ], "sql": { "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, 3, [ 0, [ 0, 24, false ], null ], 85.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Give", "me", "the", "dates", "when", "the", "max", "temperature", "was", "higher", "than", "85", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "date" ], [ "when" ], [ "max", "temperature", "f" ], [ "wa" ], [ "higher" ], [ "than" ], [ "85" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "date", "NN" ], [ "when", "WRB" ], [ "max", "NN" ], [ "temperature", "NN" ], [ "wa", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "85", "CD" ], [ ".", "." ] ], "values": [ "85" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(3) Filter(5) A(0) C(23) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT date FROM weather WHERE max_temperature_f > 85", "query_toks": [ "SELECT", "date", "FROM", "weather", "WHERE", "max_temperature_f", ">", "85" ], "query_toks_no_value": [ "select", "date", "from", "weather", "where", "max_temperature_f", ">", "value" ], "question": "What are the dates with a maximum temperature higher than 85?", "question_toks": [ "what", "are", "date", "with", "a", "maximum", "temperature", "higher", "than", "85", "?" ], "sql": { "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, 3, [ 0, [ 0, 24, false ], null ], 85.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "dates", "with", "a", "maximum", "temperature", "higher", "than", "85", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date" ], [ "with" ], [ "a" ], [ "maximum" ], [ "temperature" ], [ "higher" ], [ "than" ], [ "85" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "maximum", "JJ" ], [ "temperature", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "85", "CD" ], [ "?", "." ] ], "values": [ "85" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(3) Filter(5) A(0) C(23) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT name FROM station WHERE lat < 37.5", "query_toks": [ "SELECT", "name", "FROM", "station", "WHERE", "lat", "<", "37.5" ], "query_toks_no_value": [ "select", "name", "from", "station", "where", "lat", "<", "value" ], "question": "What are the names of stations that have latitude lower than 37.5?", "question_toks": [ "what", "are", "name", "of", "station", "that", "have", "latitude", "lower", "than", "37.5", "?" ], "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, 4, [ 0, [ 0, 3, false ], null ], 37.5, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "stations", "that", "have", "latitude", "lower", "than", "37.5", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "station" ], [ "that" ], [ "have" ], [ "latitude" ], [ "lower" ], [ "than" ], [ "37.5" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "latitude", "JJR" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "37.5", "CD" ], [ "?", "." ] ], "values": [ "37.5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(3) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT name FROM station WHERE lat < 37.5", "query_toks": [ "SELECT", "name", "FROM", "station", "WHERE", "lat", "<", "37.5" ], "query_toks_no_value": [ "select", "name", "from", "station", "where", "lat", "<", "value" ], "question": "What are the names of all stations with a latitude smaller than 37.5?", "question_toks": [ "what", "are", "name", "of", "all", "station", "with", "a", "latitude", "smaller", "than", "37.5", "?" ], "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, 4, [ 0, [ 0, 3, false ], null ], 37.5, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "stations", "with", "a", "latitude", "smaller", "than", "37.5", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "station" ], [ "with" ], [ "a" ], [ "latitude" ], [ "smaller" ], [ "than" ], [ "37.5" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "station", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "latitude", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "37.5", "CD" ], [ "?", "." ] ], "values": [ "37.5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(3) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT city , max(lat) FROM station GROUP BY city", "query_toks": [ "SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city" ], "query_toks_no_value": [ "select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city" ], "question": "For each city, return the highest latitude among its stations.", "question_toks": [ "for", "each", "city", ",", "return", "highest", "latitude", "among", "it", "station", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 1, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "city", ",", "return", "the", "highest", "latitude", "among", "its", "stations", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "city" ], [ "," ], [ "return" ], [ "highest" ], [ "latitude" ], [ "among" ], [ "it" ], [ "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ ",", "," ], [ "return", "VBP" ], [ "highest", "JJS" ], [ "latitude", "NN" ], [ "among", "IN" ], [ "it", "PRP" ], [ "station", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(0) A(1) C(3) T(0)" }, { "db_id": "bike_1", "query": "SELECT city , max(lat) FROM station GROUP BY city", "query_toks": [ "SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city" ], "query_toks_no_value": [ "select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city" ], "question": "For each city, what is the highest latitude for its stations?", "question_toks": [ "for", "each", "city", ",", "what", "is", "highest", "latitude", "for", "it", "station", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 1, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "city", ",", "what", "is", "the", "highest", "latitude", "for", "its", "stations", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "city" ], [ "," ], [ "what" ], [ "is" ], [ "highest" ], [ "latitude" ], [ "for" ], [ "it" ], [ "station" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "highest", "JJS" ], [ "latitude", "NN" ], [ "for", "IN" ], [ "it", "PRP" ], [ "station", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(0) A(1) C(3) T(0)" }, { "db_id": "bike_1", "query": "SELECT start_station_name , end_station_name FROM trip ORDER BY id LIMIT 3", "query_toks": [ "SELECT", "start_station_name", ",", "end_station_name", "FROM", "trip", "ORDER", "BY", "id", "LIMIT", "3" ], "query_toks_no_value": [ "select", "start_station_name", ",", "end_station_name", "from", "trip", "order", "by", "id", "limit", "value" ], "question": "Give me the start station and end station for the trips with the three oldest id.", "question_toks": [ "give", "me", "start", "station", "and", "end", "station", "for", "trip", "with", "three", "oldest", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Give", "me", "the", "start", "station", "and", "end", "station", "for", "the", "trips", "with", "the", "three", "oldest", "id", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "start" ], [ "station" ], [ "and" ], [ "end" ], [ "station" ], [ "for" ], [ "trip" ], [ "with" ], [ "three" ], [ "oldest" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "start", "VB" ], [ "station", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "station", "NN" ], [ "for", "IN" ], [ "trip", "NN" ], [ "with", "IN" ], [ "three", "CD" ], [ "oldest", "JJS" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(14) T(2) A(0) C(17) T(2) Sup(1) A(0) C(1) T(2)" }, { "db_id": "bike_1", "query": "SELECT start_station_name , end_station_name FROM trip ORDER BY id LIMIT 3", "query_toks": [ "SELECT", "start_station_name", ",", "end_station_name", "FROM", "trip", "ORDER", "BY", "id", "LIMIT", "3" ], "query_toks_no_value": [ "select", "start_station_name", ",", "end_station_name", "from", "trip", "order", "by", "id", "limit", "value" ], "question": "What is the station station and end station for the trips with the three smallest ids?", "question_toks": [ "what", "is", "station", "station", "and", "end", "station", "for", "trip", "with", "three", "smallest", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "station", "station", "and", "end", "station", "for", "the", "trips", "with", "the", "three", "smallest", "ids", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "station" ], [ "station" ], [ "and" ], [ "end" ], [ "station" ], [ "for" ], [ "trip" ], [ "with" ], [ "three" ], [ "smallest" ], [ "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "station", "JJ" ], [ "station", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "station", "NN" ], [ "for", "IN" ], [ "trip", "NN" ], [ "with", "IN" ], [ "three", "CD" ], [ "smallest", "JJS" ], [ "id", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(14) T(2) A(0) C(17) T(2) Sup(1) A(0) C(1) T(2)" }, { "db_id": "bike_1", "query": "SELECT avg(lat) , avg(long) FROM station WHERE city = \"San Jose\"", "query_toks": [ "SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station", "WHERE", "city", "=", "``", "San", "Jose", "''" ], "query_toks_no_value": [ "select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station", "where", "city", "=", "value" ], "question": "What is the average latitude and longitude of stations located in San Jose city?", "question_toks": [ "what", "is", "average", "latitude", "and", "longitude", "of", "station", "located", "in", "san", "jose", "city", "?" ], "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 ] ], [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"San Jose\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "average", "latitude", "and", "longitude", "of", "stations", "located", "in", "San", "Jose", "city", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "latitude" ], [ "and" ], [ "longitude" ], [ "of" ], [ "station" ], [ "located" ], [ "in" ], [ "san" ], [ "jose" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "latitude", "JJ" ], [ "and", "CC" ], [ "longitude", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "located", "VBN" ], [ "in", "IN" ], [ "san", "JJ" ], [ "jose", "JJ" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "San Jose" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(3) T(0) A(5) C(4) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT avg(lat) , avg(long) FROM station WHERE city = \"San Jose\"", "query_toks": [ "SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station", "WHERE", "city", "=", "``", "San", "Jose", "''" ], "query_toks_no_value": [ "select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station", "where", "city", "=", "value" ], "question": "What is the average latitude and longitude in San Jose?", "question_toks": [ "what", "is", "average", "latitude", "and", "longitude", "in", "san", "jose", "?" ], "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 ] ], [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"San Jose\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "average", "latitude", "and", "longitude", "in", "San", "Jose", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "latitude" ], [ "and" ], [ "longitude" ], [ "in" ], [ "san" ], [ "jose" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "latitude", "JJ" ], [ "and", "CC" ], [ "longitude", "NN" ], [ "in", "IN" ], [ "san", "JJ" ], [ "jose", "NN" ], [ "?", "." ] ], "values": [ "San Jose" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(3) T(0) A(5) C(4) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT id FROM trip ORDER BY duration LIMIT 1", "query_toks": [ "SELECT", "id", "FROM", "trip", "ORDER", "BY", "duration", "LIMIT", "1" ], "query_toks_no_value": [ "select", "id", "from", "trip", "order", "by", "duration", "limit", "value" ], "question": "What is the id of the trip that has the shortest duration?", "question_toks": [ "what", "is", "id", "of", "trip", "that", "ha", "shortest", "duration", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "trip", "that", "has", "the", "shortest", "duration", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "trip" ], [ "that" ], [ "ha" ], [ "shortest" ], [ "duration" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "trip", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "shortest", "JJS" ], [ "duration", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(2) Sup(1) A(0) C(12) T(2)" }, { "db_id": "bike_1", "query": "SELECT id FROM trip ORDER BY duration LIMIT 1", "query_toks": [ "SELECT", "id", "FROM", "trip", "ORDER", "BY", "duration", "LIMIT", "1" ], "query_toks_no_value": [ "select", "id", "from", "trip", "order", "by", "duration", "limit", "value" ], "question": "What is the id of the shortest trip?", "question_toks": [ "what", "is", "id", "of", "shortest", "trip", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "shortest", "trip", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "shortest" ], [ "trip" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "shortest", "JJS" ], [ "trip", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(2) Sup(1) A(0) C(12) T(2)" }, { "db_id": "bike_1", "query": "SELECT sum(duration) , max(duration) FROM trip WHERE bike_id = 636", "query_toks": [ "SELECT", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636" ], "query_toks_no_value": [ "select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value" ], "question": "What is the total and maximum duration of trips with bike id 636?", "question_toks": [ "what", "is", "total", "and", "maximum", "duration", "of", "trip", "with", "bike", "id", "636", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 13, false ], null ] ], [ 1, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], 636.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "total", "and", "maximum", "duration", "of", "trips", "with", "bike", "id", "636", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "and" ], [ "maximum" ], [ "duration" ], [ "of" ], [ "trip" ], [ "with" ], [ "bike", "id" ], [ "636" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "duration", "NN" ], [ "of", "IN" ], [ "trip", "NN" ], [ "with", "IN" ], [ "bike", "NN" ], [ "id", "NN" ], [ "636", "CD" ], [ "?", "." ] ], "values": [ "636" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(12) T(2) A(1) C(12) T(2) Filter(2) A(0) C(19) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT sum(duration) , max(duration) FROM trip WHERE bike_id = 636", "query_toks": [ "SELECT", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636" ], "query_toks_no_value": [ "select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value" ], "question": "What is the total and maximum duration for all trips with the bike id 636?", "question_toks": [ "what", "is", "total", "and", "maximum", "duration", "for", "all", "trip", "with", "bike", "id", "636", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 13, false ], null ] ], [ 1, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 20, false ], null ], 636.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "total", "and", "maximum", "duration", "for", "all", "trips", "with", "the", "bike", "id", "636", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "and" ], [ "maximum" ], [ "duration" ], [ "for" ], [ "all" ], [ "trip" ], [ "with" ], [ "bike", "id" ], [ "636" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "duration", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "trip", "NN" ], [ "with", "IN" ], [ "bike", "NN" ], [ "id", "NN" ], [ "636", "CD" ], [ "?", "." ] ], "values": [ "636" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(12) T(2) A(1) C(12) T(2) Filter(2) A(0) C(19) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT zip_code , avg(mean_temperature_f) FROM weather WHERE date LIKE \"8/%\" GROUP BY zip_code", "query_toks": [ "SELECT", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "FROM", "weather", "WHERE", "date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "zip_code" ], "query_toks_no_value": [ "select", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "from", "weather", "where", "date", "like", "value", "group", "by", "zip_code" ], "question": "For each zip code, return the average mean temperature of August there.", "question_toks": [ "for", "each", "zip", "code", ",", "return", "average", "mean", "temperature", "of", "august", "there", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ], [ 5, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 23, false ], null ], "\"8/%\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "zip", "code", ",", "return", "the", "average", "mean", "temperature", "of", "August", "there", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "zip", "code" ], [ "," ], [ "return" ], [ "average" ], [ "mean", "temperature", "f" ], [ "of" ], [ "august" ], [ "there" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "zip", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "return", "JJ" ], [ "average", "JJ" ], [ "mean", "JJ" ], [ "temperature", "NN" ], [ "of", "IN" ], [ "august", "NN" ], [ "there", "RB" ], [ ".", "." ] ], "values": [ "8/" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(21) T(3) A(5) C(24) T(3) Filter(9) A(0) C(22) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT zip_code , avg(mean_temperature_f) FROM weather WHERE date LIKE \"8/%\" GROUP BY zip_code", "query_toks": [ "SELECT", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "FROM", "weather", "WHERE", "date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "zip_code" ], "query_toks_no_value": [ "select", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "from", "weather", "where", "date", "like", "value", "group", "by", "zip_code" ], "question": "For each zip code, what is the average mean temperature for all dates that start with '8'?", "question_toks": [ "for", "each", "zip", "code", ",", "what", "is", "average", "mean", "temperature", "for", "all", "date", "that", "start", "with", "'8", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ], [ 5, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 23, false ], null ], "\"8/%\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "zip", "code", ",", "what", "is", "the", "average", "mean", "temperature", "for", "all", "dates", "that", "start", "with", "'8", "'", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "zip", "code" ], [ "," ], [ "what" ], [ "is" ], [ "average" ], [ "mean", "temperature", "f" ], [ "for" ], [ "all" ], [ "date" ], [ "that" ], [ "start" ], [ "with" ], [ "'8" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "zip", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "mean", "JJ" ], [ "temperature", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "date", "NN" ], [ "that", "IN" ], [ "start", "NN" ], [ "with", "IN" ], [ "'8", "NNP" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "8", "8/" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(21) T(3) A(5) C(24) T(3) Filter(9) A(0) C(22) T(3) V(1)" }, { "db_id": "bike_1", "query": "SELECT count(DISTINCT bike_id) FROM trip", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "bike_id", ")", "FROM", "trip" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "bike_id", ")", "from", "trip" ], "question": "From the trip record, find the number of unique bikes.", "question_toks": [ "from", "trip", "record", ",", "find", "number", "of", "unique", "bike", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 20, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "From", "the", "trip", "record", ",", "find", "the", "number", "of", "unique", "bikes", "." ], "question_arg": [ [ "from" ], [ "trip" ], [ "record" ], [ "," ], [ "find" ], [ "number" ], [ "of" ], [ "unique" ], [ "bike" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "from", "IN" ], [ "trip", "NN" ], [ "record", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "unique", "JJ" ], [ "bike", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(19) T(2)" }, { "db_id": "bike_1", "query": "SELECT count(DISTINCT bike_id) FROM trip", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "bike_id", ")", "FROM", "trip" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "bike_id", ")", "from", "trip" ], "question": "How many different bike ids are there?", "question_toks": [ "how", "many", "different", "bike", "id", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 20, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "How", "many", "different", "bike", "ids", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "bike", "id" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "bike", "NN" ], [ "id", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(19) T(2)" }, { "db_id": "bike_1", "query": "SELECT count(DISTINCT city) FROM station", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "station" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "city", ")", "from", "station" ], "question": "What is the number of distinct cities the stations are located at?", "question_toks": [ "what", "is", "number", "of", "distinct", "city", "station", "are", "located", "at", "?" ], "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", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "distinct", "cities", "the", "stations", "are", "located", "at", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "distinct" ], [ "city" ], [ "station" ], [ "are" ], [ "located" ], [ "at" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "city", "NN" ], [ "station", "NN" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "at", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(6) T(0)" }, { "db_id": "bike_1", "query": "SELECT count(DISTINCT city) FROM station", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "station" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "city", ")", "from", "station" ], "question": "How many different cities have these stations?", "question_toks": [ "how", "many", "different", "city", "have", "these", "station", "?" ], "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", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "How", "many", "different", "cities", "have", "these", "stations", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "city" ], [ "have" ], [ "these" ], [ "station" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "city", "NN" ], [ "have", "VBP" ], [ "these", "DT" ], [ "station", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(6) T(0)" }, { "db_id": "bike_1", "query": "SELECT COUNT(*) FROM station WHERE city = \"Mountain View\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "station", "WHERE", "city", "=", "``", "Mountain", "View", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "station", "where", "city", "=", "value" ], "question": "How many stations does Mountain View city has?", "question_toks": [ "how", "many", "station", "doe", "mountain", "view", "city", "ha", "?" ], "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, 6, false ], null ], "\"Mountain View\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "How", "many", "stations", "does", "Mountain", "View", "city", "has", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "station" ], [ "doe" ], [ "mountain" ], [ "view" ], [ "city" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "station", "NN" ], [ "doe", "NNS" ], [ "mountain", "VBP" ], [ "view", "VBP" ], [ "city", "NN" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [ "Mountain View" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT COUNT(*) FROM station WHERE city = \"Mountain View\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "station", "WHERE", "city", "=", "``", "Mountain", "View", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "station", "where", "city", "=", "value" ], "question": "How many stations are in Mountain View?", "question_toks": [ "how", "many", "station", "are", "in", "mountain", "view", "?" ], "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, 6, false ], null ], "\"Mountain View\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "How", "many", "stations", "are", "in", "Mountain", "View", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "station" ], [ "are" ], [ "in" ], [ "mountain" ], [ "view" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "station", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "mountain", "NN" ], [ "view", "NN" ], [ "?", "." ] ], "values": [ "Mountain View" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available = 7", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "WHERE", "T2.bikes_available", "=", "7" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "where", "t2", ".", "bikes_available", "=", "value" ], "question": "Return the unique name for stations that have ever had 7 bikes available.", "question_toks": [ "return", "unique", "name", "for", "station", "that", "have", "ever", "had", "7", "bike", "available", "." ], "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, 2, [ 0, [ 0, 9, false ], null ], 7.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Return", "the", "unique", "name", "for", "stations", "that", "have", "ever", "had", "7", "bikes", "available", "." ], "question_arg": [ [ "return" ], [ "unique" ], [ "name" ], [ "for" ], [ "station" ], [ "that" ], [ "have" ], [ "ever" ], [ "had" ], [ "7" ], [ "bike", "available" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "unique", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "ever", "RB" ], [ "had", "VBD" ], [ "7", "CD" ], [ "bike", "NN" ], [ "available", "JJ" ], [ ".", "." ] ], "values": [ "7" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "bike_1", "query": "SELECT DISTINCT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available = 7", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "WHERE", "T2.bikes_available", "=", "7" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "where", "t2", ".", "bikes_available", "=", "value" ], "question": "What are the different names for each station that has ever had 7 bikes available?", "question_toks": [ "what", "are", "different", "name", "for", "each", "station", "that", "ha", "ever", "had", "7", "bike", "available", "?" ], "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, 2, [ 0, [ 0, 9, false ], null ], 7.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "for", "each", "station", "that", "has", "ever", "had", "7", "bikes", "available", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "for" ], [ "each" ], [ "station" ], [ "that" ], [ "ha" ], [ "ever" ], [ "had" ], [ "7" ], [ "bike", "available" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "station", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "ever", "RB" ], [ "had", "VBD" ], [ "7", "CD" ], [ "bike", "NN" ], [ "available", "JJ" ], [ "?", "." ] ], "values": [ "7" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "bike_1", "query": "SELECT start_station_name , start_station_id FROM trip WHERE start_date LIKE \"8/%\" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "WHERE", "start_date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "start_station_name", ",", "start_station_id", "from", "trip", "where", "start_date", "like", "value", "group", "by", "start_station_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which start station had the most trips starting from August? Give me the name and id of the station.", "question_toks": [ "which", "start", "station", "had", "most", "trip", "starting", "from", "august", "?", "give", "me", "name", "and", "id", "of", "station", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 14, false ], null ], "\"8/%\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Which", "start", "station", "had", "the", "most", "trips", "starting", "from", "August", "?", "Give", "me", "the", "name", "and", "id", "of", "the", "station", "." ], "question_arg": [ [ "which" ], [ "start" ], [ "station" ], [ "had" ], [ "most" ], [ "trip" ], [ "starting" ], [ "from" ], [ "august" ], [ "?" ], [ "give" ], [ "me" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "start", "NN" ], [ "station", "NN" ], [ "had", "VBD" ], [ "most", "RBS" ], [ "trip", "NN" ], [ "starting", "VBG" ], [ "from", "IN" ], [ "august", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ ".", "." ] ], "values": [ "8/" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(14) T(2) A(0) C(15) T(2) Sup(0) A(3) C(0) T(2) Filter(9) A(0) C(13) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT start_station_name , start_station_id FROM trip WHERE start_date LIKE \"8/%\" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "WHERE", "start_date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "start_station_name", ",", "start_station_id", "from", "trip", "where", "start_date", "like", "value", "group", "by", "start_station_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the start station's name and id for the one that had the most start trips in August?", "question_toks": [ "what", "are", "start", "station", "'s", "name", "and", "id", "for", "one", "that", "had", "most", "start", "trip", "in", "august", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 14, false ], null ], "\"8/%\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "start", "station", "'s", "name", "and", "id", "for", "the", "one", "that", "had", "the", "most", "start", "trips", "in", "August", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "start" ], [ "station" ], [ "'s" ], [ "name" ], [ "and" ], [ "id" ], [ "for" ], [ "one" ], [ "that" ], [ "had" ], [ "most" ], [ "start" ], [ "trip" ], [ "in" ], [ "august" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "start", "JJ" ], [ "station", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "for", "IN" ], [ "one", "CD" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "most", "RBS" ], [ "start", "JJ" ], [ "trip", "NN" ], [ "in", "IN" ], [ "august", "NN" ], [ "?", "." ] ], "values": [ "8/", "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(14) T(2) A(0) C(15) T(2) Sup(0) A(3) C(0) T(2) Filter(9) A(0) C(13) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT bike_id FROM trip WHERE zip_code = 94002 GROUP BY bike_id ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "bike_id", "FROM", "trip", "WHERE", "zip_code", "=", "94002", "GROUP", "BY", "bike_id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "bike_id", "from", "trip", "where", "zip_code", "=", "value", "group", "by", "bike_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which bike traveled the most often in zip code 94002?", "question_toks": [ "which", "bike", "traveled", "most", "often", "in", "zip", "code", "94002", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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, 2, [ 0, [ 0, 22, false ], null ], 94002.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Which", "bike", "traveled", "the", "most", "often", "in", "zip", "code", "94002", "?" ], "question_arg": [ [ "which" ], [ "bike" ], [ "traveled" ], [ "most" ], [ "often" ], [ "in" ], [ "zip", "code" ], [ "94002" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "bike", "NN" ], [ "traveled", "VBD" ], [ "most", "RBS" ], [ "often", "RB" ], [ "in", "IN" ], [ "zip", "NN" ], [ "code", "NN" ], [ "94002", "CD" ], [ "?", "." ] ], "values": [ "94002" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(19) T(2) Sup(0) A(3) C(0) T(2) Filter(2) A(0) C(21) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT bike_id FROM trip WHERE zip_code = 94002 GROUP BY bike_id ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "bike_id", "FROM", "trip", "WHERE", "zip_code", "=", "94002", "GROUP", "BY", "bike_id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "bike_id", "from", "trip", "where", "zip_code", "=", "value", "group", "by", "bike_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id of the bike that traveled the most in 94002?", "question_toks": [ "what", "is", "id", "of", "bike", "that", "traveled", "most", "in", "94002", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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, 2, [ 0, [ 0, 22, false ], null ], 94002.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "bike", "that", "traveled", "the", "most", "in", "94002", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "bike" ], [ "that" ], [ "traveled" ], [ "most" ], [ "in" ], [ "94002" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "bike", "NN" ], [ "that", "WDT" ], [ "traveled", "VBD" ], [ "most", "RBS" ], [ "in", "IN" ], [ "94002", "CD" ], [ "?", "." ] ], "values": [ "94002" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(19) T(2) Sup(0) A(3) C(0) T(2) Filter(2) A(0) C(21) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT COUNT(*) FROM weather WHERE mean_humidity > 50 AND mean_visibility_miles > 8", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "weather", "WHERE", "mean_humidity", ">", "50", "AND", "mean_visibility_miles", ">", "8" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "weather", "where", "mean_humidity", ">", "value", "and", "mean_visibility_miles", ">", "value" ], "question": "How many days had both mean humidity above 50 and mean visibility above 8?", "question_toks": [ "how", "many", "day", "had", "both", "mean", "humidity", "above", "50", "and", "mean", "visibility", "above", "8", "?" ], "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": [ [ false, 3, [ 0, [ 0, 31, false ], null ], 50.0, null ], "and", [ false, 3, [ 0, [ 0, 37, false ], null ], 8.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "How", "many", "days", "had", "both", "mean", "humidity", "above", "50", "and", "mean", "visibility", "above", "8", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "day" ], [ "had" ], [ "both" ], [ "mean", "humidity" ], [ "above" ], [ "50" ], [ "and" ], [ "mean", "visibility", "mile" ], [ "above" ], [ "8" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "day", "NN" ], [ "had", "VBD" ], [ "both", "DT" ], [ "mean", "JJ" ], [ "humidity", "NN" ], [ "above", "IN" ], [ "50", "CD" ], [ "and", "CC" ], [ "mean", "JJ" ], [ "visibility", "NN" ], [ "above", "IN" ], [ "8", "CD" ], [ "?", "." ] ], "values": [ "8", "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(0) Filter(5) A(0) C(30) T(3) V(1) Filter(5) A(0) C(36) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT COUNT(*) FROM weather WHERE mean_humidity > 50 AND mean_visibility_miles > 8", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "weather", "WHERE", "mean_humidity", ">", "50", "AND", "mean_visibility_miles", ">", "8" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "weather", "where", "mean_humidity", ">", "value", "and", "mean_visibility_miles", ">", "value" ], "question": "What is the number of days that had an average humity above 50 and an average visibility above 8?", "question_toks": [ "what", "is", "number", "of", "day", "that", "had", "an", "average", "humity", "above", "50", "and", "an", "average", "visibility", "above", "8", "?" ], "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": [ [ false, 3, [ 0, [ 0, 31, false ], null ], 50.0, null ], "and", [ false, 3, [ 0, [ 0, 37, false ], null ], 8.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "days", "that", "had", "an", "average", "humity", "above", "50", "and", "an", "average", "visibility", "above", "8", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "day" ], [ "that" ], [ "had" ], [ "an" ], [ "average" ], [ "humity" ], [ "above" ], [ "50" ], [ "and" ], [ "an" ], [ "average" ], [ "visibility" ], [ "above" ], [ "8" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "day", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "an", "DT" ], [ "average", "JJ" ], [ "humity", "NN" ], [ "above", "IN" ], [ "50", "CD" ], [ "and", "CC" ], [ "an", "DT" ], [ "average", "JJ" ], [ "visibility", "NN" ], [ "above", "IN" ], [ "8", "CD" ], [ "?", "." ] ], "values": [ "8", "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(0) Filter(5) A(0) C(30) T(3) V(1) Filter(5) A(0) C(36) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT T1.lat , T1.long , T1.city FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id ORDER BY T2.duration LIMIT 1", "query_toks": [ "SELECT", "T1.lat", ",", "T1.long", ",", "T1.city", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1.id", "=", "T2.start_station_id", "ORDER", "BY", "T2.duration", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "lat", ",", "t1", ".", "long", ",", "t1", ".", "city", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id", "order", "by", "t2", ".", "duration", "limit", "value" ], "question": "What is the latitude, longitude, city of the station from which the shortest trip started?", "question_toks": [ "what", "is", "latitude", ",", "longitude", ",", "city", "of", "station", "from", "which", "shortest", "trip", "started", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "latitude", ",", "longitude", ",", "city", "of", "the", "station", "from", "which", "the", "shortest", "trip", "started", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "latitude" ], [ "," ], [ "longitude" ], [ "," ], [ "city" ], [ "of" ], [ "station" ], [ "from" ], [ "which" ], [ "shortest" ], [ "trip" ], [ "started" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "latitude", "JJ" ], [ ",", "," ], [ "longitude", "JJ" ], [ ",", "," ], [ "city", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "from", "IN" ], [ "which", "WDT" ], [ "shortest", "JJS" ], [ "trip", "NN" ], [ "started", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(3) T(0) A(0) C(4) T(0) A(0) C(6) T(0) Sup(1) A(0) C(12) T(2)" }, { "db_id": "bike_1", "query": "SELECT T1.lat , T1.long , T1.city FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id ORDER BY T2.duration LIMIT 1", "query_toks": [ "SELECT", "T1.lat", ",", "T1.long", ",", "T1.city", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1.id", "=", "T2.start_station_id", "ORDER", "BY", "T2.duration", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "lat", ",", "t1", ".", "long", ",", "t1", ".", "city", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id", "order", "by", "t2", ".", "duration", "limit", "value" ], "question": "What is the latitude, longitude, and city of the station from which the trip with smallest duration started?", "question_toks": [ "what", "is", "latitude", ",", "longitude", ",", "and", "city", "of", "station", "from", "which", "trip", "with", "smallest", "duration", "started", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "latitude", ",", "longitude", ",", "and", "city", "of", "the", "station", "from", "which", "the", "trip", "with", "smallest", "duration", "started", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "latitude" ], [ "," ], [ "longitude" ], [ "," ], [ "and" ], [ "city" ], [ "of" ], [ "station" ], [ "from" ], [ "which" ], [ "trip" ], [ "with" ], [ "smallest" ], [ "duration" ], [ "started" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "latitude", "JJ" ], [ ",", "," ], [ "longitude", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "from", "IN" ], [ "which", "WDT" ], [ "trip", "NN" ], [ "with", "IN" ], [ "smallest", "JJS" ], [ "duration", "NN" ], [ "started", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(3) T(0) A(0) C(4) T(0) A(0) C(6) T(0) Sup(1) A(0) C(12) T(2)" }, { "db_id": "bike_1", "query": "SELECT id FROM station WHERE city = \"San Francisco\" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING avg(bikes_available) > 10", "query_toks": [ "SELECT", "id", "FROM", "station", "WHERE", "city", "=", "``", "San", "Francisco", "''", "INTERSECT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10" ], "query_toks_no_value": [ "select", "id", "from", "station", "where", "city", "=", "value", "intersect", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "value" ], "question": "What are the ids of stations that are located in San Francisco and have average bike availability above 10.", "question_toks": [ "what", "are", "id", "of", "station", "that", "are", "located", "in", "san", "francisco", "and", "have", "average", "bike", "availability", "above", "10", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 5, 9, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"San Francisco\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "stations", "that", "are", "located", "in", "San", "Francisco", "and", "have", "average", "bike", "availability", "above", "10", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "station" ], [ "that" ], [ "are" ], [ "located" ], [ "in" ], [ "san" ], [ "francisco" ], [ "and" ], [ "have" ], [ "average" ], [ "bike" ], [ "availability" ], [ "above" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "average", "VBN" ], [ "bike", "JJ" ], [ "availability", "NN" ], [ "above", "IN" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "San Francisco", "10" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(6) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(5) C(9) T(1) V(1)" }, { "db_id": "bike_1", "query": "SELECT id FROM station WHERE city = \"San Francisco\" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING avg(bikes_available) > 10", "query_toks": [ "SELECT", "id", "FROM", "station", "WHERE", "city", "=", "``", "San", "Francisco", "''", "INTERSECT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10" ], "query_toks_no_value": [ "select", "id", "from", "station", "where", "city", "=", "value", "intersect", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "value" ], "question": "What are the ids of the stations in San Francisco that normally have more than 10 bikes available?", "question_toks": [ "what", "are", "id", "of", "station", "in", "san", "francisco", "that", "normally", "have", "more", "than", "10", "bike", "available", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 5, 9, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"San Francisco\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "stations", "in", "San", "Francisco", "that", "normally", "have", "more", "than", "10", "bikes", "available", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "station" ], [ "in" ], [ "san" ], [ "francisco" ], [ "that" ], [ "normally" ], [ "have" ], [ "more" ], [ "than" ], [ "10" ], [ "bike", "available" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "station", "NN" ], [ "in", "IN" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ "that", "WDT" ], [ "normally", "RB" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "bike", "NN" ], [ "available", "JJ" ], [ "?", "." ] ], "values": [ "San Francisco", "10" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(6) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(5) C(9) T(1) V(1)" }, { "db_id": "bike_1", "query": "SELECT T1.name , T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available) > 14 UNION SELECT name , id FROM station WHERE installation_date LIKE \"12/%\"", "query_toks": [ "SELECT", "T1.name", ",", "T1.id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "GROUP", "BY", "T2.station_id", "HAVING", "avg", "(", "T2.bikes_available", ")", ">", "14", "UNION", "SELECT", "name", ",", "id", "FROM", "station", "WHERE", "installation_date", "LIKE", "``", "12/", "%", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "value", "union", "select", "name", ",", "id", "from", "station", "where", "installation_date", "like", "value" ], "question": "What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?", "question_toks": [ "what", "are", "name", "and", "id", "of", "station", "that", "had", "more", "than", "14", "bike", "available", "on", "average", "or", "were", "installed", "in", "december", "?" ], "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": [ [ false, 3, [ 0, [ 5, 9, false ], null ], 14.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": { "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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 7, false ], null ], "\"12/%\"", 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": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "ids", "of", "stations", "that", "had", "more", "than", "14", "bikes", "available", "on", "average", "or", "were", "installed", "in", "December", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "station" ], [ "that" ], [ "had" ], [ "more" ], [ "than" ], [ "14" ], [ "bike", "available" ], [ "on" ], [ "average" ], [ "or" ], [ "were" ], [ "installed" ], [ "in" ], [ "december" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "14", "CD" ], [ "bike", "NN" ], [ "available", "JJ" ], [ "on", "IN" ], [ "average", "NN" ], [ "or", "CC" ], [ "were", "VBD" ], [ "installed", "VBN" ], [ "in", "IN" ], [ "december", "NN" ], [ "?", "." ] ], "values": [ "12/", "14" ], "rule_label": "Root1(1) Root(3) Sel(0) N(1) A(0) C(2) T(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(8) T(1) Filter(5) A(5) C(9) T(1) V(1) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(9) A(0) C(7) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT T1.name , T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(T2.bikes_available) > 14 UNION SELECT name , id FROM station WHERE installation_date LIKE \"12/%\"", "query_toks": [ "SELECT", "T1.name", ",", "T1.id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "GROUP", "BY", "T2.station_id", "HAVING", "avg", "(", "T2.bikes_available", ")", ">", "14", "UNION", "SELECT", "name", ",", "id", "FROM", "station", "WHERE", "installation_date", "LIKE", "``", "12/", "%", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "value", "union", "select", "name", ",", "id", "from", "station", "where", "installation_date", "like", "value" ], "question": "What are the names and ids of all stations that have more than 14 bikes available on average or had bikes installed in December?", "question_toks": [ "what", "are", "name", "and", "id", "of", "all", "station", "that", "have", "more", "than", "14", "bike", "available", "on", "average", "or", "had", "bike", "installed", "in", "december", "?" ], "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": [ [ false, 3, [ 0, [ 5, 9, false ], null ], 14.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": { "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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 7, false ], null ], "\"12/%\"", 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": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "ids", "of", "all", "stations", "that", "have", "more", "than", "14", "bikes", "available", "on", "average", "or", "had", "bikes", "installed", "in", "December", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "all" ], [ "station" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "14" ], [ "bike", "available" ], [ "on" ], [ "average" ], [ "or" ], [ "had" ], [ "bike" ], [ "installed" ], [ "in" ], [ "december" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "station", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "14", "CD" ], [ "bike", "NN" ], [ "available", "JJ" ], [ "on", "IN" ], [ "average", "NN" ], [ "or", "CC" ], [ "had", "VBD" ], [ "bike", "VBN" ], [ "installed", "VBN" ], [ "in", "IN" ], [ "december", "NN" ], [ "?", "." ] ], "values": [ "12/", "14" ], "rule_label": "Root1(1) Root(3) Sel(0) N(1) A(0) C(2) T(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(8) T(1) Filter(5) A(5) C(9) T(1) V(1) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(9) A(0) C(7) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT cloud_cover FROM weather WHERE zip_code = 94107 GROUP BY cloud_cover ORDER BY COUNT (*) DESC LIMIT 3", "query_toks": [ "SELECT", "cloud_cover", "FROM", "weather", "WHERE", "zip_code", "=", "94107", "GROUP", "BY", "cloud_cover", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "cloud_cover", "from", "weather", "where", "zip_code", "=", "value", "group", "by", "cloud_cover", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the 3 most common cloud cover rates in the region of zip code 94107?", "question_toks": [ "what", "is", "3", "most", "common", "cloud", "cover", "rate", "in", "region", "of", "zip", "code", "94107", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 43, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 46, false ], null ], 94107.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "3", "most", "common", "cloud", "cover", "rates", "in", "the", "region", "of", "zip", "code", "94107", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "3" ], [ "most" ], [ "common" ], [ "cloud", "cover" ], [ "rate" ], [ "in" ], [ "region" ], [ "of" ], [ "zip", "code" ], [ "94107" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "3", "CD" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "cloud", "JJ" ], [ "cover", "NN" ], [ "rate", "NN" ], [ "in", "IN" ], [ "region", "NN" ], [ "of", "IN" ], [ "zip", "NN" ], [ "code", "NN" ], [ "94107", "CD" ], [ "?", "." ] ], "values": [ "94107", "3" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(42) T(3) Sup(0) A(3) C(0) T(3) Filter(2) A(0) C(21) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT cloud_cover FROM weather WHERE zip_code = 94107 GROUP BY cloud_cover ORDER BY COUNT (*) DESC LIMIT 3", "query_toks": [ "SELECT", "cloud_cover", "FROM", "weather", "WHERE", "zip_code", "=", "94107", "GROUP", "BY", "cloud_cover", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "cloud_cover", "from", "weather", "where", "zip_code", "=", "value", "group", "by", "cloud_cover", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the 3 most common cloud covers in the zip code of 94107?", "question_toks": [ "what", "are", "3", "most", "common", "cloud", "cover", "in", "zip", "code", "of", "94107", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 43, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 46, false ], null ], 94107.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "3", "most", "common", "cloud", "covers", "in", "the", "zip", "code", "of", "94107", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "3" ], [ "most" ], [ "common" ], [ "cloud", "cover" ], [ "in" ], [ "zip", "code" ], [ "of" ], [ "94107" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "3", "CD" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "cloud", "NN" ], [ "cover", "NN" ], [ "in", "IN" ], [ "zip", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "94107", "CD" ], [ "?", "." ] ], "values": [ "94107", "3" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(42) T(3) Sup(0) A(3) C(0) T(3) Filter(2) A(0) C(21) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT zip_code FROM weather GROUP BY zip_code ORDER BY avg(mean_sea_level_pressure_inches) LIMIT 1", "query_toks": [ "SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "ORDER", "BY", "avg", "(", "mean_sea_level_pressure_inches", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "zip_code", "from", "weather", "group", "by", "zip_code", "order", "by", "avg", "(", "mean_sea_level_pressure_inches", ")", "limit", "value" ], "question": "What is the zip code in which the average mean sea level pressure is the lowest?", "question_toks": [ "what", "is", "zip", "code", "in", "which", "average", "mean", "sea", "level", "pressure", "is", "lowest", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 5, 34, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "zip", "code", "in", "which", "the", "average", "mean", "sea", "level", "pressure", "is", "the", "lowest", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "zip", "code" ], [ "in" ], [ "which" ], [ "average" ], [ "mean" ], [ "sea" ], [ "level" ], [ "pressure" ], [ "is" ], [ "lowest" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "zip", "JJ" ], [ "code", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "average", "JJ" ], [ "mean", "JJ" ], [ "sea", "NN" ], [ "level", "NN" ], [ "pressure", "NN" ], [ "is", "VBZ" ], [ "lowest", "JJS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(21) T(3) Sup(1) A(5) C(33) T(3)" }, { "db_id": "bike_1", "query": "SELECT zip_code FROM weather GROUP BY zip_code ORDER BY avg(mean_sea_level_pressure_inches) LIMIT 1", "query_toks": [ "SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "ORDER", "BY", "avg", "(", "mean_sea_level_pressure_inches", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "zip_code", "from", "weather", "group", "by", "zip_code", "order", "by", "avg", "(", "mean_sea_level_pressure_inches", ")", "limit", "value" ], "question": "What is the zip code that has the lowest average mean sea level pressure?", "question_toks": [ "what", "is", "zip", "code", "that", "ha", "lowest", "average", "mean", "sea", "level", "pressure", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 5, 34, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "zip", "code", "that", "has", "the", "lowest", "average", "mean", "sea", "level", "pressure", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "zip", "code" ], [ "that" ], [ "ha" ], [ "lowest" ], [ "average" ], [ "mean" ], [ "sea" ], [ "level" ], [ "pressure" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "zip", "JJ" ], [ "code", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "lowest", "JJS" ], [ "average", "JJ" ], [ "mean", "JJ" ], [ "sea", "NN" ], [ "level", "NN" ], [ "pressure", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(21) T(3) Sup(1) A(5) C(33) T(3)" }, { "db_id": "bike_1", "query": "SELECT avg(bikes_available) FROM status WHERE station_id NOT IN (SELECT id FROM station WHERE city = \"Palo Alto\")", "query_toks": [ "SELECT", "avg", "(", "bikes_available", ")", "FROM", "status", "WHERE", "station_id", "NOT", "IN", "(", "SELECT", "id", "FROM", "station", "WHERE", "city", "=", "``", "Palo", "Alto", "''", ")" ], "query_toks_no_value": [ "select", "avg", "(", "bikes_available", ")", "from", "status", "where", "station_id", "not", "in", "(", "select", "id", "from", "station", "where", "city", "=", "value", ")" ], "question": "What is the average bike availability in stations that are not located in Palo Alto?", "question_toks": [ "what", "is", "average", "bike", "availability", "in", "station", "that", "are", "not", "located", "in", "palo", "alto", "?" ], "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 ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 8, false ], null ], { "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, 6, false ], null ], "\"Palo Alto\"", null ] ] }, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "average", "bike", "availability", "in", "stations", "that", "are", "not", "located", "in", "Palo", "Alto", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "bike" ], [ "availability" ], [ "in" ], [ "station" ], [ "that" ], [ "are" ], [ "not" ], [ "located" ], [ "in" ], [ "palo" ], [ "alto" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "bike", "JJ" ], [ "availability", "NN" ], [ "in", "IN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "located", "VBN" ], [ "in", "IN" ], [ "palo", "NN" ], [ "alto", "NN" ], [ "?", "." ] ], "values": [ "Palo Alto" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(9) T(1) Filter(19) A(0) C(8) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT avg(bikes_available) FROM status WHERE station_id NOT IN (SELECT id FROM station WHERE city = \"Palo Alto\")", "query_toks": [ "SELECT", "avg", "(", "bikes_available", ")", "FROM", "status", "WHERE", "station_id", "NOT", "IN", "(", "SELECT", "id", "FROM", "station", "WHERE", "city", "=", "``", "Palo", "Alto", "''", ")" ], "query_toks_no_value": [ "select", "avg", "(", "bikes_available", ")", "from", "status", "where", "station_id", "not", "in", "(", "select", "id", "from", "station", "where", "city", "=", "value", ")" ], "question": "What is the average bike availablility for stations not in Palo Alto?", "question_toks": [ "what", "is", "average", "bike", "availablility", "for", "station", "not", "in", "palo", "alto", "?" ], "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 ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 8, false ], null ], { "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, 6, false ], null ], "\"Palo Alto\"", null ] ] }, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "average", "bike", "availablility", "for", "stations", "not", "in", "Palo", "Alto", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "bike" ], [ "availablility" ], [ "for" ], [ "station" ], [ "not" ], [ "in" ], [ "palo" ], [ "alto" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "bike", "JJ" ], [ "availablility", "NN" ], [ "for", "IN" ], [ "station", "NN" ], [ "not", "RB" ], [ "in", "IN" ], [ "palo", "NN" ], [ "alto", "NN" ], [ "?", "." ] ], "values": [ "Palo Alto" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(9) T(1) Filter(19) A(0) C(8) T(1) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT avg(long) FROM station WHERE id NOT IN (SELECT station_id FROM status GROUP BY station_id HAVING max(bikes_available) > 10)", "query_toks": [ "SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "max", "(", "bikes_available", ")", ">", "10", ")" ], "query_toks_no_value": [ "select", "avg", "(", "long", ")", "from", "station", "where", "id", "not", "in", "(", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "max", "(", "bikes_available", ")", ">", "value", ")" ], "question": "What is the average longitude of stations that never had bike availability more than 10?", "question_toks": [ "what", "is", "average", "longitude", "of", "station", "that", "never", "had", "bike", "availability", "more", "than", "10", "?" ], "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": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 1, 9, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "average", "longitude", "of", "stations", "that", "never", "had", "bike", "availability", "more", "than", "10", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "longitude" ], [ "of" ], [ "station" ], [ "that" ], [ "never" ], [ "had" ], [ "bike" ], [ "availability" ], [ "more" ], [ "than" ], [ "10" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "longitude", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "that", "IN" ], [ "never", "RB" ], [ "had", "VBD" ], [ "bike", "JJ" ], [ "availability", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "?", "." ] ], "values": [ "10" ], "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(8) T(1) Filter(5) A(1) C(9) T(1) V(0)" }, { "db_id": "bike_1", "query": "SELECT avg(long) FROM station WHERE id NOT IN (SELECT station_id FROM status GROUP BY station_id HAVING max(bikes_available) > 10)", "query_toks": [ "SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "max", "(", "bikes_available", ")", ">", "10", ")" ], "query_toks_no_value": [ "select", "avg", "(", "long", ")", "from", "station", "where", "id", "not", "in", "(", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "max", "(", "bikes_available", ")", ">", "value", ")" ], "question": "What is the mean longitude for all stations that have never had more than 10 bikes available?", "question_toks": [ "what", "is", "mean", "longitude", "for", "all", "station", "that", "have", "never", "had", "more", "than", "10", "bike", "available", "?" ], "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": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 1, 9, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "mean", "longitude", "for", "all", "stations", "that", "have", "never", "had", "more", "than", "10", "bikes", "available", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "mean" ], [ "longitude" ], [ "for" ], [ "all" ], [ "station" ], [ "that" ], [ "have" ], [ "never" ], [ "had" ], [ "more" ], [ "than" ], [ "10" ], [ "bike", "available" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "mean", "JJ" ], [ "longitude", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "station", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "never", "RB" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "bike", "NN" ], [ "available", "JJ" ], [ "?", "." ] ], "values": [ "10" ], "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(8) T(1) Filter(5) A(1) C(9) T(1) V(0)" }, { "db_id": "bike_1", "query": "SELECT date , zip_code FROM weather WHERE max_temperature_f >= 80", "query_toks": [ "SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "max_temperature_f", ">", "=", "80" ], "query_toks_no_value": [ "select", "date", ",", "zip_code", "from", "weather", "where", "max_temperature_f", ">", "=", "value" ], "question": "When and in what zip code did max temperature reach 80?", "question_toks": [ "when", "and", "in", "what", "zip", "code", "did", "max", "temperature", "reach", "80", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 24, false ], null ], 80.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "When", "and", "in", "what", "zip", "code", "did", "max", "temperature", "reach", "80", "?" ], "question_arg": [ [ "when" ], [ "and" ], [ "in" ], [ "what" ], [ "zip", "code" ], [ "did" ], [ "max", "temperature", "f" ], [ "reach" ], [ "80" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "and", "CC" ], [ "in", "IN" ], [ "what", "WP" ], [ "zip", "NN" ], [ "code", "NN" ], [ "did", "VBD" ], [ "max", "JJ" ], [ "temperature", "NN" ], [ "reach", "NN" ], [ "80", "CD" ], [ "?", "." ] ], "values": [ "80" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(22) T(3) A(0) C(21) T(3) Filter(7) A(0) C(23) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT date , zip_code FROM weather WHERE max_temperature_f >= 80", "query_toks": [ "SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "max_temperature_f", ">", "=", "80" ], "query_toks_no_value": [ "select", "date", ",", "zip_code", "from", "weather", "where", "max_temperature_f", ">", "=", "value" ], "question": "What zip codes have a station with a max temperature greater than or equal to 80 and when did it reach that temperature?", "question_toks": [ "what", "zip", "code", "have", "a", "station", "with", "a", "max", "temperature", "greater", "than", "or", "equal", "to", "80", "and", "when", "did", "it", "reach", "that", "temperature", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 24, false ], null ], 80.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "zip", "codes", "have", "a", "station", "with", "a", "max", "temperature", "greater", "than", "or", "equal", "to", "80", "and", "when", "did", "it", "reach", "that", "temperature", "?" ], "question_arg": [ [ "what" ], [ "zip", "code" ], [ "have" ], [ "a" ], [ "station" ], [ "with" ], [ "a" ], [ "max", "temperature", "f" ], [ "greater" ], [ "than" ], [ "or" ], [ "equal" ], [ "to" ], [ "80" ], [ "and" ], [ "when" ], [ "did" ], [ "it" ], [ "reach" ], [ "that" ], [ "temperature" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "zip", "NN" ], [ "code", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "station", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "max", "NN" ], [ "temperature", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "or", "CC" ], [ "equal", "JJ" ], [ "to", "TO" ], [ "80", "CD" ], [ "and", "CC" ], [ "when", "WRB" ], [ "did", "VBD" ], [ "it", "PRP" ], [ "reach", "VB" ], [ "that", "IN" ], [ "temperature", "NN" ], [ "?", "." ] ], "values": [ "80" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(22) T(3) A(0) C(21) T(3) Filter(7) A(0) C(23) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.zip_code HAVING avg(T2.mean_temperature_f) > 60", "query_toks": [ "SELECT", "T1.id", "FROM", "trip", "AS", "T1", "JOIN", "weather", "AS", "T2", "ON", "T1.zip_code", "=", "T2.zip_code", "GROUP", "BY", "T2.zip_code", "HAVING", "avg", "(", "T2.mean_temperature_f", ")", ">", "60" ], "query_toks_no_value": [ "select", "t1", ".", "id", "from", "trip", "as", "t1", "join", "weather", "as", "t2", "on", "t1", ".", "zip_code", "=", "t2", ".", "zip_code", "group", "by", "t2", ".", "zip_code", "having", "avg", "(", "t2", ".", "mean_temperature_f", ")", ">", "value" ], "question": "Give me ids for all the trip that took place in a zip code area with average mean temperature above 60.", "question_toks": [ "give", "me", "id", "for", "all", "trip", "that", "took", "place", "in", "a", "zip", "code", "area", "with", "average", "mean", "temperature", "above", "60", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 46, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [ [ false, 3, [ 0, [ 5, 25, false ], null ], 60.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 22, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 46, 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", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Give", "me", "ids", "for", "all", "the", "trip", "that", "took", "place", "in", "a", "zip", "code", "area", "with", "average", "mean", "temperature", "above", "60", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "id" ], [ "for" ], [ "all" ], [ "trip" ], [ "that" ], [ "took" ], [ "place" ], [ "in" ], [ "a" ], [ "zip", "code" ], [ "area" ], [ "with" ], [ "average" ], [ "mean", "temperature", "f" ], [ "above" ], [ "60" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "id", "VB" ], [ "for", "IN" ], [ "all", "DT" ], [ "trip", "NN" ], [ "that", "WDT" ], [ "took", "VBD" ], [ "place", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "zip", "NN" ], [ "code", "NN" ], [ "area", "NN" ], [ "with", "IN" ], [ "average", "JJ" ], [ "mean", "JJ" ], [ "temperature", "NN" ], [ "above", "IN" ], [ "60", "CD" ], [ ".", "." ] ], "values": [ "60" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(0) Filter(18) A(0) C(21) T(2) Root(5) Sel(0) N(0) A(0) C(21) T(3) Filter(5) A(5) C(24) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.zip_code HAVING avg(T2.mean_temperature_f) > 60", "query_toks": [ "SELECT", "T1.id", "FROM", "trip", "AS", "T1", "JOIN", "weather", "AS", "T2", "ON", "T1.zip_code", "=", "T2.zip_code", "GROUP", "BY", "T2.zip_code", "HAVING", "avg", "(", "T2.mean_temperature_f", ")", ">", "60" ], "query_toks_no_value": [ "select", "t1", ".", "id", "from", "trip", "as", "t1", "join", "weather", "as", "t2", "on", "t1", ".", "zip_code", "=", "t2", ".", "zip_code", "group", "by", "t2", ".", "zip_code", "having", "avg", "(", "t2", ".", "mean_temperature_f", ")", ">", "value" ], "question": "For each zip code, find the ids of all trips that have a higher average mean temperature above 60?", "question_toks": [ "for", "each", "zip", "code", ",", "find", "id", "of", "all", "trip", "that", "have", "a", "higher", "average", "mean", "temperature", "above", "60", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 46, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [ [ false, 3, [ 0, [ 5, 25, false ], null ], 60.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 22, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 46, 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", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "zip", "code", ",", "find", "the", "ids", "of", "all", "trips", "that", "have", "a", "higher", "average", "mean", "temperature", "above", "60", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "zip", "code" ], [ "," ], [ "find" ], [ "id" ], [ "of" ], [ "all" ], [ "trip" ], [ "that" ], [ "have" ], [ "a" ], [ "higher" ], [ "average" ], [ "mean", "temperature", "f" ], [ "above" ], [ "60" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "zip", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "trip", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "higher", "JJR" ], [ "average", "JJ" ], [ "mean", "JJ" ], [ "temperature", "NN" ], [ "above", "IN" ], [ "60", "CD" ], [ "?", "." ] ], "values": [ "60" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(0) Filter(18) A(0) C(21) T(2) Root(5) Sel(0) N(0) A(0) C(21) T(3) Filter(5) A(5) C(24) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT zip_code , count(*) FROM weather WHERE max_wind_Speed_mph >= 25 GROUP BY zip_code", "query_toks": [ "SELECT", "zip_code", ",", "count", "(", "*", ")", "FROM", "weather", "WHERE", "max_wind_Speed_mph", ">", "=", "25", "GROUP", "BY", "zip_code" ], "query_toks_no_value": [ "select", "zip_code", ",", "count", "(", "*", ")", "from", "weather", "where", "max_wind_speed_mph", ">", "=", "value", "group", "by", "zip_code" ], "question": "For each zip code, return how many times max wind speed reached 25?", "question_toks": [ "for", "each", "zip", "code", ",", "return", "how", "many", "time", "max", "wind", "speed", "reached", "25", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 39, false ], null ], 25.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "zip", "code", ",", "return", "how", "many", "times", "max", "wind", "speed", "reached", "25", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "zip", "code" ], [ "," ], [ "return" ], [ "how" ], [ "many" ], [ "time" ], [ "max" ], [ "wind" ], [ "speed" ], [ "reached" ], [ "25" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "zip", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "return", "VB" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "time", "NN" ], [ "max", "NN" ], [ "wind", "VBP" ], [ "speed", "NN" ], [ "reached", "VBD" ], [ "25", "CD" ], [ "?", "." ] ], "values": [ "25" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(21) T(3) A(3) C(0) T(3) Filter(7) A(0) C(38) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT zip_code , count(*) FROM weather WHERE max_wind_Speed_mph >= 25 GROUP BY zip_code", "query_toks": [ "SELECT", "zip_code", ",", "count", "(", "*", ")", "FROM", "weather", "WHERE", "max_wind_Speed_mph", ">", "=", "25", "GROUP", "BY", "zip_code" ], "query_toks_no_value": [ "select", "zip_code", ",", "count", "(", "*", ")", "from", "weather", "where", "max_wind_speed_mph", ">", "=", "value", "group", "by", "zip_code" ], "question": "For each zip code, how many times has the maximum wind speed reached 25 mph?", "question_toks": [ "for", "each", "zip", "code", ",", "how", "many", "time", "ha", "maximum", "wind", "speed", "reached", "25", "mph", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 39, false ], null ], 25.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "zip", "code", ",", "how", "many", "times", "has", "the", "maximum", "wind", "speed", "reached", "25", "mph", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "zip", "code" ], [ "," ], [ "how" ], [ "many" ], [ "time" ], [ "ha" ], [ "maximum" ], [ "wind" ], [ "speed" ], [ "reached" ], [ "25" ], [ "mph" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "zip", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "time", "NN" ], [ "ha", "JJ" ], [ "maximum", "JJ" ], [ "wind", "NN" ], [ "speed", "NN" ], [ "reached", "VBD" ], [ "25", "CD" ], [ "mph", "NN" ], [ "?", "." ] ], "values": [ "25" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(21) T(3) A(3) C(0) T(3) Filter(7) A(0) C(38) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT date , zip_code FROM weather WHERE min_dew_point_f < (SELECT min(min_dew_point_f) FROM weather WHERE zip_code = 94107)", "query_toks": [ "SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "min_dew_point_f", "<", "(", "SELECT", "min", "(", "min_dew_point_f", ")", "FROM", "weather", "WHERE", "zip_code", "=", "94107", ")" ], "query_toks_no_value": [ "select", "date", ",", "zip_code", "from", "weather", "where", "min_dew_point_f", "<", "(", "select", "min", "(", "min_dew_point_f", ")", "from", "weather", "where", "zip_code", "=", "value", ")" ], "question": "On which day and in which zip code was the min dew point lower than any day in zip code 94107?", "question_toks": [ "on", "which", "day", "and", "in", "which", "zip", "code", "wa", "min", "dew", "point", "lower", "than", "any", "day", "in", "zip", "code", "94107", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 29, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 46, false ], null ], 94107.0, null ] ] }, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "On", "which", "day", "and", "in", "which", "zip", "code", "was", "the", "min", "dew", "point", "lower", "than", "any", "day", "in", "zip", "code", "94107", "?" ], "question_arg": [ [ "on" ], [ "which" ], [ "day" ], [ "and" ], [ "in" ], [ "which" ], [ "zip", "code" ], [ "wa" ], [ "min" ], [ "dew" ], [ "point" ], [ "lower" ], [ "than" ], [ "any" ], [ "day" ], [ "in" ], [ "zip", "code" ], [ "94107" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "on", "IN" ], [ "which", "WDT" ], [ "day", "NN" ], [ "and", "CC" ], [ "in", "IN" ], [ "which", "WDT" ], [ "zip", "NN" ], [ "code", "NN" ], [ "wa", "IN" ], [ "min", "NN" ], [ "dew", "NN" ], [ "point", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "any", "DT" ], [ "day", "NN" ], [ "in", "IN" ], [ "zip", "NN" ], [ "code", "NN" ], [ "94107", "CD" ], [ "?", "." ] ], "values": [ "94107" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(22) T(3) A(0) C(21) T(3) Filter(12) A(0) C(28) T(3) Root(3) Sel(0) N(0) A(2) C(28) T(3) Filter(2) A(0) C(21) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT date , zip_code FROM weather WHERE min_dew_point_f < (SELECT min(min_dew_point_f) FROM weather WHERE zip_code = 94107)", "query_toks": [ "SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "min_dew_point_f", "<", "(", "SELECT", "min", "(", "min_dew_point_f", ")", "FROM", "weather", "WHERE", "zip_code", "=", "94107", ")" ], "query_toks_no_value": [ "select", "date", ",", "zip_code", "from", "weather", "where", "min_dew_point_f", "<", "(", "select", "min", "(", "min_dew_point_f", ")", "from", "weather", "where", "zip_code", "=", "value", ")" ], "question": "Which days had a minimum dew point smaller than any day in zip code 94107, and in which zip codes were those measurements taken?", "question_toks": [ "which", "day", "had", "a", "minimum", "dew", "point", "smaller", "than", "any", "day", "in", "zip", "code", "94107", ",", "and", "in", "which", "zip", "code", "were", "those", "measurement", "taken", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 29, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 46, false ], null ], 94107.0, null ] ] }, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Which", "days", "had", "a", "minimum", "dew", "point", "smaller", "than", "any", "day", "in", "zip", "code", "94107", ",", "and", "in", "which", "zip", "codes", "were", "those", "measurements", "taken", "?" ], "question_arg": [ [ "which" ], [ "day" ], [ "had" ], [ "a" ], [ "minimum" ], [ "dew" ], [ "point" ], [ "smaller" ], [ "than" ], [ "any" ], [ "day" ], [ "in" ], [ "zip", "code" ], [ "94107" ], [ "," ], [ "and" ], [ "in" ], [ "which" ], [ "zip", "code" ], [ "were" ], [ "those" ], [ "measurement" ], [ "taken" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "day", "NN" ], [ "had", "VBD" ], [ "a", "DT" ], [ "minimum", "JJ" ], [ "dew", "NN" ], [ "point", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "any", "DT" ], [ "day", "NN" ], [ "in", "IN" ], [ "zip", "NN" ], [ "code", "NN" ], [ "94107", "CD" ], [ ",", "," ], [ "and", "CC" ], [ "in", "IN" ], [ "which", "WDT" ], [ "zip", "NN" ], [ "code", "NN" ], [ "were", "VBD" ], [ "those", "DT" ], [ "measurement", "JJ" ], [ "taken", "VBN" ], [ "?", "." ] ], "values": [ "94107" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(22) T(3) A(0) C(21) T(3) Filter(12) A(0) C(28) T(3) Root(3) Sel(0) N(0) A(2) C(28) T(3) Filter(2) A(0) C(21) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT T1.id , T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id", "query_toks": [ "SELECT", "T1.id", ",", "T2.installation_date", "FROM", "trip", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.end_station_id", "=", "T2.id" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t2", ".", "installation_date", "from", "trip", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "end_station_id", "=", "t2", ".", "id" ], "question": "For each trip, return its ending station's installation date.", "question_toks": [ "for", "each", "trip", ",", "return", "it", "ending", "station", "'s", "installation", "date", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 12, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "trip", ",", "return", "its", "ending", "station", "'s", "installation", "date", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "trip" ], [ "," ], [ "return" ], [ "it" ], [ "ending" ], [ "station" ], [ "'s" ], [ "installation", "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "trip", "NN" ], [ ",", "," ], [ "return", "VB" ], [ "it", "PRP" ], [ "ending", "VBG" ], [ "station", "NN" ], [ "'s", "POS" ], [ "installation", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(2) A(0) C(7) T(0)" }, { "db_id": "bike_1", "query": "SELECT T1.id , T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id", "query_toks": [ "SELECT", "T1.id", ",", "T2.installation_date", "FROM", "trip", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.end_station_id", "=", "T2.id" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t2", ".", "installation_date", "from", "trip", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "end_station_id", "=", "t2", ".", "id" ], "question": "What is the installation date for each ending station on all the trips?", "question_toks": [ "what", "is", "installation", "date", "for", "each", "ending", "station", "on", "all", "trip", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 12, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "installation", "date", "for", "each", "ending", "station", "on", "all", "the", "trips", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "installation", "date" ], [ "for" ], [ "each" ], [ "ending" ], [ "station" ], [ "on" ], [ "all" ], [ "trip" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "installation", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "ending", "VBG" ], [ "station", "NN" ], [ "on", "IN" ], [ "all", "DT" ], [ "trip", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(2) A(0) C(7) T(0)" }, { "db_id": "bike_1", "query": "SELECT T1.id FROM trip AS T1 JOIN station AS T2 ON T1.start_station_id = T2.id ORDER BY T2.dock_count DESC LIMIT 1", "query_toks": [ "SELECT", "T1.id", "FROM", "trip", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.start_station_id", "=", "T2.id", "ORDER", "BY", "T2.dock_count", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", "from", "trip", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "start_station_id", "=", "t2", ".", "id", "order", "by", "t2", ".", "dock_count", "desc", "limit", "value" ], "question": "Which trip started from the station with the largest dock count? Give me the trip id.", "question_toks": [ "which", "trip", "started", "from", "station", "with", "largest", "dock", "count", "?", "give", "me", "trip", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Which", "trip", "started", "from", "the", "station", "with", "the", "largest", "dock", "count", "?", "Give", "me", "the", "trip", "id", "." ], "question_arg": [ [ "which" ], [ "trip" ], [ "started" ], [ "from" ], [ "station" ], [ "with" ], [ "largest" ], [ "dock", "count" ], [ "?" ], [ "give" ], [ "me" ], [ "trip" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "trip", "NN" ], [ "started", "VBD" ], [ "from", "IN" ], [ "station", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "dock", "NN" ], [ "count", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "trip", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(2) Sup(0) A(0) C(5) T(0)" }, { "db_id": "bike_1", "query": "SELECT T1.id FROM trip AS T1 JOIN station AS T2 ON T1.start_station_id = T2.id ORDER BY T2.dock_count DESC LIMIT 1", "query_toks": [ "SELECT", "T1.id", "FROM", "trip", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.start_station_id", "=", "T2.id", "ORDER", "BY", "T2.dock_count", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", "from", "trip", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "start_station_id", "=", "t2", ".", "id", "order", "by", "t2", ".", "dock_count", "desc", "limit", "value" ], "question": "What is the id of the trip that started from the station with the highest dock count?", "question_toks": [ "what", "is", "id", "of", "trip", "that", "started", "from", "station", "with", "highest", "dock", "count", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "trip", "that", "started", "from", "the", "station", "with", "the", "highest", "dock", "count", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "trip" ], [ "that" ], [ "started" ], [ "from" ], [ "station" ], [ "with" ], [ "highest" ], [ "dock", "count" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "trip", "NN" ], [ "that", "WDT" ], [ "started", "VBD" ], [ "from", "IN" ], [ "station", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "dock", "NN" ], [ "count", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(2) Sup(0) A(0) C(5) T(0)" }, { "db_id": "bike_1", "query": "SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id WHERE T2.city != \"San Francisco\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "trip", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.end_station_id", "=", "T2.id", "WHERE", "T2.city", "!", "=", "``", "San", "Francisco", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "trip", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "end_station_id", "=", "t2", ".", "id", "where", "t2", ".", "city", "!", "=", "value" ], "question": "Count the number of trips that did not end in San Francisco city.", "question_toks": [ "count", "number", "of", "trip", "that", "did", "not", "end", "in", "san", "francisco", "city", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 7, [ 0, [ 0, 6, false ], null ], "\"San Francisco\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Count", "the", "number", "of", "trips", "that", "did", "not", "end", "in", "San", "Francisco", "city", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "trip" ], [ "that" ], [ "did" ], [ "not" ], [ "end" ], [ "in" ], [ "san" ], [ "francisco" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "trip", "NN" ], [ "that", "WDT" ], [ "did", "VBD" ], [ "not", "RB" ], [ "end", "VB" ], [ "in", "IN" ], [ "san", "JJ" ], [ "francisco", "JJ" ], [ "city", "NN" ], [ ".", "." ] ], "values": [ "San Francisco" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(3) A(0) C(6) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT count(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id WHERE T2.city != \"San Francisco\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "trip", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.end_station_id", "=", "T2.id", "WHERE", "T2.city", "!", "=", "``", "San", "Francisco", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "trip", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "end_station_id", "=", "t2", ".", "id", "where", "t2", ".", "city", "!", "=", "value" ], "question": "How many trips did not end in San Francisco?", "question_toks": [ "how", "many", "trip", "did", "not", "end", "in", "san", "francisco", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, 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, 7, [ 0, [ 0, 6, false ], null ], "\"San Francisco\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "How", "many", "trips", "did", "not", "end", "in", "San", "Francisco", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "trip" ], [ "did" ], [ "not" ], [ "end" ], [ "in" ], [ "san" ], [ "francisco" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "trip", "NN" ], [ "did", "VBD" ], [ "not", "RB" ], [ "end", "VB" ], [ "in", "IN" ], [ "san", "JJ" ], [ "francisco", "NN" ], [ "?", "." ] ], "values": [ "San Francisco" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(3) A(0) C(6) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT date FROM weather WHERE zip_code = 94107 AND EVENTS != \"Fog\" AND EVENTS != \"Rain\"", "query_toks": [ "SELECT", "date", "FROM", "weather", "WHERE", "zip_code", "=", "94107", "AND", "EVENTS", "!", "=", "``", "Fog", "''", "AND", "EVENTS", "!", "=", "``", "Rain", "''" ], "query_toks_no_value": [ "select", "date", "from", "weather", "where", "zip_code", "=", "value", "and", "events", "!", "=", "value", "and", "events", "!", "=", "value" ], "question": "In zip code 94107, on which day neither Fog nor Rain was not observed?", "question_toks": [ "in", "zip", "code", "94107", ",", "on", "which", "day", "neither", "fog", "nor", "rain", "wa", "not", "observed", "?" ], "sql": { "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, 46, false ], null ], 94107.0, null ], "and", [ false, 7, [ 0, [ 0, 44, false ], null ], "\"Fog\"", null ], "and", [ false, 7, [ 0, [ 0, 44, false ], null ], "\"Rain\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "In", "zip", "code", "94107", ",", "on", "which", "day", "neither", "Fog", "nor", "Rain", "was", "not", "observed", "?" ], "question_arg": [ [ "in" ], [ "zip", "code" ], [ "94107" ], [ "," ], [ "on" ], [ "which" ], [ "day" ], [ "neither" ], [ "fog" ], [ "nor" ], [ "rain" ], [ "wa" ], [ "not" ], [ "observed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "zip", "NN" ], [ "code", "NN" ], [ "94107", "CD" ], [ ",", "," ], [ "on", "IN" ], [ "which", "WDT" ], [ "day", "NN" ], [ "neither", "DT" ], [ "fog", "NN" ], [ "nor", "CC" ], [ "rain", "NN" ], [ "wa", "NN" ], [ "not", "RB" ], [ "observed", "VBN" ], [ "?", "." ] ], "values": [ "rain", "Fog", "94107", "Rain" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(3) Filter(0) Filter(2) A(0) C(21) T(3) V(2) Filter(0) Filter(3) A(0) C(43) T(3) V(1) Filter(3) A(0) C(43) T(3) V(3)" }, { "db_id": "bike_1", "query": "SELECT date FROM weather WHERE zip_code = 94107 AND EVENTS != \"Fog\" AND EVENTS != \"Rain\"", "query_toks": [ "SELECT", "date", "FROM", "weather", "WHERE", "zip_code", "=", "94107", "AND", "EVENTS", "!", "=", "``", "Fog", "''", "AND", "EVENTS", "!", "=", "``", "Rain", "''" ], "query_toks_no_value": [ "select", "date", "from", "weather", "where", "zip_code", "=", "value", "and", "events", "!", "=", "value", "and", "events", "!", "=", "value" ], "question": "On which day has it neither been foggy nor rained in the zip code of 94107?", "question_toks": [ "on", "which", "day", "ha", "it", "neither", "been", "foggy", "nor", "rained", "in", "zip", "code", "of", "94107", "?" ], "sql": { "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, 46, false ], null ], 94107.0, null ], "and", [ false, 7, [ 0, [ 0, 44, false ], null ], "\"Fog\"", null ], "and", [ false, 7, [ 0, [ 0, 44, false ], null ], "\"Rain\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "On", "which", "day", "has", "it", "neither", "been", "foggy", "nor", "rained", "in", "the", "zip", "code", "of", "94107", "?" ], "question_arg": [ [ "on" ], [ "which" ], [ "day" ], [ "ha" ], [ "it" ], [ "neither" ], [ "been" ], [ "foggy" ], [ "nor" ], [ "rained" ], [ "in" ], [ "zip", "code" ], [ "of" ], [ "94107" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "on", "IN" ], [ "which", "WDT" ], [ "day", "NN" ], [ "ha", "VBD" ], [ "it", "PRP" ], [ "neither", "RB" ], [ "been", "VBN" ], [ "foggy", "JJ" ], [ "nor", "CC" ], [ "rained", "VBN" ], [ "in", "IN" ], [ "zip", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "94107", "CD" ], [ "?", "." ] ], "values": [ "94107", "Fog", "Rain" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(3) Filter(0) Filter(2) A(0) C(21) T(3) V(0) Filter(0) Filter(3) A(0) C(43) T(3) V(1) Filter(3) A(0) C(43) T(3) V(2)" }, { "db_id": "bike_1", "query": "SELECT id FROM station WHERE lat > 37.4 EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING min(bikes_available) < 7", "query_toks": [ "SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "37.4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "7" ], "query_toks_no_value": [ "select", "id", "from", "station", "where", "lat", ">", "value", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "value" ], "question": "What are the ids of stations that have latitude above 37.4 and never had bike availability below 7?", "question_toks": [ "what", "are", "id", "of", "station", "that", "have", "latitude", "above", "37.4", "and", "never", "had", "bike", "availability", "below", "7", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 4, [ 0, [ 2, 9, false ], null ], 7.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, 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": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 37.4, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "stations", "that", "have", "latitude", "above", "37.4", "and", "never", "had", "bike", "availability", "below", "7", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "station" ], [ "that" ], [ "have" ], [ "latitude" ], [ "above" ], [ "37.4" ], [ "and" ], [ "never" ], [ "had" ], [ "bike" ], [ "availability" ], [ "below" ], [ "7" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "latitude", "VBN" ], [ "above", "IN" ], [ "37.4", "CD" ], [ "and", "CC" ], [ "never", "RB" ], [ "had", "VBD" ], [ "bike", "JJ" ], [ "availability", "NN" ], [ "below", "IN" ], [ "7", "CD" ], [ "?", "." ] ], "values": [ "37.4", "7" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(3) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(4) A(2) C(9) T(1) V(1)" }, { "db_id": "bike_1", "query": "SELECT id FROM station WHERE lat > 37.4 EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING min(bikes_available) < 7", "query_toks": [ "SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "37.4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "7" ], "query_toks_no_value": [ "select", "id", "from", "station", "where", "lat", ">", "value", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "value" ], "question": "What are the ids of all stations that have a latitude above 37.4 and have never had less than 7 bikes available?", "question_toks": [ "what", "are", "id", "of", "all", "station", "that", "have", "a", "latitude", "above", "37.4", "and", "have", "never", "had", "le", "than", "7", "bike", "available", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 4, [ 0, [ 2, 9, false ], null ], 7.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, 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": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 37.4, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "stations", "that", "have", "a", "latitude", "above", "37.4", "and", "have", "never", "had", "less", "than", "7", "bikes", "available", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "station" ], [ "that" ], [ "have" ], [ "a" ], [ "latitude" ], [ "above" ], [ "37.4" ], [ "and" ], [ "have" ], [ "never" ], [ "had" ], [ "le" ], [ "than" ], [ "7" ], [ "bike", "available" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "station", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "latitude", "NN" ], [ "above", "IN" ], [ "37.4", "CD" ], [ "and", "CC" ], [ "have", "VB" ], [ "never", "RB" ], [ "had", "VBN" ], [ "le", "VBN" ], [ "than", "IN" ], [ "7", "CD" ], [ "bike", "NN" ], [ "available", "JJ" ], [ "?", "." ] ], "values": [ "37.4", "7" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(3) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(4) A(2) C(9) T(1) V(1)" }, { "db_id": "bike_1", "query": "SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = \"San Jose\"", "query_toks": [ "SELECT", "T1.name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "GROUP", "BY", "T2.station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10", "EXCEPT", "SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "San", "Jose", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "value", "except", "select", "name", "from", "station", "where", "city", "=", "value" ], "question": "What are names of stations that have average bike availability above 10 and are not located in San Jose city?", "question_toks": [ "what", "are", "name", "of", "station", "that", "have", "average", "bike", "availability", "above", "10", "and", "are", "not", "located", "in", "san", "jose", "city", "?" ], "sql": { "except": { "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, 6, false ], null ], "\"San Jose\"", 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": [ [ false, 3, [ 0, [ 5, 9, 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, 8, 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", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "names", "of", "stations", "that", "have", "average", "bike", "availability", "above", "10", "and", "are", "not", "located", "in", "San", "Jose", "city", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "station" ], [ "that" ], [ "have" ], [ "average" ], [ "bike" ], [ "availability" ], [ "above" ], [ "10" ], [ "and" ], [ "are" ], [ "not" ], [ "located" ], [ "in" ], [ "san" ], [ "jose" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "average", "VBN" ], [ "bike", "JJ" ], [ "availability", "NN" ], [ "above", "IN" ], [ "10", "CD" ], [ "and", "CC" ], [ "are", "VBP" ], [ "not", "RB" ], [ "located", "VBN" ], [ "in", "IN" ], [ "san", "JJ" ], [ "jose", "JJ" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "10", "San Jose" ], "rule_label": "Root1(2) 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(8) T(1) Filter(5) A(5) C(9) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(0) V(1)" }, { "db_id": "bike_1", "query": "SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING avg(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = \"San Jose\"", "query_toks": [ "SELECT", "T1.name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "GROUP", "BY", "T2.station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10", "EXCEPT", "SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "San", "Jose", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "value", "except", "select", "name", "from", "station", "where", "city", "=", "value" ], "question": "What are the names of all stations that have more than 10 bikes available and are not located in San Jose?", "question_toks": [ "what", "are", "name", "of", "all", "station", "that", "have", "more", "than", "10", "bike", "available", "and", "are", "not", "located", "in", "san", "jose", "?" ], "sql": { "except": { "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, 6, false ], null ], "\"San Jose\"", 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": [ [ false, 3, [ 0, [ 5, 9, 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, 8, 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", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "stations", "that", "have", "more", "than", "10", "bikes", "available", "and", "are", "not", "located", "in", "San", "Jose", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "station" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "10" ], [ "bike", "available" ], [ "and" ], [ "are" ], [ "not" ], [ "located" ], [ "in" ], [ "san" ], [ "jose" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "station", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "bike", "NN" ], [ "available", "JJ" ], [ "and", "CC" ], [ "are", "VBP" ], [ "not", "RB" ], [ "located", "VBN" ], [ "in", "IN" ], [ "san", "NN" ], [ "jose", "NN" ], [ "?", "." ] ], "values": [ "San Jose", "10" ], "rule_label": "Root1(2) 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(8) T(1) Filter(5) A(5) C(9) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT name , lat , city FROM station ORDER BY lat LIMIT 1", "query_toks": [ "SELECT", "name", ",", "lat", ",", "city", "FROM", "station", "ORDER", "BY", "lat", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "lat", ",", "city", "from", "station", "order", "by", "lat", "limit", "value" ], "question": "What are the name, latitude, and city of the station with the lowest latitude?", "question_toks": [ "what", "are", "name", ",", "latitude", ",", "and", "city", "of", "station", "with", "lowest", "latitude", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "name", ",", "latitude", ",", "and", "city", "of", "the", "station", "with", "the", "lowest", "latitude", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "latitude" ], [ "," ], [ "and" ], [ "city" ], [ "of" ], [ "station" ], [ "with" ], [ "lowest" ], [ "latitude" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "latitude", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "with", "IN" ], [ "lowest", "JJS" ], [ "latitude", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(6) T(0) Sup(1) A(0) C(3) T(0)" }, { "db_id": "bike_1", "query": "SELECT name , lat , city FROM station ORDER BY lat LIMIT 1", "query_toks": [ "SELECT", "name", ",", "lat", ",", "city", "FROM", "station", "ORDER", "BY", "lat", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "lat", ",", "city", "from", "station", "order", "by", "lat", "limit", "value" ], "question": "What is the name, latitude, and city of the station that is located the furthest South?", "question_toks": [ "what", "is", "name", ",", "latitude", ",", "and", "city", "of", "station", "that", "is", "located", "furthest", "south", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "name", ",", "latitude", ",", "and", "city", "of", "the", "station", "that", "is", "located", "the", "furthest", "South", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "," ], [ "latitude" ], [ "," ], [ "and" ], [ "city" ], [ "of" ], [ "station" ], [ "that" ], [ "is" ], [ "located" ], [ "furthest" ], [ "south" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ ",", "," ], [ "latitude", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "located", "VBN" ], [ "furthest", "JJS" ], [ "south", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(6) T(0) Sup(1) A(0) C(3) T(0)" }, { "db_id": "bike_1", "query": "SELECT date , mean_temperature_f , mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3", "query_toks": [ "SELECT", "date", ",", "mean_temperature_f", ",", "mean_humidity", "FROM", "weather", "ORDER", "BY", "max_gust_speed_mph", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "date", ",", "mean_temperature_f", ",", "mean_humidity", "from", "weather", "order", "by", "max_gust_speed_mph", "desc", "limit", "value" ], "question": "What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?", "question_toks": [ "what", "are", "date", ",", "mean", "temperature", "and", "mean", "humidity", "for", "top", "3", "day", "with", "largest", "max", "gust", "speed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 41, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "date", ",", "mean", "temperature", "and", "mean", "humidity", "for", "the", "top", "3", "days", "with", "the", "largest", "max", "gust", "speeds", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date" ], [ "," ], [ "mean", "temperature", "f" ], [ "and" ], [ "mean", "humidity" ], [ "for" ], [ "top" ], [ "3" ], [ "day" ], [ "with" ], [ "largest" ], [ "max" ], [ "gust" ], [ "speed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ ",", "," ], [ "mean", "JJ" ], [ "temperature", "NN" ], [ "and", "CC" ], [ "mean", "JJ" ], [ "humidity", "NN" ], [ "for", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "day", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "max", "NN" ], [ "gust", "NN" ], [ "speed", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(22) T(3) A(0) C(24) T(3) A(0) C(30) T(3) Sup(0) A(0) C(40) T(3)" }, { "db_id": "bike_1", "query": "SELECT date , mean_temperature_f , mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3", "query_toks": [ "SELECT", "date", ",", "mean_temperature_f", ",", "mean_humidity", "FROM", "weather", "ORDER", "BY", "max_gust_speed_mph", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "date", ",", "mean_temperature_f", ",", "mean_humidity", "from", "weather", "order", "by", "max_gust_speed_mph", "desc", "limit", "value" ], "question": "What is the date, average temperature and mean humidity for the days with the 3 largest maximum gust speeds?", "question_toks": [ "what", "is", "date", ",", "average", "temperature", "and", "mean", "humidity", "for", "day", "with", "3", "largest", "maximum", "gust", "speed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 41, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ], [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "date", ",", "average", "temperature", "and", "mean", "humidity", "for", "the", "days", "with", "the", "3", "largest", "maximum", "gust", "speeds", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "date" ], [ "," ], [ "average" ], [ "temperature" ], [ "and" ], [ "mean", "humidity" ], [ "for" ], [ "day" ], [ "with" ], [ "3" ], [ "largest" ], [ "maximum" ], [ "gust" ], [ "speed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "date", "NN" ], [ ",", "," ], [ "average", "JJ" ], [ "temperature", "NN" ], [ "and", "CC" ], [ "mean", "JJ" ], [ "humidity", "NN" ], [ "for", "IN" ], [ "day", "NN" ], [ "with", "IN" ], [ "3", "CD" ], [ "largest", "JJS" ], [ "maximum", "NN" ], [ "gust", "NN" ], [ "speed", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(22) T(3) A(0) C(24) T(3) A(0) C(30) T(3) Sup(0) A(0) C(40) T(3)" }, { "db_id": "bike_1", "query": "SELECT city , COUNT(*) FROM station GROUP BY city HAVING COUNT(*) >= 15", "query_toks": [ "SELECT", "city", ",", "COUNT", "(", "*", ")", "FROM", "station", "GROUP", "BY", "city", "HAVING", "COUNT", "(", "*", ")", ">", "=", "15" ], "query_toks_no_value": [ "select", "city", ",", "count", "(", "*", ")", "from", "station", "group", "by", "city", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "List the name and the number of stations for all the cities that have at least 15 stations.", "question_toks": [ "list", "name", "and", "number", "of", "station", "for", "all", "city", "that", "have", "at", "least", "15", "station", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 15.0, null ] ], "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", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "List", "the", "name", "and", "the", "number", "of", "stations", "for", "all", "the", "cities", "that", "have", "at", "least", "15", "stations", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "station" ], [ "for" ], [ "all" ], [ "city" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "15" ], [ "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "city", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "15", "CD" ], [ "station", "NN" ], [ ".", "." ] ], "values": [ "15" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(0) A(3) C(0) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT city , COUNT(*) FROM station GROUP BY city HAVING COUNT(*) >= 15", "query_toks": [ "SELECT", "city", ",", "COUNT", "(", "*", ")", "FROM", "station", "GROUP", "BY", "city", "HAVING", "COUNT", "(", "*", ")", ">", "=", "15" ], "query_toks_no_value": [ "select", "city", ",", "count", "(", "*", ")", "from", "station", "group", "by", "city", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What is the name of every city that has at least 15 stations and how many stations does it have?", "question_toks": [ "what", "is", "name", "of", "every", "city", "that", "ha", "at", "least", "15", "station", "and", "how", "many", "station", "doe", "it", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 15.0, null ] ], "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", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "every", "city", "that", "has", "at", "least", "15", "stations", "and", "how", "many", "stations", "does", "it", "have", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "every" ], [ "city" ], [ "that" ], [ "ha" ], [ "at" ], [ "least" ], [ "15" ], [ "station" ], [ "and" ], [ "how" ], [ "many" ], [ "station" ], [ "doe" ], [ "it" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "city", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "at", "IN" ], [ "least", "JJS" ], [ "15", "CD" ], [ "station", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "station", "NN" ], [ "doe", "NN" ], [ "it", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "15" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(0) A(3) C(0) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT start_station_id , start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*) >= 200", "query_toks": [ "SELECT", "start_station_id", ",", "start_station_name", "FROM", "trip", "GROUP", "BY", "start_station_name", "HAVING", "COUNT", "(", "*", ")", ">", "=", "200" ], "query_toks_no_value": [ "select", "start_station_id", ",", "start_station_name", "from", "trip", "group", "by", "start_station_name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Find the ids and names of stations from which at least 200 trips started.", "question_toks": [ "find", "id", "and", "name", "of", "station", "from", "which", "at", "least", "200", "trip", "started", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 200.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Find", "the", "ids", "and", "names", "of", "stations", "from", "which", "at", "least", "200", "trips", "started", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "station" ], [ "from" ], [ "which" ], [ "at" ], [ "least" ], [ "200" ], [ "trip" ], [ "started" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "from", "IN" ], [ "which", "WDT" ], [ "at", "IN" ], [ "least", "JJS" ], [ "200", "CD" ], [ "trip", "NN" ], [ "started", "VBD" ], [ ".", "." ] ], "values": [ "200" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(15) T(2) A(0) C(14) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT start_station_id , start_station_name FROM trip GROUP BY start_station_name HAVING COUNT(*) >= 200", "query_toks": [ "SELECT", "start_station_id", ",", "start_station_name", "FROM", "trip", "GROUP", "BY", "start_station_name", "HAVING", "COUNT", "(", "*", ")", ">", "=", "200" ], "query_toks_no_value": [ "select", "start_station_id", ",", "start_station_name", "from", "trip", "group", "by", "start_station_name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the ids and names of all start stations that were the beginning of at least 200 trips?", "question_toks": [ "what", "are", "id", "and", "name", "of", "all", "start", "station", "that", "were", "beginning", "of", "at", "least", "200", "trip", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 200.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "names", "of", "all", "start", "stations", "that", "were", "the", "beginning", "of", "at", "least", "200", "trips", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "all" ], [ "start" ], [ "station" ], [ "that" ], [ "were" ], [ "beginning" ], [ "of" ], [ "at" ], [ "least" ], [ "200" ], [ "trip" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "start", "NN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "beginning", "VBG" ], [ "of", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "200", "CD" ], [ "trip", "NN" ], [ "?", "." ] ], "values": [ "200" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(15) T(2) A(0) C(14) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_visibility_miles) < 10", "query_toks": [ "SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "mean_visibility_miles", ")", "<", "10" ], "query_toks_no_value": [ "select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "mean_visibility_miles", ")", "<", "value" ], "question": "Find the zip code in which the average mean visibility is lower than 10.", "question_toks": [ "find", "zip", "code", "in", "which", "average", "mean", "visibility", "is", "lower", "than", "10", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [ [ false, 4, [ 0, [ 5, 37, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Find", "the", "zip", "code", "in", "which", "the", "average", "mean", "visibility", "is", "lower", "than", "10", "." ], "question_arg": [ [ "find" ], [ "zip", "code" ], [ "in" ], [ "which" ], [ "average" ], [ "mean", "visibility", "mile" ], [ "is" ], [ "lower" ], [ "than" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "zip", "NN" ], [ "code", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "average", "JJ" ], [ "mean", "JJ" ], [ "visibility", "NN" ], [ "is", "VBZ" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(3) Filter(4) A(5) C(36) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_visibility_miles) < 10", "query_toks": [ "SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "mean_visibility_miles", ")", "<", "10" ], "query_toks_no_value": [ "select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "mean_visibility_miles", ")", "<", "value" ], "question": "For each zip code, select all those that have an average mean visiblity below 10.", "question_toks": [ "for", "each", "zip", "code", ",", "select", "all", "those", "that", "have", "an", "average", "mean", "visiblity", "below", "10", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [ [ false, 4, [ 0, [ 5, 37, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "zip", "code", ",", "select", "all", "those", "that", "have", "an", "average", "mean", "visiblity", "below", "10", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "zip", "code" ], [ "," ], [ "select" ], [ "all" ], [ "those" ], [ "that" ], [ "have" ], [ "an" ], [ "average" ], [ "mean" ], [ "visiblity" ], [ "below" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "zip", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "select", "VBP" ], [ "all", "PDT" ], [ "those", "DT" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "average", "JJ" ], [ "mean", "JJ" ], [ "visiblity", "NN" ], [ "below", "IN" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(3) Filter(4) A(5) C(36) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT city FROM station GROUP BY city ORDER BY max(lat) DESC", "query_toks": [ "SELECT", "city", "FROM", "station", "GROUP", "BY", "city", "ORDER", "BY", "max", "(", "lat", ")", "DESC" ], "query_toks_no_value": [ "select", "city", "from", "station", "group", "by", "city", "order", "by", "max", "(", "lat", ")", "desc" ], "question": "List all the cities in a decreasing order of each city's stations' highest latitude.", "question_toks": [ "list", "all", "city", "in", "a", "decreasing", "order", "of", "each", "city", "'s", "station", "'", "highest", "latitude", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 1, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "List", "all", "the", "cities", "in", "a", "decreasing", "order", "of", "each", "city", "'s", "stations", "'", "highest", "latitude", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "city" ], [ "in" ], [ "a" ], [ "decreasing" ], [ "order" ], [ "of" ], [ "each" ], [ "city" ], [ "'s" ], [ "station" ], [ "'" ], [ "highest" ], [ "latitude" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "city", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "decreasing", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ "'s", "POS" ], [ "station", "NN" ], [ "'", "''" ], [ "highest", "JJS" ], [ "latitude", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(0) Order(0) A(1) C(3) T(0)" }, { "db_id": "bike_1", "query": "SELECT city FROM station GROUP BY city ORDER BY max(lat) DESC", "query_toks": [ "SELECT", "city", "FROM", "station", "GROUP", "BY", "city", "ORDER", "BY", "max", "(", "lat", ")", "DESC" ], "query_toks_no_value": [ "select", "city", "from", "station", "group", "by", "city", "order", "by", "max", "(", "lat", ")", "desc" ], "question": "For each city, list their names in decreasing order by their highest station latitude.", "question_toks": [ "for", "each", "city", ",", "list", "their", "name", "in", "decreasing", "order", "by", "their", "highest", "station", "latitude", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 1, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "city", ",", "list", "their", "names", "in", "decreasing", "order", "by", "their", "highest", "station", "latitude", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "city" ], [ "," ], [ "list" ], [ "their" ], [ "name" ], [ "in" ], [ "decreasing" ], [ "order" ], [ "by" ], [ "their" ], [ "highest" ], [ "station" ], [ "latitude" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ ",", "," ], [ "list", "VBP" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "in", "IN" ], [ "decreasing", "VBG" ], [ "order", "NN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "highest", "JJS" ], [ "station", "NN" ], [ "latitude", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(0) Order(0) A(1) C(3) T(0)" }, { "db_id": "bike_1", "query": "SELECT date , cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5", "query_toks": [ "SELECT", "date", ",", "cloud_cover", "FROM", "weather", "ORDER", "BY", "cloud_cover", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "date", ",", "cloud_cover", "from", "weather", "order", "by", "cloud_cover", "desc", "limit", "value" ], "question": "What are the dates that had the top 5 cloud cover rates? Also tell me the cloud cover rate.", "question_toks": [ "what", "are", "date", "that", "had", "top", "5", "cloud", "cover", "rate", "?", "also", "tell", "me", "cloud", "cover", "rate", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 43, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "dates", "that", "had", "the", "top", "5", "cloud", "cover", "rates", "?", "Also", "tell", "me", "the", "cloud", "cover", "rate", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "date" ], [ "that" ], [ "had" ], [ "top" ], [ "5" ], [ "cloud", "cover" ], [ "rate" ], [ "?" ], [ "also" ], [ "tell" ], [ "me" ], [ "cloud", "cover" ], [ "rate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "top", "JJ" ], [ "5", "CD" ], [ "cloud", "JJ" ], [ "cover", "NN" ], [ "rate", "NN" ], [ "?", "." ], [ "also", "RB" ], [ "tell", "VB" ], [ "me", "PRP" ], [ "cloud", "JJ" ], [ "cover", "NN" ], [ "rate", "NN" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(22) T(3) A(0) C(42) T(3) Sup(0) A(0) C(42) T(3)" }, { "db_id": "bike_1", "query": "SELECT date , cloud_cover FROM weather ORDER BY cloud_cover DESC LIMIT 5", "query_toks": [ "SELECT", "date", ",", "cloud_cover", "FROM", "weather", "ORDER", "BY", "cloud_cover", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "date", ",", "cloud_cover", "from", "weather", "order", "by", "cloud_cover", "desc", "limit", "value" ], "question": "What are the dates that have the 5 highest cloud cover rates and what are the rates?", "question_toks": [ "what", "are", "date", "that", "have", "5", "highest", "cloud", "cover", "rate", "and", "what", "are", "rate", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 43, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 43, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "dates", "that", "have", "the", "5", "highest", "cloud", "cover", "rates", "and", "what", "are", "the", "rates", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date" ], [ "that" ], [ "have" ], [ "5" ], [ "highest" ], [ "cloud", "cover" ], [ "rate" ], [ "and" ], [ "what" ], [ "are" ], [ "rate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "5", "CD" ], [ "highest", "JJS" ], [ "cloud", "JJ" ], [ "cover", "NN" ], [ "rate", "NN" ], [ "and", "CC" ], [ "what", "WP" ], [ "are", "VBP" ], [ "rate", "NN" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(22) T(3) A(0) C(42) T(3) Sup(0) A(0) C(42) T(3)" }, { "db_id": "bike_1", "query": "SELECT id , duration FROM trip ORDER BY duration DESC LIMIT 3", "query_toks": [ "SELECT", "id", ",", "duration", "FROM", "trip", "ORDER", "BY", "duration", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "id", ",", "duration", "from", "trip", "order", "by", "duration", "desc", "limit", "value" ], "question": "What are the ids and durations of the trips with the top 3 durations?", "question_toks": [ "what", "are", "id", "and", "duration", "of", "trip", "with", "top", "3", "duration", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "durations", "of", "the", "trips", "with", "the", "top", "3", "durations", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "duration" ], [ "of" ], [ "trip" ], [ "with" ], [ "top" ], [ "3" ], [ "duration" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "duration", "NN" ], [ "of", "IN" ], [ "trip", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "duration", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(2) A(0) C(12) T(2) Sup(0) A(0) C(12) T(2)" }, { "db_id": "bike_1", "query": "SELECT id , duration FROM trip ORDER BY duration DESC LIMIT 3", "query_toks": [ "SELECT", "id", ",", "duration", "FROM", "trip", "ORDER", "BY", "duration", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "id", ",", "duration", "from", "trip", "order", "by", "duration", "desc", "limit", "value" ], "question": "What are the ids of the trips that lasted the longest and how long did they last?", "question_toks": [ "what", "are", "id", "of", "trip", "that", "lasted", "longest", "and", "how", "long", "did", "they", "last", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "the", "trips", "that", "lasted", "the", "longest", "and", "how", "long", "did", "they", "last", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "trip" ], [ "that" ], [ "lasted" ], [ "longest" ], [ "and" ], [ "how" ], [ "long" ], [ "did" ], [ "they" ], [ "last" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "trip", "NN" ], [ "that", "WDT" ], [ "lasted", "VBD" ], [ "longest", "JJS" ], [ "and", "CC" ], [ "how", "WRB" ], [ "long", "RB" ], [ "did", "VBD" ], [ "they", "PRP" ], [ "last", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(2) A(0) C(12) T(2) Sup(0) A(0) C(12) T(2)" }, { "db_id": "bike_1", "query": "SELECT T1.name , T1.long , avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id", "query_toks": [ "SELECT", "T1.name", ",", "T1.long", ",", "avg", "(", "T2.duration", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1.id", "=", "T2.start_station_id", "GROUP", "BY", "T2.start_station_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "long", ",", "avg", "(", "t2", ".", "duration", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id", "group", "by", "t2", ".", "start_station_id" ], "question": "For each station, return its longitude and the average duration of trips that started from the station.", "question_toks": [ "for", "each", "station", ",", "return", "it", "longitude", "and", "average", "duration", "of", "trip", "that", "started", "from", "station", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "station", ",", "return", "its", "longitude", "and", "the", "average", "duration", "of", "trips", "that", "started", "from", "the", "station", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "station" ], [ "," ], [ "return" ], [ "it" ], [ "longitude" ], [ "and" ], [ "average" ], [ "duration" ], [ "of" ], [ "trip" ], [ "that" ], [ "started" ], [ "from" ], [ "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "station", "NN" ], [ ",", "," ], [ "return", "VB" ], [ "it", "PRP" ], [ "longitude", "JJR" ], [ "and", "CC" ], [ "average", "JJ" ], [ "duration", "NN" ], [ "of", "IN" ], [ "trip", "NN" ], [ "that", "WDT" ], [ "started", "VBD" ], [ "from", "IN" ], [ "station", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(4) T(0) A(5) C(12) T(2)" }, { "db_id": "bike_1", "query": "SELECT T1.name , T1.long , avg(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id", "query_toks": [ "SELECT", "T1.name", ",", "T1.long", ",", "avg", "(", "T2.duration", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1.id", "=", "T2.start_station_id", "GROUP", "BY", "T2.start_station_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "long", ",", "avg", "(", "t2", ".", "duration", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id", "group", "by", "t2", ".", "start_station_id" ], "question": "For each start station id, what is its name, longitude and average duration of trips started there?", "question_toks": [ "for", "each", "start", "station", "id", ",", "what", "is", "it", "name", ",", "longitude", "and", "average", "duration", "of", "trip", "started", "there", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "start", "station", "id", ",", "what", "is", "its", "name", ",", "longitude", "and", "average", "duration", "of", "trips", "started", "there", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "start", "station", "id" ], [ "," ], [ "what" ], [ "is" ], [ "it" ], [ "name" ], [ "," ], [ "longitude" ], [ "and" ], [ "average" ], [ "duration" ], [ "of" ], [ "trip" ], [ "started" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "start", "NN" ], [ "station", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "it", "PRP" ], [ "name", "NN" ], [ ",", "," ], [ "longitude", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "duration", "NN" ], [ "of", "IN" ], [ "trip", "NN" ], [ "started", "VBN" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(4) T(0) A(5) C(12) T(2)" }, { "db_id": "bike_1", "query": "SELECT T1.name , T1.lat , min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY T2.end_station_id", "query_toks": [ "SELECT", "T1.name", ",", "T1.lat", ",", "min", "(", "T2.duration", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1.id", "=", "T2.end_station_id", "GROUP", "BY", "T2.end_station_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "lat", ",", "min", "(", "t2", ".", "duration", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "end_station_id", "group", "by", "t2", ".", "end_station_id" ], "question": "For each station, find its latitude and the minimum duration of trips that ended at the station.", "question_toks": [ "for", "each", "station", ",", "find", "it", "latitude", "and", "minimum", "duration", "of", "trip", "that", "ended", "at", "station", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 2, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "station", ",", "find", "its", "latitude", "and", "the", "minimum", "duration", "of", "trips", "that", "ended", "at", "the", "station", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "station" ], [ "," ], [ "find" ], [ "it" ], [ "latitude" ], [ "and" ], [ "minimum" ], [ "duration" ], [ "of" ], [ "trip" ], [ "that" ], [ "ended" ], [ "at" ], [ "station" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "station", "NN" ], [ ",", "," ], [ "find", "VB" ], [ "it", "PRP" ], [ "latitude", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "duration", "NN" ], [ "of", "IN" ], [ "trip", "NN" ], [ "that", "WDT" ], [ "ended", "VBD" ], [ "at", "IN" ], [ "station", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(2) C(12) T(2)" }, { "db_id": "bike_1", "query": "SELECT T1.name , T1.lat , min(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY T2.end_station_id", "query_toks": [ "SELECT", "T1.name", ",", "T1.lat", ",", "min", "(", "T2.duration", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1.id", "=", "T2.end_station_id", "GROUP", "BY", "T2.end_station_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "lat", ",", "min", "(", "t2", ".", "duration", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "end_station_id", "group", "by", "t2", ".", "end_station_id" ], "question": "For each end station id, what is its name, latitude, and minimum duration for trips ended there?", "question_toks": [ "for", "each", "end", "station", "id", ",", "what", "is", "it", "name", ",", "latitude", ",", "and", "minimum", "duration", "for", "trip", "ended", "there", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 19, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 2, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "For", "each", "end", "station", "id", ",", "what", "is", "its", "name", ",", "latitude", ",", "and", "minimum", "duration", "for", "trips", "ended", "there", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "end", "station", "id" ], [ "," ], [ "what" ], [ "is" ], [ "it" ], [ "name" ], [ "," ], [ "latitude" ], [ "," ], [ "and" ], [ "minimum" ], [ "duration" ], [ "for" ], [ "trip" ], [ "ended" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "end", "NN" ], [ "station", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "is", "VBZ" ], [ "it", "PRP" ], [ "name", "NN" ], [ ",", "," ], [ "latitude", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "duration", "NN" ], [ "for", "IN" ], [ "trip", "NN" ], [ "ended", "VBN" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(2) C(12) T(2)" }, { "db_id": "bike_1", "query": "SELECT DISTINCT start_station_name FROM trip WHERE duration < 100", "query_toks": [ "SELECT", "DISTINCT", "start_station_name", "FROM", "trip", "WHERE", "duration", "<", "100" ], "query_toks_no_value": [ "select", "distinct", "start_station_name", "from", "trip", "where", "duration", "<", "value" ], "question": "List all the distinct stations from which a trip of duration below 100 started.", "question_toks": [ "list", "all", "distinct", "station", "from", "which", "a", "trip", "of", "duration", "below", "100", "started", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 13, false ], null ], 100.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "List", "all", "the", "distinct", "stations", "from", "which", "a", "trip", "of", "duration", "below", "100", "started", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "distinct" ], [ "station" ], [ "from" ], [ "which" ], [ "a" ], [ "trip" ], [ "of" ], [ "duration" ], [ "below" ], [ "100" ], [ "started" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "station", "NN" ], [ "from", "IN" ], [ "which", "WDT" ], [ "a", "DT" ], [ "trip", "NN" ], [ "of", "IN" ], [ "duration", "NN" ], [ "below", "IN" ], [ "100", "CD" ], [ "started", "VBD" ], [ ".", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(14) T(2) Filter(4) A(0) C(12) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT DISTINCT start_station_name FROM trip WHERE duration < 100", "query_toks": [ "SELECT", "DISTINCT", "start_station_name", "FROM", "trip", "WHERE", "duration", "<", "100" ], "query_toks_no_value": [ "select", "distinct", "start_station_name", "from", "trip", "where", "duration", "<", "value" ], "question": "What are all the different start station names for a trip that lasted less than 100?", "question_toks": [ "what", "are", "all", "different", "start", "station", "name", "for", "a", "trip", "that", "lasted", "le", "than", "100", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 13, false ], null ], 100.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "all", "the", "different", "start", "station", "names", "for", "a", "trip", "that", "lasted", "less", "than", "100", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "different" ], [ "start", "station", "name" ], [ "for" ], [ "a" ], [ "trip" ], [ "that" ], [ "lasted" ], [ "le" ], [ "than" ], [ "100" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "different", "JJ" ], [ "start", "NN" ], [ "station", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "a", "DT" ], [ "trip", "NN" ], [ "that", "WDT" ], [ "lasted", "VBD" ], [ "le", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "?", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(14) T(2) Filter(4) A(0) C(12) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70", "query_toks": [ "SELECT", "DISTINCT", "zip_code", "FROM", "weather", "EXCEPT", "SELECT", "DISTINCT", "zip_code", "FROM", "weather", "WHERE", "max_dew_point_f", ">", "=", "70" ], "query_toks_no_value": [ "select", "distinct", "zip_code", "from", "weather", "except", "select", "distinct", "zip_code", "from", "weather", "where", "max_dew_point_f", ">", "=", "value" ], "question": "Find all the zip codes in which the max dew point have never reached 70.", "question_toks": [ "find", "all", "zip", "code", "in", "which", "max", "dew", "point", "have", "never", "reached", "70", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 27, false ], null ], 70.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Find", "all", "the", "zip", "codes", "in", "which", "the", "max", "dew", "point", "have", "never", "reached", "70", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "zip", "code" ], [ "in" ], [ "which" ], [ "max" ], [ "dew" ], [ "point" ], [ "have" ], [ "never" ], [ "reached" ], [ "70" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "zip", "NN" ], [ "code", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "max", "NN" ], [ "dew", "NN" ], [ "point", "NN" ], [ "have", "VBP" ], [ "never", "RB" ], [ "reached", "VBN" ], [ "70", "CD" ], [ ".", "." ] ], "values": [ "70" ], "rule_label": "Root1(2) Root(5) Sel(1) N(0) A(0) C(21) T(3) Root(3) Sel(1) N(0) A(0) C(21) T(3) Filter(7) A(0) C(26) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70", "query_toks": [ "SELECT", "DISTINCT", "zip_code", "FROM", "weather", "EXCEPT", "SELECT", "DISTINCT", "zip_code", "FROM", "weather", "WHERE", "max_dew_point_f", ">", "=", "70" ], "query_toks_no_value": [ "select", "distinct", "zip_code", "from", "weather", "except", "select", "distinct", "zip_code", "from", "weather", "where", "max_dew_point_f", ">", "=", "value" ], "question": "What are all the different zip codes that have a maximum dew point that was always below 70?", "question_toks": [ "what", "are", "all", "different", "zip", "code", "that", "have", "a", "maximum", "dew", "point", "that", "wa", "always", "below", "70", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 27, false ], null ], 70.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "all", "the", "different", "zip", "codes", "that", "have", "a", "maximum", "dew", "point", "that", "was", "always", "below", "70", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "different" ], [ "zip", "code" ], [ "that" ], [ "have" ], [ "a" ], [ "maximum" ], [ "dew" ], [ "point" ], [ "that" ], [ "wa" ], [ "always" ], [ "below" ], [ "70" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "different", "JJ" ], [ "zip", "NN" ], [ "code", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "maximum", "JJ" ], [ "dew", "NN" ], [ "point", "NN" ], [ "that", "WDT" ], [ "wa", "VBP" ], [ "always", "RB" ], [ "below", "IN" ], [ "70", "CD" ], [ "?", "." ] ], "values": [ "70" ], "rule_label": "Root1(2) Root(5) Sel(1) N(0) A(0) C(21) T(3) Root(3) Sel(1) N(0) A(0) C(21) T(3) Filter(7) A(0) C(26) T(3) V(0)" }, { "db_id": "bike_1", "query": "SELECT id FROM trip WHERE duration >= (SELECT avg(duration) FROM trip WHERE zip_code = 94103)", "query_toks": [ "SELECT", "id", "FROM", "trip", "WHERE", "duration", ">", "=", "(", "SELECT", "avg", "(", "duration", ")", "FROM", "trip", "WHERE", "zip_code", "=", "94103", ")" ], "query_toks_no_value": [ "select", "id", "from", "trip", "where", "duration", ">", "=", "(", "select", "avg", "(", "duration", ")", "from", "trip", "where", "zip_code", "=", "value", ")" ], "question": "Find the id for the trips that lasted at least as long as the average duration of trips in zip code 94103.", "question_toks": [ "find", "id", "for", "trip", "that", "lasted", "at", "least", "a", "long", "a", "average", "duration", "of", "trip", "in", "zip", "code", "94103", "." ], "sql": { "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": null, "where": [ [ false, 5, [ 0, [ 0, 13, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 94103.0, null ] ] }, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Find", "the", "id", "for", "the", "trips", "that", "lasted", "at", "least", "as", "long", "as", "the", "average", "duration", "of", "trips", "in", "zip", "code", "94103", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "for" ], [ "trip" ], [ "that" ], [ "lasted" ], [ "at" ], [ "least" ], [ "a" ], [ "long" ], [ "a" ], [ "average" ], [ "duration" ], [ "of" ], [ "trip" ], [ "in" ], [ "zip", "code" ], [ "94103" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "for", "IN" ], [ "trip", "NN" ], [ "that", "WDT" ], [ "lasted", "VBD" ], [ "at", "IN" ], [ "least", "JJS" ], [ "a", "DT" ], [ "long", "JJ" ], [ "a", "DT" ], [ "average", "JJ" ], [ "duration", "NN" ], [ "of", "IN" ], [ "trip", "NN" ], [ "in", "IN" ], [ "zip", "NN" ], [ "code", "NN" ], [ "94103", "CD" ], [ ".", "." ] ], "values": [ "94103" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(16) A(0) C(12) T(2) Root(3) Sel(0) N(0) A(5) C(12) T(2) Filter(2) A(0) C(21) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT id FROM trip WHERE duration >= (SELECT avg(duration) FROM trip WHERE zip_code = 94103)", "query_toks": [ "SELECT", "id", "FROM", "trip", "WHERE", "duration", ">", "=", "(", "SELECT", "avg", "(", "duration", ")", "FROM", "trip", "WHERE", "zip_code", "=", "94103", ")" ], "query_toks_no_value": [ "select", "id", "from", "trip", "where", "duration", ">", "=", "(", "select", "avg", "(", "duration", ")", "from", "trip", "where", "zip_code", "=", "value", ")" ], "question": "What are the ids of all trips that had a duration as long as the average trip duration in the zip code 94103?", "question_toks": [ "what", "are", "id", "of", "all", "trip", "that", "had", "a", "duration", "a", "long", "a", "average", "trip", "duration", "in", "zip", "code", "94103", "?" ], "sql": { "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": null, "where": [ [ false, 5, [ 0, [ 0, 13, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 22, false ], null ], 94103.0, null ] ] }, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "trips", "that", "had", "a", "duration", "as", "long", "as", "the", "average", "trip", "duration", "in", "the", "zip", "code", "94103", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "trip" ], [ "that" ], [ "had" ], [ "a" ], [ "duration" ], [ "a" ], [ "long" ], [ "a" ], [ "average" ], [ "trip" ], [ "duration" ], [ "in" ], [ "zip", "code" ], [ "94103" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "trip", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "a", "DT" ], [ "duration", "NN" ], [ "a", "DT" ], [ "long", "JJ" ], [ "a", "DT" ], [ "average", "JJ" ], [ "trip", "NN" ], [ "duration", "NN" ], [ "in", "IN" ], [ "zip", "NN" ], [ "code", "NN" ], [ "94103", "CD" ], [ "?", "." ] ], "values": [ "94103" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(2) Filter(16) A(0) C(12) T(2) Root(3) Sel(0) N(0) A(5) C(12) T(2) Filter(2) A(0) C(21) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31", "query_toks": [ "SELECT", "date", "FROM", "weather", "WHERE", "mean_sea_level_pressure_inches", "BETWEEN", "30.3", "AND", "31" ], "query_toks_no_value": [ "select", "date", "from", "weather", "where", "mean_sea_level_pressure_inches", "between", "value", "and", "value" ], "question": "What are the dates in which the mean sea level pressure was between 30.3 and 31?", "question_toks": [ "what", "are", "date", "in", "which", "mean", "sea", "level", "pressure", "wa", "between", "30.3", "and", "31", "?" ], "sql": { "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, 1, [ 0, [ 0, 34, false ], null ], 30.3, 31.0 ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "dates", "in", "which", "the", "mean", "sea", "level", "pressure", "was", "between", "30.3", "and", "31", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date" ], [ "in" ], [ "which" ], [ "mean" ], [ "sea" ], [ "level" ], [ "pressure" ], [ "wa" ], [ "between" ], [ "30.3" ], [ "and" ], [ "31" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "mean", "VBP" ], [ "sea", "NN" ], [ "level", "NN" ], [ "pressure", "NN" ], [ "wa", "VBP" ], [ "between", "IN" ], [ "30.3", "CD" ], [ "and", "CC" ], [ "31", "CD" ], [ "?", "." ] ], "values": [ "31", "30.3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(3) Filter(8) A(0) C(33) T(3) V(1) V(0)" }, { "db_id": "bike_1", "query": "SELECT date FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31", "query_toks": [ "SELECT", "date", "FROM", "weather", "WHERE", "mean_sea_level_pressure_inches", "BETWEEN", "30.3", "AND", "31" ], "query_toks_no_value": [ "select", "date", "from", "weather", "where", "mean_sea_level_pressure_inches", "between", "value", "and", "value" ], "question": "What are the dates that have an average sea level pressure between 30.3 and 31?", "question_toks": [ "what", "are", "date", "that", "have", "an", "average", "sea", "level", "pressure", "between", "30.3", "and", "31", "?" ], "sql": { "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, 1, [ 0, [ 0, 34, false ], null ], 30.3, 31.0 ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "dates", "that", "have", "an", "average", "sea", "level", "pressure", "between", "30.3", "and", "31", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date" ], [ "that" ], [ "have" ], [ "an" ], [ "average" ], [ "sea" ], [ "level" ], [ "pressure" ], [ "between" ], [ "30.3" ], [ "and" ], [ "31" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "average", "JJ" ], [ "sea", "NN" ], [ "level", "NN" ], [ "pressure", "NN" ], [ "between", "IN" ], [ "30.3", "CD" ], [ "and", "CC" ], [ "31", "CD" ], [ "?", "." ] ], "values": [ "30.3", "31" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(22) T(3) Filter(8) A(0) C(33) T(3) V(0) V(1)" }, { "db_id": "bike_1", "query": "SELECT date , max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1", "query_toks": [ "SELECT", "date", ",", "max_temperature_f", "-", "min_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "-", "min_temperature_f", "LIMIT", "1" ], "query_toks_no_value": [ "select", "date", ",", "max_temperature_f", "-", "min_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "-", "min_temperature_f", "limit", "value" ], "question": "Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference.", "question_toks": [ "find", "day", "in", "which", "difference", "between", "max", "temperature", "and", "min", "temperature", "wa", "smallest", ".", "also", "report", "difference", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 1, [ 0, 24, false ], [ 0, 26, false ] ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 1, [ 0, 24, false ], [ 0, 26, false ] ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Find", "the", "day", "in", "which", "the", "difference", "between", "the", "max", "temperature", "and", "min", "temperature", "was", "the", "smallest", ".", "Also", "report", "the", "difference", "." ], "question_arg": [ [ "find" ], [ "day" ], [ "in" ], [ "which" ], [ "difference" ], [ "between" ], [ "max", "temperature", "f" ], [ "and" ], [ "min", "temperature", "f" ], [ "wa" ], [ "smallest" ], [ "." ], [ "also" ], [ "report" ], [ "difference" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "day", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "difference", "NN" ], [ "between", "IN" ], [ "max", "JJ" ], [ "temperature", "NN" ], [ "and", "CC" ], [ "min", "JJ" ], [ "temperature", "NN" ], [ "wa", "NN" ], [ "smallest", "NN" ], [ ".", "." ], [ "also", "RB" ], [ "report", "NN" ], [ "difference", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(22) T(3) A(0) C(23) T(3) Sup(1) A(0) C(23) T(3)" }, { "db_id": "bike_1", "query": "SELECT date , max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1", "query_toks": [ "SELECT", "date", ",", "max_temperature_f", "-", "min_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "-", "min_temperature_f", "LIMIT", "1" ], "query_toks_no_value": [ "select", "date", ",", "max_temperature_f", "-", "min_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "-", "min_temperature_f", "limit", "value" ], "question": "What are the days that had the smallest temperature range, and what was that range?", "question_toks": [ "what", "are", "day", "that", "had", "smallest", "temperature", "range", ",", "and", "what", "wa", "that", "range", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 1, [ 0, 24, false ], [ 0, 26, false ] ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 1, [ 0, 24, false ], [ 0, 26, false ] ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "days", "that", "had", "the", "smallest", "temperature", "range", ",", "and", "what", "was", "that", "range", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "day" ], [ "that" ], [ "had" ], [ "smallest" ], [ "temperature" ], [ "range" ], [ "," ], [ "and" ], [ "what" ], [ "wa" ], [ "that" ], [ "range" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "day", "NN" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "smallest", "JJS" ], [ "temperature", "NN" ], [ "range", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WP" ], [ "wa", "VBP" ], [ "that", "DT" ], [ "range", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(22) T(3) A(0) C(23) T(3) Sup(1) A(0) C(23) T(3)" }, { "db_id": "bike_1", "query": "SELECT DISTINCT T1.id , T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12", "query_toks": [ "SELECT", "DISTINCT", "T1.id", ",", "T1.name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "WHERE", "T2.bikes_available", ">", "12" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "id", ",", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "where", "t2", ".", "bikes_available", ">", "value" ], "question": "What are the id and name of the stations that have ever had more than 12 bikes available?", "question_toks": [ "what", "are", "id", "and", "name", "of", "station", "that", "have", "ever", "had", "more", "than", "12", "bike", "available", "?" ], "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, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 12.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "id", "and", "name", "of", "the", "stations", "that", "have", "ever", "had", "more", "than", "12", "bikes", "available", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "station" ], [ "that" ], [ "have" ], [ "ever" ], [ "had" ], [ "more" ], [ "than" ], [ "12" ], [ "bike", "available" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "ever", "RB" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "12", "CD" ], [ "bike", "NN" ], [ "available", "JJ" ], [ "?", "." ] ], "values": [ "12" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "bike_1", "query": "SELECT DISTINCT T1.id , T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12", "query_toks": [ "SELECT", "DISTINCT", "T1.id", ",", "T1.name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "WHERE", "T2.bikes_available", ">", "12" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "id", ",", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "where", "t2", ".", "bikes_available", ">", "value" ], "question": "What are the different ids and names of the stations that have had more than 12 bikes available?", "question_toks": [ "what", "are", "different", "id", "and", "name", "of", "station", "that", "have", "had", "more", "than", "12", "bike", "available", "?" ], "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, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 12.0, null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "different", "ids", "and", "names", "of", "the", "stations", "that", "have", "had", "more", "than", "12", "bikes", "available", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "station" ], [ "that" ], [ "have" ], [ "had" ], [ "more" ], [ "than" ], [ "12" ], [ "bike", "available" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "had", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "12", "CD" ], [ "bike", "NN" ], [ "available", "JJ" ], [ "?", "." ] ], "values": [ "12" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "bike_1", "query": "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count(*) >= 100", "query_toks": [ "SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "mean_humidity", ")", "<", "70", "INTERSECT", "SELECT", "zip_code", "FROM", "trip", "GROUP", "BY", "zip_code", "HAVING", "count", "(", "*", ")", ">", "=", "100" ], "query_toks_no_value": [ "select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "mean_humidity", ")", "<", "value", "intersect", "select", "zip_code", "from", "trip", "group", "by", "zip_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place.", "question_toks": [ "give", "me", "zip", "code", "where", "average", "mean", "humidity", "is", "below", "70", "and", "at", "least", "100", "trip", "took", "place", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [ [ false, 4, [ 0, [ 5, 31, false ], null ], 70.0, null ] ], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 100.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "Give", "me", "the", "zip", "code", "where", "the", "average", "mean", "humidity", "is", "below", "70", "and", "at", "least", "100", "trips", "took", "place", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "zip", "code" ], [ "where" ], [ "average" ], [ "mean", "humidity" ], [ "is" ], [ "below" ], [ "70" ], [ "and" ], [ "at" ], [ "least" ], [ "100" ], [ "trip" ], [ "took" ], [ "place" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "zip", "NN" ], [ "code", "NN" ], [ "where", "WRB" ], [ "average", "JJ" ], [ "mean", "JJ" ], [ "humidity", "NN" ], [ "is", "VBZ" ], [ "below", "IN" ], [ "70", "CD" ], [ "and", "CC" ], [ "at", "IN" ], [ "least", "JJS" ], [ "100", "CD" ], [ "trip", "NN" ], [ "took", "VBD" ], [ "place", "NN" ], [ ".", "." ] ], "values": [ "100", "70" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(21) T(3) Filter(4) A(5) C(30) T(3) V(1) Root(3) Sel(0) N(0) A(0) C(21) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT zip_code FROM weather GROUP BY zip_code HAVING avg(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING count(*) >= 100", "query_toks": [ "SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "mean_humidity", ")", "<", "70", "INTERSECT", "SELECT", "zip_code", "FROM", "trip", "GROUP", "BY", "zip_code", "HAVING", "count", "(", "*", ")", ">", "=", "100" ], "query_toks_no_value": [ "select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "mean_humidity", ")", "<", "value", "intersect", "select", "zip_code", "from", "trip", "group", "by", "zip_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the zip codes that have an average mean humidity below 70 and had at least 100 trips come through there?", "question_toks": [ "what", "are", "zip", "code", "that", "have", "an", "average", "mean", "humidity", "below", "70", "and", "had", "at", "least", "100", "trip", "come", "through", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 46, false ] ], "having": [ [ false, 4, [ 0, [ 5, 31, false ], null ], 70.0, null ] ], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 100.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "zip", "codes", "that", "have", "an", "average", "mean", "humidity", "below", "70", "and", "had", "at", "least", "100", "trips", "come", "through", "there", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "zip", "code" ], [ "that" ], [ "have" ], [ "an" ], [ "average" ], [ "mean", "humidity" ], [ "below" ], [ "70" ], [ "and" ], [ "had" ], [ "at" ], [ "least" ], [ "100" ], [ "trip" ], [ "come" ], [ "through" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "zip", "JJ" ], [ "code", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "average", "JJ" ], [ "mean", "JJ" ], [ "humidity", "NN" ], [ "below", "IN" ], [ "70", "CD" ], [ "and", "CC" ], [ "had", "VBD" ], [ "at", "IN" ], [ "least", "JJS" ], [ "100", "CD" ], [ "trip", "NN" ], [ "come", "VBN" ], [ "through", "IN" ], [ "there", "RB" ], [ "?", "." ] ], "values": [ "100", "70" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(21) T(3) Filter(4) A(5) C(30) T(3) V(1) Root(3) Sel(0) N(0) A(0) C(21) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT name FROM station WHERE city = \"Palo Alto\" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING count(*) > 100", "query_toks": [ "SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "Palo", "Alto", "''", "EXCEPT", "SELECT", "end_station_name", "FROM", "trip", "GROUP", "BY", "end_station_name", "HAVING", "count", "(", "*", ")", ">", "100" ], "query_toks_no_value": [ "select", "name", "from", "station", "where", "city", "=", "value", "except", "select", "end_station_name", "from", "trip", "group", "by", "end_station_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the names of stations that are located in Palo Alto city but have never been the ending point of trips more than 100 times?", "question_toks": [ "what", "are", "name", "of", "station", "that", "are", "located", "in", "palo", "alto", "city", "but", "have", "never", "been", "ending", "point", "of", "trip", "more", "than", "100", "time", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 100.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "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, 6, false ], null ], "\"Palo Alto\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "stations", "that", "are", "located", "in", "Palo", "Alto", "city", "but", "have", "never", "been", "the", "ending", "point", "of", "trips", "more", "than", "100", "times", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "station" ], [ "that" ], [ "are" ], [ "located" ], [ "in" ], [ "palo" ], [ "alto" ], [ "city" ], [ "but" ], [ "have" ], [ "never" ], [ "been" ], [ "ending" ], [ "point" ], [ "of" ], [ "trip" ], [ "more" ], [ "than" ], [ "100" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "palo", "JJ" ], [ "alto", "JJ" ], [ "city", "NN" ], [ "but", "CC" ], [ "have", "VBP" ], [ "never", "RB" ], [ "been", "VBN" ], [ "ending", "VBG" ], [ "point", "NN" ], [ "of", "IN" ], [ "trip", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "time", "NN" ], [ "?", "." ] ], "values": [ "100", "Palo Alto" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(17) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "bike_1", "query": "SELECT name FROM station WHERE city = \"Palo Alto\" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING count(*) > 100", "query_toks": [ "SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "Palo", "Alto", "''", "EXCEPT", "SELECT", "end_station_name", "FROM", "trip", "GROUP", "BY", "end_station_name", "HAVING", "count", "(", "*", ")", ">", "100" ], "query_toks_no_value": [ "select", "name", "from", "station", "where", "city", "=", "value", "except", "select", "end_station_name", "from", "trip", "group", "by", "end_station_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the names of the stations that are located in Palo Alto but have never been the ending point of the trips", "question_toks": [ "what", "are", "name", "of", "station", "that", "are", "located", "in", "palo", "alto", "but", "have", "never", "been", "ending", "point", "of", "trip" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 100.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "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, 6, false ], null ], "\"Palo Alto\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "stations", "that", "are", "located", "in", "Palo", "Alto", "but", "have", "never", "been", "the", "ending", "point", "of", "the", "trips" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "station" ], [ "that" ], [ "are" ], [ "located" ], [ "in" ], [ "palo" ], [ "alto" ], [ "but" ], [ "have" ], [ "never" ], [ "been" ], [ "ending" ], [ "point" ], [ "of" ], [ "trip" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "station", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "in", "IN" ], [ "palo", "JJ" ], [ "alto", "NN" ], [ "but", "CC" ], [ "have", "VBP" ], [ "never", "RB" ], [ "been", "VBN" ], [ "ending", "VBG" ], [ "point", "NN" ], [ "of", "IN" ], [ "trip", "NN" ] ], "values": [ "Palo Alto", "100" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(17) T(2) Filter(5) A(3) C(0) T(2) V(1)" }, { "db_id": "bike_1", "query": "SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = \"Mountain View\" AND T3.city = \"Palo Alto\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "JOIN", "station", "AS", "T3", "JOIN", "trip", "AS", "T4", "ON", "T1.id", "=", "T2.start_station_id", "AND", "T2.id", "=", "T4.id", "AND", "T3.id", "=", "T4.end_station_id", "WHERE", "T1.city", "=", "``", "Mountain", "View", "''", "AND", "T3.city", "=", "``", "Palo", "Alto", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "join", "station", "as", "t3", "join", "trip", "as", "t4", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id", "and", "t2", ".", "id", "=", "t4", ".", "id", "and", "t3", ".", "id", "=", "t4", ".", "end_station_id", "where", "t1", ".", "city", "=", "value", "and", "t3", ".", "city", "=", "value" ], "question": "How many trips started from Mountain View city and ended at Palo Alto city?", "question_toks": [ "how", "many", "trip", "started", "from", "mountain", "view", "city", "and", "ended", "at", "palo", "alto", "city", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 16, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 12, false ], null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ], [ "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, 6, false ], null ], "\"Mountain View\"", null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Palo Alto\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "How", "many", "trips", "started", "from", "Mountain", "View", "city", "and", "ended", "at", "Palo", "Alto", "city", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "trip" ], [ "started" ], [ "from" ], [ "mountain" ], [ "view" ], [ "city" ], [ "and" ], [ "ended" ], [ "at" ], [ "palo" ], [ "alto" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "trip", "NN" ], [ "started", "VBD" ], [ "from", "IN" ], [ "mountain", "NN" ], [ "view", "NN" ], [ "city", "NN" ], [ "and", "CC" ], [ "ended", "VBD" ], [ "at", "IN" ], [ "palo", "JJ" ], [ "alto", "JJ" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "Palo Alto", "Mountain View" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(2) A(0) C(6) T(0) V(1) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "bike_1", "query": "SELECT count(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = \"Mountain View\" AND T3.city = \"Palo Alto\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "JOIN", "station", "AS", "T3", "JOIN", "trip", "AS", "T4", "ON", "T1.id", "=", "T2.start_station_id", "AND", "T2.id", "=", "T4.id", "AND", "T3.id", "=", "T4.end_station_id", "WHERE", "T1.city", "=", "``", "Mountain", "View", "''", "AND", "T3.city", "=", "``", "Palo", "Alto", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "join", "station", "as", "t3", "join", "trip", "as", "t4", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id", "and", "t2", ".", "id", "=", "t4", ".", "id", "and", "t3", ".", "id", "=", "t4", ".", "end_station_id", "where", "t1", ".", "city", "=", "value", "and", "t3", ".", "city", "=", "value" ], "question": "How many trips stated from a station in Mountain View and ended at one in Palo Alto?", "question_toks": [ "how", "many", "trip", "stated", "from", "a", "station", "in", "mountain", "view", "and", "ended", "at", "one", "in", "palo", "alto", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 16, false ], null ], "and", [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 12, false ], null ], "and", [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ], [ "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, 6, false ], null ], "\"Mountain View\"", null ], "and", [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Palo Alto\"", null ] ] }, "names": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "How", "many", "trips", "stated", "from", "a", "station", "in", "Mountain", "View", "and", "ended", "at", "one", "in", "Palo", "Alto", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "trip" ], [ "stated" ], [ "from" ], [ "a" ], [ "station" ], [ "in" ], [ "mountain" ], [ "view" ], [ "and" ], [ "ended" ], [ "at" ], [ "one" ], [ "in" ], [ "palo" ], [ "alto" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "trip", "NN" ], [ "stated", "VBN" ], [ "from", "IN" ], [ "a", "DT" ], [ "station", "NN" ], [ "in", "IN" ], [ "mountain", "NN" ], [ "view", "NN" ], [ "and", "CC" ], [ "ended", "VBD" ], [ "at", "IN" ], [ "one", "CD" ], [ "in", "IN" ], [ "palo", "NN" ], [ "alto", "NN" ], [ "?", "." ] ], "values": [ "1", "Palo Alto", "Mountain View" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(2) A(0) C(6) T(0) V(2) Filter(2) A(0) C(6) T(0) V(1)" }, { "db_id": "bike_1", "query": "SELECT avg(T1.lat) , avg(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id", "query_toks": [ "SELECT", "avg", "(", "T1.lat", ")", ",", "avg", "(", "T1.long", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1.id", "=", "T2.start_station_id" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "lat", ")", ",", "avg", "(", "t1", ".", "long", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id" ], "question": "What is the average latitude and longitude of the starting points of all trips?", "question_toks": [ "what", "is", "average", "latitude", "and", "longitude", "of", "starting", "point", "of", "all", "trip", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ], [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, 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", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "average", "latitude", "and", "longitude", "of", "the", "starting", "points", "of", "all", "trips", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "latitude" ], [ "and" ], [ "longitude" ], [ "of" ], [ "starting" ], [ "point" ], [ "of" ], [ "all" ], [ "trip" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "latitude", "JJ" ], [ "and", "CC" ], [ "longitude", "NN" ], [ "of", "IN" ], [ "starting", "VBG" ], [ "point", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "trip", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(3) T(0) A(5) C(4) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(15) T(2)" }, { "db_id": "bike_1", "query": "SELECT avg(T1.lat) , avg(T1.long) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id", "query_toks": [ "SELECT", "avg", "(", "T1.lat", ")", ",", "avg", "(", "T1.long", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1.id", "=", "T2.start_station_id" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "lat", ")", ",", "avg", "(", "t1", ".", "long", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id" ], "question": "What is the average latitude and longitude of all starting stations for the trips?", "question_toks": [ "what", "is", "average", "latitude", "and", "longitude", "of", "all", "starting", "station", "for", "trip", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 3, false ], null ] ], [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, 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", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "id", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees", "zip code" ], "table_names": [ "station", "status", "trip", "weather" ], "col_set": [ "*", "id", "name", "latitude", "longitude", "dock count", "city", "installation date", "station id", "bikes available", "docks available", "time", "duration", "start date", "start station name", "start station id", "end date", "end station name", "end station id", "bike id", "subscription type", "zip code", "date", "max temperature f", "mean temperature f", "min temperature f", "max dew point f", "mean dew point f", "min dew point f", "max humidity", "mean humidity", "min humidity", "max sea level pressure inches", "mean sea level pressure inches", "min sea level pressure inches", "max visibility miles", "mean visibility miles", "min visibility miles", "max wind speed mph", "mean wind speed mph", "max gust speed mph", "precipitation inches", "cloud cover", "events", "wind dir degrees" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 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 ], "keys": { "8": 1, "1": 1, "12": 12 }, "origin_question_toks": [ "What", "is", "the", "average", "latitude", "and", "longitude", "of", "all", "starting", "stations", "for", "the", "trips", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "latitude" ], [ "and" ], [ "longitude" ], [ "of" ], [ "all" ], [ "starting" ], [ "station" ], [ "for" ], [ "trip" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "latitude", "JJ" ], [ "and", "CC" ], [ "longitude", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "starting", "VBG" ], [ "station", "NN" ], [ "for", "IN" ], [ "trip", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(3) T(0) A(5) C(4) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(15) T(2)" }, { "db_id": "book_2", "query": "SELECT count(*) FROM book", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "book" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "book" ], "question": "How many books are there?", "question_toks": [ "how", "many", "book", "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": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "books", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "book" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "book", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "book_2", "query": "SELECT Writer FROM book ORDER BY Writer ASC", "query_toks": [ "SELECT", "Writer", "FROM", "book", "ORDER", "BY", "Writer", "ASC" ], "query_toks_no_value": [ "select", "writer", "from", "book", "order", "by", "writer", "asc" ], "question": "List the writers of the books in ascending alphabetical order.", "question_toks": [ "list", "writer", "of", "book", "in", "ascending", "alphabetical", "order", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "writers", "of", "the", "books", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "writer" ], [ "of" ], [ "book" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "writer", "NN" ], [ "of", "IN" ], [ "book", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(1) Order(1) A(0) C(8) T(1)" }, { "db_id": "book_2", "query": "SELECT Title FROM book ORDER BY Issues ASC", "query_toks": [ "SELECT", "Title", "FROM", "book", "ORDER", "BY", "Issues", "ASC" ], "query_toks_no_value": [ "select", "title", "from", "book", "order", "by", "issues", "asc" ], "question": "List the titles of the books in ascending order of issues.", "question_toks": [ "list", "title", "of", "book", "in", "ascending", "order", "of", "issue", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "titles", "of", "the", "books", "in", "ascending", "order", "of", "issues", "." ], "question_arg": [ [ "list" ], [ "title" ], [ "of" ], [ "book" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "issue" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "book", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "issue", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(1) Order(1) A(0) C(7) T(1)" }, { "db_id": "book_2", "query": "SELECT Title FROM book WHERE Writer != \"Elaine Lee\"", "query_toks": [ "SELECT", "Title", "FROM", "book", "WHERE", "Writer", "!", "=", "``", "Elaine", "Lee", "''" ], "query_toks_no_value": [ "select", "title", "from", "book", "where", "writer", "!", "=", "value" ], "question": "What are the titles of the books whose writer is not \"Elaine Lee\"?", "question_toks": [ "what", "are", "title", "of", "book", "whose", "writer", "is", "not", "'", "elaine", "lee", "'", "?" ], "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, 7, [ 0, [ 0, 9, false ], null ], "\"Elaine Lee\"", null ] ] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "the", "books", "whose", "writer", "is", "not", "``", "Elaine", "Lee", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "book" ], [ "whose" ], [ "writer" ], [ "is" ], [ "not" ], [ "'" ], [ "elaine" ], [ "lee" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "book", "NN" ], [ "whose", "WP$" ], [ "writer", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "elaine", "JJ" ], [ "lee", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Elaine Lee" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(3) A(0) C(8) T(1) V(0)" }, { "db_id": "book_2", "query": "SELECT Title , Issues FROM book", "query_toks": [ "SELECT", "Title", ",", "Issues", "FROM", "book" ], "query_toks_no_value": [ "select", "title", ",", "issues", "from", "book" ], "question": "What are the title and issues of the books?", "question_toks": [ "what", "are", "title", "and", "issue", "of", "book", "?" ], "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 ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "title", "and", "issues", "of", "the", "books", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "issue" ], [ "of" ], [ "book" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "issue", "NN" ], [ "of", "IN" ], [ "book", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(1) A(0) C(7) T(1)" }, { "db_id": "book_2", "query": "SELECT Publication_Date FROM publication ORDER BY Price DESC", "query_toks": [ "SELECT", "Publication_Date", "FROM", "publication", "ORDER", "BY", "Price", "DESC" ], "query_toks_no_value": [ "select", "publication_date", "from", "publication", "order", "by", "price", "desc" ], "question": "What are the dates of publications in descending order of price?", "question_toks": [ "what", "are", "date", "of", "publication", "in", "descending", "order", "of", "price", "?" ], "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, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "dates", "of", "publications", "in", "descending", "order", "of", "price", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date" ], [ "of" ], [ "publication" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "price" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "of", "IN" ], [ "publication", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "price", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(4) T(0) Order(0) A(0) C(5) T(0)" }, { "db_id": "book_2", "query": "SELECT DISTINCT Publisher FROM publication WHERE Price > 5000000", "query_toks": [ "SELECT", "DISTINCT", "Publisher", "FROM", "publication", "WHERE", "Price", ">", "5000000" ], "query_toks_no_value": [ "select", "distinct", "publisher", "from", "publication", "where", "price", ">", "value" ], "question": "What are the distinct publishers of publications with price higher than 5000000?", "question_toks": [ "what", "are", "distinct", "publisher", "of", "publication", "with", "price", "higher", "than", "5000000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 5000000.0, null ] ] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "publishers", "of", "publications", "with", "price", "higher", "than", "5000000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "publisher" ], [ "of" ], [ "publication" ], [ "with" ], [ "price" ], [ "higher" ], [ "than" ], [ "5000000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "publisher", "NN" ], [ "of", "IN" ], [ "publication", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "5000000", "CD" ], [ "?", "." ] ], "values": [ "5000000" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "book_2", "query": "SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1", "query_toks": [ "SELECT", "Publisher", "FROM", "publication", "ORDER", "BY", "Price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "publisher", "from", "publication", "order", "by", "price", "desc", "limit", "value" ], "question": "List the publisher of the publication with the highest price.", "question_toks": [ "list", "publisher", "of", "publication", "with", "highest", "price", "." ], "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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "publisher", "of", "the", "publication", "with", "the", "highest", "price", "." ], "question_arg": [ [ "list" ], [ "publisher" ], [ "of" ], [ "publication" ], [ "with" ], [ "highest" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "publisher", "NN" ], [ "of", "IN" ], [ "publication", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "price", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "book_2", "query": "SELECT Publication_Date FROM publication ORDER BY Price ASC LIMIT 3", "query_toks": [ "SELECT", "Publication_Date", "FROM", "publication", "ORDER", "BY", "Price", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "publication_date", "from", "publication", "order", "by", "price", "asc", "limit", "value" ], "question": "List the publication dates of publications with 3 lowest prices.", "question_toks": [ "list", "publication", "date", "of", "publication", "with", "3", "lowest", "price", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "publication", "dates", "of", "publications", "with", "3", "lowest", "prices", "." ], "question_arg": [ [ "list" ], [ "publication", "date" ], [ "of" ], [ "publication" ], [ "with" ], [ "3" ], [ "lowest" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "publication", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "publication", "NN" ], [ "with", "IN" ], [ "3", "CD" ], [ "lowest", "JJS" ], [ "price", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(0) Sup(1) A(0) C(5) T(0)" }, { "db_id": "book_2", "query": "SELECT T1.Title , T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID", "query_toks": [ "SELECT", "T1.Title", ",", "T2.Publication_Date", "FROM", "book", "AS", "T1", "JOIN", "publication", "AS", "T2", "ON", "T1.Book_ID", "=", "T2.Book_ID" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t2", ".", "publication_date", "from", "book", "as", "t1", "join", "publication", "as", "t2", "on", "t1", ".", "book_id", "=", "t2", ".", "book_id" ], "question": "Show the title and publication dates of books.", "question_toks": [ "show", "title", "and", "publication", "date", "of", "book", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "title", "and", "publication", "dates", "of", "books", "." ], "question_arg": [ [ "show" ], [ "title" ], [ "and" ], [ "publication", "date" ], [ "of" ], [ "book" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "title", "NN" ], [ "and", "CC" ], [ "publication", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "book", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(1) A(0) C(4) T(0)" }, { "db_id": "book_2", "query": "SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Price > 4000000", "query_toks": [ "SELECT", "T1.Writer", "FROM", "book", "AS", "T1", "JOIN", "publication", "AS", "T2", "ON", "T1.Book_ID", "=", "T2.Book_ID", "WHERE", "T2.Price", ">", "4000000" ], "query_toks_no_value": [ "select", "t1", ".", "writer", "from", "book", "as", "t1", "join", "publication", "as", "t2", "on", "t1", ".", "book_id", "=", "t2", ".", "book_id", "where", "t2", ".", "price", ">", "value" ], "question": "Show writers who have published a book with price more than 4000000.", "question_toks": [ "show", "writer", "who", "have", "published", "a", "book", "with", "price", "more", "than", "4000000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 4000000.0, null ] ] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "writers", "who", "have", "published", "a", "book", "with", "price", "more", "than", "4000000", "." ], "question_arg": [ [ "show" ], [ "writer" ], [ "who" ], [ "have" ], [ "published" ], [ "a" ], [ "book" ], [ "with" ], [ "price" ], [ "more" ], [ "than" ], [ "4000000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "writer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "published", "VBN" ], [ "a", "DT" ], [ "book", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "4000000", "CD" ], [ ".", "." ] ], "values": [ "4000000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "book_2", "query": "SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Price DESC", "query_toks": [ "SELECT", "T1.Title", "FROM", "book", "AS", "T1", "JOIN", "publication", "AS", "T2", "ON", "T1.Book_ID", "=", "T2.Book_ID", "ORDER", "BY", "T2.Price", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "book", "as", "t1", "join", "publication", "as", "t2", "on", "t1", ".", "book_id", "=", "t2", ".", "book_id", "order", "by", "t2", ".", "price", "desc" ], "question": "Show the titles of books in descending order of publication price.", "question_toks": [ "show", "title", "of", "book", "in", "descending", "order", "of", "publication", "price", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "titles", "of", "books", "in", "descending", "order", "of", "publication", "price", "." ], "question_arg": [ [ "show" ], [ "title" ], [ "of" ], [ "book" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "publication" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "book", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "publication", "NN" ], [ "price", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(1) Order(0) A(0) C(5) T(0)" }, { "db_id": "book_2", "query": "SELECT Publisher FROM publication GROUP BY Publisher HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Publisher", "FROM", "publication", "GROUP", "BY", "Publisher", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "publisher", "from", "publication", "group", "by", "publisher", "having", "count", "(", "*", ")", ">", "value" ], "question": "Show publishers that have more than one publication.", "question_toks": [ "show", "publisher", "that", "have", "more", "than", "one", "publication", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, 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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "publishers", "that", "have", "more", "than", "one", "publication", "." ], "question_arg": [ [ "show" ], [ "publisher" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "publication" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "publisher", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "publication", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "book_2", "query": "SELECT Publisher , COUNT(*) FROM publication GROUP BY Publisher", "query_toks": [ "SELECT", "Publisher", ",", "COUNT", "(", "*", ")", "FROM", "publication", "GROUP", "BY", "Publisher" ], "query_toks_no_value": [ "select", "publisher", ",", "count", "(", "*", ")", "from", "publication", "group", "by", "publisher" ], "question": "Show different publishers together with the number of publications they have.", "question_toks": [ "show", "different", "publisher", "together", "with", "number", "of", "publication", "they", "have", "." ], "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": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "different", "publishers", "together", "with", "the", "number", "of", "publications", "they", "have", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "publisher" ], [ "together" ], [ "with" ], [ "number" ], [ "of" ], [ "publication" ], [ "they" ], [ "have" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "different", "JJ" ], [ "publisher", "NN" ], [ "together", "RB" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "publication", "NN" ], [ "they", "PRP" ], [ "have", "VBP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(0)" }, { "db_id": "book_2", "query": "SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Publication_Date", "FROM", "publication", "GROUP", "BY", "Publication_Date", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "publication_date", "from", "publication", "group", "by", "publication_date", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Please show the most common publication date.", "question_toks": [ "please", "show", "most", "common", "publication", "date", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Please", "show", "the", "most", "common", "publication", "date", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "most" ], [ "common" ], [ "publication", "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "publication", "NN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "book_2", "query": "SELECT Writer FROM book GROUP BY Writer HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Writer", "FROM", "book", "GROUP", "BY", "Writer", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "writer", "from", "book", "group", "by", "writer", "having", "count", "(", "*", ")", ">", "value" ], "question": "List the writers who have written more than one book.", "question_toks": [ "list", "writer", "who", "have", "written", "more", "than", "one", "book", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "writers", "who", "have", "written", "more", "than", "one", "book", "." ], "question_arg": [ [ "list" ], [ "writer" ], [ "who" ], [ "have" ], [ "written" ], [ "more" ], [ "than" ], [ "one" ], [ "book" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "writer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "written", "VBN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "book", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "book_2", "query": "SELECT Title FROM book WHERE Book_ID NOT IN (SELECT Book_ID FROM publication)", "query_toks": [ "SELECT", "Title", "FROM", "book", "WHERE", "Book_ID", "NOT", "IN", "(", "SELECT", "Book_ID", "FROM", "publication", ")" ], "query_toks_no_value": [ "select", "title", "from", "book", "where", "book_id", "not", "in", "(", "select", "book_id", "from", "publication", ")" ], "question": "List the titles of books that are not published.", "question_toks": [ "list", "title", "of", "book", "that", "are", "not", "published", "." ], "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", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "titles", "of", "books", "that", "are", "not", "published", "." ], "question_arg": [ [ "list" ], [ "title" ], [ "of" ], [ "book" ], [ "that" ], [ "are" ], [ "not" ], [ "published" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "book", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "published", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(19) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "book_2", "query": "SELECT Publisher FROM publication WHERE Price > 10000000 INTERSECT SELECT Publisher FROM publication WHERE Price < 5000000", "query_toks": [ "SELECT", "Publisher", "FROM", "publication", "WHERE", "Price", ">", "10000000", "INTERSECT", "SELECT", "Publisher", "FROM", "publication", "WHERE", "Price", "<", "5000000" ], "query_toks_no_value": [ "select", "publisher", "from", "publication", "where", "price", ">", "value", "intersect", "select", "publisher", "from", "publication", "where", "price", "<", "value" ], "question": "Show the publishers that have publications with price higher than 10000000 and publications with price lower than 5000000.", "question_toks": [ "show", "publisher", "that", "have", "publication", "with", "price", "higher", "than", "10000000", "and", "publication", "with", "price", "lower", "than", "5000000", "." ], "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 5000000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 10000000.0, null ] ] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "publishers", "that", "have", "publications", "with", "price", "higher", "than", "10000000", "and", "publications", "with", "price", "lower", "than", "5000000", "." ], "question_arg": [ [ "show" ], [ "publisher" ], [ "that" ], [ "have" ], [ "publication" ], [ "with" ], [ "price" ], [ "higher" ], [ "than" ], [ "10000000" ], [ "and" ], [ "publication" ], [ "with" ], [ "price" ], [ "lower" ], [ "than" ], [ "5000000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "publisher", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "publication", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "10000000", "CD" ], [ "and", "CC" ], [ "publication", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "5000000", "CD" ], [ ".", "." ] ], "values": [ "10000000", "5000000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(0) C(5) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(4) A(0) C(5) T(0) V(1)" }, { "db_id": "book_2", "query": "SELECT COUNT (DISTINCT Publication_Date) FROM publication", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Publication_Date", ")", "FROM", "publication" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "publication_date", ")", "from", "publication" ], "question": "What is the number of distinct publication dates?", "question_toks": [ "what", "is", "number", "of", "distinct", "publication", "date", "?" ], "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": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "distinct", "publication", "dates", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "distinct" ], [ "publication", "date" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "publication", "NN" ], [ "date", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(0)" }, { "db_id": "book_2", "query": "SELECT COUNT (DISTINCT Publication_Date) FROM publication", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Publication_Date", ")", "FROM", "publication" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "publication_date", ")", "from", "publication" ], "question": "How many distinct publication dates are there in our record?", "question_toks": [ "how", "many", "distinct", "publication", "date", "are", "there", "in", "our", "record", "?" ], "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": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "distinct", "publication", "dates", "are", "there", "in", "our", "record", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "publication", "date" ], [ "are" ], [ "there" ], [ "in" ], [ "our" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "publication", "NN" ], [ "date", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "our", "PRP$" ], [ "record", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(0)" }, { "db_id": "book_2", "query": "SELECT Price FROM publication WHERE Publisher = \"Person\" OR Publisher = \"Wiley\"", "query_toks": [ "SELECT", "Price", "FROM", "publication", "WHERE", "Publisher", "=", "``", "Person", "''", "OR", "Publisher", "=", "``", "Wiley", "''" ], "query_toks_no_value": [ "select", "price", "from", "publication", "where", "publisher", "=", "value", "or", "publisher", "=", "value" ], "question": "Show the prices of publications whose publisher is either \"Person\" or \"Wiley\"", "question_toks": [ "show", "price", "of", "publication", "whose", "publisher", "is", "either", "'", "person", "'", "or", "'", "wiley", "'" ], "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, 3, false ], null ], "\"Person\"", null ], "or", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Wiley\"", null ] ] }, "names": [ "*", "publication id", "book id", "publisher", "publication date", "price", "book id", "title", "issues", "writer" ], "table_names": [ "publication", "book" ], "col_set": [ "*", "publication id", "book id", "publisher", "publication date", "price", "title", "issues", "writer" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "prices", "of", "publications", "whose", "publisher", "is", "either", "``", "Person", "''", "or", "``", "Wiley", "''" ], "question_arg": [ [ "show" ], [ "price" ], [ "of" ], [ "publication" ], [ "whose" ], [ "publisher" ], [ "is" ], [ "either" ], [ "'" ], [ "person" ], [ "'" ], [ "or" ], [ "'" ], [ "wiley" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "price", "NN" ], [ "of", "IN" ], [ "publication", "NN" ], [ "whose", "WP$" ], [ "publisher", "NN" ], [ "is", "VBZ" ], [ "either", "DT" ], [ "'", "''" ], [ "person", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "wiley", "NN" ], [ "'", "''" ] ], "values": [ "Person", "Wiley", "Pearson" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) 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": "musical", "query": "SELECT count(*) FROM actor", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "actor" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "actor" ], "question": "How many actors are there?", "question_toks": [ "how", "many", "actor", "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": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "How", "many", "actors", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "actor" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "actor", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "musical", "query": "SELECT count(*) FROM actor", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "actor" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "actor" ], "question": "Count the number of actors.", "question_toks": [ "count", "number", "of", "actor", "." ], "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": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "actors", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "actor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "musical", "query": "SELECT Name FROM actor ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", "FROM", "actor", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "actor", "order", "by", "name", "asc" ], "question": "List the name of actors in ascending alphabetical order.", "question_toks": [ "list", "name", "of", "actor", "in", "ascending", "alphabetical", "order", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "List", "the", "name", "of", "actors", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "actor" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(1) A(0) C(2) T(1)" }, { "db_id": "musical", "query": "SELECT Name FROM actor ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", "FROM", "actor", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "actor", "order", "by", "name", "asc" ], "question": "What are the names of actors, ordered alphabetically?", "question_toks": [ "what", "are", "name", "of", "actor", ",", "ordered", "alphabetically", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "actors", ",", "ordered", "alphabetically", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "actor" ], [ "," ], [ "ordered" ], [ "alphabetically" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ ",", "," ], [ "ordered", "VBD" ], [ "alphabetically", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(1) A(0) C(2) T(1)" }, { "db_id": "musical", "query": "SELECT Character , Duration FROM actor", "query_toks": [ "SELECT", "Character", ",", "Duration", "FROM", "actor" ], "query_toks_no_value": [ "select", "character", ",", "duration", "from", "actor" ], "question": "What are the characters and duration of actors?", "question_toks": [ "what", "are", "character", "and", "duration", "of", "actor", "?" ], "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 ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "characters", "and", "duration", "of", "actors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "character" ], [ "and" ], [ "duration" ], [ "of" ], [ "actor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "character", "JJ" ], [ "and", "CC" ], [ "duration", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(0) C(10) T(1)" }, { "db_id": "musical", "query": "SELECT Character , Duration FROM actor", "query_toks": [ "SELECT", "Character", ",", "Duration", "FROM", "actor" ], "query_toks_no_value": [ "select", "character", ",", "duration", "from", "actor" ], "question": "Return the characters and durations for each actor.", "question_toks": [ "return", "character", "and", "duration", "for", "each", "actor", "." ], "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 ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Return", "the", "characters", "and", "durations", "for", "each", "actor", "." ], "question_arg": [ [ "return" ], [ "character" ], [ "and" ], [ "duration" ], [ "for" ], [ "each" ], [ "actor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "character", "NN" ], [ "and", "CC" ], [ "duration", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "actor", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(0) C(10) T(1)" }, { "db_id": "musical", "query": "SELECT Name FROM actor WHERE Age != 20", "query_toks": [ "SELECT", "Name", "FROM", "actor", "WHERE", "Age", "!", "=", "20" ], "query_toks_no_value": [ "select", "name", "from", "actor", "where", "age", "!", "=", "value" ], "question": "List the name of actors whose age is not 20.", "question_toks": [ "list", "name", "of", "actor", "whose", "age", "is", "not", "20", "." ], "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, 13, false ], null ], 20.0, null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "List", "the", "name", "of", "actors", "whose", "age", "is", "not", "20", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "actor" ], [ "whose" ], [ "age" ], [ "is" ], [ "not" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(3) A(0) C(11) T(1) V(0)" }, { "db_id": "musical", "query": "SELECT Name FROM actor WHERE Age != 20", "query_toks": [ "SELECT", "Name", "FROM", "actor", "WHERE", "Age", "!", "=", "20" ], "query_toks_no_value": [ "select", "name", "from", "actor", "where", "age", "!", "=", "value" ], "question": "What are the names of actors who are not 20 years old?", "question_toks": [ "what", "are", "name", "of", "actor", "who", "are", "not", "20", "year", "old", "?" ], "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, 13, false ], null ], 20.0, null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "actors", "who", "are", "not", "20", "years", "old", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "actor" ], [ "who" ], [ "are" ], [ "not" ], [ "20" ], [ "year" ], [ "old" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "20", "CD" ], [ "year", "NN" ], [ "old", "JJ" ], [ "?", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(3) A(0) C(11) T(1) V(0)" }, { "db_id": "musical", "query": "SELECT Character FROM actor ORDER BY age DESC", "query_toks": [ "SELECT", "Character", "FROM", "actor", "ORDER", "BY", "age", "DESC" ], "query_toks_no_value": [ "select", "character", "from", "actor", "order", "by", "age", "desc" ], "question": "What are the characters of actors in descending order of age?", "question_toks": [ "what", "are", "character", "of", "actor", "in", "descending", "order", "of", "age", "?" ], "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, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "characters", "of", "actors", "in", "descending", "order", "of", "age", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "character" ], [ "of" ], [ "actor" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "age" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "character", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(9) T(1) Order(0) A(0) C(11) T(1)" }, { "db_id": "musical", "query": "SELECT Character FROM actor ORDER BY age DESC", "query_toks": [ "SELECT", "Character", "FROM", "actor", "ORDER", "BY", "age", "DESC" ], "query_toks_no_value": [ "select", "character", "from", "actor", "order", "by", "age", "desc" ], "question": "Return the characters for actors, ordered by age descending.", "question_toks": [ "return", "character", "for", "actor", ",", "ordered", "by", "age", "descending", "." ], "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, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Return", "the", "characters", "for", "actors", ",", "ordered", "by", "age", "descending", "." ], "question_arg": [ [ "return" ], [ "character" ], [ "for" ], [ "actor" ], [ "," ], [ "ordered" ], [ "by" ], [ "age" ], [ "descending" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "character", "NN" ], [ "for", "IN" ], [ "actor", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "age", "NN" ], [ "descending", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(9) T(1) Order(0) A(0) C(11) T(1)" }, { "db_id": "musical", "query": "SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1", "query_toks": [ "SELECT", "Duration", "FROM", "actor", "ORDER", "BY", "Age", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "duration", "from", "actor", "order", "by", "age", "desc", "limit", "value" ], "question": "What is the duration of the oldest actor?", "question_toks": [ "what", "is", "duration", "of", "oldest", "actor", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "duration", "of", "the", "oldest", "actor", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "duration" ], [ "of" ], [ "oldest" ], [ "actor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "duration", "NN" ], [ "of", "IN" ], [ "oldest", "JJS" ], [ "actor", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "musical", "query": "SELECT Duration FROM actor ORDER BY Age DESC LIMIT 1", "query_toks": [ "SELECT", "Duration", "FROM", "actor", "ORDER", "BY", "Age", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "duration", "from", "actor", "order", "by", "age", "desc", "limit", "value" ], "question": "Return the duration of the actor with the greatest age.", "question_toks": [ "return", "duration", "of", "actor", "with", "greatest", "age", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Return", "the", "duration", "of", "the", "actor", "with", "the", "greatest", "age", "." ], "question_arg": [ [ "return" ], [ "duration" ], [ "of" ], [ "actor" ], [ "with" ], [ "greatest" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "duration", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "age", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "musical", "query": "SELECT Name FROM musical WHERE Nominee = \"Bob Fosse\"", "query_toks": [ "SELECT", "Name", "FROM", "musical", "WHERE", "Nominee", "=", "``", "Bob", "Fosse", "''" ], "query_toks_no_value": [ "select", "name", "from", "musical", "where", "nominee", "=", "value" ], "question": "What are the names of musicals with nominee \"Bob Fosse\"?", "question_toks": [ "what", "are", "name", "of", "musical", "with", "nominee", "'", "bob", "fosse", "'", "?" ], "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, 6, false ], null ], "\"Bob Fosse\"", null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "musicals", "with", "nominee", "``", "Bob", "Fosse", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "musical" ], [ "with" ], [ "nominee" ], [ "'" ], [ "bob" ], [ "fosse" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "musical", "JJ" ], [ "with", "IN" ], [ "nominee", "NN" ], [ "'", "''" ], [ "bob", "JJ" ], [ "fosse", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Bob Fosse" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "musical", "query": "SELECT Name FROM musical WHERE Nominee = \"Bob Fosse\"", "query_toks": [ "SELECT", "Name", "FROM", "musical", "WHERE", "Nominee", "=", "``", "Bob", "Fosse", "''" ], "query_toks_no_value": [ "select", "name", "from", "musical", "where", "nominee", "=", "value" ], "question": "Return the names of musicals who have the nominee Bob Fosse.", "question_toks": [ "return", "name", "of", "musical", "who", "have", "nominee", "bob", "fosse", "." ], "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, 6, false ], null ], "\"Bob Fosse\"", null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Return", "the", "names", "of", "musicals", "who", "have", "the", "nominee", "Bob", "Fosse", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "musical" ], [ "who" ], [ "have" ], [ "nominee" ], [ "bob" ], [ "fosse" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "musical", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "nominee", "VBN" ], [ "bob", "JJ" ], [ "fosse", "NN" ], [ ".", "." ] ], "values": [ "Bob Fosse" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "musical", "query": "SELECT DISTINCT Nominee FROM musical WHERE Award != \"Tony Award\"", "query_toks": [ "SELECT", "DISTINCT", "Nominee", "FROM", "musical", "WHERE", "Award", "!", "=", "``", "Tony", "Award", "''" ], "query_toks_no_value": [ "select", "distinct", "nominee", "from", "musical", "where", "award", "!", "=", "value" ], "question": "What are the distinct nominees of the musicals with the award that is not \"Tony Award\"?", "question_toks": [ "what", "are", "distinct", "nominee", "of", "musical", "with", "award", "that", "is", "not", "'", "tony", "award", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"Tony Award\"", null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "nominees", "of", "the", "musicals", "with", "the", "award", "that", "is", "not", "``", "Tony", "Award", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "nominee" ], [ "of" ], [ "musical" ], [ "with" ], [ "award" ], [ "that" ], [ "is" ], [ "not" ], [ "'" ], [ "tony" ], [ "award" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "award" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "nominee", "NN" ], [ "of", "IN" ], [ "musical", "JJ" ], [ "with", "IN" ], [ "award", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "tony", "JJ" ], [ "award", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Tony Award" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(0) Filter(3) A(0) C(4) T(0) V(0)" }, { "db_id": "musical", "query": "SELECT DISTINCT Nominee FROM musical WHERE Award != \"Tony Award\"", "query_toks": [ "SELECT", "DISTINCT", "Nominee", "FROM", "musical", "WHERE", "Award", "!", "=", "``", "Tony", "Award", "''" ], "query_toks_no_value": [ "select", "distinct", "nominee", "from", "musical", "where", "award", "!", "=", "value" ], "question": "Return the different nominees of musicals that have an award that is not the Tony Award.", "question_toks": [ "return", "different", "nominee", "of", "musical", "that", "have", "an", "award", "that", "is", "not", "tony", "award", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 4, false ], null ], "\"Tony Award\"", null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Return", "the", "different", "nominees", "of", "musicals", "that", "have", "an", "award", "that", "is", "not", "the", "Tony", "Award", "." ], "question_arg": [ [ "return" ], [ "different" ], [ "nominee" ], [ "of" ], [ "musical" ], [ "that" ], [ "have" ], [ "an" ], [ "award" ], [ "that" ], [ "is" ], [ "not" ], [ "tony" ], [ "award" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "award" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "different", "JJ" ], [ "nominee", "NNS" ], [ "of", "IN" ], [ "musical", "JJ" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "award", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "tony", "JJ" ], [ "award", "NN" ], [ ".", "." ] ], "values": [ "Tony Award" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(0) Filter(3) A(0) C(4) T(0) V(0)" }, { "db_id": "musical", "query": "SELECT T1.Name , T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Name", "FROM", "actor", "AS", "T1", "JOIN", "musical", "AS", "T2", "ON", "T1.Musical_ID", "=", "T2.Musical_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "name", "from", "actor", "as", "t1", "join", "musical", "as", "t2", "on", "t1", ".", "musical_id", "=", "t2", ".", "musical_id" ], "question": "Show names of actors and names of musicals they are in.", "question_toks": [ "show", "name", "of", "actor", "and", "name", "of", "musical", "they", "are", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, 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, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "names", "of", "actors", "and", "names", "of", "musicals", "they", "are", "in", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "actor" ], [ "and" ], [ "name" ], [ "of" ], [ "musical" ], [ "they" ], [ "are" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "musical", "JJ" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "in", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(2) T(0)" }, { "db_id": "musical", "query": "SELECT T1.Name , T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Name", "FROM", "actor", "AS", "T1", "JOIN", "musical", "AS", "T2", "ON", "T1.Musical_ID", "=", "T2.Musical_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "name", "from", "actor", "as", "t1", "join", "musical", "as", "t2", "on", "t1", ".", "musical_id", "=", "t2", ".", "musical_id" ], "question": "What are the names of actors and the musicals that they are in?", "question_toks": [ "what", "are", "name", "of", "actor", "and", "musical", "that", "they", "are", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, 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, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "actors", "and", "the", "musicals", "that", "they", "are", "in", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "actor" ], [ "and" ], [ "musical" ], [ "that" ], [ "they" ], [ "are" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "and", "CC" ], [ "musical", "JJ" ], [ "that", "IN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "in", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(2) T(0)" }, { "db_id": "musical", "query": "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = \"The Phantom of the Opera\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "actor", "AS", "T1", "JOIN", "musical", "AS", "T2", "ON", "T1.Musical_ID", "=", "T2.Musical_ID", "WHERE", "T2.Name", "=", "``", "The", "Phantom", "of", "the", "Opera", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "actor", "as", "t1", "join", "musical", "as", "t2", "on", "t1", ".", "musical_id", "=", "t2", ".", "musical_id", "where", "t2", ".", "name", "=", "value" ], "question": "Show names of actors that have appeared in musical with name \"The Phantom of the Opera\".", "question_toks": [ "show", "name", "of", "actor", "that", "have", "appeared", "in", "musical", "with", "name", "'", "phantom", "of", "opera", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, 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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"The Phantom of the Opera\"", null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "names", "of", "actors", "that", "have", "appeared", "in", "musical", "with", "name", "``", "The", "Phantom", "of", "the", "Opera", "''", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "actor" ], [ "that" ], [ "have" ], [ "appeared" ], [ "in" ], [ "musical" ], [ "with" ], [ "name" ], [ "'" ], [ "phantom" ], [ "of" ], [ "opera" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "appeared", "VBN" ], [ "in", "IN" ], [ "musical", "JJ" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "phantom", "NN" ], [ "of", "IN" ], [ "opera", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "The Phantom of the Opera" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "musical", "query": "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = \"The Phantom of the Opera\"", "query_toks": [ "SELECT", "T1.Name", "FROM", "actor", "AS", "T1", "JOIN", "musical", "AS", "T2", "ON", "T1.Musical_ID", "=", "T2.Musical_ID", "WHERE", "T2.Name", "=", "``", "The", "Phantom", "of", "the", "Opera", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "actor", "as", "t1", "join", "musical", "as", "t2", "on", "t1", ".", "musical_id", "=", "t2", ".", "musical_id", "where", "t2", ".", "name", "=", "value" ], "question": "What are the names of actors who have been in the musical titled The Phantom of the Opera?", "question_toks": [ "what", "are", "name", "of", "actor", "who", "have", "been", "in", "musical", "titled", "phantom", "of", "opera", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, 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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"The Phantom of the Opera\"", null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "actors", "who", "have", "been", "in", "the", "musical", "titled", "The", "Phantom", "of", "the", "Opera", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "actor" ], [ "who" ], [ "have" ], [ "been" ], [ "in" ], [ "musical" ], [ "titled" ], [ "phantom" ], [ "of" ], [ "opera" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "in", "IN" ], [ "musical", "JJ" ], [ "titled", "JJ" ], [ "phantom", "NN" ], [ "of", "IN" ], [ "opera", "NN" ], [ "?", "." ] ], "values": [ "The Phantom of the Opera" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "musical", "query": "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC", "query_toks": [ "SELECT", "T1.Name", "FROM", "actor", "AS", "T1", "JOIN", "musical", "AS", "T2", "ON", "T1.Musical_ID", "=", "T2.Musical_ID", "ORDER", "BY", "T2.Year", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "actor", "as", "t1", "join", "musical", "as", "t2", "on", "t1", ".", "musical_id", "=", "t2", ".", "musical_id", "order", "by", "t2", ".", "year", "desc" ], "question": "Show names of actors in descending order of the year their musical is awarded.", "question_toks": [ "show", "name", "of", "actor", "in", "descending", "order", "of", "year", "their", "musical", "is", "awarded", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "names", "of", "actors", "in", "descending", "order", "of", "the", "year", "their", "musical", "is", "awarded", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "actor" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "year" ], [ "their" ], [ "musical" ], [ "is" ], [ "awarded" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "year", "NN" ], [ "their", "PRP$" ], [ "musical", "JJ" ], [ "is", "VBZ" ], [ "awarded", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(0) A(0) C(3) T(0)" }, { "db_id": "musical", "query": "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC", "query_toks": [ "SELECT", "T1.Name", "FROM", "actor", "AS", "T1", "JOIN", "musical", "AS", "T2", "ON", "T1.Musical_ID", "=", "T2.Musical_ID", "ORDER", "BY", "T2.Year", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "actor", "as", "t1", "join", "musical", "as", "t2", "on", "t1", ".", "musical_id", "=", "t2", ".", "musical_id", "order", "by", "t2", ".", "year", "desc" ], "question": "What are the names of actors ordered descending by the year in which their musical was awarded?", "question_toks": [ "what", "are", "name", "of", "actor", "ordered", "descending", "by", "year", "in", "which", "their", "musical", "wa", "awarded", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "actors", "ordered", "descending", "by", "the", "year", "in", "which", "their", "musical", "was", "awarded", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "actor" ], [ "ordered" ], [ "descending" ], [ "by" ], [ "year" ], [ "in" ], [ "which" ], [ "their" ], [ "musical" ], [ "wa" ], [ "awarded" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "ordered", "VBD" ], [ "descending", "NN" ], [ "by", "IN" ], [ "year", "NN" ], [ "in", "IN" ], [ "which", "WDT" ], [ "their", "PRP$" ], [ "musical", "JJ" ], [ "wa", "NN" ], [ "awarded", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(0) A(0) C(3) T(0)" }, { "db_id": "musical", "query": "SELECT T2.Name , COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID", "query_toks": [ "SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "actor", "AS", "T1", "JOIN", "musical", "AS", "T2", "ON", "T1.Musical_ID", "=", "T2.Musical_ID", "GROUP", "BY", "T1.Musical_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "actor", "as", "t1", "join", "musical", "as", "t2", "on", "t1", ".", "musical_id", "=", "t2", ".", "musical_id", "group", "by", "t1", ".", "musical_id" ], "question": "Show names of musicals and the number of actors who have appeared in the musicals.", "question_toks": [ "show", "name", "of", "musical", "and", "number", "of", "actor", "who", "have", "appeared", "in", "musical", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, 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": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "names", "of", "musicals", "and", "the", "number", "of", "actors", "who", "have", "appeared", "in", "the", "musicals", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "musical" ], [ "and" ], [ "number" ], [ "of" ], [ "actor" ], [ "who" ], [ "have" ], [ "appeared" ], [ "in" ], [ "musical" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "musical", "JJ" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "actor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "appeared", "VBN" ], [ "in", "IN" ], [ "musical", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(1)" }, { "db_id": "musical", "query": "SELECT T2.Name , COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID", "query_toks": [ "SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "actor", "AS", "T1", "JOIN", "musical", "AS", "T2", "ON", "T1.Musical_ID", "=", "T2.Musical_ID", "GROUP", "BY", "T1.Musical_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "actor", "as", "t1", "join", "musical", "as", "t2", "on", "t1", ".", "musical_id", "=", "t2", ".", "musical_id", "group", "by", "t1", ".", "musical_id" ], "question": "How many actors have appeared in each musical?", "question_toks": [ "how", "many", "actor", "have", "appeared", "in", "each", "musical", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, 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": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "How", "many", "actors", "have", "appeared", "in", "each", "musical", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "actor" ], [ "have" ], [ "appeared" ], [ "in" ], [ "each" ], [ "musical" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "actor", "NN" ], [ "have", "VBP" ], [ "appeared", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "musical", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(1)" }, { "db_id": "musical", "query": "SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*) >= 3", "query_toks": [ "SELECT", "T2.Name", "FROM", "actor", "AS", "T1", "JOIN", "musical", "AS", "T2", "ON", "T1.Musical_ID", "=", "T2.Musical_ID", "GROUP", "BY", "T1.Musical_ID", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "actor", "as", "t1", "join", "musical", "as", "t2", "on", "t1", ".", "musical_id", "=", "t2", ".", "musical_id", "group", "by", "t1", ".", "musical_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show names of musicals which have at least three actors.", "question_toks": [ "show", "name", "of", "musical", "which", "have", "at", "least", "three", "actor", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, 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, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "names", "of", "musicals", "which", "have", "at", "least", "three", "actors", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "musical" ], [ "which" ], [ "have" ], [ "at" ], [ "least" ], [ "three" ], [ "actor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "musical", "JJ" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "three", "CD" ], [ "actor", "NN" ], [ ".", "." ] ], "values": [ "3" ], "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(7) A(3) C(0) T(1) V(0)" }, { "db_id": "musical", "query": "SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*) >= 3", "query_toks": [ "SELECT", "T2.Name", "FROM", "actor", "AS", "T1", "JOIN", "musical", "AS", "T2", "ON", "T1.Musical_ID", "=", "T2.Musical_ID", "GROUP", "BY", "T1.Musical_ID", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "actor", "as", "t1", "join", "musical", "as", "t2", "on", "t1", ".", "musical_id", "=", "t2", ".", "musical_id", "group", "by", "t1", ".", "musical_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the names of musicals who have at 3 or more actors?", "question_toks": [ "what", "are", "name", "of", "musical", "who", "have", "at", "3", "or", "more", "actor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 10, 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, 10, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "musicals", "who", "have", "at", "3", "or", "more", "actors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "musical" ], [ "who" ], [ "have" ], [ "at" ], [ "3" ], [ "or" ], [ "more" ], [ "actor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "musical", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "3", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "actor", "NN" ], [ "?", "." ] ], "values": [ "3" ], "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(7) A(3) C(0) T(1) V(0)" }, { "db_id": "musical", "query": "SELECT Nominee , COUNT(*) FROM musical GROUP BY Nominee", "query_toks": [ "SELECT", "Nominee", ",", "COUNT", "(", "*", ")", "FROM", "musical", "GROUP", "BY", "Nominee" ], "query_toks_no_value": [ "select", "nominee", ",", "count", "(", "*", ")", "from", "musical", "group", "by", "nominee" ], "question": "Show different nominees and the number of musicals they have been nominated.", "question_toks": [ "show", "different", "nominee", "and", "number", "of", "musical", "they", "have", "been", "nominated", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "different", "nominees", "and", "the", "number", "of", "musicals", "they", "have", "been", "nominated", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "nominee" ], [ "and" ], [ "number" ], [ "of" ], [ "musical" ], [ "they" ], [ "have" ], [ "been" ], [ "nominated" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "nominee", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "musical", "JJ" ], [ "they", "PRP" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "nominated", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(0) A(3) C(0) T(0)" }, { "db_id": "musical", "query": "SELECT Nominee , COUNT(*) FROM musical GROUP BY Nominee", "query_toks": [ "SELECT", "Nominee", ",", "COUNT", "(", "*", ")", "FROM", "musical", "GROUP", "BY", "Nominee" ], "query_toks_no_value": [ "select", "nominee", ",", "count", "(", "*", ")", "from", "musical", "group", "by", "nominee" ], "question": "How many musicals has each nominee been nominated for?", "question_toks": [ "how", "many", "musical", "ha", "each", "nominee", "been", "nominated", "for", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "How", "many", "musicals", "has", "each", "nominee", "been", "nominated", "for", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "musical" ], [ "ha" ], [ "each" ], [ "nominee" ], [ "been" ], [ "nominated" ], [ "for" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "musical", "JJ" ], [ "ha", "NNS" ], [ "each", "DT" ], [ "nominee", "RB" ], [ "been", "VBN" ], [ "nominated", "VBN" ], [ "for", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(0) A(3) C(0) T(0)" }, { "db_id": "musical", "query": "SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Nominee", "FROM", "musical", "GROUP", "BY", "Nominee", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "nominee", "from", "musical", "group", "by", "nominee", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Please show the nominee who has been nominated the greatest number of times.", "question_toks": [ "please", "show", "nominee", "who", "ha", "been", "nominated", "greatest", "number", "of", "time", "." ], "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": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Please", "show", "the", "nominee", "who", "has", "been", "nominated", "the", "greatest", "number", "of", "times", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "nominee" ], [ "who" ], [ "ha" ], [ "been" ], [ "nominated" ], [ "greatest" ], [ "number" ], [ "of" ], [ "time" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "nominee", "NN" ], [ "who", "WP" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "nominated", "VBN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ ".", "." ] ], "values": [], "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": "musical", "query": "SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Nominee", "FROM", "musical", "GROUP", "BY", "Nominee", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "nominee", "from", "musical", "group", "by", "nominee", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Who is the nominee who has been nominated for the most musicals?", "question_toks": [ "who", "is", "nominee", "who", "ha", "been", "nominated", "for", "most", "musical", "?" ], "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": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Who", "is", "the", "nominee", "who", "has", "been", "nominated", "for", "the", "most", "musicals", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "nominee" ], [ "who" ], [ "ha" ], [ "been" ], [ "nominated" ], [ "for" ], [ "most" ], [ "musical" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "nominee", "NN" ], [ "who", "WP" ], [ "ha", "VBD" ], [ "been", "VBN" ], [ "nominated", "VBN" ], [ "for", "IN" ], [ "most", "JJS" ], [ "musical", "JJ" ], [ "?", "." ] ], "values": [], "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": "musical", "query": "SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "RESULT", "FROM", "musical", "GROUP", "BY", "RESULT", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "result", "from", "musical", "group", "by", "result", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the most common result of the musicals.", "question_toks": [ "list", "most", "common", "result", "of", "musical", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "List", "the", "most", "common", "result", "of", "the", "musicals", "." ], "question_arg": [ [ "list" ], [ "most" ], [ "common" ], [ "result" ], [ "of" ], [ "musical" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "result", "NN" ], [ "of", "IN" ], [ "musical", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "musical", "query": "SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "RESULT", "FROM", "musical", "GROUP", "BY", "RESULT", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "result", "from", "musical", "group", "by", "result", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the most frequent result across all musicals.", "question_toks": [ "return", "most", "frequent", "result", "across", "all", "musical", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Return", "the", "most", "frequent", "result", "across", "all", "musicals", "." ], "question_arg": [ [ "return" ], [ "most" ], [ "frequent" ], [ "result" ], [ "across" ], [ "all" ], [ "musical" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "most", "RBS" ], [ "frequent", "JJ" ], [ "result", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "musical", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "musical", "query": "SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "Nominee", "FROM", "musical", "GROUP", "BY", "Nominee", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "nominee", "from", "musical", "group", "by", "nominee", "having", "count", "(", "*", ")", ">", "value" ], "question": "List the nominees that have been nominated more than two musicals.", "question_toks": [ "list", "nominee", "that", "have", "been", "nominated", "more", "than", "two", "musical", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "List", "the", "nominees", "that", "have", "been", "nominated", "more", "than", "two", "musicals", "." ], "question_arg": [ [ "list" ], [ "nominee" ], [ "that" ], [ "have" ], [ "been" ], [ "nominated" ], [ "more" ], [ "than" ], [ "two" ], [ "musical" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "nominee", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "nominated", "VBN" ], [ "more", "RBR" ], [ "than", "IN" ], [ "two", "CD" ], [ "musical", "JJ" ], [ ".", "." ] ], "values": [ "2" ], "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": "musical", "query": "SELECT Nominee FROM musical GROUP BY Nominee HAVING COUNT(*) > 2", "query_toks": [ "SELECT", "Nominee", "FROM", "musical", "GROUP", "BY", "Nominee", "HAVING", "COUNT", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "nominee", "from", "musical", "group", "by", "nominee", "having", "count", "(", "*", ")", ">", "value" ], "question": "Who are the nominees who have been nominated more than two times?", "question_toks": [ "who", "are", "nominee", "who", "have", "been", "nominated", "more", "than", "two", "time", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Who", "are", "the", "nominees", "who", "have", "been", "nominated", "more", "than", "two", "times", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "nominee" ], [ "who" ], [ "have" ], [ "been" ], [ "nominated" ], [ "more" ], [ "than" ], [ "two" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "nominee", "NNS" ], [ "who", "WP" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "nominated", "VBN" ], [ "more", "RBR" ], [ "than", "IN" ], [ "two", "CD" ], [ "time", "NN" ], [ "?", "." ] ], "values": [ "2" ], "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": "musical", "query": "SELECT Name FROM musical WHERE Musical_ID NOT IN (SELECT Musical_ID FROM actor)", "query_toks": [ "SELECT", "Name", "FROM", "musical", "WHERE", "Musical_ID", "NOT", "IN", "(", "SELECT", "Musical_ID", "FROM", "actor", ")" ], "query_toks_no_value": [ "select", "name", "from", "musical", "where", "musical_id", "not", "in", "(", "select", "musical_id", "from", "actor", ")" ], "question": "List the name of musicals that do not have actors.", "question_toks": [ "list", "name", "of", "musical", "that", "do", "not", "have", "actor", "." ], "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, 10, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "List", "the", "name", "of", "musicals", "that", "do", "not", "have", "actors", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "musical" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "actor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "musical", "JJ" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "actor", "NN" ], [ ".", "." ] ], "values": [], "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": "musical", "query": "SELECT Name FROM musical WHERE Musical_ID NOT IN (SELECT Musical_ID FROM actor)", "query_toks": [ "SELECT", "Name", "FROM", "musical", "WHERE", "Musical_ID", "NOT", "IN", "(", "SELECT", "Musical_ID", "FROM", "actor", ")" ], "query_toks_no_value": [ "select", "name", "from", "musical", "where", "musical_id", "not", "in", "(", "select", "musical_id", "from", "actor", ")" ], "question": "What are the names of musicals who have no actors?", "question_toks": [ "what", "are", "name", "of", "musical", "who", "have", "no", "actor", "?" ], "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, 10, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "musicals", "who", "have", "no", "actors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "musical" ], [ "who" ], [ "have" ], [ "no" ], [ "actor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "musical", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "no", "DT" ], [ "actor", "NN" ], [ "?", "." ] ], "values": [], "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": "musical", "query": "SELECT Nominee FROM musical WHERE Award = \"Tony Award\" INTERSECT SELECT Nominee FROM musical WHERE Award = \"Drama Desk Award\"", "query_toks": [ "SELECT", "Nominee", "FROM", "musical", "WHERE", "Award", "=", "``", "Tony", "Award", "''", "INTERSECT", "SELECT", "Nominee", "FROM", "musical", "WHERE", "Award", "=", "``", "Drama", "Desk", "Award", "''" ], "query_toks_no_value": [ "select", "nominee", "from", "musical", "where", "award", "=", "value", "intersect", "select", "nominee", "from", "musical", "where", "award", "=", "value" ], "question": "Show the nominees that have nominated musicals for both \"Tony Award\" and \"Drama Desk Award\".", "question_toks": [ "show", "nominee", "that", "have", "nominated", "musical", "for", "both", "'", "tony", "award", "'", "and", "'", "drama", "desk", "award", "'", "." ], "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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Drama Desk Award\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Tony Award\"", null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "the", "nominees", "that", "have", "nominated", "musicals", "for", "both", "``", "Tony", "Award", "''", "and", "``", "Drama", "Desk", "Award", "''", "." ], "question_arg": [ [ "show" ], [ "nominee" ], [ "that" ], [ "have" ], [ "nominated" ], [ "musical" ], [ "for" ], [ "both" ], [ "'" ], [ "tony" ], [ "award" ], [ "'" ], [ "and" ], [ "'" ], [ "drama" ], [ "desk" ], [ "award" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "award" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "nominee", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "nominated", "VBN" ], [ "musical", "JJ" ], [ "for", "IN" ], [ "both", "DT" ], [ "'", "''" ], [ "tony", "JJ" ], [ "award", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "drama", "NN" ], [ "desk", "NN" ], [ "award", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Drama Desk Award", "Tony Award" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(4) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "musical", "query": "SELECT Nominee FROM musical WHERE Award = \"Tony Award\" INTERSECT SELECT Nominee FROM musical WHERE Award = \"Drama Desk Award\"", "query_toks": [ "SELECT", "Nominee", "FROM", "musical", "WHERE", "Award", "=", "``", "Tony", "Award", "''", "INTERSECT", "SELECT", "Nominee", "FROM", "musical", "WHERE", "Award", "=", "``", "Drama", "Desk", "Award", "''" ], "query_toks_no_value": [ "select", "nominee", "from", "musical", "where", "award", "=", "value", "intersect", "select", "nominee", "from", "musical", "where", "award", "=", "value" ], "question": "Who are the nominees who have been nominated for both a Tony Award and a Drama Desk Award?", "question_toks": [ "who", "are", "nominee", "who", "have", "been", "nominated", "for", "both", "a", "tony", "award", "and", "a", "drama", "desk", "award", "?" ], "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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Drama Desk Award\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Tony Award\"", null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Who", "are", "the", "nominees", "who", "have", "been", "nominated", "for", "both", "a", "Tony", "Award", "and", "a", "Drama", "Desk", "Award", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "nominee" ], [ "who" ], [ "have" ], [ "been" ], [ "nominated" ], [ "for" ], [ "both" ], [ "a" ], [ "tony" ], [ "award" ], [ "and" ], [ "a" ], [ "drama" ], [ "desk" ], [ "award" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "award" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "nominee", "NNS" ], [ "who", "WP" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "nominated", "VBN" ], [ "for", "IN" ], [ "both", "DT" ], [ "a", "DT" ], [ "tony", "JJ" ], [ "award", "NN" ], [ "and", "CC" ], [ "a", "DT" ], [ "drama", "NN" ], [ "desk", "NN" ], [ "award", "NN" ], [ "?", "." ] ], "values": [ "Tony Award", "Drama Desk Award" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(4) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "musical", "query": "SELECT Nominee FROM musical WHERE Award = \"Tony Award\" OR Award = \"Cleavant Derricks\"", "query_toks": [ "SELECT", "Nominee", "FROM", "musical", "WHERE", "Award", "=", "``", "Tony", "Award", "''", "OR", "Award", "=", "``", "Cleavant", "Derricks", "''" ], "query_toks_no_value": [ "select", "nominee", "from", "musical", "where", "award", "=", "value", "or", "award", "=", "value" ], "question": "Show the musical nominee with award \"Bob Fosse\" or \"Cleavant Derricks\".", "question_toks": [ "show", "musical", "nominee", "with", "award", "'", "bob", "fosse", "'", "or", "'", "cleavant", "derrick", "'", "." ], "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, 4, false ], null ], "\"Tony Award\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cleavant Derricks\"", null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "the", "musical", "nominee", "with", "award", "``", "Bob", "Fosse", "''", "or", "``", "Cleavant", "Derricks", "''", "." ], "question_arg": [ [ "show" ], [ "musical" ], [ "nominee" ], [ "with" ], [ "award" ], [ "'" ], [ "bob" ], [ "fosse" ], [ "'" ], [ "or" ], [ "'" ], [ "cleavant" ], [ "derrick" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "musical", "JJ" ], [ "nominee", "NN" ], [ "with", "IN" ], [ "award", "NN" ], [ "'", "''" ], [ "bob", "JJ" ], [ "fosse", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "cleavant", "JJ" ], [ "derrick", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Cleavant Derricks", "Bob Fosse", "Tony Award" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(1) Filter(2) A(0) C(4) T(0) V(2) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "musical", "query": "SELECT Nominee FROM musical WHERE Award = \"Tony Award\" OR Award = \"Cleavant Derricks\"", "query_toks": [ "SELECT", "Nominee", "FROM", "musical", "WHERE", "Award", "=", "``", "Tony", "Award", "''", "OR", "Award", "=", "``", "Cleavant", "Derricks", "''" ], "query_toks_no_value": [ "select", "nominee", "from", "musical", "where", "award", "=", "value", "or", "award", "=", "value" ], "question": "Who are the nominees who were nominated for either of the Bob Fosse or Cleavant Derricks awards?", "question_toks": [ "who", "are", "nominee", "who", "were", "nominated", "for", "either", "of", "bob", "fosse", "or", "cleavant", "derrick", "award", "?" ], "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, 4, false ], null ], "\"Tony Award\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cleavant Derricks\"", null ] ] }, "names": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "name", "musical id", "character", "duration", "age" ], "table_names": [ "musical", "actor" ], "col_set": [ "*", "musical id", "name", "year", "award", "category", "nominee", "result", "actor id", "character", "duration", "age" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "10": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Who", "are", "the", "nominees", "who", "were", "nominated", "for", "either", "of", "the", "Bob", "Fosse", "or", "Cleavant", "Derricks", "awards", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "nominee" ], [ "who" ], [ "were" ], [ "nominated" ], [ "for" ], [ "either" ], [ "of" ], [ "bob" ], [ "fosse" ], [ "or" ], [ "cleavant" ], [ "derrick" ], [ "award" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "nominee", "NNS" ], [ "who", "WP" ], [ "were", "VBD" ], [ "nominated", "VBN" ], [ "for", "IN" ], [ "either", "DT" ], [ "of", "IN" ], [ "bob", "NN" ], [ "fosse", "NN" ], [ "or", "CC" ], [ "cleavant", "JJ" ], [ "derrick", "NN" ], [ "award", "NN" ], [ "?", "." ] ], "values": [ "Bob Fosse", "Cleavant Derricks", "Tony Award" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(1) Filter(2) A(0) C(4) T(0) V(2) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "twitter_1", "query": "SELECT email FROM user_profiles WHERE name = 'Mary'", "query_toks": [ "SELECT", "email", "FROM", "user_profiles", "WHERE", "name", "=", "'Mary", "'" ], "query_toks_no_value": [ "select", "email", "from", "user_profiles", "where", "name", "=", "value" ], "question": "Find the emails of the user named \"Mary\".", "question_toks": [ "find", "email", "of", "user", "named", "'", "mary", "'", "." ], "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, 8, false ], null ], "\"Mary\"", null ] ] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "emails", "of", "the", "user", "named", "``", "Mary", "''", "." ], "question_arg": [ [ "find" ], [ "email" ], [ "of" ], [ "user" ], [ "named" ], [ "'" ], [ "mary" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "email", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "mary", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Mary" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "twitter_1", "query": "SELECT partitionid FROM user_profiles WHERE name = 'Iron Man'", "query_toks": [ "SELECT", "partitionid", "FROM", "user_profiles", "WHERE", "name", "=", "'Iron", "Man", "'" ], "query_toks_no_value": [ "select", "partitionid", "from", "user_profiles", "where", "name", "=", "value" ], "question": "What is the partition id of the user named \"Iron Man\".", "question_toks": [ "what", "is", "partition", "id", "of", "user", "named", "'", "iron", "man", "'", "." ], "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, 8, false ], null ], "\"Iron Man\"", null ] ] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "What", "is", "the", "partition", "id", "of", "the", "user", "named", "``", "Iron", "Man", "''", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "partition", "id" ], [ "of" ], [ "user" ], [ "named" ], [ "'" ], [ "iron" ], [ "man" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "partition", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "iron", "NN" ], [ "man", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Iron Man" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "twitter_1", "query": "SELECT count(*) FROM user_profiles", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "user_profiles" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "user_profiles" ], "question": "How many users are there?", "question_toks": [ "how", "many", "user", "are", "there", "?" ], "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": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "How", "many", "users", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "user" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "user", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "twitter_1", "query": "SELECT count(*) FROM follows", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "follows" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "follows" ], "question": "How many followers does each user have?", "question_toks": [ "how", "many", "follower", "doe", "each", "user", "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": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "How", "many", "followers", "does", "each", "user", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "follower" ], [ "doe" ], [ "each" ], [ "user" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "follower", "JJR" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "user", "NN" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "twitter_1", "query": "SELECT count(*) FROM follows GROUP BY f1", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "follows", "GROUP", "BY", "f1" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "follows", "group", "by", "value" ], "question": "Find the number of followers for each user.", "question_toks": [ "find", "number", "of", "follower", "for", "each", "user", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "number", "of", "followers", "for", "each", "user", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "follower" ], [ "for" ], [ "each" ], [ "user" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "follower", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "user", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "twitter_1", "query": "SELECT count(*) FROM tweets", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "tweets" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "tweets" ], "question": "Find the number of tweets in record.", "question_toks": [ "find", "number", "of", "tweet", "in", "record", "." ], "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": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "number", "of", "tweets", "in", "record", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "tweet" ], [ "in" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "tweet", "NN" ], [ "in", "IN" ], [ "record", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "twitter_1", "query": "SELECT count(DISTINCT UID) FROM tweets", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "UID", ")", "FROM", "tweets" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "uid", ")", "from", "tweets" ], "question": "Find the number of users who posted some tweets.", "question_toks": [ "find", "number", "of", "user", "who", "posted", "some", "tweet", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 4, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "number", "of", "users", "who", "posted", "some", "tweets", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "user" ], [ "who" ], [ "posted" ], [ "some" ], [ "tweet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "posted", "VBD" ], [ "some", "DT" ], [ "tweet", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(1)" }, { "db_id": "twitter_1", "query": "SELECT name , email FROM user_profiles WHERE name LIKE '%Swift%'", "query_toks": [ "SELECT", "name", ",", "email", "FROM", "user_profiles", "WHERE", "name", "LIKE", "'", "%", "Swift", "%", "'" ], "query_toks_no_value": [ "select", "name", ",", "email", "from", "user_profiles", "where", "name", "like", "value" ], "question": "Find the name and email of the user whose name contains the word \u2018Swift\u2019.", "question_toks": [ "find", "name", "and", "email", "of", "user", "whose", "name", "contains", "word", "\u2018swift\u2019", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 8, false ], null ], "\"%Swift%\"", null ] ] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "and", "email", "of", "the", "user", "whose", "name", "contains", "the", "word", "\u2018Swift\u2019", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "email" ], [ "of" ], [ "user" ], [ "whose" ], [ "name" ], [ "contains" ], [ "word" ], [ "\u2018swift\u2019" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "email", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "word", "NN" ], [ "\u2018swift\u2019", "NN" ], [ ".", "." ] ], "values": [ "Swift" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(8) T(2) Filter(9) A(0) C(7) T(2) V(0)" }, { "db_id": "twitter_1", "query": "SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'", "query_toks": [ "SELECT", "name", "FROM", "user_profiles", "WHERE", "email", "LIKE", "'", "%", "superstar", "%", "'", "OR", "email", "LIKE", "'", "%", "edu", "%", "'" ], "query_toks_no_value": [ "select", "name", "from", "user_profiles", "where", "email", "like", "value", "or", "email", "like", "value" ], "question": "Find the names of users whose emails contain \u2018superstar\u2019 or \u2018edu\u2019.", "question_toks": [ "find", "name", "of", "user", "whose", "email", "contain", "\u2018superstar\u2019", "or", "\u2018edu\u2019", "." ], "sql": { "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": [ [ false, 9, [ 0, [ 0, 9, false ], null ], "\"%superstar%\"", null ], "or", [ false, 9, [ 0, [ 0, 9, false ], null ], "\"%edu%\"", null ] ] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "names", "of", "users", "whose", "emails", "contain", "\u2018superstar\u2019", "or", "\u2018edu\u2019", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "user" ], [ "whose" ], [ "email" ], [ "contain" ], [ "\u2018superstar\u2019" ], [ "or" ], [ "\u2018edu\u2019" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "whose", "WP$" ], [ "email", "NN" ], [ "contain", "NN" ], [ "\u2018superstar\u2019", "NN" ], [ "or", "CC" ], [ "\u2018edu\u2019", "NN" ], [ ".", "." ] ], "values": [ "superstar", "edu" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(1) Filter(9) A(0) C(8) T(2) V(0) Filter(9) A(0) C(8) T(2) V(1)" }, { "db_id": "twitter_1", "query": "SELECT text FROM tweets WHERE text LIKE '%intern%'", "query_toks": [ "SELECT", "text", "FROM", "tweets", "WHERE", "text", "LIKE", "'", "%", "intern", "%", "'" ], "query_toks_no_value": [ "select", "text", "from", "tweets", "where", "text", "like", "value" ], "question": "Return the text of tweets about the topic 'intern'.", "question_toks": [ "return", "text", "of", "tweet", "about", "topic", "'", "intern", "'", "." ], "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, 9, [ 0, [ 0, 5, false ], null ], "\"%intern%\"", null ] ] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Return", "the", "text", "of", "tweets", "about", "the", "topic", "'intern", "'", "." ], "question_arg": [ [ "return" ], [ "text" ], [ "of" ], [ "tweet" ], [ "about" ], [ "topic" ], [ "'" ], [ "intern" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "text", "NN" ], [ "of", "IN" ], [ "tweet", "NN" ], [ "about", "IN" ], [ "topic", "NN" ], [ "'", "''" ], [ "intern", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "intern" ], "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(0)" }, { "db_id": "twitter_1", "query": "SELECT name , email FROM user_profiles WHERE followers > 1000", "query_toks": [ "SELECT", "name", ",", "email", "FROM", "user_profiles", "WHERE", "followers", ">", "1000" ], "query_toks_no_value": [ "select", "name", ",", "email", "from", "user_profiles", "where", "followers", ">", "value" ], "question": "Find the name and email of the users who have more than 1000 followers.", "question_toks": [ "find", "name", "and", "email", "of", "user", "who", "have", "more", "than", "1000", "follower", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 1000.0, null ] ] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "and", "email", "of", "the", "users", "who", "have", "more", "than", "1000", "followers", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "email" ], [ "of" ], [ "user" ], [ "who" ], [ "have" ], [ "more" ], [ "than" ], [ "1000" ], [ "follower" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "email", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "follower", "NN" ], [ ".", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(8) T(2) Filter(5) A(0) C(10) T(2) V(0)" }, { "db_id": "twitter_1", "query": "SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING count(*) > (SELECT count(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift')", "query_toks": [ "SELECT", "T1.name", "FROM", "user_profiles", "AS", "T1", "JOIN", "follows", "AS", "T2", "ON", "T1.uid", "=", "T2.f1", "GROUP", "BY", "T2.f1", "HAVING", "count", "(", "*", ")", ">", "(", "SELECT", "count", "(", "*", ")", "FROM", "user_profiles", "AS", "T1", "JOIN", "follows", "AS", "T2", "ON", "T1.uid", "=", "T2.f1", "WHERE", "T1.name", "=", "'Tyler", "Swift", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "user_profiles", "as", "t1", "join", "follows", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "f1", "group", "by", "t2", ".", "f1", "having", "count", "(", "*", ")", ">", "(", "select", "count", "(", "*", ")", "from", "user_profiles", "as", "t1", "join", "follows", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "f1", "where", "t1", ".", "name", "=", "value", ")" ], "question": "Find the names of the users whose number of followers is greater than that of the user named \"Tyler Swift\".", "question_toks": [ "find", "name", "of", "user", "whose", "number", "of", "follower", "is", "greater", "than", "that", "of", "user", "named", "'", "tyler", "swift", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], { "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, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Tyler Swift\"", null ] ] }, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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 ] ] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "users", "whose", "number", "of", "followers", "is", "greater", "than", "that", "of", "the", "user", "named", "``", "Tyler", "Swift", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "user" ], [ "whose" ], [ "number" ], [ "of" ], [ "follower" ], [ "is" ], [ "greater" ], [ "than" ], [ "that" ], [ "of" ], [ "user" ], [ "named" ], [ "'" ], [ "tyler" ], [ "swift" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "whose", "WP$" ], [ "number", "NN" ], [ "of", "IN" ], [ "follower", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "of", "IN" ], [ "user", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "tyler", "NN" ], [ "swift", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Tyler Swift" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(13) A(3) C(0) T(0) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "twitter_1", "query": "SELECT T1.name , T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", ",", "T1.email", "FROM", "user_profiles", "AS", "T1", "JOIN", "follows", "AS", "T2", "ON", "T1.uid", "=", "T2.f1", "GROUP", "BY", "T2.f1", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "email", "from", "user_profiles", "as", "t1", "join", "follows", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "f1", "group", "by", "t2", ".", "f1", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the name and email for the users who have more than one follower.", "question_toks": [ "find", "name", "and", "email", "for", "user", "who", "have", "more", "than", "one", "follower", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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 ] ] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "and", "email", "for", "the", "users", "who", "have", "more", "than", "one", "follower", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "email" ], [ "for" ], [ "user" ], [ "who" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "follower" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "email", "NN" ], [ "for", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "follower", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "twitter_1", "query": "SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", "FROM", "user_profiles", "AS", "T1", "JOIN", "tweets", "AS", "T2", "ON", "T1.uid", "=", "T2.uid", "GROUP", "BY", "T2.uid", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "user_profiles", "as", "t1", "join", "tweets", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "uid", "group", "by", "t2", ".", "uid", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the names of users who have more than one tweet.", "question_toks": [ "find", "name", "of", "user", "who", "have", "more", "than", "one", "tweet", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "names", "of", "users", "who", "have", "more", "than", "one", "tweet", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "user" ], [ "who" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "tweet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "tweet", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "twitter_1", "query": "SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = \"Mary\" INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = \"Susan\"", "query_toks": [ "SELECT", "T2.f1", "FROM", "user_profiles", "AS", "T1", "JOIN", "follows", "AS", "T2", "ON", "T1.uid", "=", "T2.f2", "WHERE", "T1.name", "=", "``", "Mary", "''", "INTERSECT", "SELECT", "T2.f1", "FROM", "user_profiles", "AS", "T1", "JOIN", "follows", "AS", "T2", "ON", "T1.uid", "=", "T2.f2", "WHERE", "T1.name", "=", "``", "Susan", "''" ], "query_toks_no_value": [ "select", "t2", ".", "f1", "from", "user_profiles", "as", "t1", "join", "follows", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "f2", "where", "t1", ".", "name", "=", "value", "intersect", "select", "t2", ".", "f1", "from", "user_profiles", "as", "t1", "join", "follows", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "f2", "where", "t1", ".", "name", "=", "value" ], "question": "Find the id of users who are followed by Mary and Susan.", "question_toks": [ "find", "id", "of", "user", "who", "are", "followed", "by", "mary", "and", "susan", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 8, false ], null ], "\"Susan\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Mary\"", null ] ] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "id", "of", "users", "who", "are", "followed", "by", "Mary", "and", "Susan", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "user" ], [ "who" ], [ "are" ], [ "followed" ], [ "by" ], [ "mary" ], [ "and" ], [ "susan" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "followed", "VBN" ], [ "by", "IN" ], [ "mary", "JJ" ], [ "and", "CC" ], [ "susan", "JJ" ], [ ".", "." ] ], "values": [ "Mary", "Susan" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(7) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(7) T(2) V(1)" }, { "db_id": "twitter_1", "query": "SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = \"Mary\" OR T1.name = \"Susan\"", "query_toks": [ "SELECT", "T2.f1", "FROM", "user_profiles", "AS", "T1", "JOIN", "follows", "AS", "T2", "ON", "T1.uid", "=", "T2.f2", "WHERE", "T1.name", "=", "``", "Mary", "''", "OR", "T1.name", "=", "``", "Susan", "''" ], "query_toks_no_value": [ "select", "t2", ".", "f1", "from", "user_profiles", "as", "t1", "join", "follows", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "f2", "where", "t1", ".", "name", "=", "value", "or", "t1", ".", "name", "=", "value" ], "question": "Find the id of users who are followed by Mary or Susan.", "question_toks": [ "find", "id", "of", "user", "who", "are", "followed", "by", "mary", "or", "susan", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "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, 8, false ], null ], "\"Mary\"", null ], "or", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Susan\"", null ] ] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "id", "of", "users", "who", "are", "followed", "by", "Mary", "or", "Susan", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "user" ], [ "who" ], [ "are" ], [ "followed" ], [ "by" ], [ "mary" ], [ "or" ], [ "susan" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "followed", "VBN" ], [ "by", "IN" ], [ "mary", "NN" ], [ "or", "CC" ], [ "susan", "NN" ], [ ".", "." ] ], "values": [ "Mary", "Susan" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(1) Filter(2) A(0) C(7) T(2) V(0) Filter(2) A(0) C(7) T(2) V(1)" }, { "db_id": "twitter_1", "query": "SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "user_profiles", "ORDER", "BY", "followers", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "user_profiles", "order", "by", "followers", "desc", "limit", "value" ], "question": "Find the name of the user who has the largest number of followers.", "question_toks": [ "find", "name", "of", "user", "who", "ha", "largest", "number", "of", "follower", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "user", "who", "has", "the", "largest", "number", "of", "followers", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "user" ], [ "who" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "follower" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "follower", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(2) Sup(0) A(0) C(10) T(2)" }, { "db_id": "twitter_1", "query": "SELECT name , email FROM user_profiles ORDER BY followers LIMIT 1", "query_toks": [ "SELECT", "name", ",", "email", "FROM", "user_profiles", "ORDER", "BY", "followers", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "email", "from", "user_profiles", "order", "by", "followers", "limit", "value" ], "question": "Find the name and email of the user followed by the least number of people.", "question_toks": [ "find", "name", "and", "email", "of", "user", "followed", "by", "least", "number", "of", "people", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "and", "email", "of", "the", "user", "followed", "by", "the", "least", "number", "of", "people", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "email" ], [ "of" ], [ "user" ], [ "followed" ], [ "by" ], [ "least" ], [ "number" ], [ "of" ], [ "people" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "email", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "followed", "VBN" ], [ "by", "IN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(2) A(0) C(8) T(2) Sup(1) A(0) C(10) T(2)" }, { "db_id": "twitter_1", "query": "SELECT name , followers FROM user_profiles ORDER BY followers DESC", "query_toks": [ "SELECT", "name", ",", "followers", "FROM", "user_profiles", "ORDER", "BY", "followers", "DESC" ], "query_toks_no_value": [ "select", "name", ",", "followers", "from", "user_profiles", "order", "by", "followers", "desc" ], "question": "List the name and number of followers for each user, and sort the results by the number of followers in descending order.", "question_toks": [ "list", "name", "and", "number", "of", "follower", "for", "each", "user", ",", "and", "sort", "result", "by", "number", "of", "follower", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "List", "the", "name", "and", "number", "of", "followers", "for", "each", "user", ",", "and", "sort", "the", "results", "by", "the", "number", "of", "followers", "in", "descending", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "follower" ], [ "for" ], [ "each" ], [ "user" ], [ "," ], [ "and" ], [ "sort" ], [ "result" ], [ "by" ], [ "number" ], [ "of" ], [ "follower" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "follower", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "user", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "NN" ], [ "result", "NN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "follower", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(7) T(2) A(0) C(10) T(2) Order(0) A(0) C(10) T(2)" }, { "db_id": "twitter_1", "query": "SELECT name FROM user_profiles ORDER BY followers DESC LIMIT 5", "query_toks": [ "SELECT", "name", "FROM", "user_profiles", "ORDER", "BY", "followers", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "name", "from", "user_profiles", "order", "by", "followers", "desc", "limit", "value" ], "question": "List the names of 5 users followed by the largest number of other users.", "question_toks": [ "list", "name", "of", "5", "user", "followed", "by", "largest", "number", "of", "other", "user", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "List", "the", "names", "of", "5", "users", "followed", "by", "the", "largest", "number", "of", "other", "users", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "5" ], [ "user" ], [ "followed" ], [ "by" ], [ "largest" ], [ "number" ], [ "of" ], [ "other" ], [ "user" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "5", "CD" ], [ "user", "NN" ], [ "followed", "VBN" ], [ "by", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "other", "JJ" ], [ "user", "NN" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(2) Sup(0) A(0) C(10) T(2)" }, { "db_id": "twitter_1", "query": "SELECT text FROM tweets ORDER BY createdate", "query_toks": [ "SELECT", "text", "FROM", "tweets", "ORDER", "BY", "createdate" ], "query_toks_no_value": [ "select", "text", "from", "tweets", "order", "by", "createdate" ], "question": "List the text of all tweets in the order of date.", "question_toks": [ "list", "text", "of", "all", "tweet", "in", "order", "of", "date", "." ], "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": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "List", "the", "text", "of", "all", "tweets", "in", "the", "order", "of", "date", "." ], "question_arg": [ [ "list" ], [ "text" ], [ "of" ], [ "all" ], [ "tweet" ], [ "in" ], [ "order" ], [ "of" ], [ "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "text", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "tweet", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "date", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(4) T(1) Order(1) A(0) C(5) T(1)" }, { "db_id": "twitter_1", "query": "SELECT T1.name , count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid", "query_toks": [ "SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "user_profiles", "AS", "T1", "JOIN", "tweets", "AS", "T2", "ON", "T1.uid", "=", "T2.uid", "GROUP", "BY", "T2.uid" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "user_profiles", "as", "t1", "join", "tweets", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "uid", "group", "by", "t2", ".", "uid" ], "question": "Find the name of each user and number of tweets tweeted by each of them.", "question_toks": [ "find", "name", "of", "each", "user", "and", "number", "of", "tweet", "tweeted", "by", "each", "of", "them", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, 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": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "of", "each", "user", "and", "number", "of", "tweets", "tweeted", "by", "each", "of", "them", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "each" ], [ "user" ], [ "and" ], [ "number" ], [ "of" ], [ "tweet" ], [ "tweeted" ], [ "by" ], [ "each" ], [ "of" ], [ "them" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "user", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "tweet", "NN" ], [ "tweeted", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "of", "IN" ], [ "them", "PRP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(2) A(3) C(0) T(1)" }, { "db_id": "twitter_1", "query": "SELECT T1.name , T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) < 2", "query_toks": [ "SELECT", "T1.name", ",", "T1.partitionid", "FROM", "user_profiles", "AS", "T1", "JOIN", "tweets", "AS", "T2", "ON", "T1.uid", "=", "T2.uid", "GROUP", "BY", "T2.uid", "HAVING", "count", "(", "*", ")", "<", "2" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "partitionid", "from", "user_profiles", "as", "t1", "join", "tweets", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "uid", "group", "by", "t2", ".", "uid", "having", "count", "(", "*", ")", "<", "value" ], "question": "Find the name and partition id for users who tweeted less than twice.", "question_toks": [ "find", "name", "and", "partition", "id", "for", "user", "who", "tweeted", "le", "than", "twice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [ [ false, 4, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, 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": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "and", "partition", "id", "for", "users", "who", "tweeted", "less", "than", "twice", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "partition", "id" ], [ "for" ], [ "user" ], [ "who" ], [ "tweeted" ], [ "le" ], [ "than" ], [ "twice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "partition", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "tweeted", "VBD" ], [ "le", "JJR" ], [ "than", "IN" ], [ "twice", "RB" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(1) T(1) Filter(4) A(3) C(0) T(1) V(0)" }, { "db_id": "twitter_1", "query": "SELECT T1.name , count(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "user_profiles", "AS", "T1", "JOIN", "tweets", "AS", "T2", "ON", "T1.uid", "=", "T2.uid", "GROUP", "BY", "T2.uid", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "user_profiles", "as", "t1", "join", "tweets", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "uid", "group", "by", "t2", ".", "uid", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the name of the user who tweeted more than once, and number of tweets tweeted by them.", "question_toks": [ "find", "name", "of", "user", "who", "tweeted", "more", "than", "once", ",", "and", "number", "of", "tweet", "tweeted", "by", "them", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "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, 8, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "user", "who", "tweeted", "more", "than", "once", ",", "and", "number", "of", "tweets", "tweeted", "by", "them", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "user" ], [ "who" ], [ "tweeted" ], [ "more" ], [ "than" ], [ "once" ], [ "," ], [ "and" ], [ "number" ], [ "of" ], [ "tweet" ], [ "tweeted" ], [ "by" ], [ "them" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "tweeted", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "once", "RB" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "tweet", "NN" ], [ "tweeted", "VBN" ], [ "by", "IN" ], [ "them", "PRP" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(3) C(0) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "twitter_1", "query": "SELECT avg(followers) FROM user_profiles WHERE UID NOT IN (SELECT UID FROM tweets)", "query_toks": [ "SELECT", "avg", "(", "followers", ")", "FROM", "user_profiles", "WHERE", "UID", "NOT", "IN", "(", "SELECT", "UID", "FROM", "tweets", ")" ], "query_toks_no_value": [ "select", "avg", "(", "followers", ")", "from", "user_profiles", "where", "uid", "not", "in", "(", "select", "uid", "from", "tweets", ")" ], "question": "Find the average number of followers for the users who do not have any tweet.", "question_toks": [ "find", "average", "number", "of", "follower", "for", "user", "who", "do", "not", "have", "any", "tweet", "." ], "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 ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "average", "number", "of", "followers", "for", "the", "users", "who", "do", "not", "have", "any", "tweet", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "number" ], [ "of" ], [ "follower" ], [ "for" ], [ "user" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "tweet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "follower", "NN" ], [ "for", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "tweet", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(10) T(2) Filter(19) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "twitter_1", "query": "SELECT avg(followers) FROM user_profiles WHERE UID IN (SELECT UID FROM tweets)", "query_toks": [ "SELECT", "avg", "(", "followers", ")", "FROM", "user_profiles", "WHERE", "UID", "IN", "(", "SELECT", "UID", "FROM", "tweets", ")" ], "query_toks_no_value": [ "select", "avg", "(", "followers", ")", "from", "user_profiles", "where", "uid", "in", "(", "select", "uid", "from", "tweets", ")" ], "question": "Find the average number of followers for the users who had some tweets.", "question_toks": [ "find", "average", "number", "of", "follower", "for", "user", "who", "had", "some", "tweet", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "average", "number", "of", "followers", "for", "the", "users", "who", "had", "some", "tweets", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "number" ], [ "of" ], [ "follower" ], [ "for" ], [ "user" ], [ "who" ], [ "had" ], [ "some" ], [ "tweet" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "follower", "NN" ], [ "for", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "some", "DT" ], [ "tweet", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(10) T(2) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "twitter_1", "query": "SELECT max(followers) , sum(followers) FROM user_profiles", "query_toks": [ "SELECT", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "FROM", "user_profiles" ], "query_toks_no_value": [ "select", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "from", "user_profiles" ], "question": "Find the maximum and total number of followers of all users.", "question_toks": [ "find", "maximum", "and", "total", "number", "of", "follower", "of", "all", "user", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 11, false ], null ] ], [ 4, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "user id", "follower id", "id", "user id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "table_names": [ "follows", "tweets", "user profiles" ], "col_set": [ "*", "user id", "follower id", "id", "text", "create date", "uid", "name", "email", "partition id", "followers" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 ], "keys": { "2": 7, "7": 7, "1": 1, "4": 7, "3": 3 }, "origin_question_toks": [ "Find", "the", "maximum", "and", "total", "number", "of", "followers", "of", "all", "users", "." ], "question_arg": [ [ "find" ], [ "maximum" ], [ "and" ], [ "total" ], [ "number" ], [ "of" ], [ "follower" ], [ "of" ], [ "all" ], [ "user" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "follower", "JJR" ], [ "of", "IN" ], [ "all", "DT" ], [ "user", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(10) T(2) A(4) C(10) T(2)" }, { "db_id": "product_catalog", "query": "SELECT distinct(catalog_entry_name) FROM catalog_contents", "query_toks": [ "SELECT", "distinct", "(", "catalog_entry_name", ")", "FROM", "catalog_contents" ], "query_toks_no_value": [ "select", "distinct", "(", "catalog_entry_name", ")", "from", "catalog_contents" ], "question": "Find the names of all the catalog entries.", "question_toks": [ "find", "name", "of", "all", "catalog", "entry", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "the", "catalog", "entries", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "catalog" ], [ "entry" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "catalog", "NN" ], [ "entry", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(15) T(3)" }, { "db_id": "product_catalog", "query": "SELECT distinct(catalog_entry_name) FROM catalog_contents", "query_toks": [ "SELECT", "distinct", "(", "catalog_entry_name", ")", "FROM", "catalog_contents" ], "query_toks_no_value": [ "select", "distinct", "(", "catalog_entry_name", ")", "from", "catalog_contents" ], "question": "What are all the catalog entry names?", "question_toks": [ "what", "are", "all", "catalog", "entry", "name", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "all", "the", "catalog", "entry", "names", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "catalog", "entry", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "catalog", "NN" ], [ "entry", "NN" ], [ "name", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(15) T(3)" }, { "db_id": "product_catalog", "query": "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3", "query_toks": [ "SELECT", "attribute_data_type", "FROM", "Attribute_Definitions", "GROUP", "BY", "attribute_data_type", "HAVING", "count", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "attribute_data_type", "from", "attribute_definitions", "group", "by", "attribute_data_type", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the list of attribute data types possessed by more than 3 attribute definitions.", "question_toks": [ "find", "list", "of", "attribute", "data", "type", "possessed", "by", "more", "than", "3", "attribute", "definition", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "list", "of", "attribute", "data", "types", "possessed", "by", "more", "than", "3", "attribute", "definitions", "." ], "question_arg": [ [ "find" ], [ "list" ], [ "of" ], [ "attribute", "data", "type" ], [ "possessed" ], [ "by" ], [ "more" ], [ "than" ], [ "3" ], [ "attribute", "definition" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "list", "NN" ], [ "of", "IN" ], [ "attribute", "JJ" ], [ "data", "NNS" ], [ "type", "NN" ], [ "possessed", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "attribute", "JJ" ], [ "definition", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "product_catalog", "query": "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING count(*) > 3", "query_toks": [ "SELECT", "attribute_data_type", "FROM", "Attribute_Definitions", "GROUP", "BY", "attribute_data_type", "HAVING", "count", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "attribute_data_type", "from", "attribute_definitions", "group", "by", "attribute_data_type", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the attribute data types with more than 3 attribute definitions?", "question_toks": [ "what", "are", "attribute", "data", "type", "with", "more", "than", "3", "attribute", "definition", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "attribute", "data", "types", "with", "more", "than", "3", "attribute", "definitions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "attribute", "data", "type" ], [ "with" ], [ "more" ], [ "than" ], [ "3" ], [ "attribute", "definition" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "attribute", "JJ" ], [ "data", "NNS" ], [ "type", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "attribute", "JJ" ], [ "definition", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(3) C(0) T(0) V(0)" }, { "db_id": "product_catalog", "query": "SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name = \"Green\"", "query_toks": [ "SELECT", "attribute_data_type", "FROM", "Attribute_Definitions", "WHERE", "attribute_name", "=", "``", "Green", "''" ], "query_toks_no_value": [ "select", "attribute_data_type", "from", "attribute_definitions", "where", "attribute_name", "=", "value" ], "question": "What is the attribute data type of the attribute with name \"Green\"?", "question_toks": [ "what", "is", "attribute", "data", "type", "of", "attribute", "with", "name", "'", "green", "'", "?" ], "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 ], "\"Green\"", null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "attribute", "data", "type", "of", "the", "attribute", "with", "name", "``", "Green", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "attribute", "data", "type" ], [ "of" ], [ "attribute" ], [ "with" ], [ "name" ], [ "'" ], [ "green" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "attribute", "JJ" ], [ "data", "NNS" ], [ "type", "NN" ], [ "of", "IN" ], [ "attribute", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "green", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Green" ], "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": "product_catalog", "query": "SELECT attribute_data_type FROM Attribute_Definitions WHERE attribute_name = \"Green\"", "query_toks": [ "SELECT", "attribute_data_type", "FROM", "Attribute_Definitions", "WHERE", "attribute_name", "=", "``", "Green", "''" ], "query_toks_no_value": [ "select", "attribute_data_type", "from", "attribute_definitions", "where", "attribute_name", "=", "value" ], "question": "Find the attribute data type for the attribute named \"Green\".", "question_toks": [ "find", "attribute", "data", "type", "for", "attribute", "named", "'", "green", "'", "." ], "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 ], "\"Green\"", null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "attribute", "data", "type", "for", "the", "attribute", "named", "``", "Green", "''", "." ], "question_arg": [ [ "find" ], [ "attribute", "data", "type" ], [ "for" ], [ "attribute" ], [ "named" ], [ "'" ], [ "green" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "attribute", "JJ" ], [ "data", "NNS" ], [ "type", "NN" ], [ "for", "IN" ], [ "attribute", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "green", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Green" ], "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": "product_catalog", "query": "SELECT catalog_level_name , catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10", "query_toks": [ "SELECT", "catalog_level_name", ",", "catalog_level_number", "FROM", "Catalog_Structure", "WHERE", "catalog_level_number", "BETWEEN", "5", "AND", "10" ], "query_toks_no_value": [ "select", "catalog_level_name", ",", "catalog_level_number", "from", "catalog_structure", "where", "catalog_level_number", "between", "value", "and", "value" ], "question": "Find the name and level of catalog structure with level between 5 and 10.", "question_toks": [ "find", "name", "and", "level", "of", "catalog", "structure", "with", "level", "between", "5", "and", "10", "." ], "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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 9, false ], null ], 5.0, 10.0 ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "level", "of", "catalog", "structure", "with", "level", "between", "5", "and", "10", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "level" ], [ "of" ], [ "catalog", "structure" ], [ "with" ], [ "level" ], [ "between" ], [ "5" ], [ "and" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "level", "NN" ], [ "of", "IN" ], [ "catalog", "NN" ], [ "structure", "NN" ], [ "with", "IN" ], [ "level", "NN" ], [ "between", "IN" ], [ "5", "CD" ], [ "and", "CC" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "5", "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(2) A(0) C(9) T(2) Filter(8) A(0) C(9) T(2) V(0) V(1)" }, { "db_id": "product_catalog", "query": "SELECT catalog_level_name , catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10", "query_toks": [ "SELECT", "catalog_level_name", ",", "catalog_level_number", "FROM", "Catalog_Structure", "WHERE", "catalog_level_number", "BETWEEN", "5", "AND", "10" ], "query_toks_no_value": [ "select", "catalog_level_name", ",", "catalog_level_number", "from", "catalog_structure", "where", "catalog_level_number", "between", "value", "and", "value" ], "question": "What are the name and level of catalog structure with level number between 5 and 10", "question_toks": [ "what", "are", "name", "and", "level", "of", "catalog", "structure", "with", "level", "number", "between", "5", "and", "10" ], "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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 9, false ], null ], 5.0, 10.0 ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "level", "of", "catalog", "structure", "with", "level", "number", "between", "5", "and", "10" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "level" ], [ "of" ], [ "catalog", "structure" ], [ "with" ], [ "catalog", "level", "number" ], [ "between" ], [ "5" ], [ "and" ], [ "10" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "level", "NN" ], [ "of", "IN" ], [ "catalog", "NN" ], [ "structure", "NN" ], [ "with", "IN" ], [ "level", "JJ" ], [ "number", "NN" ], [ "between", "IN" ], [ "5", "CD" ], [ "and", "CC" ], [ "10", "CD" ] ], "values": [ "5", "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(2) A(0) C(9) T(2) Filter(8) A(0) C(9) T(2) V(0) V(1)" }, { "db_id": "product_catalog", "query": "SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE \"%Murray%\"", "query_toks": [ "SELECT", "distinct", "(", "catalog_publisher", ")", "FROM", "catalogs", "WHERE", "catalog_publisher", "LIKE", "``", "%", "Murray", "%", "''" ], "query_toks_no_value": [ "select", "distinct", "(", "catalog_publisher", ")", "from", "catalogs", "where", "catalog_publisher", "like", "value" ], "question": "Find all the catalog publishers whose name contains \"Murray\"", "question_toks": [ "find", "all", "catalog", "publisher", "whose", "name", "contains", "'", "murray", "'" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 6, false ], null ], "\"%Murray%\"", null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "all", "the", "catalog", "publishers", "whose", "name", "contains", "``", "Murray", "''" ], "question_arg": [ [ "find" ], [ "all" ], [ "catalog", "publisher" ], [ "whose" ], [ "name" ], [ "contains" ], [ "'" ], [ "murray" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "catalog", "NN" ], [ "publisher", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "'", "POS" ], [ "murray", "NN" ], [ "'", "''" ] ], "values": [ "Murray" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(1) Filter(9) A(0) C(6) T(1) V(0)" }, { "db_id": "product_catalog", "query": "SELECT distinct(catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE \"%Murray%\"", "query_toks": [ "SELECT", "distinct", "(", "catalog_publisher", ")", "FROM", "catalogs", "WHERE", "catalog_publisher", "LIKE", "``", "%", "Murray", "%", "''" ], "query_toks_no_value": [ "select", "distinct", "(", "catalog_publisher", ")", "from", "catalogs", "where", "catalog_publisher", "like", "value" ], "question": "Which catalog publishers have substring \"Murray\" in their names?", "question_toks": [ "which", "catalog", "publisher", "have", "substring", "'", "murray", "'", "in", "their", "name", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 6, false ], null ], "\"%Murray%\"", null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Which", "catalog", "publishers", "have", "substring", "``", "Murray", "''", "in", "their", "names", "?" ], "question_arg": [ [ "which" ], [ "catalog", "publisher" ], [ "have" ], [ "substring" ], [ "'" ], [ "murray" ], [ "'" ], [ "in" ], [ "their" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "catalog", "NN" ], [ "publisher", "NN" ], [ "have", "VBP" ], [ "substring", "VBG" ], [ "'", "''" ], [ "murray", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "Murray" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(1) Filter(9) A(0) C(6) T(1) V(0)" }, { "db_id": "product_catalog", "query": "SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "catalog_publisher", "FROM", "catalogs", "GROUP", "BY", "catalog_publisher", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "catalog_publisher", "from", "catalogs", "group", "by", "catalog_publisher", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which catalog publisher has published the most catalogs?", "question_toks": [ "which", "catalog", "publisher", "ha", "published", "most", "catalog", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Which", "catalog", "publisher", "has", "published", "the", "most", "catalogs", "?" ], "question_arg": [ [ "which" ], [ "catalog", "publisher" ], [ "ha" ], [ "published" ], [ "most" ], [ "catalog" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "catalog", "NN" ], [ "publisher", "NN" ], [ "ha", "NN" ], [ "published", "VBN" ], [ "most", "JJS" ], [ "catalog", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "product_catalog", "query": "SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "catalog_publisher", "FROM", "catalogs", "GROUP", "BY", "catalog_publisher", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "catalog_publisher", "from", "catalogs", "group", "by", "catalog_publisher", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the catalog publisher that has the most catalogs.", "question_toks": [ "find", "catalog", "publisher", "that", "ha", "most", "catalog", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "catalog", "publisher", "that", "has", "the", "most", "catalogs", "." ], "question_arg": [ [ "find" ], [ "catalog", "publisher" ], [ "that" ], [ "ha" ], [ "most" ], [ "catalog" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "catalog", "NN" ], [ "publisher", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "catalog", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "product_catalog", "query": "SELECT t1.catalog_name , t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5", "query_toks": [ "SELECT", "t1.catalog_name", ",", "t1.date_of_publication", "FROM", "catalogs", "AS", "t1", "JOIN", "catalog_structure", "AS", "t2", "ON", "t1.catalog_id", "=", "t2.catalog_id", "WHERE", "catalog_level_number", ">", "5" ], "query_toks_no_value": [ "select", "t1", ".", "catalog_name", ",", "t1", ".", "date_of_publication", "from", "catalogs", "as", "t1", "join", "catalog_structure", "as", "t2", "on", "t1", ".", "catalog_id", "=", "t2", ".", "catalog_id", "where", "catalog_level_number", ">", "value" ], "question": "Find the names and publication dates of all catalogs that have catalog level number greater than 5.", "question_toks": [ "find", "name", "and", "publication", "date", "of", "all", "catalog", "that", "have", "catalog", "level", "number", "greater", "than", "5", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, 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 ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 5.0, null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "and", "publication", "dates", "of", "all", "catalogs", "that", "have", "catalog", "level", "number", "greater", "than", "5", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "date", "of", "publication" ], [ "all" ], [ "catalog" ], [ "that" ], [ "have" ], [ "catalog", "level", "number" ], [ "greater" ], [ "than" ], [ "5" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "publication", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "catalog", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "catalog", "VBN" ], [ "level", "JJ" ], [ "number", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(7) T(1) Filter(5) A(0) C(9) T(2) V(0)" }, { "db_id": "product_catalog", "query": "SELECT t1.catalog_name , t1.date_of_publication FROM catalogs AS t1 JOIN catalog_structure AS t2 ON t1.catalog_id = t2.catalog_id WHERE catalog_level_number > 5", "query_toks": [ "SELECT", "t1.catalog_name", ",", "t1.date_of_publication", "FROM", "catalogs", "AS", "t1", "JOIN", "catalog_structure", "AS", "t2", "ON", "t1.catalog_id", "=", "t2.catalog_id", "WHERE", "catalog_level_number", ">", "5" ], "query_toks_no_value": [ "select", "t1", ".", "catalog_name", ",", "t1", ".", "date_of_publication", "from", "catalogs", "as", "t1", "join", "catalog_structure", "as", "t2", "on", "t1", ".", "catalog_id", "=", "t2", ".", "catalog_id", "where", "catalog_level_number", ">", "value" ], "question": "What are the name and publication date of the catalogs with catalog level number above 5?", "question_toks": [ "what", "are", "name", "and", "publication", "date", "of", "catalog", "with", "catalog", "level", "number", "above", "5", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, 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 ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 5.0, null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "publication", "date", "of", "the", "catalogs", "with", "catalog", "level", "number", "above", "5", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "date", "of", "publication" ], [ "catalog" ], [ "with" ], [ "catalog", "level", "number" ], [ "above" ], [ "5" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "publication", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "catalog", "NN" ], [ "with", "IN" ], [ "catalog", "NN" ], [ "level", "NN" ], [ "number", "NN" ], [ "above", "IN" ], [ "5", "CD" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(7) T(1) Filter(5) A(0) C(9) T(2) V(0)" }, { "db_id": "product_catalog", "query": "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "t1.catalog_entry_name", "FROM", "Catalog_Contents", "AS", "t1", "JOIN", "Catalog_Contents_Additional_Attributes", "AS", "t2", "ON", "t1.catalog_entry_id", "=", "t2.catalog_entry_id", "WHERE", "t2.attribute_value", "=", "(", "SELECT", "attribute_value", "FROM", "Catalog_Contents_Additional_Attributes", "GROUP", "BY", "attribute_value", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t1", ".", "catalog_entry_name", "from", "catalog_contents", "as", "t1", "join", "catalog_contents_additional_attributes", "as", "t2", "on", "t1", ".", "catalog_entry_id", "=", "t2", ".", "catalog_entry_id", "where", "t2", ".", "attribute_value", "=", "(", "select", "attribute_value", "from", "catalog_contents_additional_attributes", "group", "by", "attribute_value", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "What are the entry names of catalog with the attribute possessed by most entries.", "question_toks": [ "what", "are", "entry", "name", "of", "catalog", "with", "attribute", "possessed", "by", "most", "entry", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "entry", "names", "of", "catalog", "with", "the", "attribute", "possessed", "by", "most", "entries", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "catalog", "entry", "name" ], [ "of" ], [ "catalog" ], [ "with" ], [ "attribute" ], [ "possessed" ], [ "by" ], [ "most" ], [ "entry" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "entry", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "catalog", "NN" ], [ "with", "IN" ], [ "attribute", "NN" ], [ "possessed", "VBN" ], [ "by", "IN" ], [ "most", "JJS" ], [ "entry", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(3) Filter(11) A(0) C(24) T(4) Root(2) Sel(0) N(0) A(0) C(24) T(4) Sup(0) A(3) C(0) T(4)" }, { "db_id": "product_catalog", "query": "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "t1.catalog_entry_name", "FROM", "Catalog_Contents", "AS", "t1", "JOIN", "Catalog_Contents_Additional_Attributes", "AS", "t2", "ON", "t1.catalog_entry_id", "=", "t2.catalog_entry_id", "WHERE", "t2.attribute_value", "=", "(", "SELECT", "attribute_value", "FROM", "Catalog_Contents_Additional_Attributes", "GROUP", "BY", "attribute_value", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "t1", ".", "catalog_entry_name", "from", "catalog_contents", "as", "t1", "join", "catalog_contents_additional_attributes", "as", "t2", "on", "t1", ".", "catalog_entry_id", "=", "t2", ".", "catalog_entry_id", "where", "t2", ".", "attribute_value", "=", "(", "select", "attribute_value", "from", "catalog_contents_additional_attributes", "group", "by", "attribute_value", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "Find the entry names of the catalog with the attribute that have the most entries.", "question_toks": [ "find", "entry", "name", "of", "catalog", "with", "attribute", "that", "have", "most", "entry", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "entry", "names", "of", "the", "catalog", "with", "the", "attribute", "that", "have", "the", "most", "entries", "." ], "question_arg": [ [ "find" ], [ "catalog", "entry", "name" ], [ "of" ], [ "catalog" ], [ "with" ], [ "attribute" ], [ "that" ], [ "have" ], [ "most" ], [ "entry" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "entry", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "catalog", "NN" ], [ "with", "IN" ], [ "attribute", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "most", "RBS" ], [ "entry", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(3) Filter(11) A(0) C(24) T(4) Root(2) Sel(0) N(0) A(0) C(24) T(4) Sup(0) A(3) C(0) T(4)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1", "query_toks": [ "SELECT", "catalog_entry_name", "FROM", "catalog_contents", "ORDER", "BY", "price_in_dollars", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "catalog_entry_name", "from", "catalog_contents", "order", "by", "price_in_dollars", "desc", "limit", "value" ], "question": "What is the entry name of the most expensive catalog (in USD)?", "question_toks": [ "what", "is", "entry", "name", "of", "most", "expensive", "catalog", "(", "in", "usd", ")", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "entry", "name", "of", "the", "most", "expensive", "catalog", "(", "in", "USD", ")", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "catalog", "entry", "name" ], [ "of" ], [ "most" ], [ "expensive" ], [ "catalog" ], [ "(" ], [ "in" ], [ "usd" ], [ ")" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "entry", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "expensive", "JJ" ], [ "catalog", "NN" ], [ "(", "(" ], [ "in", "IN" ], [ "usd", "NN" ], [ ")", ")" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(3) Sup(0) A(0) C(17) T(3)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1", "query_toks": [ "SELECT", "catalog_entry_name", "FROM", "catalog_contents", "ORDER", "BY", "price_in_dollars", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "catalog_entry_name", "from", "catalog_contents", "order", "by", "price_in_dollars", "desc", "limit", "value" ], "question": "Find the entry name of the catalog with the highest price (in USD).", "question_toks": [ "find", "entry", "name", "of", "catalog", "with", "highest", "price", "(", "in", "usd", ")", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "entry", "name", "of", "the", "catalog", "with", "the", "highest", "price", "(", "in", "USD", ")", "." ], "question_arg": [ [ "find" ], [ "catalog", "entry", "name" ], [ "of" ], [ "catalog" ], [ "with" ], [ "highest" ], [ "price" ], [ "(" ], [ "in" ], [ "usd" ], [ ")" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "entry", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "catalog", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "price", "NN" ], [ "(", "(" ], [ "in", "IN" ], [ "usd", "NN" ], [ ")", ")" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(3) Sup(0) A(0) C(17) T(3)" }, { "db_id": "product_catalog", "query": "SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1", "query_toks": [ "SELECT", "t2.catalog_level_name", "FROM", "catalog_contents", "AS", "t1", "JOIN", "catalog_structure", "AS", "t2", "ON", "t1.catalog_level_number", "=", "t2.catalog_level_number", "ORDER", "BY", "t1.price_in_dollars", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "catalog_level_name", "from", "catalog_contents", "as", "t1", "join", "catalog_structure", "as", "t2", "on", "t1", ".", "catalog_level_number", "=", "t2", ".", "catalog_level_number", "order", "by", "t1", ".", "price_in_dollars", "limit", "value" ], "question": "What is the level name of the cheapest catalog (in USD)?", "question_toks": [ "what", "is", "level", "name", "of", "cheapest", "catalog", "(", "in", "usd", ")", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "level", "name", "of", "the", "cheapest", "catalog", "(", "in", "USD", ")", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "catalog", "level", "name" ], [ "of" ], [ "cheapest" ], [ "catalog" ], [ "(" ], [ "in" ], [ "usd" ], [ ")" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "level", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "cheapest", "NN" ], [ "catalog", "NN" ], [ "(", "(" ], [ "in", "IN" ], [ "usd", "NN" ], [ ")", ")" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(2) Sup(1) A(0) C(17) T(3)" }, { "db_id": "product_catalog", "query": "SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1", "query_toks": [ "SELECT", "t2.catalog_level_name", "FROM", "catalog_contents", "AS", "t1", "JOIN", "catalog_structure", "AS", "t2", "ON", "t1.catalog_level_number", "=", "t2.catalog_level_number", "ORDER", "BY", "t1.price_in_dollars", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "catalog_level_name", "from", "catalog_contents", "as", "t1", "join", "catalog_structure", "as", "t2", "on", "t1", ".", "catalog_level_number", "=", "t2", ".", "catalog_level_number", "order", "by", "t1", ".", "price_in_dollars", "limit", "value" ], "question": "Find the level name of the catalog with the lowest price (in USD).", "question_toks": [ "find", "level", "name", "of", "catalog", "with", "lowest", "price", "(", "in", "usd", ")", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 19, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "level", "name", "of", "the", "catalog", "with", "the", "lowest", "price", "(", "in", "USD", ")", "." ], "question_arg": [ [ "find" ], [ "catalog", "level", "name" ], [ "of" ], [ "catalog" ], [ "with" ], [ "lowest" ], [ "price" ], [ "(" ], [ "in" ], [ "usd" ], [ ")" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "level", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "catalog", "NN" ], [ "with", "IN" ], [ "lowest", "JJ" ], [ "price", "NN" ], [ "(", "(" ], [ "in", "IN" ], [ "usd", "NN" ], [ ")", ")" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(2) Sup(1) A(0) C(17) T(3)" }, { "db_id": "product_catalog", "query": "SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents", "query_toks": [ "SELECT", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents" ], "query_toks_no_value": [ "select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents" ], "question": "What are the average and minimum price (in Euro) of all products?", "question_toks": [ "what", "are", "average", "and", "minimum", "price", "(", "in", "euro", ")", "of", "all", "product", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 20, false ], null ] ], [ 2, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "average", "and", "minimum", "price", "(", "in", "Euro", ")", "of", "all", "products", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "and" ], [ "minimum" ], [ "price" ], [ "(" ], [ "price", "in", "euro" ], [ ")" ], [ "of" ], [ "all" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "price", "NN" ], [ "(", "(" ], [ "in", "IN" ], [ "euro", "NN" ], [ ")", ")" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "?", "." ] ], "values": [ "Product" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(18) T(3) A(2) C(18) T(3)" }, { "db_id": "product_catalog", "query": "SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents", "query_toks": [ "SELECT", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents" ], "query_toks_no_value": [ "select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents" ], "question": "Give me the average and minimum price (in Euro) of the products.", "question_toks": [ "give", "me", "average", "and", "minimum", "price", "(", "in", "euro", ")", "of", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 20, false ], null ] ], [ 2, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Give", "me", "the", "average", "and", "minimum", "price", "(", "in", "Euro", ")", "of", "the", "products", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "average" ], [ "and" ], [ "minimum" ], [ "price" ], [ "(" ], [ "price", "in", "euro" ], [ ")" ], [ "of" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "average", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "price", "NN" ], [ "(", "(" ], [ "in", "IN" ], [ "euro", "NN" ], [ ")", ")" ], [ "of", "IN" ], [ "product", "NN" ], [ ".", "." ] ], "values": [ "Product" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(18) T(3) A(2) C(18) T(3)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1", "query_toks": [ "SELECT", "catalog_entry_name", "FROM", "catalog_contents", "ORDER", "BY", "height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "catalog_entry_name", "from", "catalog_contents", "order", "by", "height", "desc", "limit", "value" ], "question": "What is the product with the highest height? Give me the catalog entry name.", "question_toks": [ "what", "is", "product", "with", "highest", "height", "?", "give", "me", "catalog", "entry", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 24, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "product", "with", "the", "highest", "height", "?", "Give", "me", "the", "catalog", "entry", "name", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "product" ], [ "with" ], [ "highest" ], [ "height" ], [ "?" ], [ "give" ], [ "me" ], [ "catalog", "entry", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "product", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "height", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "catalog", "JJ" ], [ "entry", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Product" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(3) Sup(0) A(0) C(22) T(3)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1", "query_toks": [ "SELECT", "catalog_entry_name", "FROM", "catalog_contents", "ORDER", "BY", "height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "catalog_entry_name", "from", "catalog_contents", "order", "by", "height", "desc", "limit", "value" ], "question": "Which catalog content has the highest height? Give me the catalog entry name.", "question_toks": [ "which", "catalog", "content", "ha", "highest", "height", "?", "give", "me", "catalog", "entry", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 24, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Which", "catalog", "content", "has", "the", "highest", "height", "?", "Give", "me", "the", "catalog", "entry", "name", "." ], "question_arg": [ [ "which" ], [ "catalog", "content" ], [ "ha" ], [ "highest" ], [ "height" ], [ "?" ], [ "give" ], [ "me" ], [ "catalog", "entry", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "catalog", "NN" ], [ "content", "NN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "height", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "catalog", "JJ" ], [ "entry", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(3) Sup(0) A(0) C(22) T(3)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1", "query_toks": [ "SELECT", "catalog_entry_name", "FROM", "catalog_contents", "ORDER", "BY", "capacity", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "catalog_entry_name", "from", "catalog_contents", "order", "by", "capacity", "asc", "limit", "value" ], "question": "Find the name of the product that has the smallest capacity.", "question_toks": [ "find", "name", "of", "product", "that", "ha", "smallest", "capacity", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 22, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "product", "that", "has", "the", "smallest", "capacity", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "ha" ], [ "smallest" ], [ "capacity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "smallest", "JJS" ], [ "capacity", "NN" ], [ ".", "." ] ], "values": [ "Product" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(3) Sup(1) A(0) C(20) T(3)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1", "query_toks": [ "SELECT", "catalog_entry_name", "FROM", "catalog_contents", "ORDER", "BY", "capacity", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "catalog_entry_name", "from", "catalog_contents", "order", "by", "capacity", "asc", "limit", "value" ], "question": "Which catalog content has the smallest capacity? Return the catalog entry name.", "question_toks": [ "which", "catalog", "content", "ha", "smallest", "capacity", "?", "return", "catalog", "entry", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 22, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Which", "catalog", "content", "has", "the", "smallest", "capacity", "?", "Return", "the", "catalog", "entry", "name", "." ], "question_arg": [ [ "which" ], [ "catalog", "content" ], [ "ha" ], [ "smallest" ], [ "capacity" ], [ "?" ], [ "return" ], [ "catalog", "entry", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "catalog", "NN" ], [ "content", "NN" ], [ "ha", "NN" ], [ "smallest", "JJS" ], [ "capacity", "NN" ], [ "?", "." ], [ "return", "NN" ], [ "catalog", "NN" ], [ "entry", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(3) Sup(1) A(0) C(20) T(3)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE \"2%\"", "query_toks": [ "SELECT", "catalog_entry_name", "FROM", "catalog_contents", "WHERE", "product_stock_number", "LIKE", "``", "2", "%", "''" ], "query_toks_no_value": [ "select", "catalog_entry_name", "from", "catalog_contents", "where", "product_stock_number", "like", "value" ], "question": "Find the names of all the products whose stock number starts with \"2\".", "question_toks": [ "find", "name", "of", "all", "product", "whose", "stock", "number", "start", "with", "'", "2", "'", "." ], "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, 9, [ 0, [ 0, 18, false ], null ], "\"2%\"", null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "the", "products", "whose", "stock", "number", "starts", "with", "``", "2", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "product" ], [ "whose" ], [ "product", "stock", "number" ], [ "start" ], [ "with" ], [ "'" ], [ "2" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "product", "NN" ], [ "whose", "WP$" ], [ "stock", "NN" ], [ "number", "NN" ], [ "start", "NN" ], [ "with", "IN" ], [ "'", "POS" ], [ "2", "CD" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "2", "Product" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(3) Filter(9) A(0) C(16) T(3) V(0)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE \"2%\"", "query_toks": [ "SELECT", "catalog_entry_name", "FROM", "catalog_contents", "WHERE", "product_stock_number", "LIKE", "``", "2", "%", "''" ], "query_toks_no_value": [ "select", "catalog_entry_name", "from", "catalog_contents", "where", "product_stock_number", "like", "value" ], "question": "Which catalog contents have a product stock number that starts from \"2\"? Show the catalog entry names.", "question_toks": [ "which", "catalog", "content", "have", "a", "product", "stock", "number", "that", "start", "from", "'", "2", "'", "?", "show", "catalog", "entry", "name", "." ], "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, 9, [ 0, [ 0, 18, false ], null ], "\"2%\"", null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Which", "catalog", "contents", "have", "a", "product", "stock", "number", "that", "starts", "from", "``", "2", "''", "?", "Show", "the", "catalog", "entry", "names", "." ], "question_arg": [ [ "which" ], [ "catalog", "content" ], [ "have" ], [ "a" ], [ "product", "stock", "number" ], [ "that" ], [ "start" ], [ "from" ], [ "'" ], [ "2" ], [ "'" ], [ "?" ], [ "show" ], [ "catalog", "entry", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "catalog", "NN" ], [ "content", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "product", "NN" ], [ "stock", "NN" ], [ "number", "NN" ], [ "that", "WDT" ], [ "start", "VBP" ], [ "from", "IN" ], [ "'", "POS" ], [ "2", "CD" ], [ "'", "POS" ], [ "?", "." ], [ "show", "NN" ], [ "catalog", "VBZ" ], [ "entry", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "2", "Product" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(3) Filter(9) A(0) C(16) T(3) V(0)" }, { "db_id": "product_catalog", "query": "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = \"8\"", "query_toks": [ "SELECT", "t1.catalog_entry_name", "FROM", "Catalog_Contents", "AS", "t1", "JOIN", "Catalog_Contents_Additional_Attributes", "AS", "t2", "ON", "t1.catalog_entry_id", "=", "t2.catalog_entry_id", "WHERE", "t2.catalog_level_number", "=", "``", "8", "''" ], "query_toks_no_value": [ "select", "t1", ".", "catalog_entry_name", "from", "catalog_contents", "as", "t1", "join", "catalog_contents_additional_attributes", "as", "t2", "on", "t1", ".", "catalog_entry_id", "=", "t2", ".", "catalog_entry_id", "where", "t2", ".", "catalog_level_number", "=", "value" ], "question": "Find the names of catalog entries with level number 8.", "question_toks": [ "find", "name", "of", "catalog", "entry", "with", "level", "number", "8", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"8\"", null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "catalog", "entries", "with", "level", "number", "8", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "catalog" ], [ "entry" ], [ "with" ], [ "catalog", "level", "number" ], [ "8" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "catalog", "NN" ], [ "entry", "NN" ], [ "with", "IN" ], [ "level", "JJ" ], [ "number", "NN" ], [ "8", "CD" ], [ ".", "." ] ], "values": [ "8" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(3) Filter(2) A(0) C(9) T(4) V(0)" }, { "db_id": "product_catalog", "query": "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = \"8\"", "query_toks": [ "SELECT", "t1.catalog_entry_name", "FROM", "Catalog_Contents", "AS", "t1", "JOIN", "Catalog_Contents_Additional_Attributes", "AS", "t2", "ON", "t1.catalog_entry_id", "=", "t2.catalog_entry_id", "WHERE", "t2.catalog_level_number", "=", "``", "8", "''" ], "query_toks_no_value": [ "select", "t1", ".", "catalog_entry_name", "from", "catalog_contents", "as", "t1", "join", "catalog_contents_additional_attributes", "as", "t2", "on", "t1", ".", "catalog_entry_id", "=", "t2", ".", "catalog_entry_id", "where", "t2", ".", "catalog_level_number", "=", "value" ], "question": "What are the names of catalog entries with level number 8?", "question_toks": [ "what", "are", "name", "of", "catalog", "entry", "with", "level", "number", "8", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 26, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"8\"", null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "catalog", "entries", "with", "level", "number", "8", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "catalog" ], [ "entry" ], [ "with" ], [ "catalog", "level", "number" ], [ "8" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "catalog", "NN" ], [ "entry", "NN" ], [ "with", "IN" ], [ "level", "JJ" ], [ "number", "NN" ], [ "8", "CD" ], [ "?", "." ] ], "values": [ "8" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(3) Filter(2) A(0) C(9) T(4) V(0)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5", "query_toks": [ "SELECT", "catalog_entry_name", "FROM", "catalog_contents", "WHERE", "LENGTH", "<", "3", "OR", "width", ">", "5" ], "query_toks_no_value": [ "select", "catalog_entry_name", "from", "catalog_contents", "where", "length", "<", "value", "or", "width", ">", "value" ], "question": "Find the names of the products with length smaller than 3 or height greater than 5.", "question_toks": [ "find", "name", "of", "product", "with", "length", "smaller", "than", "3", "or", "height", "greater", "than", "5", "." ], "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, 4, [ 0, [ 0, 23, false ], null ], 3.0, null ], "or", [ false, 3, [ 0, [ 0, 25, false ], null ], 5.0, null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "products", "with", "length", "smaller", "than", "3", "or", "height", "greater", "than", "5", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "product" ], [ "with" ], [ "length" ], [ "smaller" ], [ "than" ], [ "3" ], [ "or" ], [ "height" ], [ "greater" ], [ "than" ], [ "5" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "length", "JJ" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "or", "CC" ], [ "height", "VBD" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ ".", "." ] ], "values": [ "5", "Product", "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(3) Filter(1) Filter(4) A(0) C(21) T(3) V(2) Filter(5) A(0) C(23) T(3) V(0)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH < 3 OR width > 5", "query_toks": [ "SELECT", "catalog_entry_name", "FROM", "catalog_contents", "WHERE", "LENGTH", "<", "3", "OR", "width", ">", "5" ], "query_toks_no_value": [ "select", "catalog_entry_name", "from", "catalog_contents", "where", "length", "<", "value", "or", "width", ">", "value" ], "question": "Which catalog contents have length below 3 or above 5? Find the catalog entry names.", "question_toks": [ "which", "catalog", "content", "have", "length", "below", "3", "or", "above", "5", "?", "find", "catalog", "entry", "name", "." ], "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, 4, [ 0, [ 0, 23, false ], null ], 3.0, null ], "or", [ false, 3, [ 0, [ 0, 25, false ], null ], 5.0, null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Which", "catalog", "contents", "have", "length", "below", "3", "or", "above", "5", "?", "Find", "the", "catalog", "entry", "names", "." ], "question_arg": [ [ "which" ], [ "catalog", "content" ], [ "have" ], [ "length" ], [ "below" ], [ "3" ], [ "or" ], [ "above" ], [ "5" ], [ "?" ], [ "find" ], [ "catalog", "entry", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "catalog", "NN" ], [ "content", "NN" ], [ "have", "VBP" ], [ "length", "VBN" ], [ "below", "IN" ], [ "3", "CD" ], [ "or", "CC" ], [ "above", "VB" ], [ "5", "CD" ], [ "?", "." ], [ "find", "VB" ], [ "catalog", "NN" ], [ "entry", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "5", "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(3) Filter(1) Filter(4) A(0) C(21) T(3) V(1) Filter(5) A(0) C(23) T(3) V(0)" }, { "db_id": "product_catalog", "query": "SELECT t1.attribute_name , t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0", "query_toks": [ "SELECT", "t1.attribute_name", ",", "t1.attribute_id", "FROM", "Attribute_Definitions", "AS", "t1", "JOIN", "Catalog_Contents_Additional_Attributes", "AS", "t2", "ON", "t1.attribute_id", "=", "t2.attribute_id", "WHERE", "t2.attribute_value", "=", "0" ], "query_toks_no_value": [ "select", "t1", ".", "attribute_name", ",", "t1", ".", "attribute_id", "from", "attribute_definitions", "as", "t1", "join", "catalog_contents_additional_attributes", "as", "t2", "on", "t1", ".", "attribute_id", "=", "t2", ".", "attribute_id", "where", "t2", ".", "attribute_value", "=", "value" ], "question": "Find the name and attribute ID of the attribute definitions with attribute value 0.", "question_toks": [ "find", "name", "and", "attribute", "id", "of", "attribute", "definition", "with", "attribute", "value", "0", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], 0.0, null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "attribute", "ID", "of", "the", "attribute", "definitions", "with", "attribute", "value", "0", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "attribute", "id" ], [ "of" ], [ "attribute", "definition" ], [ "with" ], [ "attribute", "value" ], [ "0" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "attribute", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "attribute", "JJ" ], [ "definition", "NN" ], [ "with", "IN" ], [ "attribute", "JJ" ], [ "value", "NN" ], [ "0", "CD" ], [ ".", "." ] ], "values": [ "0" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(2) A(0) C(24) T(4) V(0)" }, { "db_id": "product_catalog", "query": "SELECT t1.attribute_name , t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0", "query_toks": [ "SELECT", "t1.attribute_name", ",", "t1.attribute_id", "FROM", "Attribute_Definitions", "AS", "t1", "JOIN", "Catalog_Contents_Additional_Attributes", "AS", "t2", "ON", "t1.attribute_id", "=", "t2.attribute_id", "WHERE", "t2.attribute_value", "=", "0" ], "query_toks_no_value": [ "select", "t1", ".", "attribute_name", ",", "t1", ".", "attribute_id", "from", "attribute_definitions", "as", "t1", "join", "catalog_contents_additional_attributes", "as", "t2", "on", "t1", ".", "attribute_id", "=", "t2", ".", "attribute_id", "where", "t2", ".", "attribute_value", "=", "value" ], "question": "Which attribute definitions have attribute value 0? Give me the attribute name and attribute ID.", "question_toks": [ "which", "attribute", "definition", "have", "attribute", "value", "0", "?", "give", "me", "attribute", "name", "and", "attribute", "id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], 0.0, null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Which", "attribute", "definitions", "have", "attribute", "value", "0", "?", "Give", "me", "the", "attribute", "name", "and", "attribute", "ID", "." ], "question_arg": [ [ "which" ], [ "attribute", "definition" ], [ "have" ], [ "attribute", "value" ], [ "0" ], [ "?" ], [ "give" ], [ "me" ], [ "attribute", "name" ], [ "and" ], [ "attribute", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "attribute", "VBP" ], [ "definition", "NN" ], [ "have", "VBP" ], [ "attribute", "VBN" ], [ "value", "NN" ], [ "0", "CD" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "attribute", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "attribute", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [ "0" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(2) A(0) C(24) T(4) V(0)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name , capacity FROM Catalog_Contents WHERE price_in_dollars > 700", "query_toks": [ "SELECT", "catalog_entry_name", ",", "capacity", "FROM", "Catalog_Contents", "WHERE", "price_in_dollars", ">", "700" ], "query_toks_no_value": [ "select", "catalog_entry_name", ",", "capacity", "from", "catalog_contents", "where", "price_in_dollars", ">", "value" ], "question": "Find the name and capacity of products with price greater than 700 (in USD).", "question_toks": [ "find", "name", "and", "capacity", "of", "product", "with", "price", "greater", "than", "700", "(", "in", "usd", ")", "." ], "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 ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 19, false ], null ], 700.0, null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "name", "and", "capacity", "of", "products", "with", "price", "greater", "than", "700", "(", "in", "USD", ")", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "capacity" ], [ "of" ], [ "product" ], [ "with" ], [ "price" ], [ "greater" ], [ "than" ], [ "700" ], [ "(" ], [ "in" ], [ "usd" ], [ ")" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "capacity", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "700", "CD" ], [ "(", "(" ], [ "in", "IN" ], [ "usd", "NN" ], [ ")", ")" ], [ ".", "." ] ], "values": [ "700", "Product" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(15) T(3) A(0) C(20) T(3) Filter(5) A(0) C(17) T(3) V(0)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name , capacity FROM Catalog_Contents WHERE price_in_dollars > 700", "query_toks": [ "SELECT", "catalog_entry_name", ",", "capacity", "FROM", "Catalog_Contents", "WHERE", "price_in_dollars", ">", "700" ], "query_toks_no_value": [ "select", "catalog_entry_name", ",", "capacity", "from", "catalog_contents", "where", "price_in_dollars", ">", "value" ], "question": "Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities.", "question_toks": [ "which", "catalog", "content", "ha", "price", "above", "700", "dollar", "?", "show", "their", "catalog", "entry", "name", "and", "capacity", "." ], "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 ] ], [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 19, false ], null ], 700.0, null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Which", "catalog", "contents", "has", "price", "above", "700", "dollars", "?", "Show", "their", "catalog", "entry", "names", "and", "capacities", "." ], "question_arg": [ [ "which" ], [ "catalog", "content" ], [ "ha" ], [ "price" ], [ "above" ], [ "700" ], [ "dollar" ], [ "?" ], [ "show" ], [ "their" ], [ "catalog", "entry", "name" ], [ "and" ], [ "capacity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "catalog", "NN" ], [ "content", "NN" ], [ "ha", "JJ" ], [ "price", "NN" ], [ "above", "IN" ], [ "700", "CD" ], [ "dollar", "NN" ], [ "?", "." ], [ "show", "VBP" ], [ "their", "PRP$" ], [ "catalog", "NN" ], [ "entry", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "capacity", "NN" ], [ ".", "." ] ], "values": [ "700.000000", "700" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(15) T(3) A(0) C(20) T(3) Filter(5) A(0) C(17) T(3) V(1)" }, { "db_id": "product_catalog", "query": "SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*) > 1", "query_toks": [ "SELECT", "date_of_latest_revision", "FROM", "Catalogs", "GROUP", "BY", "date_of_latest_revision", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "date_of_latest_revision", "from", "catalogs", "group", "by", "date_of_latest_revision", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the dates on which more than one revisions were made.", "question_toks": [ "find", "date", "on", "which", "more", "than", "one", "revision", "were", "made", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "dates", "on", "which", "more", "than", "one", "revisions", "were", "made", "." ], "question_arg": [ [ "find" ], [ "date" ], [ "on" ], [ "which" ], [ "more" ], [ "than" ], [ "one" ], [ "revision" ], [ "were" ], [ "made" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "date", "NN" ], [ "on", "IN" ], [ "which", "WDT" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "revision", "NN" ], [ "were", "VBD" ], [ "made", "VBN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "product_catalog", "query": "SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*) > 1", "query_toks": [ "SELECT", "date_of_latest_revision", "FROM", "Catalogs", "GROUP", "BY", "date_of_latest_revision", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "date_of_latest_revision", "from", "catalogs", "group", "by", "date_of_latest_revision", "having", "count", "(", "*", ")", ">", "value" ], "question": "On which days more than one revisions were made on catalogs.", "question_toks": [ "on", "which", "day", "more", "than", "one", "revision", "were", "made", "on", "catalog", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "On", "which", "days", "more", "than", "one", "revisions", "were", "made", "on", "catalogs", "." ], "question_arg": [ [ "on" ], [ "which" ], [ "day" ], [ "more" ], [ "than" ], [ "one" ], [ "revision" ], [ "were" ], [ "made" ], [ "on" ], [ "catalog" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "on", "IN" ], [ "which", "WDT" ], [ "day", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "revision", "NN" ], [ "were", "VBD" ], [ "made", "VBN" ], [ "on", "IN" ], [ "catalog", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "product_catalog", "query": "SELECT count(*) FROM catalog_contents", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "catalog_contents" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "catalog_contents" ], "question": "How many products are there in the records?", "question_toks": [ "how", "many", "product", "are", "there", "in", "record", "?" ], "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": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "How", "many", "products", "are", "there", "in", "the", "records", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "are" ], [ "there" ], [ "in" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "record", "NN" ], [ "?", "." ] ], "values": [ "Product" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "product_catalog", "query": "SELECT count(*) FROM catalog_contents", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "catalog_contents" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "catalog_contents" ], "question": "Find the total number of catalog contents.", "question_toks": [ "find", "total", "number", "of", "catalog", "content", "." ], "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": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "catalog", "contents", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "catalog", "content" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "catalog", "NN" ], [ "content", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8", "query_toks": [ "SELECT", "catalog_entry_name", "FROM", "catalog_contents", "WHERE", "next_entry_id", ">", "8" ], "query_toks_no_value": [ "select", "catalog_entry_name", "from", "catalog_contents", "where", "next_entry_id", ">", "value" ], "question": "Name all the products with next entry ID greater than 8.", "question_toks": [ "name", "all", "product", "with", "next", "entry", "id", "greater", "than", "8", "." ], "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, 3, [ 0, [ 0, 16, false ], null ], 8.0, null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "Name", "all", "the", "products", "with", "next", "entry", "ID", "greater", "than", "8", "." ], "question_arg": [ [ "name" ], [ "all" ], [ "product" ], [ "with" ], [ "next", "entry", "id" ], [ "greater" ], [ "than" ], [ "8" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "name", "NN" ], [ "all", "DT" ], [ "product", "NN" ], [ "with", "IN" ], [ "next", "JJ" ], [ "entry", "NN" ], [ "id", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "8", "CD" ], [ ".", "." ] ], "values": [ "Product", "8" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(3) Filter(5) A(0) C(14) T(3) V(1)" }, { "db_id": "product_catalog", "query": "SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id > 8", "query_toks": [ "SELECT", "catalog_entry_name", "FROM", "catalog_contents", "WHERE", "next_entry_id", ">", "8" ], "query_toks_no_value": [ "select", "catalog_entry_name", "from", "catalog_contents", "where", "next_entry_id", ">", "value" ], "question": "What are the catalog entry names of the products with next entry ID above 8?", "question_toks": [ "what", "are", "catalog", "entry", "name", "of", "product", "with", "next", "entry", "id", "above", "8", "?" ], "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, 3, [ 0, [ 0, 16, false ], null ], 8.0, null ] ] }, "names": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog id", "catalog level name", "catalog entry id", "catalog level number", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "catalog entry id", "catalog level number", "attribute id", "attribute value" ], "table_names": [ "attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes" ], "col_set": [ "*", "attribute id", "attribute name", "attribute data type", "catalog id", "catalog name", "catalog publisher", "date of publication", "date of latest revision", "catalog level number", "catalog level name", "catalog entry id", "parent entry id", "previous entry id", "next entry id", "catalog entry name", "product stock number", "price in dollars", "price in euros", "price in pounds", "capacity", "length", "height", "width", "attribute value" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4 ], "keys": { "10": 4, "4": 4, "13": 9, "9": 9, "27": 9, "26": 12, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "catalog", "entry", "names", "of", "the", "products", "with", "next", "entry", "ID", "above", "8", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "catalog", "entry", "name" ], [ "of" ], [ "product" ], [ "with" ], [ "next", "entry", "id" ], [ "above" ], [ "8" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "catalog", "JJ" ], [ "entry", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "with", "IN" ], [ "next", "JJ" ], [ "entry", "NN" ], [ "id", "NN" ], [ "above", "IN" ], [ "8", "CD" ], [ "?", "." ] ], "values": [ "Product", "8" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(3) Filter(5) A(0) C(14) T(3) V(1)" }, { "db_id": "flight_1", "query": "SELECT count(*) FROM Aircraft", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Aircraft" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "aircraft" ], "question": "How many aircrafts do we have?", "question_toks": [ "how", "many", "aircraft", "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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "How", "many", "aircrafts", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "aircraft" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "aircraft", "NNS" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "flight_1", "query": "SELECT count(*) FROM Aircraft", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Aircraft" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "aircraft" ], "question": "How many aircrafts exist in the database?", "question_toks": [ "how", "many", "aircraft", "exist", "in", "database", "?" ], "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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "How", "many", "aircrafts", "exist", "in", "the", "database", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "aircraft" ], [ "exist" ], [ "in" ], [ "database" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "aircraft", "NNS" ], [ "exist", "VBP" ], [ "in", "IN" ], [ "database", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "flight_1", "query": "SELECT name , distance FROM Aircraft", "query_toks": [ "SELECT", "name", ",", "distance", "FROM", "Aircraft" ], "query_toks_no_value": [ "select", "name", ",", "distance", "from", "aircraft" ], "question": "Show name and distance for all aircrafts.", "question_toks": [ "show", "name", "and", "distance", "for", "all", "aircraft", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "name", "and", "distance", "for", "all", "aircrafts", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "distance" ], [ "for" ], [ "all" ], [ "aircraft" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "distance", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(0) C(4) T(1)" }, { "db_id": "flight_1", "query": "SELECT name , distance FROM Aircraft", "query_toks": [ "SELECT", "name", ",", "distance", "FROM", "Aircraft" ], "query_toks_no_value": [ "select", "name", ",", "distance", "from", "aircraft" ], "question": "What are the names and distances for all airplanes?", "question_toks": [ "what", "are", "name", "and", "distance", "for", "all", "airplane", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "distances", "for", "all", "airplanes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "distance" ], [ "for" ], [ "all" ], [ "airplane" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "distance", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "airplane", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(0) C(4) T(1)" }, { "db_id": "flight_1", "query": "SELECT aid FROM Aircraft WHERE distance > 1000", "query_toks": [ "SELECT", "aid", "FROM", "Aircraft", "WHERE", "distance", ">", "1000" ], "query_toks_no_value": [ "select", "aid", "from", "aircraft", "where", "distance", ">", "value" ], "question": "Show ids for all aircrafts with more than 1000 distance.", "question_toks": [ "show", "id", "for", "all", "aircraft", "with", "more", "than", "1000", "distance", "." ], "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, 3, [ 0, [ 0, 11, false ], null ], 1000.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "ids", "for", "all", "aircrafts", "with", "more", "than", "1000", "distance", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "aircraft" ], [ "with" ], [ "more" ], [ "than" ], [ "1000" ], [ "distance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "distance", "NN" ], [ ".", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(0) C(4) T(1) V(0)" }, { "db_id": "flight_1", "query": "SELECT aid FROM Aircraft WHERE distance > 1000", "query_toks": [ "SELECT", "aid", "FROM", "Aircraft", "WHERE", "distance", ">", "1000" ], "query_toks_no_value": [ "select", "aid", "from", "aircraft", "where", "distance", ">", "value" ], "question": "What are the ids of all aircrafts that can cover a distance of more than 1000?", "question_toks": [ "what", "are", "id", "of", "all", "aircraft", "that", "can", "cover", "a", "distance", "of", "more", "than", "1000", "?" ], "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, 3, [ 0, [ 0, 11, false ], null ], 1000.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "aircrafts", "that", "can", "cover", "a", "distance", "of", "more", "than", "1000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "aircraft" ], [ "that" ], [ "can" ], [ "cover" ], [ "a" ], [ "distance" ], [ "of" ], [ "more" ], [ "than" ], [ "1000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "cover", "VB" ], [ "a", "DT" ], [ "distance", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ "?", "." ] ], "values": [ "1000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(0) C(4) T(1) V(0)" }, { "db_id": "flight_1", "query": "SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Aircraft", "WHERE", "distance", "BETWEEN", "1000", "AND", "5000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "aircraft", "where", "distance", "between", "value", "and", "value" ], "question": "How many aircrafts have distance between 1000 and 5000?", "question_toks": [ "how", "many", "aircraft", "have", "distance", "between", "1000", "and", "5000", "?" ], "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, 1, [ 0, [ 0, 11, false ], null ], 1000.0, 5000.0 ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "How", "many", "aircrafts", "have", "distance", "between", "1000", "and", "5000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "aircraft" ], [ "have" ], [ "distance" ], [ "between" ], [ "1000" ], [ "and" ], [ "5000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "aircraft", "NNS" ], [ "have", "VBP" ], [ "distance", "NN" ], [ "between", "IN" ], [ "1000", "CD" ], [ "and", "CC" ], [ "5000", "CD" ], [ "?", "." ] ], "values": [ "1000", "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(8) A(0) C(4) T(1) V(0) V(1)" }, { "db_id": "flight_1", "query": "SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Aircraft", "WHERE", "distance", "BETWEEN", "1000", "AND", "5000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "aircraft", "where", "distance", "between", "value", "and", "value" ], "question": "What is the count of aircrafts that have a distance between 1000 and 5000?", "question_toks": [ "what", "is", "count", "of", "aircraft", "that", "have", "a", "distance", "between", "1000", "and", "5000", "?" ], "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, 1, [ 0, [ 0, 11, false ], null ], 1000.0, 5000.0 ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "count", "of", "aircrafts", "that", "have", "a", "distance", "between", "1000", "and", "5000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "count" ], [ "of" ], [ "aircraft" ], [ "that" ], [ "have" ], [ "a" ], [ "distance" ], [ "between" ], [ "1000" ], [ "and" ], [ "5000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "count", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "distance", "NN" ], [ "between", "IN" ], [ "1000", "CD" ], [ "and", "CC" ], [ "5000", "CD" ], [ "?", "." ] ], "values": [ "1000", "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(8) A(0) C(4) T(1) V(0) V(1)" }, { "db_id": "flight_1", "query": "SELECT name , distance FROM Aircraft WHERE aid = 12", "query_toks": [ "SELECT", "name", ",", "distance", "FROM", "Aircraft", "WHERE", "aid", "=", "12" ], "query_toks_no_value": [ "select", "name", ",", "distance", "from", "aircraft", "where", "aid", "=", "value" ], "question": "What is the name and distance for aircraft with id 12?", "question_toks": [ "what", "is", "name", "and", "distance", "for", "aircraft", "with", "id", "12", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], 12.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "distance", "for", "aircraft", "with", "id", "12", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "distance" ], [ "for" ], [ "aircraft" ], [ "with" ], [ "id" ], [ "12" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "distance", "NN" ], [ "for", "IN" ], [ "aircraft", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "12", "CD" ], [ "?", "." ] ], "values": [ "12" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(4) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "flight_1", "query": "SELECT name , distance FROM Aircraft WHERE aid = 12", "query_toks": [ "SELECT", "name", ",", "distance", "FROM", "Aircraft", "WHERE", "aid", "=", "12" ], "query_toks_no_value": [ "select", "name", ",", "distance", "from", "aircraft", "where", "aid", "=", "value" ], "question": "What is the name and distance for the aircraft that has an id of 12?", "question_toks": [ "what", "is", "name", "and", "distance", "for", "aircraft", "that", "ha", "an", "id", "of", "12", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], 12.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "distance", "for", "the", "aircraft", "that", "has", "an", "id", "of", "12", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "distance" ], [ "for" ], [ "aircraft" ], [ "that" ], [ "ha" ], [ "an" ], [ "id" ], [ "of" ], [ "12" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "distance", "NN" ], [ "for", "IN" ], [ "aircraft", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "an", "DT" ], [ "id", "NN" ], [ "of", "IN" ], [ "12", "CD" ], [ "?", "." ] ], "values": [ "12" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(4) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "flight_1", "query": "SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft", "query_toks": [ "SELECT", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "FROM", "Aircraft" ], "query_toks_no_value": [ "select", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "from", "aircraft" ], "question": "What is the minimum, average, and maximum distance of all aircrafts.", "question_toks": [ "what", "is", "minimum", ",", "average", ",", "and", "maximum", "distance", "of", "all", "aircraft", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 11, false ], null ] ], [ 5, [ 0, [ 0, 11, false ], null ] ], [ 1, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "minimum", ",", "average", ",", "and", "maximum", "distance", "of", "all", "aircrafts", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "minimum" ], [ "," ], [ "average" ], [ "," ], [ "and" ], [ "maximum" ], [ "distance" ], [ "of" ], [ "all" ], [ "aircraft" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "minimum", "JJ" ], [ ",", "," ], [ "average", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "distance", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(2) C(4) T(1) A(5) C(4) T(1) A(1) C(4) T(1)" }, { "db_id": "flight_1", "query": "SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft", "query_toks": [ "SELECT", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "FROM", "Aircraft" ], "query_toks_no_value": [ "select", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "from", "aircraft" ], "question": "Return the minimum, average and maximum distances traveled across all aircrafts.", "question_toks": [ "return", "minimum", ",", "average", "and", "maximum", "distance", "traveled", "across", "all", "aircraft", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 11, false ], null ] ], [ 5, [ 0, [ 0, 11, false ], null ] ], [ 1, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Return", "the", "minimum", ",", "average", "and", "maximum", "distances", "traveled", "across", "all", "aircrafts", "." ], "question_arg": [ [ "return" ], [ "minimum" ], [ "," ], [ "average" ], [ "and" ], [ "maximum" ], [ "distance" ], [ "traveled" ], [ "across" ], [ "all" ], [ "aircraft" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "minimum", "NN" ], [ ",", "," ], [ "average", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "distance", "NN" ], [ "traveled", "VBN" ], [ "across", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(2) C(4) T(1) A(5) C(4) T(1) A(1) C(4) T(1)" }, { "db_id": "flight_1", "query": "SELECT aid , name FROM Aircraft ORDER BY distance DESC LIMIT 1", "query_toks": [ "SELECT", "aid", ",", "name", "FROM", "Aircraft", "ORDER", "BY", "distance", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "aid", ",", "name", "from", "aircraft", "order", "by", "distance", "desc", "limit", "value" ], "question": "Show the id and name of the aircraft with the maximum distance.", "question_toks": [ "show", "id", "and", "name", "of", "aircraft", "with", "maximum", "distance", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "the", "id", "and", "name", "of", "the", "aircraft", "with", "the", "maximum", "distance", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "with" ], [ "maximum" ], [ "distance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "distance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(8) T(1) A(0) C(9) T(1) Sup(0) A(0) C(4) T(1)" }, { "db_id": "flight_1", "query": "SELECT aid , name FROM Aircraft ORDER BY distance DESC LIMIT 1", "query_toks": [ "SELECT", "aid", ",", "name", "FROM", "Aircraft", "ORDER", "BY", "distance", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "aid", ",", "name", "from", "aircraft", "order", "by", "distance", "desc", "limit", "value" ], "question": "What is the id and name of the aircraft that can cover the maximum distance?", "question_toks": [ "what", "is", "id", "and", "name", "of", "aircraft", "that", "can", "cover", "maximum", "distance", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "name", "of", "the", "aircraft", "that", "can", "cover", "the", "maximum", "distance", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "that" ], [ "can" ], [ "cover" ], [ "maximum" ], [ "distance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "cover", "VB" ], [ "maximum", "JJ" ], [ "distance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(8) T(1) A(0) C(9) T(1) Sup(0) A(0) C(4) T(1)" }, { "db_id": "flight_1", "query": "SELECT name FROM Aircraft ORDER BY distance LIMIT 3", "query_toks": [ "SELECT", "name", "FROM", "Aircraft", "ORDER", "BY", "distance", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "aircraft", "order", "by", "distance", "limit", "value" ], "question": "Show the name of aircrafts with top three lowest distances.", "question_toks": [ "show", "name", "of", "aircraft", "with", "top", "three", "lowest", "distance", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "of", "aircrafts", "with", "top", "three", "lowest", "distances", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "with" ], [ "top" ], [ "three" ], [ "lowest" ], [ "distance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "three", "CD" ], [ "lowest", "JJS" ], [ "distance", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(1) Sup(1) A(0) C(4) T(1)" }, { "db_id": "flight_1", "query": "SELECT name FROM Aircraft ORDER BY distance LIMIT 3", "query_toks": [ "SELECT", "name", "FROM", "Aircraft", "ORDER", "BY", "distance", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "aircraft", "order", "by", "distance", "limit", "value" ], "question": "What are the aircrafts with top 3 shortest lengthes? List their names.", "question_toks": [ "what", "are", "aircraft", "with", "top", "3", "shortest", "lengthes", "?", "list", "their", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "aircrafts", "with", "top", "3", "shortest", "lengthes", "?", "List", "their", "names", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "aircraft" ], [ "with" ], [ "top" ], [ "3" ], [ "shortest" ], [ "lengthes" ], [ "?" ], [ "list" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "aircraft", "JJ" ], [ "with", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "shortest", "JJS" ], [ "lengthes", "NNS" ], [ "?", "." ], [ "list", "VBP" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(1) Sup(1) A(0) C(4) T(1)" }, { "db_id": "flight_1", "query": "SELECT name FROM Aircraft WHERE distance > (SELECT avg(distance) FROM Aircraft)", "query_toks": [ "SELECT", "name", "FROM", "Aircraft", "WHERE", "distance", ">", "(", "SELECT", "avg", "(", "distance", ")", "FROM", "Aircraft", ")" ], "query_toks_no_value": [ "select", "name", "from", "aircraft", "where", "distance", ">", "(", "select", "avg", "(", "distance", ")", "from", "aircraft", ")" ], "question": "Show names for all aircrafts with distances more than the average.", "question_toks": [ "show", "name", "for", "all", "aircraft", "with", "distance", "more", "than", "average", "." ], "sql": { "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, 3, [ 0, [ 0, 11, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "names", "for", "all", "aircrafts", "with", "distances", "more", "than", "the", "average", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "all" ], [ "aircraft" ], [ "with" ], [ "distance" ], [ "more" ], [ "than" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ "with", "IN" ], [ "distance", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(13) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(5) C(4) T(1)" }, { "db_id": "flight_1", "query": "SELECT name FROM Aircraft WHERE distance > (SELECT avg(distance) FROM Aircraft)", "query_toks": [ "SELECT", "name", "FROM", "Aircraft", "WHERE", "distance", ">", "(", "SELECT", "avg", "(", "distance", ")", "FROM", "Aircraft", ")" ], "query_toks_no_value": [ "select", "name", "from", "aircraft", "where", "distance", ">", "(", "select", "avg", "(", "distance", ")", "from", "aircraft", ")" ], "question": "What are the names of all aircrafts that can cover more distances than average?", "question_toks": [ "what", "are", "name", "of", "all", "aircraft", "that", "can", "cover", "more", "distance", "than", "average", "?" ], "sql": { "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, 3, [ 0, [ 0, 11, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "aircrafts", "that", "can", "cover", "more", "distances", "than", "average", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "aircraft" ], [ "that" ], [ "can" ], [ "cover" ], [ "more" ], [ "distance" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "cover", "VB" ], [ "more", "JJR" ], [ "distance", "NN" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(13) A(0) C(4) T(1) Root(5) Sel(0) N(0) A(5) C(4) T(1)" }, { "db_id": "flight_1", "query": "SELECT count(*) FROM Employee", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Employee" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employee" ], "question": "How many employees do we have?", "question_toks": [ "how", "many", "employee", "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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "How", "many", "employees", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "employee" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "employee", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "flight_1", "query": "SELECT count(*) FROM Employee", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Employee" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employee" ], "question": "What is the number of employees?", "question_toks": [ "what", "is", "number", "of", "employee", "?" ], "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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "employees", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "flight_1", "query": "SELECT name , salary FROM Employee ORDER BY salary", "query_toks": [ "SELECT", "name", ",", "salary", "FROM", "Employee", "ORDER", "BY", "salary" ], "query_toks_no_value": [ "select", "name", ",", "salary", "from", "employee", "order", "by", "salary" ], "question": "Show name and salary for all employees sorted by salary.", "question_toks": [ "show", "name", "and", "salary", "for", "all", "employee", "sorted", "by", "salary", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "name", "and", "salary", "for", "all", "employees", "sorted", "by", "salary", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "salary" ], [ "for" ], [ "all" ], [ "employee" ], [ "sorted" ], [ "by" ], [ "salary" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "salary", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(9) T(2) A(0) C(11) T(2) Order(1) A(0) C(11) T(2)" }, { "db_id": "flight_1", "query": "SELECT name , salary FROM Employee ORDER BY salary", "query_toks": [ "SELECT", "name", ",", "salary", "FROM", "Employee", "ORDER", "BY", "salary" ], "query_toks_no_value": [ "select", "name", ",", "salary", "from", "employee", "order", "by", "salary" ], "question": "What is the name and salary of all employees in order of salary?", "question_toks": [ "what", "is", "name", "and", "salary", "of", "all", "employee", "in", "order", "of", "salary", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "salary", "of", "all", "employees", "in", "order", "of", "salary", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "salary" ], [ "of" ], [ "all" ], [ "employee" ], [ "in" ], [ "order" ], [ "of" ], [ "salary" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "salary", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(9) T(2) A(0) C(11) T(2) Order(1) A(0) C(11) T(2)" }, { "db_id": "flight_1", "query": "SELECT eid FROM Employee WHERE salary > 100000", "query_toks": [ "SELECT", "eid", "FROM", "Employee", "WHERE", "salary", ">", "100000" ], "query_toks_no_value": [ "select", "eid", "from", "employee", "where", "salary", ">", "value" ], "question": "Show ids for all employees with at least 100000 salary.", "question_toks": [ "show", "id", "for", "all", "employee", "with", "at", "least", "100000", "salary", "." ], "sql": { "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": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 100000.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "ids", "for", "all", "employees", "with", "at", "least", "100000", "salary", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "employee" ], [ "with" ], [ "at" ], [ "least" ], [ "100000" ], [ "salary" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "100000", "CD" ], [ "salary", "JJ" ], [ ".", "." ] ], "values": [ "100000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(5) A(0) C(11) T(2) V(0)" }, { "db_id": "flight_1", "query": "SELECT eid FROM Employee WHERE salary > 100000", "query_toks": [ "SELECT", "eid", "FROM", "Employee", "WHERE", "salary", ">", "100000" ], "query_toks_no_value": [ "select", "eid", "from", "employee", "where", "salary", ">", "value" ], "question": "What is the id of every employee who has at least a salary of 100000?", "question_toks": [ "what", "is", "id", "of", "every", "employee", "who", "ha", "at", "least", "a", "salary", "of", "100000", "?" ], "sql": { "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": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 100000.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "every", "employee", "who", "has", "at", "least", "a", "salary", "of", "100000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "every" ], [ "employee" ], [ "who" ], [ "ha" ], [ "at" ], [ "least" ], [ "a" ], [ "salary" ], [ "of" ], [ "100000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "at", "IN" ], [ "least", "JJS" ], [ "a", "DT" ], [ "salary", "NN" ], [ "of", "IN" ], [ "100000", "CD" ], [ "?", "." ] ], "values": [ "100000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(5) A(0) C(11) T(2) V(0)" }, { "db_id": "flight_1", "query": "SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Employee", "WHERE", "salary", "BETWEEN", "100000", "AND", "200000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employee", "where", "salary", "between", "value", "and", "value" ], "question": "How many employees have salary between 100000 and 200000?", "question_toks": [ "how", "many", "employee", "have", "salary", "between", "100000", "and", "200000", "?" ], "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, 1, [ 0, [ 0, 14, false ], null ], 100000.0, 200000.0 ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "How", "many", "employees", "have", "salary", "between", "100000", "and", "200000", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "employee" ], [ "have" ], [ "salary" ], [ "between" ], [ "100000" ], [ "and" ], [ "200000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "employee", "NN" ], [ "have", "VBP" ], [ "salary", "VBN" ], [ "between", "IN" ], [ "100000", "CD" ], [ "and", "CC" ], [ "200000", "CD" ], [ "?", "." ] ], "values": [ "100000", "200000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(8) A(0) C(11) T(2) V(0) V(1)" }, { "db_id": "flight_1", "query": "SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Employee", "WHERE", "salary", "BETWEEN", "100000", "AND", "200000" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employee", "where", "salary", "between", "value", "and", "value" ], "question": "What is the number of employees that have a salary between 100000 and 200000?", "question_toks": [ "what", "is", "number", "of", "employee", "that", "have", "a", "salary", "between", "100000", "and", "200000", "?" ], "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, 1, [ 0, [ 0, 14, false ], null ], 100000.0, 200000.0 ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "employees", "that", "have", "a", "salary", "between", "100000", "and", "200000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "employee" ], [ "that" ], [ "have" ], [ "a" ], [ "salary" ], [ "between" ], [ "100000" ], [ "and" ], [ "200000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "salary", "NN" ], [ "between", "IN" ], [ "100000", "CD" ], [ "and", "CC" ], [ "200000", "CD" ], [ "?", "." ] ], "values": [ "100000", "200000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(8) A(0) C(11) T(2) V(0) V(1)" }, { "db_id": "flight_1", "query": "SELECT name , salary FROM Employee WHERE eid = 242518965", "query_toks": [ "SELECT", "name", ",", "salary", "FROM", "Employee", "WHERE", "eid", "=", "242518965" ], "query_toks_no_value": [ "select", "name", ",", "salary", "from", "employee", "where", "eid", "=", "value" ], "question": "What is the name and salary for employee with id 242518965?", "question_toks": [ "what", "is", "name", "and", "salary", "for", "employee", "with", "id", "242518965", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], 242518965.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "salary", "for", "employee", "with", "id", "242518965", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "salary" ], [ "for" ], [ "employee" ], [ "with" ], [ "id" ], [ "242518965" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "242518965", "CD" ], [ "?", "." ] ], "values": [ "242518965" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(2) A(0) C(11) T(2) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "flight_1", "query": "SELECT name , salary FROM Employee WHERE eid = 242518965", "query_toks": [ "SELECT", "name", ",", "salary", "FROM", "Employee", "WHERE", "eid", "=", "242518965" ], "query_toks_no_value": [ "select", "name", ",", "salary", "from", "employee", "where", "eid", "=", "value" ], "question": "What is the name and salary of the employee with the id 242518965?", "question_toks": [ "what", "is", "name", "and", "salary", "of", "employee", "with", "id", "242518965", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], 242518965.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "salary", "of", "the", "employee", "with", "the", "id", "242518965", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "salary" ], [ "of" ], [ "employee" ], [ "with" ], [ "id" ], [ "242518965" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "242518965", "CD" ], [ "?", "." ] ], "values": [ "242518965" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(2) A(0) C(11) T(2) Filter(2) A(0) C(10) T(2) V(0)" }, { "db_id": "flight_1", "query": "SELECT avg(salary) , max(salary) FROM Employee", "query_toks": [ "SELECT", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "FROM", "Employee" ], "query_toks_no_value": [ "select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee" ], "question": "What is average and maximum salary of all employees.", "question_toks": [ "what", "is", "average", "and", "maximum", "salary", "of", "all", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "average", "and", "maximum", "salary", "of", "all", "employees", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "and" ], [ "maximum" ], [ "salary" ], [ "of" ], [ "all" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "salary", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(11) T(2) A(1) C(11) T(2)" }, { "db_id": "flight_1", "query": "SELECT avg(salary) , max(salary) FROM Employee", "query_toks": [ "SELECT", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "FROM", "Employee" ], "query_toks_no_value": [ "select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee" ], "question": "What is the average and largest salary of all employees?", "question_toks": [ "what", "is", "average", "and", "largest", "salary", "of", "all", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "and", "largest", "salary", "of", "all", "employees", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "and" ], [ "largest" ], [ "salary" ], [ "of" ], [ "all" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "largest", "JJS" ], [ "salary", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(11) T(2) A(1) C(11) T(2)" }, { "db_id": "flight_1", "query": "SELECT eid , name FROM Employee ORDER BY salary DESC LIMIT 1", "query_toks": [ "SELECT", "eid", ",", "name", "FROM", "Employee", "ORDER", "BY", "salary", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "eid", ",", "name", "from", "employee", "order", "by", "salary", "desc", "limit", "value" ], "question": "Show the id and name of the employee with maximum salary.", "question_toks": [ "show", "id", "and", "name", "of", "employee", "with", "maximum", "salary", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "the", "id", "and", "name", "of", "the", "employee", "with", "maximum", "salary", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "employee" ], [ "with" ], [ "maximum" ], [ "salary" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "salary", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(2) A(0) C(9) T(2) Sup(0) A(0) C(11) T(2)" }, { "db_id": "flight_1", "query": "SELECT eid , name FROM Employee ORDER BY salary DESC LIMIT 1", "query_toks": [ "SELECT", "eid", ",", "name", "FROM", "Employee", "ORDER", "BY", "salary", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "eid", ",", "name", "from", "employee", "order", "by", "salary", "desc", "limit", "value" ], "question": "What is the id and name of the employee with the highest salary?", "question_toks": [ "what", "is", "id", "and", "name", "of", "employee", "with", "highest", "salary", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "name", "of", "the", "employee", "with", "the", "highest", "salary", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "employee" ], [ "with" ], [ "highest" ], [ "salary" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "salary", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(2) A(0) C(9) T(2) Sup(0) A(0) C(11) T(2)" }, { "db_id": "flight_1", "query": "SELECT name FROM Employee ORDER BY salary ASC LIMIT 3", "query_toks": [ "SELECT", "name", "FROM", "Employee", "ORDER", "BY", "salary", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "employee", "order", "by", "salary", "asc", "limit", "value" ], "question": "Show the name of employees with three lowest salaries.", "question_toks": [ "show", "name", "of", "employee", "with", "three", "lowest", "salary", "." ], "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, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "of", "employees", "with", "three", "lowest", "salaries", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "employee" ], [ "with" ], [ "three" ], [ "lowest" ], [ "salary" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "three", "CD" ], [ "lowest", "JJS" ], [ "salary", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(2) Sup(1) A(0) C(11) T(2)" }, { "db_id": "flight_1", "query": "SELECT name FROM Employee ORDER BY salary ASC LIMIT 3", "query_toks": [ "SELECT", "name", "FROM", "Employee", "ORDER", "BY", "salary", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", "from", "employee", "order", "by", "salary", "asc", "limit", "value" ], "question": "What is the name of the 3 employees who get paid the least?", "question_toks": [ "what", "is", "name", "of", "3", "employee", "who", "get", "paid", "least", "?" ], "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, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "3", "employees", "who", "get", "paid", "the", "least", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "3" ], [ "employee" ], [ "who" ], [ "get" ], [ "paid" ], [ "least" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "3", "CD" ], [ "employee", "NN" ], [ "who", "WP" ], [ "get", "VBP" ], [ "paid", "VBN" ], [ "least", "JJS" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(2) Sup(1) A(0) C(11) T(2)" }, { "db_id": "flight_1", "query": "SELECT name FROM Employee WHERE salary > (SELECT avg(salary) FROM Employee)", "query_toks": [ "SELECT", "name", "FROM", "Employee", "WHERE", "salary", ">", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "Employee", ")" ], "query_toks_no_value": [ "select", "name", "from", "employee", "where", "salary", ">", "(", "select", "avg", "(", "salary", ")", "from", "employee", ")" ], "question": "Show names for all employees with salary more than the average.", "question_toks": [ "show", "name", "for", "all", "employee", "with", "salary", "more", "than", "average", "." ], "sql": { "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": [ [ 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, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "names", "for", "all", "employees", "with", "salary", "more", "than", "the", "average", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "all" ], [ "employee" ], [ "with" ], [ "salary" ], [ "more" ], [ "than" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "with", "IN" ], [ "salary", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(13) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(5) C(11) T(2)" }, { "db_id": "flight_1", "query": "SELECT name FROM Employee WHERE salary > (SELECT avg(salary) FROM Employee)", "query_toks": [ "SELECT", "name", "FROM", "Employee", "WHERE", "salary", ">", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "Employee", ")" ], "query_toks_no_value": [ "select", "name", "from", "employee", "where", "salary", ">", "(", "select", "avg", "(", "salary", ")", "from", "employee", ")" ], "question": "What are the names of all employees who have a salary higher than average?", "question_toks": [ "what", "are", "name", "of", "all", "employee", "who", "have", "a", "salary", "higher", "than", "average", "?" ], "sql": { "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": [ [ 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, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "employees", "who", "have", "a", "salary", "higher", "than", "average", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "have" ], [ "a" ], [ "salary" ], [ "higher" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "salary", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(13) A(0) C(11) T(2) Root(5) Sel(0) N(0) A(5) C(11) T(2)" }, { "db_id": "flight_1", "query": "SELECT eid , salary FROM Employee WHERE name = 'Mark Young'", "query_toks": [ "SELECT", "eid", ",", "salary", "FROM", "Employee", "WHERE", "name", "=", "'Mark", "Young", "'" ], "query_toks_no_value": [ "select", "eid", ",", "salary", "from", "employee", "where", "name", "=", "value" ], "question": "Show the id and salary of Mark Young.", "question_toks": [ "show", "id", "and", "salary", "of", "mark", "young", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Mark Young\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "the", "id", "and", "salary", "of", "Mark", "Young", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "and" ], [ "salary" ], [ "of" ], [ "mark" ], [ "young" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "of", "IN" ], [ "mark", "NN" ], [ "young", "JJ" ], [ ".", "." ] ], "values": [ "Mark Young" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(2) A(0) C(11) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "flight_1", "query": "SELECT eid , salary FROM Employee WHERE name = 'Mark Young'", "query_toks": [ "SELECT", "eid", ",", "salary", "FROM", "Employee", "WHERE", "name", "=", "'Mark", "Young", "'" ], "query_toks_no_value": [ "select", "eid", ",", "salary", "from", "employee", "where", "name", "=", "value" ], "question": "What is the id and salary of the employee named Mark Young?", "question_toks": [ "what", "is", "id", "and", "salary", "of", "employee", "named", "mark", "young", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Mark Young\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "salary", "of", "the", "employee", "named", "Mark", "Young", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "salary" ], [ "of" ], [ "employee" ], [ "named" ], [ "mark" ], [ "young" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "salary", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "named", "VBN" ], [ "mark", "NN" ], [ "young", "JJ" ], [ "?", "." ] ], "values": [ "Mark Young" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(2) A(0) C(11) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "flight_1", "query": "SELECT count(*) FROM Flight", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Flight" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flight" ], "question": "How many flights do we have?", "question_toks": [ "how", "many", "flight", "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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "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": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "flight_1", "query": "SELECT count(*) FROM Flight", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Flight" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "flight" ], "question": "What is the number of flights?", "question_toks": [ "what", "is", "number", "of", "flight", "?" ], "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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "flights", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "flight_1", "query": "SELECT flno , origin , destination FROM Flight ORDER BY origin", "query_toks": [ "SELECT", "flno", ",", "origin", ",", "destination", "FROM", "Flight", "ORDER", "BY", "origin" ], "query_toks_no_value": [ "select", "flno", ",", "origin", ",", "destination", "from", "flight", "order", "by", "origin" ], "question": "Show flight number, origin, destination of all flights in the alphabetical order of the departure cities.", "question_toks": [ "show", "flight", "number", ",", "origin", ",", "destination", "of", "all", "flight", "in", "alphabetical", "order", "of", "departure", "city", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, 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": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "flight", "number", ",", "origin", ",", "destination", "of", "all", "flights", "in", "the", "alphabetical", "order", "of", "the", "departure", "cities", "." ], "question_arg": [ [ "show" ], [ "flight", "number" ], [ "," ], [ "origin" ], [ "," ], [ "destination" ], [ "of" ], [ "all" ], [ "flight" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "departure" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "flight", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "origin", "NN" ], [ ",", "," ], [ "destination", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "flight", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "departure", "NN" ], [ "city", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) T(0) A(0) C(3) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "flight_1", "query": "SELECT flno , origin , destination FROM Flight ORDER BY origin", "query_toks": [ "SELECT", "flno", ",", "origin", ",", "destination", "FROM", "Flight", "ORDER", "BY", "origin" ], "query_toks_no_value": [ "select", "flno", ",", "origin", ",", "destination", "from", "flight", "order", "by", "origin" ], "question": "What is the flight number, origin, and destination for all flights in alphabetical order by departure cities?", "question_toks": [ "what", "is", "flight", "number", ",", "origin", ",", "and", "destination", "for", "all", "flight", "in", "alphabetical", "order", "by", "departure", "city", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, 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": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "flight", "number", ",", "origin", ",", "and", "destination", "for", "all", "flights", "in", "alphabetical", "order", "by", "departure", "cities", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "flight", "number" ], [ "," ], [ "origin" ], [ "," ], [ "and" ], [ "destination" ], [ "for" ], [ "all" ], [ "flight" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "by" ], [ "departure" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "flight", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "origin", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "destination", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "flight", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "by", "IN" ], [ "departure", "NN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) T(0) A(0) C(3) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "flight_1", "query": "SELECT flno FROM Flight WHERE origin = \"Los Angeles\"", "query_toks": [ "SELECT", "flno", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''" ], "query_toks_no_value": [ "select", "flno", "from", "flight", "where", "origin", "=", "value" ], "question": "Show all flight number from Los Angeles.", "question_toks": [ "show", "all", "flight", "number", "from", "los", "angeles", "." ], "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 ], "\"Los Angeles\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "all", "flight", "number", "from", "Los", "Angeles", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "flight", "number" ], [ "from" ], [ "los" ], [ "angeles" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "flight", "NN" ], [ "number", "NN" ], [ "from", "IN" ], [ "los", "JJ" ], [ "angeles", "NNS" ], [ ".", "." ] ], "values": [ "Los Angeles" ], "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": "flight_1", "query": "SELECT flno FROM Flight WHERE origin = \"Los Angeles\"", "query_toks": [ "SELECT", "flno", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''" ], "query_toks_no_value": [ "select", "flno", "from", "flight", "where", "origin", "=", "value" ], "question": "What are the numbers of all flights coming from Los Angeles?", "question_toks": [ "what", "are", "number", "of", "all", "flight", "coming", "from", "los", "angeles", "?" ], "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 ], "\"Los Angeles\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "numbers", "of", "all", "flights", "coming", "from", "Los", "Angeles", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "number" ], [ "of" ], [ "all" ], [ "flight" ], [ "coming" ], [ "from" ], [ "los" ], [ "angeles" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "flight", "NN" ], [ "coming", "VBG" ], [ "from", "IN" ], [ "los", "NN" ], [ "angeles", "NNS" ], [ "?", "." ] ], "values": [ "Los Angeles" ], "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": "flight_1", "query": "SELECT origin FROM Flight WHERE destination = \"Honolulu\"", "query_toks": [ "SELECT", "origin", "FROM", "Flight", "WHERE", "destination", "=", "``", "Honolulu", "''" ], "query_toks_no_value": [ "select", "origin", "from", "flight", "where", "destination", "=", "value" ], "question": "Show origins of all flights with destination Honolulu.", "question_toks": [ "show", "origin", "of", "all", "flight", "with", "destination", "honolulu", "." ], "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 ], "\"Honolulu\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "origins", "of", "all", "flights", "with", "destination", "Honolulu", "." ], "question_arg": [ [ "show" ], [ "origin" ], [ "of" ], [ "all" ], [ "flight" ], [ "with" ], [ "destination" ], [ "honolulu" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "origin", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "flight", "NN" ], [ "with", "IN" ], [ "destination", "NN" ], [ "honolulu", "NN" ], [ ".", "." ] ], "values": [ "Honolulu" ], "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_1", "query": "SELECT origin FROM Flight WHERE destination = \"Honolulu\"", "query_toks": [ "SELECT", "origin", "FROM", "Flight", "WHERE", "destination", "=", "``", "Honolulu", "''" ], "query_toks_no_value": [ "select", "origin", "from", "flight", "where", "destination", "=", "value" ], "question": "What are the origins of all flights that are headed to Honolulu?", "question_toks": [ "what", "are", "origin", "of", "all", "flight", "that", "are", "headed", "to", "honolulu", "?" ], "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 ], "\"Honolulu\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "origins", "of", "all", "flights", "that", "are", "headed", "to", "Honolulu", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "origin" ], [ "of" ], [ "all" ], [ "flight" ], [ "that" ], [ "are" ], [ "headed" ], [ "to" ], [ "honolulu" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "origin", "VBN" ], [ "of", "IN" ], [ "all", "DT" ], [ "flight", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "headed", "VBN" ], [ "to", "TO" ], [ "honolulu", "VB" ], [ "?", "." ] ], "values": [ "Honolulu" ], "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_1", "query": "SELECT departure_date , arrival_date FROM Flight WHERE origin = \"Los Angeles\" AND destination = \"Honolulu\"", "query_toks": [ "SELECT", "departure_date", ",", "arrival_date", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''", "AND", "destination", "=", "``", "Honolulu", "''" ], "query_toks_no_value": [ "select", "departure_date", ",", "arrival_date", "from", "flight", "where", "origin", "=", "value", "and", "destination", "=", "value" ], "question": "Show me the departure date and arrival date for all flights from Los Angeles to Honolulu.", "question_toks": [ "show", "me", "departure", "date", "and", "arrival", "date", "for", "all", "flight", "from", "los", "angeles", "to", "honolulu", "." ], "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 ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Los Angeles\"", null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Honolulu\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "me", "the", "departure", "date", "and", "arrival", "date", "for", "all", "flights", "from", "Los", "Angeles", "to", "Honolulu", "." ], "question_arg": [ [ "show" ], [ "me" ], [ "departure", "date" ], [ "and" ], [ "arrival", "date" ], [ "for" ], [ "all" ], [ "flight" ], [ "from" ], [ "los" ], [ "angeles" ], [ "to" ], [ "honolulu" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "me", "PRP" ], [ "departure", "JJ" ], [ "date", "NN" ], [ "and", "CC" ], [ "arrival", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "flight", "NN" ], [ "from", "IN" ], [ "los", "NN" ], [ "angeles", "NNS" ], [ "to", "TO" ], [ "honolulu", "VB" ], [ ".", "." ] ], "values": [ "Los Angeles", "Honolulu" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(0) A(0) C(6) T(0) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "flight_1", "query": "SELECT departure_date , arrival_date FROM Flight WHERE origin = \"Los Angeles\" AND destination = \"Honolulu\"", "query_toks": [ "SELECT", "departure_date", ",", "arrival_date", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''", "AND", "destination", "=", "``", "Honolulu", "''" ], "query_toks_no_value": [ "select", "departure_date", ",", "arrival_date", "from", "flight", "where", "origin", "=", "value", "and", "destination", "=", "value" ], "question": "What are the departure and arrival dates of all flights from LA to Honolulu?", "question_toks": [ "what", "are", "departure", "and", "arrival", "date", "of", "all", "flight", "from", "la", "to", "honolulu", "?" ], "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 ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Los Angeles\"", null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Honolulu\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "departure", "and", "arrival", "dates", "of", "all", "flights", "from", "LA", "to", "Honolulu", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "departure" ], [ "and" ], [ "arrival", "date" ], [ "of" ], [ "all" ], [ "flight" ], [ "from" ], [ "la" ], [ "to" ], [ "honolulu" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "departure", "JJ" ], [ "and", "CC" ], [ "arrival", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "flight", "NN" ], [ "from", "IN" ], [ "la", "NN" ], [ "to", "TO" ], [ "honolulu", "VB" ], [ "?", "." ] ], "values": [ "Los Angeles", "Honolulu" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(0) A(0) C(6) T(0) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "flight_1", "query": "SELECT flno FROM Flight WHERE distance > 2000", "query_toks": [ "SELECT", "flno", "FROM", "Flight", "WHERE", "distance", ">", "2000" ], "query_toks_no_value": [ "select", "flno", "from", "flight", "where", "distance", ">", "value" ], "question": "Show flight number for all flights with more than 2000 distance.", "question_toks": [ "show", "flight", "number", "for", "all", "flight", "with", "more", "than", "year", "distance", "." ], "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, 3, [ 0, [ 0, 4, false ], null ], 2000.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "flight", "number", "for", "all", "flights", "with", "more", "than", "2000", "distance", "." ], "question_arg": [ [ "show" ], [ "flight", "number" ], [ "for" ], [ "all" ], [ "flight" ], [ "with" ], [ "more" ], [ "than" ], [ "year" ], [ "distance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "flight", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "flight", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2000", "CD" ], [ "distance", "NN" ], [ ".", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "flight_1", "query": "SELECT flno FROM Flight WHERE distance > 2000", "query_toks": [ "SELECT", "flno", "FROM", "Flight", "WHERE", "distance", ">", "2000" ], "query_toks_no_value": [ "select", "flno", "from", "flight", "where", "distance", ">", "value" ], "question": "What are the numbers of all flights that can cover a distance of more than 2000?", "question_toks": [ "what", "are", "number", "of", "all", "flight", "that", "can", "cover", "a", "distance", "of", "more", "than", "year", "?" ], "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, 3, [ 0, [ 0, 4, false ], null ], 2000.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "numbers", "of", "all", "flights", "that", "can", "cover", "a", "distance", "of", "more", "than", "2000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "number" ], [ "of" ], [ "all" ], [ "flight" ], [ "that" ], [ "can" ], [ "cover" ], [ "a" ], [ "distance" ], [ "of" ], [ "more" ], [ "than" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "flight", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "cover", "VB" ], [ "a", "DT" ], [ "distance", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2000", "CD" ], [ "?", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "flight_1", "query": "SELECT avg(price) FROM Flight WHERE origin = \"Los Angeles\" AND destination = \"Honolulu\"", "query_toks": [ "SELECT", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''", "AND", "destination", "=", "``", "Honolulu", "''" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value", "and", "destination", "=", "value" ], "question": "What is the average price for flights from Los Angeles to Honolulu.", "question_toks": [ "what", "is", "average", "price", "for", "flight", "from", "los", "angeles", "to", "honolulu", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Los Angeles\"", null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Honolulu\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "for", "flights", "from", "Los", "Angeles", "to", "Honolulu", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price" ], [ "for" ], [ "flight" ], [ "from" ], [ "los" ], [ "angeles" ], [ "to" ], [ "honolulu" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "for", "IN" ], [ "flight", "NN" ], [ "from", "IN" ], [ "los", "NN" ], [ "angeles", "NNS" ], [ "to", "TO" ], [ "honolulu", "VB" ], [ ".", "." ] ], "values": [ "Honolulu", "Los Angeles" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(7) T(0) Filter(0) Filter(2) A(0) C(2) T(0) V(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "flight_1", "query": "SELECT avg(price) FROM Flight WHERE origin = \"Los Angeles\" AND destination = \"Honolulu\"", "query_toks": [ "SELECT", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''", "AND", "destination", "=", "``", "Honolulu", "''" ], "query_toks_no_value": [ "select", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value", "and", "destination", "=", "value" ], "question": "What is the average price for flights from LA to Honolulu?", "question_toks": [ "what", "is", "average", "price", "for", "flight", "from", "la", "to", "honolulu", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Los Angeles\"", null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Honolulu\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "price", "for", "flights", "from", "LA", "to", "Honolulu", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "price" ], [ "for" ], [ "flight" ], [ "from" ], [ "la" ], [ "to" ], [ "honolulu" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "price", "NN" ], [ "for", "IN" ], [ "flight", "NN" ], [ "from", "IN" ], [ "la", "NN" ], [ "to", "TO" ], [ "honolulu", "VB" ], [ "?", "." ] ], "values": [ "Honolulu", "Los Angeles" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(7) T(0) Filter(0) Filter(2) A(0) C(2) T(0) V(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "flight_1", "query": "SELECT origin , destination FROM Flight WHERE price > 300", "query_toks": [ "SELECT", "origin", ",", "destination", "FROM", "Flight", "WHERE", "price", ">", "300" ], "query_toks_no_value": [ "select", "origin", ",", "destination", "from", "flight", "where", "price", ">", "value" ], "question": "Show origin and destination for flights with price higher than 300.", "question_toks": [ "show", "origin", "and", "destination", "for", "flight", "with", "price", "higher", "than", "300", "." ], "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, 3, [ 0, [ 0, 7, false ], null ], 300.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "origin", "and", "destination", "for", "flights", "with", "price", "higher", "than", "300", "." ], "question_arg": [ [ "show" ], [ "origin" ], [ "and" ], [ "destination" ], [ "for" ], [ "flight" ], [ "with" ], [ "price" ], [ "higher" ], [ "than" ], [ "300" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "origin", "NN" ], [ "and", "CC" ], [ "destination", "NN" ], [ "for", "IN" ], [ "flight", "NN" ], [ "with", "IN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ ".", "." ] ], "values": [ "300" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(5) A(0) C(7) T(0) V(0)" }, { "db_id": "flight_1", "query": "SELECT origin , destination FROM Flight WHERE price > 300", "query_toks": [ "SELECT", "origin", ",", "destination", "FROM", "Flight", "WHERE", "price", ">", "300" ], "query_toks_no_value": [ "select", "origin", ",", "destination", "from", "flight", "where", "price", ">", "value" ], "question": "What is the origin and destination for all flights whose price is higher than 300?", "question_toks": [ "what", "is", "origin", "and", "destination", "for", "all", "flight", "whose", "price", "is", "higher", "than", "300", "?" ], "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, 3, [ 0, [ 0, 7, false ], null ], 300.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "origin", "and", "destination", "for", "all", "flights", "whose", "price", "is", "higher", "than", "300", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "origin" ], [ "and" ], [ "destination" ], [ "for" ], [ "all" ], [ "flight" ], [ "whose" ], [ "price" ], [ "is" ], [ "higher" ], [ "than" ], [ "300" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "origin", "JJ" ], [ "and", "CC" ], [ "destination", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "flight", "NN" ], [ "whose", "WP$" ], [ "price", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ "?", "." ] ], "values": [ "300" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(5) A(0) C(7) T(0) V(0)" }, { "db_id": "flight_1", "query": "SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1", "query_toks": [ "SELECT", "flno", ",", "distance", "FROM", "Flight", "ORDER", "BY", "price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "flno", ",", "distance", "from", "flight", "order", "by", "price", "desc", "limit", "value" ], "question": "Show the flight number and distance of the flight with maximum price.", "question_toks": [ "show", "flight", "number", "and", "distance", "of", "flight", "with", "maximum", "price", "." ], "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, 1, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "the", "flight", "number", "and", "distance", "of", "the", "flight", "with", "maximum", "price", "." ], "question_arg": [ [ "show" ], [ "flight", "number" ], [ "and" ], [ "distance" ], [ "of" ], [ "flight" ], [ "with" ], [ "maximum" ], [ "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "flight", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "distance", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "price", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(0) A(0) C(4) T(0) Sup(0) A(0) C(7) T(0)" }, { "db_id": "flight_1", "query": "SELECT flno , distance FROM Flight ORDER BY price DESC LIMIT 1", "query_toks": [ "SELECT", "flno", ",", "distance", "FROM", "Flight", "ORDER", "BY", "price", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "flno", ",", "distance", "from", "flight", "order", "by", "price", "desc", "limit", "value" ], "question": "What is the flight number and its distance for the one with the maximum price?", "question_toks": [ "what", "is", "flight", "number", "and", "it", "distance", "for", "one", "with", "maximum", "price", "?" ], "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, 1, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "flight", "number", "and", "its", "distance", "for", "the", "one", "with", "the", "maximum", "price", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "flight", "number" ], [ "and" ], [ "it" ], [ "distance" ], [ "for" ], [ "one" ], [ "with" ], [ "maximum" ], [ "price" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "flight", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "it", "PRP" ], [ "distance", "NN" ], [ "for", "IN" ], [ "one", "CD" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "price", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(0) A(0) C(4) T(0) Sup(0) A(0) C(7) T(0)" }, { "db_id": "flight_1", "query": "SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3", "query_toks": [ "SELECT", "flno", "FROM", "Flight", "ORDER", "BY", "distance", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "flno", "from", "flight", "order", "by", "distance", "asc", "limit", "value" ], "question": "Show the flight number of flights with three lowest distances.", "question_toks": [ "show", "flight", "number", "of", "flight", "with", "three", "lowest", "distance", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "the", "flight", "number", "of", "flights", "with", "three", "lowest", "distances", "." ], "question_arg": [ [ "show" ], [ "flight", "number" ], [ "of" ], [ "flight" ], [ "with" ], [ "three" ], [ "lowest" ], [ "distance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "flight", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "with", "IN" ], [ "three", "CD" ], [ "lowest", "JJS" ], [ "distance", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(0) Sup(1) A(0) C(4) T(0)" }, { "db_id": "flight_1", "query": "SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3", "query_toks": [ "SELECT", "flno", "FROM", "Flight", "ORDER", "BY", "distance", "ASC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "flno", "from", "flight", "order", "by", "distance", "asc", "limit", "value" ], "question": "What are the numbers of the shortest flights?", "question_toks": [ "what", "are", "number", "of", "shortest", "flight", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "numbers", "of", "the", "shortest", "flights", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "number" ], [ "of" ], [ "shortest" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "shortest", "JJ" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(1) T(0) Sup(1) A(0) C(4) T(0)" }, { "db_id": "flight_1", "query": "SELECT avg(distance) , avg(price) FROM Flight WHERE origin = \"Los Angeles\"", "query_toks": [ "SELECT", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''" ], "query_toks_no_value": [ "select", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value" ], "question": "What is the average distance and average price for flights from Los Angeles.", "question_toks": [ "what", "is", "average", "distance", "and", "average", "price", "for", "flight", "from", "los", "angeles", "." ], "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 ] ], [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Los Angeles\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "distance", "and", "average", "price", "for", "flights", "from", "Los", "Angeles", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "distance" ], [ "and" ], [ "average" ], [ "price" ], [ "for" ], [ "flight" ], [ "from" ], [ "los" ], [ "angeles" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "distance", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "price", "NN" ], [ "for", "IN" ], [ "flight", "NN" ], [ "from", "IN" ], [ "los", "JJ" ], [ "angeles", "NNS" ], [ ".", "." ] ], "values": [ "Los Angeles" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(4) T(0) A(5) C(7) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "flight_1", "query": "SELECT avg(distance) , avg(price) FROM Flight WHERE origin = \"Los Angeles\"", "query_toks": [ "SELECT", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''" ], "query_toks_no_value": [ "select", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value" ], "question": "What is the average distance and price for all flights from LA?", "question_toks": [ "what", "is", "average", "distance", "and", "price", "for", "all", "flight", "from", "la", "?" ], "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 ] ], [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Los Angeles\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "distance", "and", "price", "for", "all", "flights", "from", "LA", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "distance" ], [ "and" ], [ "price" ], [ "for" ], [ "all" ], [ "flight" ], [ "from" ], [ "la" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "distance", "NN" ], [ "and", "CC" ], [ "price", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "flight", "NN" ], [ "from", "IN" ], [ "la", "NN" ], [ "?", "." ] ], "values": [ "Los Angeles" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(4) T(0) A(5) C(7) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "flight_1", "query": "SELECT origin , count(*) FROM Flight GROUP BY origin", "query_toks": [ "SELECT", "origin", ",", "count", "(", "*", ")", "FROM", "Flight", "GROUP", "BY", "origin" ], "query_toks_no_value": [ "select", "origin", ",", "count", "(", "*", ")", "from", "flight", "group", "by", "origin" ], "question": "Show all origins and the number of flights from each origin.", "question_toks": [ "show", "all", "origin", "and", "number", "of", "flight", "from", "each", "origin", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "all", "origins", "and", "the", "number", "of", "flights", "from", "each", "origin", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "origin" ], [ "and" ], [ "number" ], [ "of" ], [ "flight" ], [ "from" ], [ "each" ], [ "origin" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "origin", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "from", "IN" ], [ "each", "DT" ], [ "origin", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(0)" }, { "db_id": "flight_1", "query": "SELECT origin , count(*) FROM Flight GROUP BY origin", "query_toks": [ "SELECT", "origin", ",", "count", "(", "*", ")", "FROM", "Flight", "GROUP", "BY", "origin" ], "query_toks_no_value": [ "select", "origin", ",", "count", "(", "*", ")", "from", "flight", "group", "by", "origin" ], "question": "For each origin, how many flights came from there?", "question_toks": [ "for", "each", "origin", ",", "how", "many", "flight", "came", "from", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "For", "each", "origin", ",", "how", "many", "flights", "came", "from", "there", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "origin" ], [ "," ], [ "how" ], [ "many" ], [ "flight" ], [ "came" ], [ "from" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "origin", "NN" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "flight", "NN" ], [ "came", "VBD" ], [ "from", "IN" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(0)" }, { "db_id": "flight_1", "query": "SELECT destination , count(*) FROM Flight GROUP BY destination", "query_toks": [ "SELECT", "destination", ",", "count", "(", "*", ")", "FROM", "Flight", "GROUP", "BY", "destination" ], "query_toks_no_value": [ "select", "destination", ",", "count", "(", "*", ")", "from", "flight", "group", "by", "destination" ], "question": "Show all destinations and the number of flights to each destination.", "question_toks": [ "show", "all", "destination", "and", "number", "of", "flight", "to", "each", "destination", "." ], "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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "all", "destinations", "and", "the", "number", "of", "flights", "to", "each", "destination", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "destination" ], [ "and" ], [ "number" ], [ "of" ], [ "flight" ], [ "to" ], [ "each" ], [ "destination" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "destination", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "destination", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(0)" }, { "db_id": "flight_1", "query": "SELECT destination , count(*) FROM Flight GROUP BY destination", "query_toks": [ "SELECT", "destination", ",", "count", "(", "*", ")", "FROM", "Flight", "GROUP", "BY", "destination" ], "query_toks_no_value": [ "select", "destination", ",", "count", "(", "*", ")", "from", "flight", "group", "by", "destination" ], "question": "What are the destinations and number of flights to each one?", "question_toks": [ "what", "are", "destination", "and", "number", "of", "flight", "to", "each", "one", "?" ], "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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "destinations", "and", "number", "of", "flights", "to", "each", "one", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "destination" ], [ "and" ], [ "number" ], [ "of" ], [ "flight" ], [ "to" ], [ "each" ], [ "one" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "destination", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "one", "CD" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(0)" }, { "db_id": "flight_1", "query": "SELECT origin FROM Flight GROUP BY origin ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "origin", "FROM", "Flight", "GROUP", "BY", "origin", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "origin", "from", "flight", "group", "by", "origin", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which origin has most number of flights?", "question_toks": [ "which", "origin", "ha", "most", "number", "of", "flight", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Which", "origin", "has", "most", "number", "of", "flights", "?" ], "question_arg": [ [ "which" ], [ "origin" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "origin", "VBP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "flight_1", "query": "SELECT origin FROM Flight GROUP BY origin ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "origin", "FROM", "Flight", "GROUP", "BY", "origin", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "origin", "from", "flight", "group", "by", "origin", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What place has the most flights coming from there?", "question_toks": [ "what", "place", "ha", "most", "flight", "coming", "from", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "place", "has", "the", "most", "flights", "coming", "from", "there", "?" ], "question_arg": [ [ "what" ], [ "place" ], [ "ha" ], [ "most" ], [ "flight" ], [ "coming" ], [ "from" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "place", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "flight", "NN" ], [ "coming", "VBG" ], [ "from", "IN" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "flight_1", "query": "SELECT destination FROM Flight GROUP BY destination ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "destination", "FROM", "Flight", "GROUP", "BY", "destination", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "destination", "from", "flight", "group", "by", "destination", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Which destination has least number of flights?", "question_toks": [ "which", "destination", "ha", "least", "number", "of", "flight", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Which", "destination", "has", "least", "number", "of", "flights", "?" ], "question_arg": [ [ "which" ], [ "destination" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "destination", "NN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(1) A(3) C(0) T(0)" }, { "db_id": "flight_1", "query": "SELECT destination FROM Flight GROUP BY destination ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "destination", "FROM", "Flight", "GROUP", "BY", "destination", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "destination", "from", "flight", "group", "by", "destination", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "What destination has the fewest number of flights?", "question_toks": [ "what", "destination", "ha", "fewest", "number", "of", "flight", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "destination", "has", "the", "fewest", "number", "of", "flights", "?" ], "question_arg": [ [ "what" ], [ "destination" ], [ "ha" ], [ "fewest" ], [ "number" ], [ "of" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "destination", "NN" ], [ "ha", "NN" ], [ "fewest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(1) A(3) C(0) T(0)" }, { "db_id": "flight_1", "query": "SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99", "query_toks": [ "SELECT", "T2.name", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1.aid", "=", "T2.aid", "WHERE", "T1.flno", "=", "99" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "flno", "=", "value" ], "question": "What is the aircraft name for the flight with number 99", "question_toks": [ "what", "is", "aircraft", "name", "for", "flight", "with", "number", "99" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, 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, 1, false ], null ], 99.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "aircraft", "name", "for", "the", "flight", "with", "number", "99" ], "question_arg": [ [ "what" ], [ "is" ], [ "aircraft" ], [ "name" ], [ "for" ], [ "flight" ], [ "with" ], [ "number" ], [ "99" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "aircraft", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "flight", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "99", "CD" ] ], "values": [ "99" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "flight_1", "query": "SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99", "query_toks": [ "SELECT", "T2.name", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1.aid", "=", "T2.aid", "WHERE", "T1.flno", "=", "99" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "flno", "=", "value" ], "question": "What is the name of the aircraft that was on flight number 99?", "question_toks": [ "what", "is", "name", "of", "aircraft", "that", "wa", "on", "flight", "number", "99", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, 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, 1, false ], null ], 99.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "aircraft", "that", "was", "on", "flight", "number", "99", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "that" ], [ "wa" ], [ "on" ], [ "flight", "number" ], [ "99" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "that", "WDT" ], [ "wa", "VBZ" ], [ "on", "IN" ], [ "flight", "NN" ], [ "number", "NN" ], [ "99", "CD" ], [ "?", "." ] ], "values": [ "99" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "flight_1", "query": "SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = \"Airbus A340-300\"", "query_toks": [ "SELECT", "T1.flno", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1.aid", "=", "T2.aid", "WHERE", "T2.name", "=", "``", "Airbus", "A340-300", "''" ], "query_toks_no_value": [ "select", "t1", ".", "flno", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value" ], "question": "Show all flight numbers with aircraft Airbus A340-300.", "question_toks": [ "show", "all", "flight", "number", "with", "aircraft", "airbus", "a340-300", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, 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, 2, [ 0, [ 0, 10, false ], null ], "\"Airbus A340-300\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "all", "flight", "numbers", "with", "aircraft", "Airbus", "A340-300", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "flight", "number" ], [ "with" ], [ "aircraft" ], [ "airbus" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "flight", "NN" ], [ "number", "NN" ], [ "with", "IN" ], [ "aircraft", "NN" ], [ "airbus", "RB" ], [ "a340-300", "NN" ], [ ".", "." ] ], "values": [ "Airbus A340-300", "300" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "flight_1", "query": "SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = \"Airbus A340-300\"", "query_toks": [ "SELECT", "T1.flno", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1.aid", "=", "T2.aid", "WHERE", "T2.name", "=", "``", "Airbus", "A340-300", "''" ], "query_toks_no_value": [ "select", "t1", ".", "flno", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value" ], "question": "What are the flight numbers for the aircraft Airbus A340-300?", "question_toks": [ "what", "are", "flight", "number", "for", "aircraft", "airbus", "a340-300", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, 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, 2, [ 0, [ 0, 10, false ], null ], "\"Airbus A340-300\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "flight", "numbers", "for", "the", "aircraft", "Airbus", "A340-300", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "flight", "number" ], [ "for" ], [ "aircraft" ], [ "airbus" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "flight", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "aircraft", "NN" ], [ "airbus", "NN" ], [ "a340-300", "CD" ], [ "?", "." ] ], "values": [ "Airbus A340-300", "300" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "flight_1", "query": "SELECT T2.name , count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1.aid", "=", "T2.aid", "GROUP", "BY", "T1.aid" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "group", "by", "t1", ".", "aid" ], "question": "Show aircraft names and number of flights for each aircraft.", "question_toks": [ "show", "aircraft", "name", "and", "number", "of", "flight", "for", "each", "aircraft", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, 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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "aircraft", "names", "and", "number", "of", "flights", "for", "each", "aircraft", "." ], "question_arg": [ [ "show" ], [ "aircraft" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "flight" ], [ "for" ], [ "each" ], [ "aircraft" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "aircraft", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "flight", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "aircraft", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(0)" }, { "db_id": "flight_1", "query": "SELECT T2.name , count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1.aid", "=", "T2.aid", "GROUP", "BY", "T1.aid" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "group", "by", "t1", ".", "aid" ], "question": "What is the name of each aircraft and how many flights does each one complete?", "question_toks": [ "what", "is", "name", "of", "each", "aircraft", "and", "how", "many", "flight", "doe", "each", "one", "complete", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, 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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "each", "aircraft", "and", "how", "many", "flights", "does", "each", "one", "complete", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "each" ], [ "aircraft" ], [ "and" ], [ "how" ], [ "many" ], [ "flight" ], [ "doe" ], [ "each" ], [ "one" ], [ "complete" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "aircraft", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "flight", "NN" ], [ "doe", "NNS" ], [ "each", "DT" ], [ "one", "CD" ], [ "complete", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(0)" }, { "db_id": "flight_1", "query": "SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.name", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1.aid", "=", "T2.aid", "GROUP", "BY", "T1.aid", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "group", "by", "t1", ".", "aid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show names for all aircraft with at least two flights.", "question_toks": [ "show", "name", "for", "all", "aircraft", "with", "at", "least", "two", "flight", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "names", "for", "all", "aircraft", "with", "at", "least", "two", "flights", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "all" ], [ "aircraft" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "flight" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "flight", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "flight_1", "query": "SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.name", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1.aid", "=", "T2.aid", "GROUP", "BY", "T1.aid", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "group", "by", "t1", ".", "aid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the names for all aircrafts with at least 2 flights?", "question_toks": [ "what", "are", "name", "for", "all", "aircraft", "with", "at", "least", "2", "flight", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 9, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "for", "all", "aircrafts", "with", "at", "least", "2", "flights", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "for" ], [ "all" ], [ "aircraft" ], [ "with" ], [ "at" ], [ "least" ], [ "2" ], [ "flight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "for", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "flight", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "flight_1", "query": "SELECT count(DISTINCT eid) FROM Certificate", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "eid", ")", "FROM", "Certificate" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "eid", ")", "from", "certificate" ], "question": "How many employees have certificate.", "question_toks": [ "how", "many", "employee", "have", "certificate", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "How", "many", "employees", "have", "certificate", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "employee" ], [ "have" ], [ "certificate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "employee", "NN" ], [ "have", "VBP" ], [ "certificate", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(3)" }, { "db_id": "flight_1", "query": "SELECT count(DISTINCT eid) FROM Certificate", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "eid", ")", "FROM", "Certificate" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "eid", ")", "from", "certificate" ], "question": "What is the count of distinct employees with certificates?", "question_toks": [ "what", "is", "count", "of", "distinct", "employee", "with", "certificate", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 15, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "count", "of", "distinct", "employees", "with", "certificates", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "count" ], [ "of" ], [ "distinct" ], [ "employee" ], [ "with" ], [ "certificate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "count", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "employee", "NN" ], [ "with", "IN" ], [ "certificate", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(3)" }, { "db_id": "flight_1", "query": "SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate", "query_toks": [ "SELECT", "eid", "FROM", "Employee", "EXCEPT", "SELECT", "eid", "FROM", "Certificate" ], "query_toks_no_value": [ "select", "eid", "from", "employee", "except", "select", "eid", "from", "certificate" ], "question": "Show ids for all employees who don't have a certificate.", "question_toks": [ "show", "id", "for", "all", "employee", "who", "do", "n't", "have", "a", "certificate", "." ], "sql": { "except": { "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": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "ids", "for", "all", "employees", "who", "do", "n't", "have", "a", "certificate", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "employee" ], [ "who" ], [ "do" ], [ "n't" ], [ "have" ], [ "a" ], [ "certificate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "certificate", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3)" }, { "db_id": "flight_1", "query": "SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate", "query_toks": [ "SELECT", "eid", "FROM", "Employee", "EXCEPT", "SELECT", "eid", "FROM", "Certificate" ], "query_toks_no_value": [ "select", "eid", "from", "employee", "except", "select", "eid", "from", "certificate" ], "question": "What are the ids of all employees that don't have certificates?", "question_toks": [ "what", "are", "id", "of", "all", "employee", "that", "do", "n't", "have", "certificate", "?" ], "sql": { "except": { "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": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "all", "employees", "that", "do", "n't", "have", "certificates", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "all" ], [ "employee" ], [ "that" ], [ "do" ], [ "n't" ], [ "have" ], [ "certificate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "have", "VB" ], [ "certificate", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3)" }, { "db_id": "flight_1", "query": "SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = \"John Williams\"", "query_toks": [ "SELECT", "T3.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T1.name", "=", "``", "John", "Williams", "''" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value" ], "question": "Show names for all aircrafts of which John Williams has certificates.", "question_toks": [ "show", "name", "for", "all", "aircraft", "of", "which", "john", "williams", "ha", "certificate", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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 ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"John Williams\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "names", "for", "all", "aircrafts", "of", "which", "John", "Williams", "has", "certificates", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "all" ], [ "aircraft" ], [ "of" ], [ "which" ], [ "john" ], [ "williams" ], [ "ha" ], [ "certificate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ "of", "IN" ], [ "which", "WDT" ], [ "john", "NN" ], [ "williams", "NNS" ], [ "ha", "VBP" ], [ "certificate", "NN" ], [ ".", "." ] ], "values": [ "John Williams" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "flight_1", "query": "SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = \"John Williams\"", "query_toks": [ "SELECT", "T3.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T1.name", "=", "``", "John", "Williams", "''" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value" ], "question": "What are the names of all aircrafts that John Williams have certificates to be able to fly?", "question_toks": [ "what", "are", "name", "of", "all", "aircraft", "that", "john", "williams", "have", "certificate", "to", "be", "able", "to", "fly", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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 ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"John Williams\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "aircrafts", "that", "John", "Williams", "have", "certificates", "to", "be", "able", "to", "fly", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "aircraft" ], [ "that" ], [ "john" ], [ "williams" ], [ "have" ], [ "certificate" ], [ "to" ], [ "be" ], [ "able" ], [ "to" ], [ "fly" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "aircraft", "NN" ], [ "that", "IN" ], [ "john", "NN" ], [ "williams", "NNS" ], [ "have", "VBP" ], [ "certificate", "NN" ], [ "to", "TO" ], [ "be", "VB" ], [ "able", "JJ" ], [ "to", "TO" ], [ "fly", "VB" ], [ "?", "." ] ], "values": [ "John Williams" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "flight_1", "query": "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = \"Boeing 737-800\"", "query_toks": [ "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.name", "=", "``", "Boeing", "737-800", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "name", "=", "value" ], "question": "Show names for all employees who have certificate of Boeing 737-800.", "question_toks": [ "show", "name", "for", "all", "employee", "who", "have", "certificate", "of", "boeing", "737-800", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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 ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Boeing 737-800\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "names", "for", "all", "employees", "who", "have", "certificate", "of", "Boeing", "737-800", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "all" ], [ "employee" ], [ "who" ], [ "have" ], [ "certificate" ], [ "of" ], [ "boeing" ], [ "737-800" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "certificate", "NN" ], [ "of", "IN" ], [ "boeing", "VBG" ], [ "737-800", "JJ" ], [ ".", "." ] ], "values": [ "Boeing 777-300", "800", "Boeing 757-300", "Boeing 737-800", "Boeing 727", "Boeing 747-400", "737" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(9) T(1) V(3)" }, { "db_id": "flight_1", "query": "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = \"Boeing 737-800\"", "query_toks": [ "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.name", "=", "``", "Boeing", "737-800", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "name", "=", "value" ], "question": "What are the names of all employees who have a certificate to fly Boeing 737-800?", "question_toks": [ "what", "are", "name", "of", "all", "employee", "who", "have", "a", "certificate", "to", "fly", "boeing", "737-800", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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 ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Boeing 737-800\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "employees", "who", "have", "a", "certificate", "to", "fly", "Boeing", "737-800", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "have" ], [ "a" ], [ "certificate" ], [ "to" ], [ "fly" ], [ "boeing" ], [ "737-800" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "certificate", "NN" ], [ "to", "TO" ], [ "fly", "VB" ], [ "boeing", "VBG" ], [ "737-800", "CD" ], [ "?", "." ] ], "values": [ "Boeing 777-300", "800", "Boeing 757-300", "Boeing 737-800", "Boeing 727", "Boeing 747-400", "737" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(9) T(1) V(3)" }, { "db_id": "flight_1", "query": "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = \"Boeing 737-800\" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = \"Airbus A340-300\"", "query_toks": [ "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.name", "=", "``", "Boeing", "737-800", "''", "INTERSECT", "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.name", "=", "``", "Airbus", "A340-300", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "name", "=", "value" ], "question": "Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300.", "question_toks": [ "show", "name", "for", "all", "employee", "who", "have", "certificate", "on", "both", "boeing", "737-800", "and", "airbus", "a340-300", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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 ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Airbus A340-300\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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 ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Boeing 737-800\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "names", "for", "all", "employees", "who", "have", "certificates", "on", "both", "Boeing", "737-800", "and", "Airbus", "A340-300", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "all" ], [ "employee" ], [ "who" ], [ "have" ], [ "certificate" ], [ "on" ], [ "both" ], [ "boeing" ], [ "737-800" ], [ "and" ], [ "airbus" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "certificate", "VBN" ], [ "on", "IN" ], [ "both", "DT" ], [ "boeing", "VBG" ], [ "737-800", "CD" ], [ "and", "CC" ], [ "airbus", "JJ" ], [ "a340-300", "NN" ], [ ".", "." ] ], "values": [ "Boeing 777-300", "Boeing 767-400ER", "800", "Boeing 757-300", "Boeing 737-800", "300", "Boeing 747-400", "Airbus A340-300", "737" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(9) T(1) V(4) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(9) T(1) V(7)" }, { "db_id": "flight_1", "query": "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = \"Boeing 737-800\" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = \"Airbus A340-300\"", "query_toks": [ "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.name", "=", "``", "Boeing", "737-800", "''", "INTERSECT", "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.name", "=", "``", "Airbus", "A340-300", "''" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "name", "=", "value" ], "question": "What are the names of all employees who can fly both the Boeing 737-800 and the Airbus A340-300?", "question_toks": [ "what", "are", "name", "of", "all", "employee", "who", "can", "fly", "both", "boeing", "737-800", "and", "airbus", "a340-300", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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 ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Airbus A340-300\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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 ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Boeing 737-800\"", null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "employees", "who", "can", "fly", "both", "the", "Boeing", "737-800", "and", "the", "Airbus", "A340-300", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "can" ], [ "fly" ], [ "both" ], [ "boeing" ], [ "737-800" ], [ "and" ], [ "airbus" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "can", "MD" ], [ "fly", "VB" ], [ "both", "DT" ], [ "boeing", "VBG" ], [ "737-800", "CD" ], [ "and", "CC" ], [ "airbus", "VB" ], [ "a340-300", "NN" ], [ "?", "." ] ], "values": [ "Boeing 757-300", "800", "737", "Boeing 767-400ER", "300", "Boeing 777-300", "Boeing 747-400", "Boeing 737-800", "Airbus A340-300" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(9) T(1) V(7) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(9) T(1) V(8)" }, { "db_id": "flight_1", "query": "SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = \"Boeing 737-800\"", "query_toks": [ "SELECT", "name", "FROM", "Employee", "EXCEPT", "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.name", "=", "``", "Boeing", "737-800", "''" ], "query_toks_no_value": [ "select", "name", "from", "employee", "except", "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "name", "=", "value" ], "question": "Show names for all employees who do not have certificate of Boeing 737-800.", "question_toks": [ "show", "name", "for", "all", "employee", "who", "do", "not", "have", "certificate", "of", "boeing", "737-800", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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 ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Boeing 737-800\"", 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": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "names", "for", "all", "employees", "who", "do", "not", "have", "certificate", "of", "Boeing", "737-800", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "all" ], [ "employee" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "certificate" ], [ "of" ], [ "boeing" ], [ "737-800" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "certificate", "NN" ], [ "of", "IN" ], [ "boeing", "VBG" ], [ "737-800", "JJ" ], [ ".", "." ] ], "values": [ "Boeing 757-300", "800", "Boeing 727", "737", "Boeing 777-300", "Boeing 747-400", "Boeing 737-800" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(9) T(2) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(9) T(1) V(6)" }, { "db_id": "flight_1", "query": "SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = \"Boeing 737-800\"", "query_toks": [ "SELECT", "name", "FROM", "Employee", "EXCEPT", "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.name", "=", "``", "Boeing", "737-800", "''" ], "query_toks_no_value": [ "select", "name", "from", "employee", "except", "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "name", "=", "value" ], "question": "What are the names of all employees who are not certified to fly Boeing 737-800s?", "question_toks": [ "what", "are", "name", "of", "all", "employee", "who", "are", "not", "certified", "to", "fly", "boeing", "737-800s", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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 ], "and", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Boeing 737-800\"", 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": [] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "employees", "who", "are", "not", "certified", "to", "fly", "Boeing", "737-800s", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "employee" ], [ "who" ], [ "are" ], [ "not" ], [ "certified" ], [ "to" ], [ "fly" ], [ "boeing" ], [ "737-800s" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "certified", "VBN" ], [ "to", "TO" ], [ "fly", "VB" ], [ "boeing", "VBG" ], [ "737-800s", "CD" ], [ "?", "." ] ], "values": [ "Boeing 757-300", "800", "Boeing 727", "737", "Boeing 777-300", "Boeing 747-400", "Boeing 737-800" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(9) T(2) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(9) T(1) V(6)" }, { "db_id": "flight_1", "query": "SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid GROUP BY T1.aid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "Certificate", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T2.aid", "=", "T1.aid", "GROUP", "BY", "T1.aid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "group", "by", "t1", ".", "aid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the name of aircraft which fewest people have its certificate.", "question_toks": [ "show", "name", "of", "aircraft", "which", "fewest", "people", "have", "it", "certificate", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 16, 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, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "of", "aircraft", "which", "fewest", "people", "have", "its", "certificate", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "which" ], [ "fewest" ], [ "people" ], [ "have" ], [ "it" ], [ "certificate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "which", "WDT" ], [ "fewest", "JJS" ], [ "people", "NNS" ], [ "have", "VBP" ], [ "it", "PRP" ], [ "certificate", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(3)" }, { "db_id": "flight_1", "query": "SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid GROUP BY T1.aid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "Certificate", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T2.aid", "=", "T1.aid", "GROUP", "BY", "T1.aid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "group", "by", "t1", ".", "aid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the names of the aircraft that the least people are certified to fly?", "question_toks": [ "what", "are", "name", "of", "aircraft", "that", "least", "people", "are", "certified", "to", "fly", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 16, 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, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "aircraft", "that", "the", "least", "people", "are", "certified", "to", "fly", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "aircraft" ], [ "that" ], [ "least" ], [ "people" ], [ "are" ], [ "certified" ], [ "to" ], [ "fly" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "that", "IN" ], [ "least", "JJS" ], [ "people", "NNS" ], [ "are", "VBP" ], [ "certified", "VBN" ], [ "to", "TO" ], [ "fly", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(3)" }, { "db_id": "flight_1", "query": "SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY count(*) >= 5", "query_toks": [ "SELECT", "T2.name", "FROM", "Certificate", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T2.aid", "=", "T1.aid", "WHERE", "T2.distance", ">", "5000", "GROUP", "BY", "T1.aid", "ORDER", "BY", "count", "(", "*", ")", ">", "=", "5" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "distance", ">", "value", "group", "by", "t1", ".", "aid", "order", "by", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.", "question_toks": [ "show", "name", "and", "distance", "of", "aircraft", "with", "more", "than", "5000", "distance", "and", "which", "at", "least", "5", "people", "have", "it", "certificate", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 11, false ], null ], 5000.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "and", "distance", "of", "the", "aircrafts", "with", "more", "than", "5000", "distance", "and", "which", "at", "least", "5", "people", "have", "its", "certificate", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "distance" ], [ "of" ], [ "aircraft" ], [ "with" ], [ "more" ], [ "than" ], [ "5000" ], [ "distance" ], [ "and" ], [ "which" ], [ "at" ], [ "least" ], [ "5" ], [ "people" ], [ "have" ], [ "it" ], [ "certificate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "distance", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ "distance", "NN" ], [ "and", "CC" ], [ "which", "WDT" ], [ "at", "IN" ], [ "least", "JJS" ], [ "5", "CD" ], [ "people", "NNS" ], [ "have", "VBP" ], [ "it", "PRP" ], [ "certificate", "NN" ], [ ".", "." ] ], "values": [ "5000", "5" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(9) 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(5) A(0) C(4) T(1) V(0) Order(1) A(3) C(0) T(3)" }, { "db_id": "flight_1", "query": "SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid = T1.aid WHERE T2.distance > 5000 GROUP BY T1.aid ORDER BY count(*) >= 5", "query_toks": [ "SELECT", "T2.name", "FROM", "Certificate", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T2.aid", "=", "T1.aid", "WHERE", "T2.distance", ">", "5000", "GROUP", "BY", "T1.aid", "ORDER", "BY", "count", "(", "*", ")", ">", "=", "5" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "distance", ">", "value", "group", "by", "t1", ".", "aid", "order", "by", "count", "(", "*", ")", ">", "=", "value" ], "question": "What is the name and distance of every aircraft that can cover a distance of more than 5000 and which at least 5 people can fly?", "question_toks": [ "what", "is", "name", "and", "distance", "of", "every", "aircraft", "that", "can", "cover", "a", "distance", "of", "more", "than", "5000", "and", "which", "at", "least", "5", "people", "can", "fly", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 3, [ 0, [ 0, 11, false ], null ], 5000.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "distance", "of", "every", "aircraft", "that", "can", "cover", "a", "distance", "of", "more", "than", "5000", "and", "which", "at", "least", "5", "people", "can", "fly", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "distance" ], [ "of" ], [ "every" ], [ "aircraft" ], [ "that" ], [ "can" ], [ "cover" ], [ "a" ], [ "distance" ], [ "of" ], [ "more" ], [ "than" ], [ "5000" ], [ "and" ], [ "which" ], [ "at" ], [ "least" ], [ "5" ], [ "people" ], [ "can" ], [ "fly" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "distance", "NN" ], [ "of", "IN" ], [ "every", "DT" ], [ "aircraft", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "cover", "VB" ], [ "a", "DT" ], [ "distance", "NN" ], [ "of", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ "and", "CC" ], [ "which", "WDT" ], [ "at", "IN" ], [ "least", "JJS" ], [ "5", "CD" ], [ "people", "NNS" ], [ "can", "MD" ], [ "fly", "VB" ], [ "?", "." ] ], "values": [ "5000", "5" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(9) 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(5) A(0) C(4) T(1) V(0) Order(1) A(3) C(0) T(3)" }, { "db_id": "flight_1", "query": "SELECT T1.name , T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", ",", "T1.salary", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "GROUP", "BY", "T1.eid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "salary", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "group", "by", "t1", ".", "eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "what is the salary and name of the employee who has the most number of aircraft certificates?", "question_toks": [ "what", "is", "salary", "and", "name", "of", "employee", "who", "ha", "most", "number", "of", "aircraft", "certificate", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "what", "is", "the", "salary", "and", "name", "of", "the", "employee", "who", "has", "the", "most", "number", "of", "aircraft", "certificates", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "salary" ], [ "and" ], [ "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "aircraft" ], [ "certificate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "salary", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "aircraft", "NN" ], [ "certificate", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(9) T(2) A(0) C(11) T(2) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3)" }, { "db_id": "flight_1", "query": "SELECT T1.name , T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", ",", "T1.salary", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "GROUP", "BY", "T1.eid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "salary", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "group", "by", "t1", ".", "eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the salaray and name of the employee that is certified to fly the most planes?", "question_toks": [ "what", "is", "salaray", "and", "name", "of", "employee", "that", "is", "certified", "to", "fly", "most", "plane", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "salaray", "and", "name", "of", "the", "employee", "that", "is", "certified", "to", "fly", "the", "most", "planes", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "salaray" ], [ "and" ], [ "name" ], [ "of" ], [ "employee" ], [ "that" ], [ "is" ], [ "certified" ], [ "to" ], [ "fly" ], [ "most" ], [ "plane" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "salaray", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "certified", "VBN" ], [ "to", "TO" ], [ "fly", "VB" ], [ "most", "JJS" ], [ "plane", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(9) T(2) A(0) C(11) T(2) Sup(0) A(3) C(0) T(3) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3)" }, { "db_id": "flight_1", "query": "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.distance", ">", "5000", "GROUP", "BY", "T1.eid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "distance", ">", "value", "group", "by", "t1", ".", "eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?", "question_toks": [ "what", "is", "salary", "and", "name", "of", "employee", "who", "ha", "most", "number", "of", "certificate", "on", "aircraft", "with", "distance", "more", "than", "5000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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 ], "and", [ false, 3, [ 0, [ 0, 11, false ], null ], 5000.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "salary", "and", "name", "of", "the", "employee", "who", "has", "the", "most", "number", "of", "certificates", "on", "aircrafts", "with", "distance", "more", "than", "5000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "salary" ], [ "and" ], [ "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "certificate" ], [ "on" ], [ "aircraft" ], [ "with" ], [ "distance" ], [ "more" ], [ "than" ], [ "5000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "salary", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "certificate", "NN" ], [ "on", "IN" ], [ "aircraft", "NN" ], [ "with", "IN" ], [ "distance", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ "?", "." ] ], "values": [ "5000" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(3) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(5) A(0) C(4) T(1) V(0)" }, { "db_id": "flight_1", "query": "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.distance", ">", "5000", "GROUP", "BY", "T1.eid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "distance", ">", "value", "group", "by", "t1", ".", "eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the salaray and name of the employee with the most certificates to fly planes more than 5000?", "question_toks": [ "what", "is", "salaray", "and", "name", "of", "employee", "with", "most", "certificate", "to", "fly", "plane", "more", "than", "5000", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 12, 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 ], "and", [ false, 3, [ 0, [ 0, 11, false ], null ], 5000.0, null ] ] }, "names": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "airline id", "name", "distance", "employee id", "name", "salary", "employee id", "airline id" ], "table_names": [ "flight", "aircraft", "employee", "certificate" ], "col_set": [ "*", "flight number", "origin", "destination", "distance", "departure date", "arrival date", "price", "airline id", "name", "employee id", "salary" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3 ], "keys": { "8": 9, "9": 9, "16": 9, "15": 15, "12": 12, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "salaray", "and", "name", "of", "the", "employee", "with", "the", "most", "certificates", "to", "fly", "planes", "more", "than", "5000", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "salaray" ], [ "and" ], [ "name" ], [ "of" ], [ "employee" ], [ "with" ], [ "most" ], [ "certificate" ], [ "to" ], [ "fly" ], [ "plane" ], [ "more" ], [ "than" ], [ "5000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "salaray", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "certificate", "NN" ], [ "to", "TO" ], [ "fly", "VB" ], [ "plane", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ "?", "." ] ], "values": [ "5000" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(3) Filter(0) Filter(18) A(0) C(10) T(2) Root(5) Sel(0) N(0) A(0) C(10) T(3) Filter(5) A(0) C(4) T(1) V(0)" }, { "db_id": "allergy_1", "query": "SELECT count(DISTINCT allergy) FROM Allergy_type", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "allergy", ")", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "allergy", ")", "from", "allergy_type" ], "question": "How many allergies are there?", "question_toks": [ "how", "many", "allergy", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 1, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "allergies", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "allergy" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "allergy", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(0)" }, { "db_id": "allergy_1", "query": "SELECT count(DISTINCT allergy) FROM Allergy_type", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "allergy", ")", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "allergy", ")", "from", "allergy_type" ], "question": "How many allergy entries are there?", "question_toks": [ "how", "many", "allergy", "entry", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 1, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "allergy", "entries", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "allergy" ], [ "entry" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "allergy", "JJ" ], [ "entry", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(0)" }, { "db_id": "allergy_1", "query": "SELECT count(DISTINCT allergytype) FROM Allergy_type", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "allergytype", ")", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "allergytype", ")", "from", "allergy_type" ], "question": "How many different allergy types exist?", "question_toks": [ "how", "many", "different", "allergy", "type", "exist", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "different", "allergy", "types", "exist", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "allergy", "type" ], [ "exist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "allergy", "NNS" ], [ "type", "VBP" ], [ "exist", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(2) T(0)" }, { "db_id": "allergy_1", "query": "SELECT count(DISTINCT allergytype) FROM Allergy_type", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "allergytype", ")", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "allergytype", ")", "from", "allergy_type" ], "question": "How many distinct allergies are there?", "question_toks": [ "how", "many", "distinct", "allergy", "are", "there", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "distinct", "allergies", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "allergy" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "allergy", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(2) T(0)" }, { "db_id": "allergy_1", "query": "SELECT DISTINCT allergytype FROM Allergy_type", "query_toks": [ "SELECT", "DISTINCT", "allergytype", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "distinct", "allergytype", "from", "allergy_type" ], "question": "Show all allergy types.", "question_toks": [ "show", "all", "allergy", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "allergy", "types", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "allergy", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "allergy", "JJ" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(2) T(0)" }, { "db_id": "allergy_1", "query": "SELECT DISTINCT allergytype FROM Allergy_type", "query_toks": [ "SELECT", "DISTINCT", "allergytype", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "distinct", "allergytype", "from", "allergy_type" ], "question": "What are the different allergy types?", "question_toks": [ "what", "are", "different", "allergy", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "different", "allergy", "types", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "allergy", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "allergy", "IN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(2) T(0)" }, { "db_id": "allergy_1", "query": "SELECT allergy , allergytype FROM Allergy_type", "query_toks": [ "SELECT", "allergy", ",", "allergytype", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "allergy", ",", "allergytype", "from", "allergy_type" ], "question": "Show all allergies and their types.", "question_toks": [ "show", "all", "allergy", "and", "their", "type", "." ], "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": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "allergies", "and", "their", "types", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "allergy" ], [ "and" ], [ "their" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "allergy", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0)" }, { "db_id": "allergy_1", "query": "SELECT allergy , allergytype FROM Allergy_type", "query_toks": [ "SELECT", "allergy", ",", "allergytype", "FROM", "Allergy_type" ], "query_toks_no_value": [ "select", "allergy", ",", "allergytype", "from", "allergy_type" ], "question": "What are the allergies and their types?", "question_toks": [ "what", "are", "allergy", "and", "their", "type", "?" ], "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": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "allergies", "and", "their", "types", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "allergy" ], [ "and" ], [ "their" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "allergy", "JJ" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0)" }, { "db_id": "allergy_1", "query": "SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = \"food\"", "query_toks": [ "SELECT", "DISTINCT", "allergy", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "food", "''" ], "query_toks_no_value": [ "select", "distinct", "allergy", "from", "allergy_type", "where", "allergytype", "=", "value" ], "question": "Show all allergies with type food.", "question_toks": [ "show", "all", "allergy", "with", "type", "food", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "allergies", "with", "type", "food", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "allergy" ], [ "with" ], [ "type" ], [ "food" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "allergy", "NN" ], [ "with", "IN" ], [ "type", "JJ" ], [ "food", "NN" ], [ ".", "." ] ], "values": [ "food" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "allergy_1", "query": "SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype = \"food\"", "query_toks": [ "SELECT", "DISTINCT", "allergy", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "food", "''" ], "query_toks_no_value": [ "select", "distinct", "allergy", "from", "allergy_type", "where", "allergytype", "=", "value" ], "question": "What are all the different food allergies?", "question_toks": [ "what", "are", "all", "different", "food", "allergy", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "all", "the", "different", "food", "allergies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "different" ], [ "food" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "different", "JJ" ], [ "food", "NN" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [ "food" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "allergy_1", "query": "SELECT allergytype FROM Allergy_type WHERE allergy = \"Cat\"", "query_toks": [ "SELECT", "allergytype", "FROM", "Allergy_type", "WHERE", "allergy", "=", "``", "Cat", "''" ], "query_toks_no_value": [ "select", "allergytype", "from", "allergy_type", "where", "allergy", "=", "value" ], "question": "What is the type of allergy Cat?", "question_toks": [ "what", "is", "type", "of", "allergy", "cat", "?" ], "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 ], "\"Cat\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "type", "of", "allergy", "Cat", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "type" ], [ "of" ], [ "allergy" ], [ "cat" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "type", "NN" ], [ "of", "IN" ], [ "allergy", "JJ" ], [ "cat", "NN" ], [ "?", "." ] ], "values": [ "Cat" ], "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": "allergy_1", "query": "SELECT allergytype FROM Allergy_type WHERE allergy = \"Cat\"", "query_toks": [ "SELECT", "allergytype", "FROM", "Allergy_type", "WHERE", "allergy", "=", "``", "Cat", "''" ], "query_toks_no_value": [ "select", "allergytype", "from", "allergy_type", "where", "allergy", "=", "value" ], "question": "What is allergy type of a cat allergy?", "question_toks": [ "what", "is", "allergy", "type", "of", "a", "cat", "allergy", "?" ], "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 ], "\"Cat\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "is", "allergy", "type", "of", "a", "cat", "allergy", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "allergy", "type" ], [ "of" ], [ "a" ], [ "cat" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "allergy", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "cat", "NN" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [ "Cat" ], "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": "allergy_1", "query": "SELECT count(*) FROM Allergy_type WHERE allergytype = \"animal\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "animal", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "allergy_type", "where", "allergytype", "=", "value" ], "question": "How many allergies have type animal?", "question_toks": [ "how", "many", "allergy", "have", "type", "animal", "?" ], "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, 2, false ], null ], "\"animal\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "allergies", "have", "type", "animal", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "allergy" ], [ "have" ], [ "type" ], [ "animal" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "allergy", "NNS" ], [ "have", "VBP" ], [ "type", "VBN" ], [ "animal", "NN" ], [ "?", "." ] ], "values": [ "animal" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Allergy_type WHERE allergytype = \"animal\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "animal", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "allergy_type", "where", "allergytype", "=", "value" ], "question": "How many animal type allergies exist?", "question_toks": [ "how", "many", "animal", "type", "allergy", "exist", "?" ], "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, 2, false ], null ], "\"animal\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "animal", "type", "allergies", "exist", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "animal" ], [ "allergy", "type" ], [ "exist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "animal", "JJ" ], [ "type", "NN" ], [ "allergy", "NN" ], [ "exist", "VB" ], [ "?", "." ] ], "values": [ "animal" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "allergy_1", "query": "SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype", "query_toks": [ "SELECT", "allergytype", ",", "count", "(", "*", ")", "FROM", "Allergy_type", "GROUP", "BY", "allergytype" ], "query_toks_no_value": [ "select", "allergytype", ",", "count", "(", "*", ")", "from", "allergy_type", "group", "by", "allergytype" ], "question": "Show all allergy types and the number of allergies in each type.", "question_toks": [ "show", "all", "allergy", "type", "and", "number", "of", "allergy", "in", "each", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "allergy", "types", "and", "the", "number", "of", "allergies", "in", "each", "type", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "allergy", "type" ], [ "and" ], [ "number" ], [ "of" ], [ "allergy" ], [ "in" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "allergy", "VBP" ], [ "type", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "allergy", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(0)" }, { "db_id": "allergy_1", "query": "SELECT allergytype , count(*) FROM Allergy_type GROUP BY allergytype", "query_toks": [ "SELECT", "allergytype", ",", "count", "(", "*", ")", "FROM", "Allergy_type", "GROUP", "BY", "allergytype" ], "query_toks_no_value": [ "select", "allergytype", ",", "count", "(", "*", ")", "from", "allergy_type", "group", "by", "allergytype" ], "question": "What are the allergy types and how many allergies correspond to each one?", "question_toks": [ "what", "are", "allergy", "type", "and", "how", "many", "allergy", "correspond", "to", "each", "one", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "allergy", "types", "and", "how", "many", "allergies", "correspond", "to", "each", "one", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "allergy", "type" ], [ "and" ], [ "how" ], [ "many" ], [ "allergy" ], [ "correspond" ], [ "to" ], [ "each" ], [ "one" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "allergy", "JJ" ], [ "type", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "allergy", "JJ" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "one", "CD" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(0)" }, { "db_id": "allergy_1", "query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "allergytype", "FROM", "Allergy_type", "GROUP", "BY", "allergytype", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "allergytype", "from", "allergy_type", "group", "by", "allergytype", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which allergy type has most number of allergies?", "question_toks": [ "which", "allergy", "type", "ha", "most", "number", "of", "allergy", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Which", "allergy", "type", "has", "most", "number", "of", "allergies", "?" ], "question_arg": [ [ "which" ], [ "allergy", "type" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "allergy", "VBP" ], [ "type", "NN" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "allergy_1", "query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "allergytype", "FROM", "Allergy_type", "GROUP", "BY", "allergytype", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "allergytype", "from", "allergy_type", "group", "by", "allergytype", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which allergy type is most common?", "question_toks": [ "which", "allergy", "type", "is", "most", "common", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Which", "allergy", "type", "is", "most", "common", "?" ], "question_arg": [ [ "which" ], [ "allergy", "type" ], [ "is" ], [ "most" ], [ "common" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "allergy", "NN" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "allergy_1", "query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "allergytype", "FROM", "Allergy_type", "GROUP", "BY", "allergytype", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "allergytype", "from", "allergy_type", "group", "by", "allergytype", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Which allergy type has least number of allergies?", "question_toks": [ "which", "allergy", "type", "ha", "least", "number", "of", "allergy", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Which", "allergy", "type", "has", "least", "number", "of", "allergies", "?" ], "question_arg": [ [ "which" ], [ "allergy", "type" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "allergy", "VBP" ], [ "type", "NN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(1) A(3) C(0) T(0)" }, { "db_id": "allergy_1", "query": "SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "allergytype", "FROM", "Allergy_type", "GROUP", "BY", "allergytype", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "allergytype", "from", "allergy_type", "group", "by", "allergytype", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Which allergy type is the least common?", "question_toks": [ "which", "allergy", "type", "is", "least", "common", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Which", "allergy", "type", "is", "the", "least", "common", "?" ], "question_arg": [ [ "which" ], [ "allergy", "type" ], [ "is" ], [ "least" ], [ "common" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "allergy", "NN" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "least", "JJ" ], [ "common", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(1) A(3) C(0) T(0)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student" ], "question": "How many students are there?", "question_toks": [ "how", "many", "student", "are", "there", "?" ], "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": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student" ], "question": "What is the total number of students?", "question_toks": [ "what", "is", "total", "number", "of", "student", "?" ], "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": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "total", "number", "of", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT Fname , Lname FROM Student", "query_toks": [ "SELECT", "Fname", ",", "Lname", "FROM", "Student" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student" ], "question": "Show first name and last name for all students.", "question_toks": [ "show", "first", "name", "and", "last", "name", "for", "all", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "first", "name", "and", "last", "name", "for", "all", "students", "." ], "question_arg": [ [ "show" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "for" ], [ "all" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(2) A(0) C(5) T(2)" }, { "db_id": "allergy_1", "query": "SELECT Fname , Lname FROM Student", "query_toks": [ "SELECT", "Fname", ",", "Lname", "FROM", "Student" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student" ], "question": "What are the full names of all students", "question_toks": [ "what", "are", "full", "name", "of", "all", "student" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "of", "all", "students" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "of" ], [ "all" ], [ "student" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(2) A(0) C(5) T(2)" }, { "db_id": "allergy_1", "query": "SELECT count(DISTINCT advisor) FROM Student", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "advisor", ")", "FROM", "Student" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "advisor", ")", "from", "student" ], "question": "How many different advisors are listed?", "question_toks": [ "how", "many", "different", "advisor", "are", "listed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 11, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "different", "advisors", "are", "listed", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "advisor" ], [ "are" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "advisor", "NNS" ], [ "are", "VBP" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(2)" }, { "db_id": "allergy_1", "query": "SELECT count(DISTINCT advisor) FROM Student", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "advisor", ")", "FROM", "Student" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "advisor", ")", "from", "student" ], "question": "How many advisors are there?", "question_toks": [ "how", "many", "advisor", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 11, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "advisors", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "advisor" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "advisor", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(2)" }, { "db_id": "allergy_1", "query": "SELECT DISTINCT Major FROM Student", "query_toks": [ "SELECT", "DISTINCT", "Major", "FROM", "Student" ], "query_toks_no_value": [ "select", "distinct", "major", "from", "student" ], "question": "Show all majors.", "question_toks": [ "show", "all", "major", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "majors", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "major" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "major", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(9) T(2)" }, { "db_id": "allergy_1", "query": "SELECT DISTINCT Major FROM Student", "query_toks": [ "SELECT", "DISTINCT", "Major", "FROM", "Student" ], "query_toks_no_value": [ "select", "distinct", "major", "from", "student" ], "question": "What are the different majors?", "question_toks": [ "what", "are", "different", "major", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "different", "majors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "major" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "major", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(9) T(2)" }, { "db_id": "allergy_1", "query": "SELECT DISTINCT city_code FROM Student", "query_toks": [ "SELECT", "DISTINCT", "city_code", "FROM", "Student" ], "query_toks_no_value": [ "select", "distinct", "city_code", "from", "student" ], "question": "Show all cities where students live.", "question_toks": [ "show", "all", "city", "where", "student", "live", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "cities", "where", "students", "live", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "city" ], [ "where" ], [ "student" ], [ "live" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "city", "NN" ], [ "where", "WRB" ], [ "student", "NN" ], [ "live", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(11) T(2)" }, { "db_id": "allergy_1", "query": "SELECT DISTINCT city_code FROM Student", "query_toks": [ "SELECT", "DISTINCT", "city_code", "FROM", "Student" ], "query_toks_no_value": [ "select", "distinct", "city_code", "from", "student" ], "question": "What cities do students live in?", "question_toks": [ "what", "city", "do", "student", "live", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "cities", "do", "students", "live", "in", "?" ], "question_arg": [ [ "what" ], [ "city" ], [ "do" ], [ "student" ], [ "live" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "city", "NN" ], [ "do", "VBP" ], [ "student", "NN" ], [ "live", "VB" ], [ "in", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(11) T(2)" }, { "db_id": "allergy_1", "query": "SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'", "query_toks": [ "SELECT", "Fname", ",", "Lname", ",", "Age", "FROM", "Student", "WHERE", "Sex", "=", "'F", "'" ], "query_toks_no_value": [ "select", "fname", ",", "lname", ",", "age", "from", "student", "where", "sex", "=", "value" ], "question": "Show first name, last name, age for all female students. Their sex is F.", "question_toks": [ "show", "first", "name", ",", "last", "name", ",", "age", "for", "all", "female", "student", ".", "their", "sex", "is", "f", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "first", "name", ",", "last", "name", ",", "age", "for", "all", "female", "students", ".", "Their", "sex", "is", "F", "." ], "question_arg": [ [ "show" ], [ "first", "name" ], [ "," ], [ "last", "name" ], [ "," ], [ "age" ], [ "for" ], [ "all" ], [ "female" ], [ "student" ], [ "." ], [ "their" ], [ "sex" ], [ "is" ], [ "f" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "age", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "female", "JJ" ], [ "student", "NN" ], [ ".", "." ], [ "their", "PRP$" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "f", "JJ" ], [ ".", "." ] ], "values": [ "1", "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(6) T(2) A(0) C(5) T(2) A(0) C(7) T(2) Filter(2) A(0) C(8) T(2) V(1)" }, { "db_id": "allergy_1", "query": "SELECT Fname , Lname , Age FROM Student WHERE Sex = 'F'", "query_toks": [ "SELECT", "Fname", ",", "Lname", ",", "Age", "FROM", "Student", "WHERE", "Sex", "=", "'F", "'" ], "query_toks_no_value": [ "select", "fname", ",", "lname", ",", "age", "from", "student", "where", "sex", "=", "value" ], "question": "What are the full names and ages for all female students whose sex is F?", "question_toks": [ "what", "are", "full", "name", "and", "age", "for", "all", "female", "student", "whose", "sex", "is", "f", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"F\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "and", "ages", "for", "all", "female", "students", "whose", "sex", "is", "F", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "and" ], [ "age" ], [ "for" ], [ "all" ], [ "female" ], [ "student" ], [ "whose" ], [ "sex" ], [ "is" ], [ "f" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "female", "JJ" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "f", "VBN" ], [ "?", "." ] ], "values": [ "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(6) T(2) A(0) C(5) T(2) A(0) C(7) T(2) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student WHERE Sex = 'M'", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "Sex", "=", "'M", "'" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "sex", "=", "value" ], "question": "Show student ids for all male students.", "question_toks": [ "show", "student", "id", "for", "all", "male", "student", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "student", "ids", "for", "all", "male", "students", "." ], "question_arg": [ [ "show" ], [ "student" ], [ "id" ], [ "for" ], [ "all" ], [ "male" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "student", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "male", "JJ" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(2) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student WHERE Sex = 'M'", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "Sex", "=", "'M", "'" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "sex", "=", "value" ], "question": "What are the student ids for all male students?", "question_toks": [ "what", "are", "student", "id", "for", "all", "male", "student", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "student", "ids", "for", "all", "male", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "student" ], [ "id" ], [ "for" ], [ "all" ], [ "male" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "student", "JJ" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "male", "JJ" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "M" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(2) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE age = 18", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", "=", "18" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "age", "=", "value" ], "question": "How many students are age 18?", "question_toks": [ "how", "many", "student", "are", "age", "18", "?" ], "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, 8, false ], null ], 18.0, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "are", "age", "18", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "age" ], [ "18" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "age", "NN" ], [ "18", "CD" ], [ "?", "." ] ], "values": [ "18" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE age = 18", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", "=", "18" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "age", "=", "value" ], "question": "How many students are 18 years old?", "question_toks": [ "how", "many", "student", "are", "18", "year", "old", "?" ], "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, 8, false ], null ], 18.0, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "are", "18", "years", "old", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "18" ], [ "year" ], [ "old" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "18", "CD" ], [ "year", "NN" ], [ "old", "JJ" ], [ "?", "." ] ], "values": [ "18" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student WHERE age > 20", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "age", ">", "20" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "age", ">", "value" ], "question": "Show all student ids who are older than 20.", "question_toks": [ "show", "all", "student", "id", "who", "are", "older", "than", "20", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 20.0, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "student", "ids", "who", "are", "older", "than", "20", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "student" ], [ "id" ], [ "who" ], [ "are" ], [ "older" ], [ "than" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "student", "NN" ], [ "id", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(2) Filter(5) A(0) C(7) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student WHERE age > 20", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "age", ">", "20" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "age", ">", "value" ], "question": "What are the student ids for students over 20 years old?", "question_toks": [ "what", "are", "student", "id", "for", "student", "over", "20", "year", "old", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 20.0, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "student", "ids", "for", "students", "over", "20", "years", "old", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "student" ], [ "id" ], [ "for" ], [ "student" ], [ "over" ], [ "20" ], [ "year" ], [ "old" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "student", "JJ" ], [ "id", "NN" ], [ "for", "IN" ], [ "student", "NN" ], [ "over", "IN" ], [ "20", "CD" ], [ "year", "NN" ], [ "old", "JJ" ], [ "?", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(2) Filter(5) A(0) C(7) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT city_code FROM Student WHERE LName = \"Kim\"", "query_toks": [ "SELECT", "city_code", "FROM", "Student", "WHERE", "LName", "=", "``", "Kim", "''" ], "query_toks_no_value": [ "select", "city_code", "from", "student", "where", "lname", "=", "value" ], "question": "Which city does the student whose last name is \"Kim\" live in?", "question_toks": [ "which", "city", "doe", "student", "whose", "last", "name", "is", "'", "kim", "'", "live", "in", "?" ], "sql": { "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": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Kim\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Which", "city", "does", "the", "student", "whose", "last", "name", "is", "``", "Kim", "''", "live", "in", "?" ], "question_arg": [ [ "which" ], [ "city" ], [ "doe" ], [ "student" ], [ "whose" ], [ "last", "name" ], [ "is" ], [ "'" ], [ "kim" ], [ "'" ], [ "live" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "city", "NN" ], [ "doe", "NN" ], [ "student", "NN" ], [ "whose", "WP$" ], [ "last", "JJ" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "kim", "NNS" ], [ "'", "POS" ], [ "live", "NN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Kim" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(2) A(0) C(5) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT city_code FROM Student WHERE LName = \"Kim\"", "query_toks": [ "SELECT", "city_code", "FROM", "Student", "WHERE", "LName", "=", "``", "Kim", "''" ], "query_toks_no_value": [ "select", "city_code", "from", "student", "where", "lname", "=", "value" ], "question": "Give the city that the student whose family name is Kim lives in.", "question_toks": [ "give", "city", "that", "student", "whose", "family", "name", "is", "kim", "life", "in", "." ], "sql": { "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": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Kim\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Give", "the", "city", "that", "the", "student", "whose", "family", "name", "is", "Kim", "lives", "in", "." ], "question_arg": [ [ "give" ], [ "city" ], [ "that" ], [ "student" ], [ "whose" ], [ "family" ], [ "name" ], [ "is" ], [ "kim" ], [ "life" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "city", "NN" ], [ "that", "WDT" ], [ "student", "VBD" ], [ "whose", "WP$" ], [ "family", "NN" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "kim", "JJ" ], [ "life", "NN" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "Kim" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(2) Filter(2) A(0) C(5) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT Advisor FROM Student WHERE StuID = 1004", "query_toks": [ "SELECT", "Advisor", "FROM", "Student", "WHERE", "StuID", "=", "1004" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "where", "stuid", "=", "value" ], "question": "Who is the advisor of student with ID 1004?", "question_toks": [ "who", "is", "advisor", "of", "student", "with", "id", "1004", "?" ], "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, 5, false ], null ], 1004.0, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Who", "is", "the", "advisor", "of", "student", "with", "ID", "1004", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "advisor" ], [ "of" ], [ "student" ], [ "with" ], [ "id" ], [ "1004" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "advisor", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "id", "NN" ], [ "1004", "CD" ], [ "?", "." ] ], "values": [ "1004" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(2) A(0) C(3) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT Advisor FROM Student WHERE StuID = 1004", "query_toks": [ "SELECT", "Advisor", "FROM", "Student", "WHERE", "StuID", "=", "1004" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "where", "stuid", "=", "value" ], "question": "Who advises student 1004?", "question_toks": [ "who", "advises", "student", "1004", "?" ], "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, 5, false ], null ], 1004.0, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Who", "advises", "student", "1004", "?" ], "question_arg": [ [ "who" ], [ "advises" ], [ "student" ], [ "1004" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "advises", "VBZ" ], [ "student", "NN" ], [ "1004", "CD" ], [ "?", "." ] ], "values": [ "1004" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(2) Filter(2) A(0) C(3) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE city_code = \"HKG\" OR city_code = \"CHI\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "city_code", "=", "``", "HKG", "''", "OR", "city_code", "=", "``", "CHI", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "city_code", "=", "value", "or", "city_code", "=", "value" ], "question": "How many students live in HKG or CHI?", "question_toks": [ "how", "many", "student", "live", "in", "hkg", "or", "chi", "?" ], "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 ], "\"HKG\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"CHI\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "live", "in", "HKG", "or", "CHI", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "live" ], [ "in" ], [ "hkg" ], [ "or" ], [ "chi" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "hkg", "NN" ], [ "or", "CC" ], [ "chi", "NN" ], [ "?", "." ] ], "values": [ "CHI", "HKG" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(1) Filter(2) A(0) C(11) T(2) V(1) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE city_code = \"HKG\" OR city_code = \"CHI\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "city_code", "=", "``", "HKG", "''", "OR", "city_code", "=", "``", "CHI", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "city_code", "=", "value", "or", "city_code", "=", "value" ], "question": "Give the number of students living in either HKG or CHI.", "question_toks": [ "give", "number", "of", "student", "living", "in", "either", "hkg", "or", "chi", "." ], "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 ], "\"HKG\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"CHI\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Give", "the", "number", "of", "students", "living", "in", "either", "HKG", "or", "CHI", "." ], "question_arg": [ [ "give" ], [ "number" ], [ "of" ], [ "student" ], [ "living" ], [ "in" ], [ "either" ], [ "hkg" ], [ "or" ], [ "chi" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "either", "CC" ], [ "hkg", "NN" ], [ "or", "CC" ], [ "chi", "NN" ], [ ".", "." ] ], "values": [ "CHI", "HKG" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(1) Filter(2) A(0) C(11) T(2) V(1) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "allergy_1", "query": "SELECT min(age) , avg(age) , max(age) FROM Student", "query_toks": [ "SELECT", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student" ], "query_toks_no_value": [ "select", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student" ], "question": "Show the minimum, average, and maximum age of all students.", "question_toks": [ "show", "minimum", ",", "average", ",", "and", "maximum", "age", "of", "all", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 8, false ], null ] ], [ 5, [ 0, [ 0, 8, false ], null ] ], [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "the", "minimum", ",", "average", ",", "and", "maximum", "age", "of", "all", "students", "." ], "question_arg": [ [ "show" ], [ "minimum" ], [ "," ], [ "average" ], [ "," ], [ "and" ], [ "maximum" ], [ "age" ], [ "of" ], [ "all" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "minimum", "NN" ], [ ",", "," ], [ "average", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(2) C(7) T(2) A(5) C(7) T(2) A(1) C(7) T(2)" }, { "db_id": "allergy_1", "query": "SELECT min(age) , avg(age) , max(age) FROM Student", "query_toks": [ "SELECT", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student" ], "query_toks_no_value": [ "select", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student" ], "question": "What is the minimum, mean, and maximum age across all students?", "question_toks": [ "what", "is", "minimum", ",", "mean", ",", "and", "maximum", "age", "across", "all", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 8, false ], null ] ], [ 5, [ 0, [ 0, 8, false ], null ] ], [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "minimum", ",", "mean", ",", "and", "maximum", "age", "across", "all", "students", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "minimum" ], [ "," ], [ "mean" ], [ "," ], [ "and" ], [ "maximum" ], [ "age" ], [ "across" ], [ "all" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "minimum", "JJ" ], [ ",", "," ], [ "mean", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "age", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(2) C(7) T(2) A(5) C(7) T(2) A(1) C(7) T(2)" }, { "db_id": "allergy_1", "query": "SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student)", "query_toks": [ "SELECT", "LName", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "Student", ")" ], "query_toks_no_value": [ "select", "lname", "from", "student", "where", "age", "=", "(", "select", "min", "(", "age", ")", "from", "student", ")" ], "question": "What is the last name of the youngest student?", "question_toks": [ "what", "is", "last", "name", "of", "youngest", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "last", "name", "of", "the", "youngest", "student", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "last", "name" ], [ "of" ], [ "youngest" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(2) Filter(11) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(2) C(7) T(2)" }, { "db_id": "allergy_1", "query": "SELECT LName FROM Student WHERE age = (SELECT min(age) FROM Student)", "query_toks": [ "SELECT", "LName", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "Student", ")" ], "query_toks_no_value": [ "select", "lname", "from", "student", "where", "age", "=", "(", "select", "min", "(", "age", ")", "from", "student", ")" ], "question": "Provide the last name of the youngest student.", "question_toks": [ "provide", "last", "name", "of", "youngest", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Provide", "the", "last", "name", "of", "the", "youngest", "student", "." ], "question_arg": [ [ "provide" ], [ "last", "name" ], [ "of" ], [ "youngest" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "provide", "IN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(2) Filter(11) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(2) C(7) T(2)" }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student)", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "student", ")" ], "question": "Show the student id of the oldest student.", "question_toks": [ "show", "student", "id", "of", "oldest", "student", "." ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "the", "student", "id", "of", "the", "oldest", "student", "." ], "question_arg": [ [ "show" ], [ "student" ], [ "id" ], [ "of" ], [ "oldest" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "student", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "oldest", "JJS" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(2) Filter(11) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(1) C(7) T(2)" }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student WHERE age = (SELECT max(age) FROM Student)", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "student", ")" ], "question": "What student id corresponds to the oldest student?", "question_toks": [ "what", "student", "id", "corresponds", "to", "oldest", "student", "?" ], "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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "student", "id", "corresponds", "to", "the", "oldest", "student", "?" ], "question_arg": [ [ "what" ], [ "student" ], [ "id" ], [ "corresponds" ], [ "to" ], [ "oldest" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "student", "NN" ], [ "id", "NN" ], [ "corresponds", "VBZ" ], [ "to", "TO" ], [ "oldest", "VB" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(2) Filter(11) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(1) C(7) T(2)" }, { "db_id": "allergy_1", "query": "SELECT major , count(*) FROM Student GROUP BY major", "query_toks": [ "SELECT", "major", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "major" ], "query_toks_no_value": [ "select", "major", ",", "count", "(", "*", ")", "from", "student", "group", "by", "major" ], "question": "Show all majors and corresponding number of students.", "question_toks": [ "show", "all", "major", "and", "corresponding", "number", "of", "student", "." ], "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": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "majors", "and", "corresponding", "number", "of", "students", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "major" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "major", "JJ" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(2) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT major , count(*) FROM Student GROUP BY major", "query_toks": [ "SELECT", "major", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "major" ], "query_toks_no_value": [ "select", "major", ",", "count", "(", "*", ")", "from", "student", "group", "by", "major" ], "question": "How many students are there for each major?", "question_toks": [ "how", "many", "student", "are", "there", "for", "each", "major", "?" ], "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": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "are", "there", "for", "each", "major", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "there" ], [ "for" ], [ "each" ], [ "major" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "each", "DT" ], [ "major", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(2) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "major", "FROM", "Student", "GROUP", "BY", "major", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "major", "from", "student", "group", "by", "major", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which major has most number of students?", "question_toks": [ "which", "major", "ha", "most", "number", "of", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Which", "major", "has", "most", "number", "of", "students", "?" ], "question_arg": [ [ "which" ], [ "major" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "major", "JJ" ], [ "ha", "NN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "major", "FROM", "Student", "GROUP", "BY", "major", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "major", "from", "student", "group", "by", "major", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the largest major?", "question_toks": [ "what", "is", "largest", "major", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "largest", "major", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "largest" ], [ "major" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "largest", "JJS" ], [ "major", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT age , count(*) FROM Student GROUP BY age", "query_toks": [ "SELECT", "age", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "age" ], "query_toks_no_value": [ "select", "age", ",", "count", "(", "*", ")", "from", "student", "group", "by", "age" ], "question": "Show all ages and corresponding number of students.", "question_toks": [ "show", "all", "age", "and", "corresponding", "number", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "ages", "and", "corresponding", "number", "of", "students", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "age" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "age", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(2) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT age , count(*) FROM Student GROUP BY age", "query_toks": [ "SELECT", "age", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "age" ], "query_toks_no_value": [ "select", "age", ",", "count", "(", "*", ")", "from", "student", "group", "by", "age" ], "question": "How old is each student and how many students are each age?", "question_toks": [ "how", "old", "is", "each", "student", "and", "how", "many", "student", "are", "each", "age", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "old", "is", "each", "student", "and", "how", "many", "students", "are", "each", "age", "?" ], "question_arg": [ [ "how" ], [ "old" ], [ "is" ], [ "each" ], [ "student" ], [ "and" ], [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "each" ], [ "age" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "old", "JJ" ], [ "is", "VBZ" ], [ "each", "DT" ], [ "student", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "each", "DT" ], [ "age", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(2) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT avg(age) , sex FROM Student GROUP BY sex", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "sex", "FROM", "Student", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex" ], "question": "Show the average age for male and female students.", "question_toks": [ "show", "average", "age", "for", "male", "and", "female", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "the", "average", "age", "for", "male", "and", "female", "students", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "age" ], [ "for" ], [ "male" ], [ "and" ], [ "female" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "male", "NN" ], [ "and", "CC" ], [ "female", "JJ" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "F", "M" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(7) T(2) A(0) C(8) T(2)" }, { "db_id": "allergy_1", "query": "SELECT avg(age) , sex FROM Student GROUP BY sex", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "sex", "FROM", "Student", "GROUP", "BY", "sex" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex" ], "question": "What are the average ages for male and female students?", "question_toks": [ "what", "are", "average", "age", "for", "male", "and", "female", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "average", "ages", "for", "male", "and", "female", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "age" ], [ "for" ], [ "male" ], [ "and" ], [ "female" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "male", "NN" ], [ "and", "CC" ], [ "female", "JJ" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "M", "F" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(7) T(2) A(0) C(8) T(2)" }, { "db_id": "allergy_1", "query": "SELECT city_code , count(*) FROM Student GROUP BY city_code", "query_toks": [ "SELECT", "city_code", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "city_code" ], "query_toks_no_value": [ "select", "city_code", ",", "count", "(", "*", ")", "from", "student", "group", "by", "city_code" ], "question": "Show all cities and corresponding number of students.", "question_toks": [ "show", "all", "city", "and", "corresponding", "number", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "cities", "and", "corresponding", "number", "of", "students", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "city" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "city", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(2) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT city_code , count(*) FROM Student GROUP BY city_code", "query_toks": [ "SELECT", "city_code", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "city_code" ], "query_toks_no_value": [ "select", "city_code", ",", "count", "(", "*", ")", "from", "student", "group", "by", "city_code" ], "question": "How many students live in each city?", "question_toks": [ "how", "many", "student", "live", "in", "each", "city", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "live", "in", "each", "city", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "live" ], [ "in" ], [ "each" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(11) T(2) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT advisor , count(*) FROM Student GROUP BY advisor", "query_toks": [ "SELECT", "advisor", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "advisor" ], "query_toks_no_value": [ "select", "advisor", ",", "count", "(", "*", ")", "from", "student", "group", "by", "advisor" ], "question": "Show all advisors and corresponding number of students.", "question_toks": [ "show", "all", "advisor", "and", "corresponding", "number", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "advisors", "and", "corresponding", "number", "of", "students", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "advisor" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "advisor", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(2) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT advisor , count(*) FROM Student GROUP BY advisor", "query_toks": [ "SELECT", "advisor", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "advisor" ], "query_toks_no_value": [ "select", "advisor", ",", "count", "(", "*", ")", "from", "student", "group", "by", "advisor" ], "question": "How many students does each advisor have?", "question_toks": [ "how", "many", "student", "doe", "each", "advisor", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "does", "each", "advisor", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "doe" ], [ "each" ], [ "advisor" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "doe", "VBZ" ], [ "each", "DT" ], [ "advisor", "NN" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(2) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "advisor", "FROM", "Student", "GROUP", "BY", "advisor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "group", "by", "advisor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which advisor has most number of students?", "question_toks": [ "which", "advisor", "ha", "most", "number", "of", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Which", "advisor", "has", "most", "number", "of", "students", "?" ], "question_arg": [ [ "which" ], [ "advisor" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "advisor", "VBP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "advisor", "FROM", "Student", "GROUP", "BY", "advisor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "advisor", "from", "student", "group", "by", "advisor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Give the advisor with the most students.", "question_toks": [ "give", "advisor", "with", "most", "student", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Give", "the", "advisor", "with", "the", "most", "students", "." ], "question_arg": [ [ "give" ], [ "advisor" ], [ "with" ], [ "most" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "advisor", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "student", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Has_allergy WHERE Allergy = \"Cat\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "has_allergy", "where", "allergy", "=", "value" ], "question": "How many students have cat allergies?", "question_toks": [ "how", "many", "student", "have", "cat", "allergy", "?" ], "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, 4, false ], null ], "\"Cat\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "have", "cat", "allergies", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "have" ], [ "cat" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "have", "VBP" ], [ "cat", "VBN" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [ "Cat" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Has_allergy WHERE Allergy = \"Cat\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "has_allergy", "where", "allergy", "=", "value" ], "question": "How many students are affected by cat allergies?", "question_toks": [ "how", "many", "student", "are", "affected", "by", "cat", "allergy", "?" ], "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, 4, false ], null ], "\"Cat\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "are", "affected", "by", "cat", "allergies", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "affected" ], [ "by" ], [ "cat" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "affected", "VBN" ], [ "by", "IN" ], [ "cat", "NN" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [ "Cat" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2", "query_toks": [ "SELECT", "StuID", "FROM", "Has_allergy", "GROUP", "BY", "StuID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "stuid", "from", "has_allergy", "group", "by", "stuid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show all student IDs who have at least two allergies.", "question_toks": [ "show", "all", "student", "id", "who", "have", "at", "least", "two", "allergy", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "student", "IDs", "who", "have", "at", "least", "two", "allergies", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "student" ], [ "id" ], [ "who" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "allergy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "student", "NN" ], [ "id", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "allergy", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*) >= 2", "query_toks": [ "SELECT", "StuID", "FROM", "Has_allergy", "GROUP", "BY", "StuID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "stuid", "from", "has_allergy", "group", "by", "stuid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the students ids of students who have more than one allergy?", "question_toks": [ "what", "are", "student", "id", "of", "student", "who", "have", "more", "than", "one", "allergy", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "students", "ids", "of", "students", "who", "have", "more", "than", "one", "allergy", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "student" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "student", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [ "1", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(7) A(3) C(0) T(1) V(1)" }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "has_allergy" ], "question": "What are the student ids of students who don't have any allergies?", "question_toks": [ "what", "are", "student", "id", "of", "student", "who", "do", "n't", "have", "any", "allergy", "?" ], "sql": { "except": { "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": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "student", "ids", "of", "students", "who", "do", "n't", "have", "any", "allergies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "student" ], [ "id" ], [ "of" ], [ "student" ], [ "who" ], [ "do" ], [ "n't" ], [ "have" ], [ "any" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "student", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(3) T(2) Root(5) Sel(0) N(0) A(0) C(3) T(1)" }, { "db_id": "allergy_1", "query": "SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy", "query_toks": [ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy" ], "query_toks_no_value": [ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "has_allergy" ], "question": "Which students are unaffected by allergies?", "question_toks": [ "which", "student", "are", "unaffected", "by", "allergy", "?" ], "sql": { "except": { "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": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Which", "students", "are", "unaffected", "by", "allergies", "?" ], "question_arg": [ [ "which" ], [ "student" ], [ "are" ], [ "unaffected" ], [ "by" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "student", "NN" ], [ "are", "VBP" ], [ "unaffected", "VBN" ], [ "by", "IN" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(3) T(2) Root(5) Sel(0) N(0) A(0) C(3) T(1)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = \"F\" AND T1.allergy = \"Milk\" OR T1.allergy = \"Eggs\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.sex", "=", "``", "F", "''", "AND", "T1.allergy", "=", "``", "Milk", "''", "OR", "T1.allergy", "=", "``", "Eggs", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value", "and", "t1", ".", "allergy", "=", "value", "or", "t1", ".", "allergy", "=", "value" ], "question": "How many female students have milk or egg allergies?", "question_toks": [ "how", "many", "female", "student", "have", "milk", "or", "egg", "allergy", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Eggs\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "female", "students", "have", "milk", "or", "egg", "allergies", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "female" ], [ "student" ], [ "have" ], [ "milk" ], [ "or" ], [ "egg" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "female", "JJ" ], [ "student", "NN" ], [ "have", "VBP" ], [ "milk", "NN" ], [ "or", "CC" ], [ "egg", "NN" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [ "Eggs", "Milk", "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(2) A(0) C(8) T(2) V(2) Filter(1) Filter(2) A(0) C(4) T(1) V(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = \"F\" AND T1.allergy = \"Milk\" OR T1.allergy = \"Eggs\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.sex", "=", "``", "F", "''", "AND", "T1.allergy", "=", "``", "Milk", "''", "OR", "T1.allergy", "=", "``", "Eggs", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value", "and", "t1", ".", "allergy", "=", "value", "or", "t1", ".", "allergy", "=", "value" ], "question": "How many students who are female are allergic to milk or eggs?", "question_toks": [ "how", "many", "student", "who", "are", "female", "are", "allergic", "to", "milk", "or", "egg", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Eggs\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "who", "are", "female", "are", "allergic", "to", "milk", "or", "eggs", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "who" ], [ "are" ], [ "female" ], [ "are" ], [ "allergic" ], [ "to" ], [ "milk" ], [ "or" ], [ "egg" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "female", "JJ" ], [ "are", "VBP" ], [ "allergic", "JJ" ], [ "to", "TO" ], [ "milk", "VB" ], [ "or", "CC" ], [ "egg", "VB" ], [ "?", "." ] ], "values": [ "Eggs", "Milk", "F" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(0) Filter(2) A(0) C(8) T(2) V(2) Filter(1) Filter(2) A(0) C(4) T(1) V(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = \"food\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_type", "AS", "T2", "ON", "T1.allergy", "=", "T2.allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value" ], "question": "How many students have a food allergy?", "question_toks": [ "how", "many", "student", "have", "a", "food", "allergy", "?" ], "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 ], "\"food\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "have", "a", "food", "allergy", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "have" ], [ "a" ], [ "food" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "food", "NN" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [ "food" ], "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": "allergy_1", "query": "SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = \"food\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_type", "AS", "T2", "ON", "T1.allergy", "=", "T2.allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value" ], "question": "How many students are affected by food related allergies?", "question_toks": [ "how", "many", "student", "are", "affected", "by", "food", "related", "allergy", "?" ], "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 ], "\"food\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "are", "affected", "by", "food", "related", "allergies", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "affected" ], [ "by" ], [ "food" ], [ "related" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "affected", "VBN" ], [ "by", "IN" ], [ "food", "NN" ], [ "related", "VBN" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [ "food" ], "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": "allergy_1", "query": "SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Allergy", "FROM", "Has_allergy", "GROUP", "BY", "Allergy", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "allergy", "from", "has_allergy", "group", "by", "allergy", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which allergy has most number of students affected?", "question_toks": [ "which", "allergy", "ha", "most", "number", "of", "student", "affected", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Which", "allergy", "has", "most", "number", "of", "students", "affected", "?" ], "question_arg": [ [ "which" ], [ "allergy" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "student" ], [ "affected" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "allergy", "VBP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "affected", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "allergy_1", "query": "SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Allergy", "FROM", "Has_allergy", "GROUP", "BY", "Allergy", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "allergy", "from", "has_allergy", "group", "by", "allergy", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which allergy is the most common?", "question_toks": [ "which", "allergy", "is", "most", "common", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Which", "allergy", "is", "the", "most", "common", "?" ], "question_arg": [ [ "which" ], [ "allergy" ], [ "is" ], [ "most" ], [ "common" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "allergy", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "allergy_1", "query": "SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy", "query_toks": [ "SELECT", "Allergy", ",", "count", "(", "*", ")", "FROM", "Has_allergy", "GROUP", "BY", "Allergy" ], "query_toks_no_value": [ "select", "allergy", ",", "count", "(", "*", ")", "from", "has_allergy", "group", "by", "allergy" ], "question": "Show all allergies with number of students affected.", "question_toks": [ "show", "all", "allergy", "with", "number", "of", "student", "affected", "." ], "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": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "allergies", "with", "number", "of", "students", "affected", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "allergy" ], [ "with" ], [ "number" ], [ "of" ], [ "student" ], [ "affected" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "allergy", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "affected", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(1) A(3) C(0) T(1)" }, { "db_id": "allergy_1", "query": "SELECT Allergy , count(*) FROM Has_allergy GROUP BY Allergy", "query_toks": [ "SELECT", "Allergy", ",", "count", "(", "*", ")", "FROM", "Has_allergy", "GROUP", "BY", "Allergy" ], "query_toks_no_value": [ "select", "allergy", ",", "count", "(", "*", ")", "from", "has_allergy", "group", "by", "allergy" ], "question": "How many students have each different allergy?", "question_toks": [ "how", "many", "student", "have", "each", "different", "allergy", "?" ], "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": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "have", "each", "different", "allergy", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "have" ], [ "each" ], [ "different" ], [ "allergy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "have", "VBP" ], [ "each", "DT" ], [ "different", "JJ" ], [ "allergy", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(1) A(3) C(0) T(1)" }, { "db_id": "allergy_1", "query": "SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype", "query_toks": [ "SELECT", "T2.allergytype", ",", "count", "(", "*", ")", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_type", "AS", "T2", "ON", "T1.allergy", "=", "T2.allergy", "GROUP", "BY", "T2.allergytype" ], "query_toks_no_value": [ "select", "t2", ".", "allergytype", ",", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "group", "by", "t2", ".", "allergytype" ], "question": "Show all allergy type with number of students affected.", "question_toks": [ "show", "all", "allergy", "type", "with", "number", "of", "student", "affected", "." ], "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": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Show", "all", "allergy", "type", "with", "number", "of", "students", "affected", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "allergy", "type" ], [ "with" ], [ "number" ], [ "of" ], [ "student" ], [ "affected" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "allergy", "JJ" ], [ "type", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "affected", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(1)" }, { "db_id": "allergy_1", "query": "SELECT T2.allergytype , count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype", "query_toks": [ "SELECT", "T2.allergytype", ",", "count", "(", "*", ")", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_type", "AS", "T2", "ON", "T1.allergy", "=", "T2.allergy", "GROUP", "BY", "T2.allergytype" ], "query_toks_no_value": [ "select", "t2", ".", "allergytype", ",", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "group", "by", "t2", ".", "allergytype" ], "question": "How many students are affected by each allergy type?", "question_toks": [ "how", "many", "student", "are", "affected", "by", "each", "allergy", "type", "?" ], "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": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "are", "affected", "by", "each", "allergy", "type", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "affected" ], [ "by" ], [ "each" ], [ "allergy", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "affected", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "allergy", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(1)" }, { "db_id": "allergy_1", "query": "SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")", "query_toks": [ "SELECT", "lname", ",", "age", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "INTERSECT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")" ], "query_toks_no_value": [ "select", "lname", ",", "age", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "intersect", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ], "question": "Find the last name and age of the student who has allergy to both milk and cat.", "question_toks": [ "find", "last", "name", "and", "age", "of", "student", "who", "ha", "allergy", "to", "both", "milk", "and", "cat", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cat\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Find", "the", "last", "name", "and", "age", "of", "the", "student", "who", "has", "allergy", "to", "both", "milk", "and", "cat", "." ], "question_arg": [ [ "find" ], [ "last", "name" ], [ "and" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "ha", "allergy" ], [ "to" ], [ "both" ], [ "milk" ], [ "and" ], [ "cat" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "allergy", "NN" ], [ "to", "TO" ], [ "both", "DT" ], [ "milk", "NN" ], [ "and", "CC" ], [ "cat", "NN" ], [ ".", "." ] ], "values": [ "Milk", "Cat" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(2) A(0) C(7) T(2) Filter(18) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "allergy_1", "query": "SELECT lname , age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")", "query_toks": [ "SELECT", "lname", ",", "age", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "INTERSECT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")" ], "query_toks_no_value": [ "select", "lname", ",", "age", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "intersect", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ], "question": "What are the last names and ages of the students who are allergic to milk and cat?", "question_toks": [ "what", "are", "last", "name", "and", "age", "of", "student", "who", "are", "allergic", "to", "milk", "and", "cat", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cat\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "and", "ages", "of", "the", "students", "who", "are", "allergic", "to", "milk", "and", "cat", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "and" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "allergic" ], [ "to" ], [ "milk" ], [ "and" ], [ "cat" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "allergic", "JJ" ], [ "to", "TO" ], [ "milk", "VB" ], [ "and", "CC" ], [ "cat", "VB" ], [ "?", "." ] ], "values": [ "Milk", "Cat" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(2) A(0) C(7) T(2) Filter(18) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "allergy_1", "query": "SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = \"Lisa\" ORDER BY T1.Allergy", "query_toks": [ "SELECT", "T1.Allergy", ",", "T1.AllergyType", "FROM", "Allergy_type", "AS", "T1", "JOIN", "Has_allergy", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "JOIN", "Student", "AS", "T3", "ON", "T3.StuID", "=", "T2.StuID", "WHERE", "T3.Fname", "=", "``", "Lisa", "''", "ORDER", "BY", "T1.Allergy" ], "query_toks_no_value": [ "select", "t1", ".", "allergy", ",", "t1", ".", "allergytype", "from", "allergy_type", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "join", "student", "as", "t3", "on", "t3", ".", "stuid", "=", "t2", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "order", "by", "t1", ".", "allergy" ], "question": "What are the allergies and their types that the student with first name Lisa has? And order the result by name of allergies.", "question_toks": [ "what", "are", "allergy", "and", "their", "type", "that", "student", "with", "first", "name", "lisa", "ha", "?", "and", "order", "result", "by", "name", "of", "allergy", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 1, false ], null ] ] ], "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, 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, 7, false ], null ], "\"Lisa\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "allergies", "and", "their", "types", "that", "the", "student", "with", "first", "name", "Lisa", "has", "?", "And", "order", "the", "result", "by", "name", "of", "allergies", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "allergy" ], [ "and" ], [ "their" ], [ "type" ], [ "that" ], [ "student" ], [ "with" ], [ "first", "name" ], [ "lisa" ], [ "ha" ], [ "?" ], [ "and" ], [ "order" ], [ "result" ], [ "by" ], [ "name" ], [ "of" ], [ "allergy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "allergy", "JJ" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "type", "NN" ], [ "that", "IN" ], [ "student", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "lisa", "NN" ], [ "ha", "NN" ], [ "?", "." ], [ "and", "CC" ], [ "order", "NN" ], [ "result", "NN" ], [ "by", "IN" ], [ "name", "NN" ], [ "of", "IN" ], [ "allergy", "NN" ], [ ".", "." ] ], "values": [ "1", "Lisa" ], "rule_label": "Root1(3) Root(1) 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(4) T(1) Filter(2) A(0) C(6) T(2) V(1) Order(1) A(0) C(1) T(0)" }, { "db_id": "allergy_1", "query": "SELECT T1.Allergy , T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = \"Lisa\" ORDER BY T1.Allergy", "query_toks": [ "SELECT", "T1.Allergy", ",", "T1.AllergyType", "FROM", "Allergy_type", "AS", "T1", "JOIN", "Has_allergy", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "JOIN", "Student", "AS", "T3", "ON", "T3.StuID", "=", "T2.StuID", "WHERE", "T3.Fname", "=", "``", "Lisa", "''", "ORDER", "BY", "T1.Allergy" ], "query_toks_no_value": [ "select", "t1", ".", "allergy", ",", "t1", ".", "allergytype", "from", "allergy_type", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "join", "student", "as", "t3", "on", "t3", ".", "stuid", "=", "t2", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "order", "by", "t1", ".", "allergy" ], "question": "What are the allergies the girl named Lisa has? And what are the types of them? Order the result by allergy names.", "question_toks": [ "what", "are", "allergy", "girl", "named", "lisa", "ha", "?", "and", "what", "are", "type", "of", "them", "?", "order", "result", "by", "allergy", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 1, false ], null ] ] ], "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, 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, 7, false ], null ], "\"Lisa\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "allergies", "the", "girl", "named", "Lisa", "has", "?", "And", "what", "are", "the", "types", "of", "them", "?", "Order", "the", "result", "by", "allergy", "names", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "allergy" ], [ "girl" ], [ "named" ], [ "lisa" ], [ "ha" ], [ "?" ], [ "and" ], [ "what" ], [ "are" ], [ "type" ], [ "of" ], [ "them" ], [ "?" ], [ "order" ], [ "result" ], [ "by" ], [ "allergy", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "allergy", "JJ" ], [ "girl", "NN" ], [ "named", "VBN" ], [ "lisa", "JJ" ], [ "ha", "NN" ], [ "?", "." ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "NN" ], [ "of", "IN" ], [ "them", "PRP" ], [ "?", "." ], [ "order", "NN" ], [ "result", "NN" ], [ "by", "IN" ], [ "allergy", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Lisa", "F" ], "rule_label": "Root1(3) Root(1) 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(4) T(1) Filter(2) A(0) C(6) T(2) V(0) Order(1) A(0) C(1) T(0)" }, { "db_id": "allergy_1", "query": "SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")", "query_toks": [ "SELECT", "fname", ",", "sex", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "sex", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "except", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ], "question": "Find the first name and gender of the student who has allergy to milk but not cat.", "question_toks": [ "find", "first", "name", "and", "gender", "of", "student", "who", "ha", "allergy", "to", "milk", "but", "not", "cat", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "except": { "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, 4, false ], null ], "\"Cat\"", 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, 4, false ], null ], "\"Milk\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "gender", "of", "the", "student", "who", "has", "allergy", "to", "milk", "but", "not", "cat", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "student" ], [ "who" ], [ "ha", "allergy" ], [ "to" ], [ "milk" ], [ "but" ], [ "not" ], [ "cat" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "allergy", "NN" ], [ "to", "TO" ], [ "milk", "VB" ], [ "but", "CC" ], [ "not", "RB" ], [ "cat", "NNS" ], [ ".", "." ] ], "values": [ "1", "Cat", "Milk" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) A(0) C(8) T(2) Filter(18) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(4) T(1) V(2)" }, { "db_id": "allergy_1", "query": "SELECT fname , sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")", "query_toks": [ "SELECT", "fname", ",", "sex", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "sex", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "except", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ], "question": "What are the first name and gender of the students who have allergy to milk but can put up with cats?", "question_toks": [ "what", "are", "first", "name", "and", "gender", "of", "student", "who", "have", "allergy", "to", "milk", "but", "can", "put", "up", "with", "cat", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, false ], null ], { "except": { "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, 4, false ], null ], "\"Cat\"", 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, 4, false ], null ], "\"Milk\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "first", "name", "and", "gender", "of", "the", "students", "who", "have", "allergy", "to", "milk", "but", "can", "put", "up", "with", "cats", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "allergy" ], [ "to" ], [ "milk" ], [ "but" ], [ "can" ], [ "put" ], [ "up" ], [ "with" ], [ "cat" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "allergy", "VBN" ], [ "to", "TO" ], [ "milk", "VB" ], [ "but", "CC" ], [ "can", "MD" ], [ "put", "VB" ], [ "up", "RP" ], [ "with", "IN" ], [ "cat", "NN" ], [ "?", "." ] ], "values": [ "Milk", "Cat", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) A(0) C(8) T(2) Filter(18) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "allergy_1", "query": "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"animal\")", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "INTERSECT", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "animal", "''", ")" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "intersect", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ], "question": "Find the average age of the students who have allergies with food and animal types.", "question_toks": [ "find", "average", "age", "of", "student", "who", "have", "allergy", "with", "food", "and", "animal", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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": { "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"animal\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Find", "the", "average", "age", "of", "the", "students", "who", "have", "allergies", "with", "food", "and", "animal", "types", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "age" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "allergy" ], [ "with" ], [ "food" ], [ "and" ], [ "animal" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "allergy", "VBN" ], [ "with", "IN" ], [ "food", "NN" ], [ "and", "CC" ], [ "animal", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "food", "animal" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(7) T(2) Filter(18) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "allergy_1", "query": "SELECT avg(age) FROM Student WHERE StuID IN ( SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"animal\")", "query_toks": [ "SELECT", "avg", "(", "age", ")", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "INTERSECT", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "animal", "''", ")" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "intersect", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ], "question": "How old are the students with allergies to food and animal types on average?", "question_toks": [ "how", "old", "are", "student", "with", "allergy", "to", "food", "and", "animal", "type", "on", "average", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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": { "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"animal\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "old", "are", "the", "students", "with", "allergies", "to", "food", "and", "animal", "types", "on", "average", "?" ], "question_arg": [ [ "how" ], [ "old" ], [ "are" ], [ "student" ], [ "with" ], [ "allergy" ], [ "to" ], [ "food" ], [ "and" ], [ "animal" ], [ "type" ], [ "on" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "old", "JJ" ], [ "are", "VBP" ], [ "student", "NN" ], [ "with", "IN" ], [ "allergy", "NN" ], [ "to", "TO" ], [ "food", "NN" ], [ "and", "CC" ], [ "animal", "NN" ], [ "type", "NN" ], [ "on", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [ "food", "animal" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(7) T(2) Filter(18) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "allergy_1", "query": "SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ], "question": "List the first and last name of the students who do not have any food type allergy.", "question_toks": [ "list", "first", "and", "last", "name", "of", "student", "who", "do", "not", "have", "any", "food", "type", "allergy", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 5, 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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "List", "the", "first", "and", "last", "name", "of", "the", "students", "who", "do", "not", "have", "any", "food", "type", "allergy", "." ], "question_arg": [ [ "list" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "student" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "food" ], [ "allergy", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "food", "NN" ], [ "type", "NN" ], [ "allergy", "NN" ], [ ".", "." ] ], "values": [ "food", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) A(0) C(5) T(2) Filter(19) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "allergy_1", "query": "SELECT fname , lname FROM Student WHERE StuID NOT IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", "query_toks": [ "SELECT", "fname", ",", "lname", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "lname", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ], "question": "What is the full name of each student who is not allergic to any type of food.", "question_toks": [ "what", "is", "full", "name", "of", "each", "student", "who", "is", "not", "allergic", "to", "any", "type", "of", "food", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 5, 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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "full", "name", "of", "each", "student", "who", "is", "not", "allergic", "to", "any", "type", "of", "food", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "full" ], [ "name" ], [ "of" ], [ "each" ], [ "student" ], [ "who" ], [ "is" ], [ "not" ], [ "allergic" ], [ "to" ], [ "any" ], [ "type" ], [ "of" ], [ "food" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "student", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "allergic", "JJ" ], [ "to", "TO" ], [ "any", "DT" ], [ "type", "NN" ], [ "of", "IN" ], [ "food", "NN" ], [ ".", "." ] ], "values": [ "food" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) A(0) C(5) T(2) Filter(19) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE sex = \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "sex", "=", "``", "M", "''", "AND", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ], "question": "Find the number of male (sex is 'M') students who have some food type allery.", "question_toks": [ "find", "number", "of", "male", "(", "sex", "is", "'m", "'", ")", "student", "who", "have", "some", "food", "type", "allery", "." ], "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, 9, false ], null ], "\"M\"", null ], "and", [ false, 8, [ 0, [ 0, 5, 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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Find", "the", "number", "of", "male", "(", "sex", "is", "'M", "'", ")", "students", "who", "have", "some", "food", "type", "allery", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "male" ], [ "(" ], [ "sex" ], [ "is" ], [ "'m" ], [ "'" ], [ ")" ], [ "student" ], [ "who" ], [ "have" ], [ "some" ], [ "food" ], [ "type" ], [ "allery" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "male", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "'m", "VBP" ], [ "'", "''" ], [ ")", ")" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "some", "DT" ], [ "food", "NN" ], [ "type", "NN" ], [ "allery", "NN" ], [ ".", "." ] ], "values": [ "M", "food" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(2) A(0) C(8) T(2) V(0) Filter(18) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE sex = \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "sex", "=", "``", "M", "''", "AND", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")" ], "question": "How many male students (sex is 'M') are allergic to any type of food?", "question_toks": [ "how", "many", "male", "student", "(", "sex", "is", "'m", "'", ")", "are", "allergic", "to", "any", "type", "of", "food", "?" ], "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, 9, false ], null ], "\"M\"", null ], "and", [ false, 8, [ 0, [ 0, 5, 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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "male", "students", "(", "sex", "is", "'M", "'", ")", "are", "allergic", "to", "any", "type", "of", "food", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "male" ], [ "student" ], [ "(" ], [ "sex" ], [ "is" ], [ "'m" ], [ "'" ], [ ")" ], [ "are" ], [ "allergic" ], [ "to" ], [ "any" ], [ "type" ], [ "of" ], [ "food" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "male", "JJ" ], [ "student", "NN" ], [ "(", "(" ], [ "sex", "NN" ], [ "is", "VBZ" ], [ "'m", "VBP" ], [ "'", "''" ], [ ")", ")" ], [ "are", "VBP" ], [ "allergic", "JJ" ], [ "to", "TO" ], [ "any", "DT" ], [ "type", "NN" ], [ "of", "IN" ], [ "food", "NN" ], [ "?", "." ] ], "values": [ "M", "food" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(2) A(0) C(8) T(2) V(0) Filter(18) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "allergy_1", "query": "SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = \"Milk\" OR T2.Allergy = \"Cat\"", "query_toks": [ "SELECT", "DISTINCT", "T1.fname", ",", "T1.city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.Allergy", "=", "``", "Milk", "''", "OR", "T2.Allergy", "=", "``", "Cat", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value" ], "question": "Find the different first names and cities of the students who have allergy to milk or cat.", "question_toks": [ "find", "different", "first", "name", "and", "city", "of", "student", "who", "have", "allergy", "to", "milk", "or", "cat", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cat\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Find", "the", "different", "first", "names", "and", "cities", "of", "the", "students", "who", "have", "allergy", "to", "milk", "or", "cat", "." ], "question_arg": [ [ "find" ], [ "different" ], [ "first", "name" ], [ "and" ], [ "city" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "allergy" ], [ "to" ], [ "milk" ], [ "or" ], [ "cat" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "different", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "allergy", "VBN" ], [ "to", "TO" ], [ "milk", "VB" ], [ "or", "CC" ], [ "cat", "VB" ], [ ".", "." ] ], "values": [ "Milk", "1", "Cat" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(6) T(2) A(0) C(11) T(2) Filter(1) Filter(2) A(0) C(4) T(1) V(0) Filter(2) A(0) C(4) T(1) V(2)" }, { "db_id": "allergy_1", "query": "SELECT DISTINCT T1.fname , T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = \"Milk\" OR T2.Allergy = \"Cat\"", "query_toks": [ "SELECT", "DISTINCT", "T1.fname", ",", "T1.city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.Allergy", "=", "``", "Milk", "''", "OR", "T2.Allergy", "=", "``", "Cat", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value" ], "question": "What are the distinct first names and cities of the students who have allergy either to milk or to cat?", "question_toks": [ "what", "are", "distinct", "first", "name", "and", "city", "of", "student", "who", "have", "allergy", "either", "to", "milk", "or", "to", "cat", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Milk\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Cat\"", null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "distinct", "first", "names", "and", "cities", "of", "the", "students", "who", "have", "allergy", "either", "to", "milk", "or", "to", "cat", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "first", "name" ], [ "and" ], [ "city" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "allergy" ], [ "either" ], [ "to" ], [ "milk" ], [ "or" ], [ "to" ], [ "cat" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "city", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "allergy", "VBN" ], [ "either", "DT" ], [ "to", "TO" ], [ "milk", "NN" ], [ "or", "CC" ], [ "to", "TO" ], [ "cat", "VB" ], [ "?", "." ] ], "values": [ "Milk", "Cat", "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(6) T(2) A(0) C(11) T(2) Filter(1) Filter(2) A(0) C(4) T(1) V(0) Filter(2) A(0) C(4) T(1) V(1)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" OR T2.allergytype = \"animal\")", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", ">", "18", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "OR", "T2.allergytype", "=", "``", "animal", "''", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "age", ">", "value", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "or", "t2", ".", "allergytype", "=", "value", ")" ], "question": "Find the number of students who are older than 18 and do not have allergy to either food or animal.", "question_toks": [ "find", "number", "of", "student", "who", "are", "older", "than", "18", "and", "do", "not", "have", "allergy", "to", "either", "food", "or", "animal", "." ], "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, 8, false ], null ], 18.0, null ], "and", [ true, 8, [ 0, [ 0, 5, 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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ], "or", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"animal\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Find", "the", "number", "of", "students", "who", "are", "older", "than", "18", "and", "do", "not", "have", "allergy", "to", "either", "food", "or", "animal", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "older" ], [ "than" ], [ "18" ], [ "and" ], [ "do" ], [ "not" ], [ "have" ], [ "allergy" ], [ "to" ], [ "either" ], [ "food" ], [ "or" ], [ "animal" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "18", "CD" ], [ "and", "CC" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "allergy", "VBN" ], [ "to", "TO" ], [ "either", "DT" ], [ "food", "NN" ], [ "or", "CC" ], [ "animal", "NN" ], [ ".", "." ] ], "values": [ "food", "18", "animal" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(5) A(0) C(7) T(2) V(1) Filter(19) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(1) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(2) T(0) V(2)" }, { "db_id": "allergy_1", "query": "SELECT count(*) FROM Student WHERE age > 18 AND StuID NOT IN ( SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" OR T2.allergytype = \"animal\")", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", ">", "18", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "OR", "T2.allergytype", "=", "``", "animal", "''", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "student", "where", "age", ">", "value", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "or", "t2", ".", "allergytype", "=", "value", ")" ], "question": "How many students are over 18 and do not have allergy to food type or animal type?", "question_toks": [ "how", "many", "student", "are", "over", "18", "and", "do", "not", "have", "allergy", "to", "food", "type", "or", "animal", "type", "?" ], "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, 8, false ], null ], 18.0, null ], "and", [ true, 8, [ 0, [ 0, 5, 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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"food\"", null ], "or", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"animal\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "How", "many", "students", "are", "over", "18", "and", "do", "not", "have", "allergy", "to", "food", "type", "or", "animal", "type", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "over" ], [ "18" ], [ "and" ], [ "do" ], [ "not" ], [ "have" ], [ "allergy" ], [ "to" ], [ "food" ], [ "type" ], [ "or" ], [ "animal" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "over", "IN" ], [ "18", "CD" ], [ "and", "CC" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "allergy", "NN" ], [ "to", "TO" ], [ "food", "NN" ], [ "type", "NN" ], [ "or", "CC" ], [ "animal", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [ "food", "18", "animal" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(0) Filter(5) A(0) C(7) T(2) V(1) Filter(19) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(1) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(2) T(0) V(2)" }, { "db_id": "allergy_1", "query": "SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Soy\")", "query_toks": [ "SELECT", "fname", ",", "major", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Soy", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "major", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ], "question": "Find the first name and major of the students who are not allegry to soy.", "question_toks": [ "find", "first", "name", "and", "major", "of", "student", "who", "are", "not", "allegry", "to", "soy", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 5, false ], null ], { "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, 4, false ], null ], "\"Soy\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "Find", "the", "first", "name", "and", "major", "of", "the", "students", "who", "are", "not", "allegry", "to", "soy", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "and" ], [ "major" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "not" ], [ "allegry" ], [ "to" ], [ "soy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "major", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "allegry", "JJ" ], [ "to", "TO" ], [ "soy", "VB" ], [ ".", "." ] ], "values": [ "Soy", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) A(0) C(9) T(2) Filter(19) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "allergy_1", "query": "SELECT fname , major FROM Student WHERE StuID NOT IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Soy\")", "query_toks": [ "SELECT", "fname", ",", "major", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Soy", "''", ")" ], "query_toks_no_value": [ "select", "fname", ",", "major", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")" ], "question": "What are the first name and major of the students who are able to consume soy?", "question_toks": [ "what", "are", "first", "name", "and", "major", "of", "student", "who", "are", "able", "to", "consume", "soy", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 5, false ], null ], { "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, 4, false ], null ], "\"Soy\"", null ] ] }, null ] ] }, "names": [ "*", "allergy name", "allergy type", "stuid", "allergy", "stuid", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "table_names": [ "allergy type", "has allergy", "student" ], "col_set": [ "*", "allergy name", "allergy type", "stuid", "allergy", "last name", "first name", "age", "sex", "major", "advisor", "city code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "4": 1, "1": 1, "3": 5, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "first", "name", "and", "major", "of", "the", "students", "who", "are", "able", "to", "consume", "soy", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "major" ], [ "of" ], [ "student" ], [ "who" ], [ "are" ], [ "able" ], [ "to" ], [ "consume" ], [ "soy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "major", "JJ" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "able", "JJ" ], [ "to", "TO" ], [ "consume", "VB" ], [ "soy", "NN" ], [ "?", "." ] ], "values": [ "1", "Soy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) A(0) C(9) T(2) Filter(19) A(0) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(2) A(0) C(4) T(1) V(1)" }, { "db_id": "store_1", "query": "SELECT billing_country , COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;", "query_toks": [ "SELECT", "billing_country", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "5", ";" ], "query_toks_no_value": [ "select", "billing_country", ",", "count", "(", "*", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "A list of the top 5 countries by number of invoices. List country name and number of invoices.", "question_toks": [ "a", "list", "of", "top", "5", "country", "by", "number", "of", "invoice", ".", "list", "country", "name", "and", "number", "of", "invoice", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 44, false ] ], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "A", "list", "of", "the", "top", "5", "countries", "by", "number", "of", "invoices", ".", "List", "country", "name", "and", "number", "of", "invoices", "." ], "question_arg": [ [ "a" ], [ "list" ], [ "of" ], [ "top" ], [ "5" ], [ "country" ], [ "by" ], [ "number" ], [ "of" ], [ "invoice" ], [ "." ], [ "list" ], [ "country" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "5", "CD" ], [ "country", "NN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ ".", "." ], [ "list", "JJ" ], [ "country", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [ "5", "Lost", "Numbers", "invoices" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(26) T(6) A(3) C(0) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "store_1", "query": "SELECT billing_country , COUNT(*) FROM invoices GROUP BY billing_country ORDER BY count(*) DESC LIMIT 5;", "query_toks": [ "SELECT", "billing_country", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "5", ";" ], "query_toks_no_value": [ "select", "billing_country", ",", "count", "(", "*", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the top 5 countries by number of invoices and how many do they have?", "question_toks": [ "what", "are", "top", "5", "country", "by", "number", "of", "invoice", "and", "how", "many", "do", "they", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 44, false ] ], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "top", "5", "countries", "by", "number", "of", "invoices", "and", "how", "many", "do", "they", "have", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "top" ], [ "5" ], [ "country" ], [ "by" ], [ "number" ], [ "of" ], [ "invoice" ], [ "and" ], [ "how" ], [ "many" ], [ "do" ], [ "they" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "top", "JJ" ], [ "5", "CD" ], [ "country", "NN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "do", "VBP" ], [ "they", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "5", "May", "Numbers", "invoices" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(26) T(6) A(3) C(0) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "store_1", "query": "SELECT billing_country , SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;", "query_toks": [ "SELECT", "billing_country", ",", "SUM", "(", "total", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "SUM", "(", "total", ")", "DESC", "LIMIT", "8", ";" ], "query_toks_no_value": [ "select", "billing_country", ",", "sum", "(", "total", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "sum", "(", "total", ")", "desc", "limit", "value" ], "question": "A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size.", "question_toks": [ "a", "list", "of", "top", "8", "country", "by", "gross/total", "invoice", "size", ".", "list", "country", "name", "and", "gross", "invoice", "size", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 44, false ] ], "having": [], "intersect": null, "limit": 8, "orderBy": [ "desc", [ [ 0, [ 4, 46, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "A", "list", "of", "the", "top", "8", "countries", "by", "gross/total", "invoice", "size", ".", "List", "country", "name", "and", "gross", "invoice", "size", "." ], "question_arg": [ [ "a" ], [ "list" ], [ "of" ], [ "top" ], [ "8" ], [ "country" ], [ "by" ], [ "gross/total" ], [ "invoice" ], [ "size" ], [ "." ], [ "list" ], [ "country" ], [ "name" ], [ "and" ], [ "gross" ], [ "invoice" ], [ "size" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "8", "CD" ], [ "country", "NN" ], [ "by", "IN" ], [ "gross/total", "JJ" ], [ "invoice", "NN" ], [ "size", "NN" ], [ ".", "." ], [ "list", "JJ" ], [ "country", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "gross", "JJ" ], [ "invoice", "NN" ], [ "size", "NN" ], [ ".", "." ] ], "values": [ "Lost", "8", "invoices" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(26) T(6) A(4) C(28) T(6) Sup(0) A(4) C(28) T(6)" }, { "db_id": "store_1", "query": "SELECT billing_country , SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 8;", "query_toks": [ "SELECT", "billing_country", ",", "SUM", "(", "total", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "SUM", "(", "total", ")", "DESC", "LIMIT", "8", ";" ], "query_toks_no_value": [ "select", "billing_country", ",", "sum", "(", "total", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "sum", "(", "total", ")", "desc", "limit", "value" ], "question": "What are the names of the top 8 countries by total invoice size and what are those sizes?", "question_toks": [ "what", "are", "name", "of", "top", "8", "country", "by", "total", "invoice", "size", "and", "what", "are", "those", "size", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 44, false ] ], "having": [], "intersect": null, "limit": 8, "orderBy": [ "desc", [ [ 0, [ 4, 46, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "top", "8", "countries", "by", "total", "invoice", "size", "and", "what", "are", "those", "sizes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "top" ], [ "8" ], [ "country" ], [ "by" ], [ "total" ], [ "invoice" ], [ "size" ], [ "and" ], [ "what" ], [ "are" ], [ "those" ], [ "size" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "8", "CD" ], [ "country", "NN" ], [ "by", "IN" ], [ "total", "JJ" ], [ "invoice", "NN" ], [ "size", "NN" ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "those", "DT" ], [ "size", "NN" ], [ "?", "." ] ], "values": [ "invoices", "8" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(26) T(6) A(4) C(28) T(6) Sup(0) A(4) C(28) T(6)" }, { "db_id": "store_1", "query": "SELECT billing_country , AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;", "query_toks": [ "SELECT", "billing_country", ",", "AVG", "(", "total", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "AVG", "(", "total", ")", "DESC", "LIMIT", "10", ";" ], "query_toks_no_value": [ "select", "billing_country", ",", "avg", "(", "total", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "avg", "(", "total", ")", "desc", "limit", "value" ], "question": "A list of the top 10 countries by average invoice size. List country name and average invoice size.", "question_toks": [ "a", "list", "of", "top", "10", "country", "by", "average", "invoice", "size", ".", "list", "country", "name", "and", "average", "invoice", "size", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 44, false ] ], "having": [], "intersect": null, "limit": 10, "orderBy": [ "desc", [ [ 0, [ 5, 46, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 5, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "A", "list", "of", "the", "top", "10", "countries", "by", "average", "invoice", "size", ".", "List", "country", "name", "and", "average", "invoice", "size", "." ], "question_arg": [ [ "a" ], [ "list" ], [ "of" ], [ "top" ], [ "10" ], [ "country" ], [ "by" ], [ "average" ], [ "invoice" ], [ "size" ], [ "." ], [ "list" ], [ "country" ], [ "name" ], [ "and" ], [ "average" ], [ "invoice" ], [ "size" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "10", "CD" ], [ "country", "NN" ], [ "by", "IN" ], [ "average", "JJ" ], [ "invoice", "JJ" ], [ "size", "NN" ], [ ".", "." ], [ "list", "JJ" ], [ "country", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "invoice", "NN" ], [ "size", "NN" ], [ ".", "." ] ], "values": [ "invoices", "10", "Lost" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(26) T(6) A(5) C(28) T(6) Sup(0) A(5) C(28) T(6)" }, { "db_id": "store_1", "query": "SELECT billing_country , AVG(total) FROM invoices GROUP BY billing_country ORDER BY AVG(total) DESC LIMIT 10;", "query_toks": [ "SELECT", "billing_country", ",", "AVG", "(", "total", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "AVG", "(", "total", ")", "DESC", "LIMIT", "10", ";" ], "query_toks_no_value": [ "select", "billing_country", ",", "avg", "(", "total", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "avg", "(", "total", ")", "desc", "limit", "value" ], "question": "What are the names of the countries and average invoice size of the top countries by size?", "question_toks": [ "what", "are", "name", "of", "country", "and", "average", "invoice", "size", "of", "top", "country", "by", "size", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 44, false ] ], "having": [], "intersect": null, "limit": 10, "orderBy": [ "desc", [ [ 0, [ 5, 46, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 5, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "countries", "and", "average", "invoice", "size", "of", "the", "top", "countries", "by", "size", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "country" ], [ "and" ], [ "average" ], [ "invoice" ], [ "size" ], [ "of" ], [ "top" ], [ "country" ], [ "by" ], [ "size" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "invoice", "JJ" ], [ "size", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "country", "NN" ], [ "by", "IN" ], [ "size", "NN" ], [ "?", "." ] ], "values": [ "invoices" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(26) T(6) A(5) C(28) T(6) Sup(0) A(5) C(28) T(6)" }, { "db_id": "store_1", "query": "SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5;", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "ORDER", "BY", "T2.invoice_date", "DESC", "LIMIT", "5", ";" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "order", "by", "t2", ".", "invoice_date", "desc", "limit", "value" ], "question": "Find out 5 customers who most recently purchased something. List customers' first and last name.", "question_toks": [ "find", "out", "5", "customer", "who", "most", "recently", "purchased", "something", ".", "list", "customer", "'", "first", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 39, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 40, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "Find", "out", "5", "customers", "who", "most", "recently", "purchased", "something", ".", "List", "customers", "'", "first", "and", "last", "name", "." ], "question_arg": [ [ "find" ], [ "out" ], [ "5" ], [ "customer" ], [ "who" ], [ "most" ], [ "recently" ], [ "purchased" ], [ "something" ], [ "." ], [ "list" ], [ "customer" ], [ "'" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "out", "RP" ], [ "5", "CD" ], [ "customer", "NN" ], [ "who", "WP" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "purchased", "VBD" ], [ "something", "NN" ], [ ".", "." ], [ "list", "JJ" ], [ "customer", "NN" ], [ "'", "POS" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "5", "customers" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(4) A(0) C(6) T(4) Sup(0) A(0) C(22) T(6)" }, { "db_id": "store_1", "query": "SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC LIMIT 5;", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "ORDER", "BY", "T2.invoice_date", "DESC", "LIMIT", "5", ";" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "order", "by", "t2", ".", "invoice_date", "desc", "limit", "value" ], "question": "What are the first and last names of the 5 customers who purchased something most recently?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "5", "customer", "who", "purchased", "something", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 39, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 40, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "the", "5", "customers", "who", "purchased", "something", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "5" ], [ "customer" ], [ "who" ], [ "purchased" ], [ "something" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "5", "CD" ], [ "customer", "NN" ], [ "who", "WP" ], [ "purchased", "VBD" ], [ "something", "NN" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [ "5", "customers", "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(4) A(0) C(6) T(4) Sup(0) A(0) C(22) T(6)" }, { "db_id": "store_1", "query": "SELECT T1.first_name , T1.last_name , COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "COUNT", "(", "*", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "10", ";" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders.", "question_toks": [ "find", "out", "top", "10", "customer", "by", "total", "number", "of", "order", ".", "list", "customer", "'", "first", "and", "last", "name", "and", "number", "of", "total", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 39, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 10, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "Find", "out", "the", "top", "10", "customers", "by", "total", "number", "of", "orders", ".", "List", "customers", "'", "first", "and", "last", "name", "and", "the", "number", "of", "total", "orders", "." ], "question_arg": [ [ "find" ], [ "out" ], [ "top" ], [ "10" ], [ "customer" ], [ "by" ], [ "total" ], [ "number" ], [ "of" ], [ "order" ], [ "." ], [ "list" ], [ "customer" ], [ "'" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "total" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "out", "RP" ], [ "top", "JJ" ], [ "10", "CD" ], [ "customer", "NN" ], [ "by", "IN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "customer", "NN" ], [ "'", "POS" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "customers", "10", "Numbers", "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(7) T(4) A(0) C(6) T(4) A(3) C(0) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "store_1", "query": "SELECT T1.first_name , T1.last_name , COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10;", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "COUNT", "(", "*", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "10", ";" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the top 10 customers' first and last names by total number of orders and how many orders did they make?", "question_toks": [ "what", "are", "top", "10", "customer", "'", "first", "and", "last", "name", "by", "total", "number", "of", "order", "and", "how", "many", "order", "did", "they", "make", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 39, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 10, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "top", "10", "customers", "'", "first", "and", "last", "names", "by", "total", "number", "of", "orders", "and", "how", "many", "orders", "did", "they", "make", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "top" ], [ "10" ], [ "customer" ], [ "'" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "by" ], [ "total" ], [ "number" ], [ "of" ], [ "order" ], [ "and" ], [ "how" ], [ "many" ], [ "order" ], [ "did" ], [ "they" ], [ "make" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "top", "JJ" ], [ "10", "CD" ], [ "customer", "NN" ], [ "'", "POS" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "by", "IN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "order", "NN" ], [ "did", "VBD" ], [ "they", "PRP" ], [ "make", "VB" ], [ "?", "." ] ], "values": [ "customers", "10", "Numbers", "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(7) T(4) A(0) C(6) T(4) A(3) C(0) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "store_1", "query": "SELECT T1.first_name , T1.last_name , SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "SUM", "(", "T2.total", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "SUM", "(", "T2.total", ")", "DESC", "LIMIT", "10", ";" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "sum", "(", "t2", ".", "total", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "sum", "(", "t2", ".", "total", ")", "desc", "limit", "value" ], "question": "List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.", "question_toks": [ "list", "top", "10", "customer", "by", "total", "gross", "sale", ".", "list", "customer", "'", "first", "and", "last", "name", "and", "total", "gross", "sale", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 39, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 10, "orderBy": [ "desc", [ [ 0, [ 4, 46, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ], [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "top", "10", "customers", "by", "total", "gross", "sales", ".", "List", "customers", "'", "first", "and", "last", "name", "and", "total", "gross", "sales", "." ], "question_arg": [ [ "list" ], [ "top" ], [ "10" ], [ "customer" ], [ "by" ], [ "total" ], [ "gross" ], [ "sale" ], [ "." ], [ "list" ], [ "customer" ], [ "'" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "and" ], [ "total" ], [ "gross" ], [ "sale" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "top", "NN" ], [ "10", "CD" ], [ "customer", "NN" ], [ "by", "IN" ], [ "total", "JJ" ], [ "gross", "JJ" ], [ "sale", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "customer", "NN" ], [ "'", "POS" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "gross", "JJ" ], [ "sale", "NN" ], [ ".", "." ] ], "values": [ "customers", "10", "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(7) T(4) A(0) C(6) T(4) A(4) C(28) T(6) Sup(0) A(4) C(28) T(6)" }, { "db_id": "store_1", "query": "SELECT T1.first_name , T1.last_name , SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10;", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", ",", "SUM", "(", "T2.total", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "SUM", "(", "T2.total", ")", "DESC", "LIMIT", "10", ";" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "sum", "(", "t2", ".", "total", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "sum", "(", "t2", ".", "total", ")", "desc", "limit", "value" ], "question": "What are the top 10 customers' first and last names with the highest gross sales, and also what are the sales?", "question_toks": [ "what", "are", "top", "10", "customer", "'", "first", "and", "last", "name", "with", "highest", "gross", "sale", ",", "and", "also", "what", "are", "sale", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 39, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 10, "orderBy": [ "desc", [ [ 0, [ 4, 46, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ], [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "top", "10", "customers", "'", "first", "and", "last", "names", "with", "the", "highest", "gross", "sales", ",", "and", "also", "what", "are", "the", "sales", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "top" ], [ "10" ], [ "customer" ], [ "'" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "with" ], [ "highest" ], [ "gross" ], [ "sale" ], [ "," ], [ "and" ], [ "also" ], [ "what" ], [ "are" ], [ "sale" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "top", "JJ" ], [ "10", "CD" ], [ "customer", "NN" ], [ "'", "POS" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "gross", "JJ" ], [ "sale", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "also", "RB" ], [ "what", "WP" ], [ "are", "VBP" ], [ "sale", "NN" ], [ "?", "." ] ], "values": [ "10", "1", "customers" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(7) T(4) A(0) C(6) T(4) A(4) C(28) T(6) Sup(0) A(4) C(28) T(6)" }, { "db_id": "store_1", "query": "SELECT T1.name , COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;", "query_toks": [ "SELECT", "T1.name", ",", "COUNT", "(", "*", ")", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T2.genre_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "5", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t2", ".", "genre_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the top 5 genres by number of tracks. List genres name and total tracks.", "question_toks": [ "list", "top", "5", "genre", "by", "number", "of", "track", ".", "list", "genre", "name", "and", "total", "track", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 53, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 36, false ] ], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "top", "5", "genres", "by", "number", "of", "tracks", ".", "List", "genres", "name", "and", "total", "tracks", "." ], "question_arg": [ [ "list" ], [ "top" ], [ "5" ], [ "genre" ], [ "by" ], [ "number" ], [ "of" ], [ "track" ], [ "." ], [ "list" ], [ "genre" ], [ "name" ], [ "and" ], [ "total" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "top", "JJ" ], [ "5", "CD" ], [ "genre", "NN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "genre", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "track", "NN" ], [ ".", "." ] ], "values": [ "Lost", "Numbers", "5", "genres", "tracks" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(5) A(3) C(0) T(8) Sup(0) A(3) C(0) T(8)" }, { "db_id": "store_1", "query": "SELECT T1.name , COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 5;", "query_toks": [ "SELECT", "T1.name", ",", "COUNT", "(", "*", ")", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T2.genre_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "5", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t2", ".", "genre_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "How many tracks does each genre have and what are the names of the top 5?", "question_toks": [ "how", "many", "track", "doe", "each", "genre", "have", "and", "what", "are", "name", "of", "top", "5", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 53, false ], null ], [ 0, 36, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 36, false ] ], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "tracks", "does", "each", "genre", "have", "and", "what", "are", "the", "names", "of", "the", "top", "5", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "track" ], [ "doe" ], [ "each" ], [ "genre" ], [ "have" ], [ "and" ], [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "top" ], [ "5" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "track", "VBP" ], [ "doe", "JJ" ], [ "each", "DT" ], [ "genre", "NN" ], [ "have", "VBP" ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "5", "CD" ], [ "?", "." ] ], "values": [ "5", "tracks", "genres" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(5) A(3) C(0) T(8) Sup(0) A(3) C(0) T(8)" }, { "db_id": "store_1", "query": "SELECT title FROM albums;", "query_toks": [ "SELECT", "title", "FROM", "albums", ";" ], "query_toks_no_value": [ "select", "title", "from", "albums" ], "question": "List every album's title.", "question_toks": [ "list", "every", "album", "'s", "title", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "every", "album", "'s", "title", "." ], "question_arg": [ [ "list" ], [ "every" ], [ "album" ], [ "'s" ], [ "title" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "every", "DT" ], [ "album", "NN" ], [ "'s", "POS" ], [ "title", "NN" ], [ ".", "." ] ], "values": [ "albums" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(4) T(2)" }, { "db_id": "store_1", "query": "SELECT title FROM albums;", "query_toks": [ "SELECT", "title", "FROM", "albums", ";" ], "query_toks_no_value": [ "select", "title", "from", "albums" ], "question": "What are the titles of all the albums?", "question_toks": [ "what", "are", "title", "of", "all", "album", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "all", "the", "albums", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "all" ], [ "album" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "album", "NN" ], [ "?", "." ] ], "values": [ "albums" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(4) T(2)" }, { "db_id": "store_1", "query": "SELECT title FROM albums ORDER BY title;", "query_toks": [ "SELECT", "title", "FROM", "albums", "ORDER", "BY", "title", ";" ], "query_toks_no_value": [ "select", "title", "from", "albums", "order", "by", "title" ], "question": "List every album ordered by album title in ascending order.", "question_toks": [ "list", "every", "album", "ordered", "by", "album", "title", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "every", "album", "ordered", "by", "album", "title", "in", "ascending", "order", "." ], "question_arg": [ [ "list" ], [ "every" ], [ "album" ], [ "ordered" ], [ "by" ], [ "album" ], [ "title" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "every", "DT" ], [ "album", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "album", "JJ" ], [ "title", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "albums" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(4) T(2) Order(1) A(0) C(4) T(2)" }, { "db_id": "store_1", "query": "SELECT title FROM albums ORDER BY title;", "query_toks": [ "SELECT", "title", "FROM", "albums", "ORDER", "BY", "title", ";" ], "query_toks_no_value": [ "select", "title", "from", "albums", "order", "by", "title" ], "question": "What are the titles of all the albums alphabetically ascending?", "question_toks": [ "what", "are", "title", "of", "all", "album", "alphabetically", "ascending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "all", "the", "albums", "alphabetically", "ascending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "all" ], [ "album" ], [ "alphabetically" ], [ "ascending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "album", "NN" ], [ "alphabetically", "RB" ], [ "ascending", "VBG" ], [ "?", "." ] ], "values": [ "albums" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(4) T(2) Order(1) A(0) C(4) T(2)" }, { "db_id": "store_1", "query": "SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;", "query_toks": [ "SELECT", "title", "FROM", "albums", "WHERE", "title", "LIKE", "'A", "%", "'", "ORDER", "BY", "title", ";" ], "query_toks_no_value": [ "select", "title", "from", "albums", "where", "title", "like", "value", "order", "by", "title" ], "question": "List every album whose title starts with A in alphabetical order.", "question_toks": [ "list", "every", "album", "whose", "title", "start", "with", "a", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 6, false ], null ], "\"A%\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "every", "album", "whose", "title", "starts", "with", "A", "in", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "every" ], [ "album" ], [ "whose" ], [ "title" ], [ "start" ], [ "with" ], [ "a" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "every", "DT" ], [ "album", "NN" ], [ "whose", "WP$" ], [ "title", "JJ" ], [ "start", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "albums", "A" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(4) T(2) Filter(9) A(0) C(4) T(2) V(1) Order(1) A(0) C(4) T(2)" }, { "db_id": "store_1", "query": "SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title;", "query_toks": [ "SELECT", "title", "FROM", "albums", "WHERE", "title", "LIKE", "'A", "%", "'", "ORDER", "BY", "title", ";" ], "query_toks_no_value": [ "select", "title", "from", "albums", "where", "title", "like", "value", "order", "by", "title" ], "question": "What are the titles of all albums that start with A in alphabetical order?", "question_toks": [ "what", "are", "title", "of", "all", "album", "that", "start", "with", "a", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 6, false ], null ], "\"A%\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "all", "albums", "that", "start", "with", "A", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "all" ], [ "album" ], [ "that" ], [ "start" ], [ "with" ], [ "a" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "album", "NN" ], [ "that", "IN" ], [ "start", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "albums", "A" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(4) T(2) Filter(9) A(0) C(4) T(2) V(1) Order(1) A(0) C(4) T(2)" }, { "db_id": "store_1", "query": "SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10;", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "ORDER", "BY", "total", "LIMIT", "10", ";" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "order", "by", "total", "limit", "value" ], "question": "List the customers first and last name of 10 least expensive invoices.", "question_toks": [ "list", "customer", "first", "and", "last", "name", "of", "10", "least", "expensive", "invoice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 39, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 10, "orderBy": [ "asc", [ [ 0, [ 0, 46, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "customers", "first", "and", "last", "name", "of", "10", "least", "expensive", "invoices", "." ], "question_arg": [ [ "list" ], [ "customer" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "10" ], [ "least" ], [ "expensive" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "customer", "NN" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "10", "CD" ], [ "least", "JJS" ], [ "expensive", "JJ" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [ "1", "invoices", "10", "customers" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(4) A(0) C(6) T(4) Sup(1) A(0) C(28) T(6)" }, { "db_id": "store_1", "query": "SELECT T1.first_name , T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10;", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T2.customer_id", "=", "T1.id", "ORDER", "BY", "total", "LIMIT", "10", ";" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t2", ".", "customer_id", "=", "t1", ".", "id", "order", "by", "total", "limit", "value" ], "question": "What are the first and last names of the customers with the 10 cheapest invoices?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "customer", "with", "10", "cheapest", "invoice", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 39, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 10, "orderBy": [ "asc", [ [ 0, [ 0, 46, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 24, false ], null ] ], [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "the", "customers", "with", "the", "10", "cheapest", "invoices", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "customer" ], [ "with" ], [ "10" ], [ "cheapest" ], [ "invoice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "10", "CD" ], [ "cheapest", "JJS" ], [ "invoice", "NN" ], [ "?", "." ] ], "values": [ "1", "invoices", "10", "customers" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(4) A(0) C(6) T(4) Sup(1) A(0) C(28) T(6)" }, { "db_id": "store_1", "query": "SELECT sum(total) FROM invoices WHERE billing_city = \"Chicago\" AND billing_state = \"IL\";", "query_toks": [ "SELECT", "sum", "(", "total", ")", "FROM", "invoices", "WHERE", "billing_city", "=", "``", "Chicago", "''", "AND", "billing_state", "=", "``", "IL", "''", ";" ], "query_toks_no_value": [ "select", "sum", "(", "total", ")", "from", "invoices", "where", "billing_city", "=", "value", "and", "billing_state", "=", "value" ], "question": "List total amount of invoice from Chicago, IL.", "question_toks": [ "list", "total", "amount", "of", "invoice", "from", "chicago", ",", "il", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 42, false ], null ], "\"Chicago\"", null ], "and", [ false, 2, [ 0, [ 0, 43, false ], null ], "\"IL\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "total", "amount", "of", "invoice", "from", "Chicago", ",", "IL", "." ], "question_arg": [ [ "list" ], [ "total" ], [ "amount" ], [ "of" ], [ "invoice" ], [ "from" ], [ "chicago" ], [ "," ], [ "il" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ "from", "IN" ], [ "chicago", "NN" ], [ ",", "," ], [ "il", "NN" ], [ ".", "." ] ], "values": [ "Chicago", "IL", "invoices" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(28) T(6) Filter(0) Filter(2) A(0) C(24) T(6) V(0) Filter(2) A(0) C(25) T(6) V(1)" }, { "db_id": "store_1", "query": "SELECT sum(total) FROM invoices WHERE billing_city = \"Chicago\" AND billing_state = \"IL\";", "query_toks": [ "SELECT", "sum", "(", "total", ")", "FROM", "invoices", "WHERE", "billing_city", "=", "``", "Chicago", "''", "AND", "billing_state", "=", "``", "IL", "''", ";" ], "query_toks_no_value": [ "select", "sum", "(", "total", ")", "from", "invoices", "where", "billing_city", "=", "value", "and", "billing_state", "=", "value" ], "question": "What are the total amount of money in the invoices billed from Chicago, Illinois?", "question_toks": [ "what", "are", "total", "amount", "of", "money", "in", "invoice", "billed", "from", "chicago", ",", "illinois", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 42, false ], null ], "\"Chicago\"", null ], "and", [ false, 2, [ 0, [ 0, 43, false ], null ], "\"IL\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "total", "amount", "of", "money", "in", "the", "invoices", "billed", "from", "Chicago", ",", "Illinois", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "amount" ], [ "of" ], [ "money" ], [ "in" ], [ "invoice" ], [ "billed" ], [ "from" ], [ "chicago" ], [ "," ], [ "illinois" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "state" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "money", "NN" ], [ "in", "IN" ], [ "invoice", "NN" ], [ "billed", "VBN" ], [ "from", "IN" ], [ "chicago", "NN" ], [ ",", "," ], [ "illinois", "NN" ], [ "?", "." ] ], "values": [ "invoices", "Chicago", "Money", "IL" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(28) T(6) Filter(0) Filter(2) A(0) C(24) T(6) V(1) Filter(2) A(0) C(25) T(6) V(3)" }, { "db_id": "store_1", "query": "SELECT COUNT(*) FROM invoices WHERE billing_city = \"Chicago\" AND billing_state = \"IL\";", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_city", "=", "``", "Chicago", "''", "AND", "billing_state", "=", "``", "IL", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "invoices", "where", "billing_city", "=", "value", "and", "billing_state", "=", "value" ], "question": "List the number of invoices from Chicago, IL.", "question_toks": [ "list", "number", "of", "invoice", "from", "chicago", ",", "il", "." ], "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": [ [ false, 2, [ 0, [ 0, 42, false ], null ], "\"Chicago\"", null ], "and", [ false, 2, [ 0, [ 0, 43, false ], null ], "\"IL\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "number", "of", "invoices", "from", "Chicago", ",", "IL", "." ], "question_arg": [ [ "list" ], [ "number" ], [ "of" ], [ "invoice" ], [ "from" ], [ "chicago" ], [ "," ], [ "il" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ "from", "IN" ], [ "chicago", "NN" ], [ ",", "," ], [ "il", "NN" ], [ ".", "." ] ], "values": [ "invoices", "Chicago", "IL", "Numbers" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(0) Filter(2) A(0) C(24) T(6) V(1) Filter(2) A(0) C(25) T(6) V(2)" }, { "db_id": "store_1", "query": "SELECT COUNT(*) FROM invoices WHERE billing_city = \"Chicago\" AND billing_state = \"IL\";", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_city", "=", "``", "Chicago", "''", "AND", "billing_state", "=", "``", "IL", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "invoices", "where", "billing_city", "=", "value", "and", "billing_state", "=", "value" ], "question": "How many invoices were billed from Chicago, IL?", "question_toks": [ "how", "many", "invoice", "were", "billed", "from", "chicago", ",", "il", "?" ], "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": [ [ false, 2, [ 0, [ 0, 42, false ], null ], "\"Chicago\"", null ], "and", [ false, 2, [ 0, [ 0, 43, false ], null ], "\"IL\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "invoices", "were", "billed", "from", "Chicago", ",", "IL", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "invoice" ], [ "were" ], [ "billed" ], [ "from" ], [ "chicago" ], [ "," ], [ "il" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "invoice", "NN" ], [ "were", "VBD" ], [ "billed", "VBN" ], [ "from", "IN" ], [ "chicago", "NN" ], [ ",", "," ], [ "il", "NN" ], [ "?", "." ] ], "values": [ "invoices", "Chicago", "IL" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(0) Filter(2) A(0) C(24) T(6) V(1) Filter(2) A(0) C(25) T(6) V(2)" }, { "db_id": "store_1", "query": "SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state;", "query_toks": [ "SELECT", "billing_state", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_country", "=", "``", "USA", "''", "GROUP", "BY", "billing_state", ";" ], "query_toks_no_value": [ "select", "billing_state", ",", "count", "(", "*", ")", "from", "invoices", "where", "billing_country", "=", "value", "group", "by", "billing_state" ], "question": "List the number of invoices from the US, grouped by state.", "question_toks": [ "list", "number", "of", "invoice", "from", "u", ",", "grouped", "by", "state", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 43, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 44, false ], null ], "\"USA\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "number", "of", "invoices", "from", "the", "US", ",", "grouped", "by", "state", "." ], "question_arg": [ [ "list" ], [ "number" ], [ "of" ], [ "invoice" ], [ "from" ], [ "u" ], [ "," ], [ "grouped" ], [ "by" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ "from", "IN" ], [ "u", "JJ" ], [ ",", "," ], [ "grouped", "VBN" ], [ "by", "IN" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "invoices", "Numbers", "USA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(25) T(6) A(3) C(0) T(6) Filter(2) A(0) C(26) T(6) V(2)" }, { "db_id": "store_1", "query": "SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state;", "query_toks": [ "SELECT", "billing_state", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_country", "=", "``", "USA", "''", "GROUP", "BY", "billing_state", ";" ], "query_toks_no_value": [ "select", "billing_state", ",", "count", "(", "*", ")", "from", "invoices", "where", "billing_country", "=", "value", "group", "by", "billing_state" ], "question": "How many invoices were billed from each state?", "question_toks": [ "how", "many", "invoice", "were", "billed", "from", "each", "state", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 43, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 44, false ], null ], "\"USA\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "invoices", "were", "billed", "from", "each", "state", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "invoice" ], [ "were" ], [ "billed" ], [ "from" ], [ "each" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "invoice", "NN" ], [ "were", "VBD" ], [ "billed", "VBN" ], [ "from", "IN" ], [ "each", "DT" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "invoices", "USA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(25) T(6) A(3) C(0) T(6) Filter(2) A(0) C(26) T(6) V(1)" }, { "db_id": "store_1", "query": "SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "billing_state", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_country", "=", "``", "USA", "''", "GROUP", "BY", "billing_state", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "billing_state", ",", "count", "(", "*", ")", "from", "invoices", "where", "billing_country", "=", "value", "group", "by", "billing_state", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "List the state in the US with the most invoices.", "question_toks": [ "list", "state", "in", "u", "with", "most", "invoice", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 43, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 44, false ], null ], "\"USA\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "state", "in", "the", "US", "with", "the", "most", "invoices", "." ], "question_arg": [ [ "list" ], [ "state" ], [ "in" ], [ "u" ], [ "with" ], [ "most" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "state", "NN" ], [ "in", "IN" ], [ "u", "JJ" ], [ "with", "IN" ], [ "most", "JJS" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [ "USA", "invoices" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(25) T(6) A(3) C(0) T(6) Sup(0) A(3) C(0) T(6) Filter(2) A(0) C(26) T(6) V(0)" }, { "db_id": "store_1", "query": "SELECT billing_state , COUNT(*) FROM invoices WHERE billing_country = \"USA\" GROUP BY billing_state ORDER BY COUNT(*) DESC LIMIT 1;", "query_toks": [ "SELECT", "billing_state", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_country", "=", "``", "USA", "''", "GROUP", "BY", "billing_state", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "billing_state", ",", "count", "(", "*", ")", "from", "invoices", "where", "billing_country", "=", "value", "group", "by", "billing_state", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the states with the most invoices?", "question_toks": [ "what", "are", "state", "with", "most", "invoice", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 43, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 44, false ], null ], "\"USA\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "states", "with", "the", "most", "invoices", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "state" ], [ "with" ], [ "most" ], [ "invoice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "state", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "invoice", "NN" ], [ "?", "." ] ], "values": [ "invoices", "USA" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(25) T(6) A(3) C(0) T(6) Sup(0) A(3) C(0) T(6) Filter(2) A(0) C(26) T(6) V(1)" }, { "db_id": "store_1", "query": "SELECT billing_state , COUNT(*) , SUM(total) FROM invoices WHERE billing_state = \"CA\";", "query_toks": [ "SELECT", "billing_state", ",", "COUNT", "(", "*", ")", ",", "SUM", "(", "total", ")", "FROM", "invoices", "WHERE", "billing_state", "=", "``", "CA", "''", ";" ], "query_toks_no_value": [ "select", "billing_state", ",", "count", "(", "*", ")", ",", "sum", "(", "total", ")", "from", "invoices", "where", "billing_state", "=", "value" ], "question": "List the number of invoices and the invoice total from California.", "question_toks": [ "list", "number", "of", "invoice", "and", "invoice", "total", "from", "california", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ], [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 43, false ], null ], "\"CA\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "number", "of", "invoices", "and", "the", "invoice", "total", "from", "California", "." ], "question_arg": [ [ "list" ], [ "number" ], [ "of" ], [ "invoice" ], [ "and" ], [ "invoice" ], [ "total" ], [ "from" ], [ "california" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "state" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ "and", "CC" ], [ "invoice", "JJ" ], [ "total", "NN" ], [ "from", "IN" ], [ "california", "NN" ], [ ".", "." ] ], "values": [ "invoices", "CA", "Numbers" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(25) T(6) A(3) C(0) T(6) A(4) C(28) T(6) Filter(2) A(0) C(25) T(6) V(1)" }, { "db_id": "store_1", "query": "SELECT billing_state , COUNT(*) , SUM(total) FROM invoices WHERE billing_state = \"CA\";", "query_toks": [ "SELECT", "billing_state", ",", "COUNT", "(", "*", ")", ",", "SUM", "(", "total", ")", "FROM", "invoices", "WHERE", "billing_state", "=", "``", "CA", "''", ";" ], "query_toks_no_value": [ "select", "billing_state", ",", "count", "(", "*", ")", ",", "sum", "(", "total", ")", "from", "invoices", "where", "billing_state", "=", "value" ], "question": "What is the number of invoices and total money billed in them from CA?", "question_toks": [ "what", "is", "number", "of", "invoice", "and", "total", "money", "billed", "in", "them", "from", "ca", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 43, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ], [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 43, false ], null ], "\"CA\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "number", "of", "invoices", "and", "total", "money", "billed", "in", "them", "from", "CA", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "number" ], [ "of" ], [ "invoice" ], [ "and" ], [ "total" ], [ "money" ], [ "billed" ], [ "in" ], [ "them" ], [ "from" ], [ "ca" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "money", "NN" ], [ "billed", "VBN" ], [ "in", "IN" ], [ "them", "PRP" ], [ "from", "IN" ], [ "ca", "MD" ], [ "?", "." ] ], "values": [ "Numbers", "CA", "Money", "invoices" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(25) T(6) A(3) C(0) T(6) A(4) C(28) T(6) Filter(2) A(0) C(25) T(6) V(1)" }, { "db_id": "store_1", "query": "SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = \"Aerosmith\";", "query_toks": [ "SELECT", "T1.title", "FROM", "albums", "AS", "T1", "JOIN", "artists", "AS", "T2", "ON", "T1.artist_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Aerosmith", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "albums", "as", "t1", "join", "artists", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "List Aerosmith's albums.", "question_toks": [ "list", "aerosmith", "'s", "album", "." ], "sql": { "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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Aerosmith\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "Aerosmith", "'s", "albums", "." ], "question_arg": [ [ "list" ], [ "aerosmith" ], [ "'s" ], [ "album" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "aerosmith", "NN" ], [ "'s", "POS" ], [ "album", "NN" ], [ ".", "." ] ], "values": [ "Lost", "Aerosmith", "albums" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(2) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "store_1", "query": "SELECT T1.title FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = \"Aerosmith\";", "query_toks": [ "SELECT", "T1.title", "FROM", "albums", "AS", "T1", "JOIN", "artists", "AS", "T2", "ON", "T1.artist_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Aerosmith", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "albums", "as", "t1", "join", "artists", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "What are the titles of all the Aerosmith albums?", "question_toks": [ "what", "are", "title", "of", "all", "aerosmith", "album", "?" ], "sql": { "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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Aerosmith\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "all", "the", "Aerosmith", "albums", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "all" ], [ "aerosmith" ], [ "album" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "all", "DT" ], [ "aerosmith", "NN" ], [ "album", "NN" ], [ "?", "." ] ], "values": [ "Aerosmith", "albums" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "store_1", "query": "SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = \"Billy Cobham\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "albums", "AS", "T1", "JOIN", "artists", "AS", "T2", "ON", "T1.artist_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Billy", "Cobham", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "albums", "as", "t1", "join", "artists", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "How many albums does Billy Cobham has?", "question_toks": [ "how", "many", "album", "doe", "billy", "cobham", "ha", "?" ], "sql": { "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, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Billy Cobham\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "albums", "does", "Billy", "Cobham", "has", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "album" ], [ "doe" ], [ "billy" ], [ "cobham" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "album", "VBP" ], [ "doe", "NNS" ], [ "billy", "RB" ], [ "cobham", "VBP" ], [ "ha", "NNS" ], [ "?", "." ] ], "values": [ "Billy Cobham", "Billy Corgan", "albums" ], "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": "store_1", "query": "SELECT count(*) FROM albums AS T1 JOIN artists AS T2 ON T1.artist_id = T2.id WHERE T2.name = \"Billy Cobham\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "albums", "AS", "T1", "JOIN", "artists", "AS", "T2", "ON", "T1.artist_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Billy", "Cobham", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "albums", "as", "t1", "join", "artists", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value" ], "question": "How many albums has Billy Cobam released?", "question_toks": [ "how", "many", "album", "ha", "billy", "cobam", "released", "?" ], "sql": { "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, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Billy Cobham\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "albums", "has", "Billy", "Cobam", "released", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "album" ], [ "ha" ], [ "billy" ], [ "cobam" ], [ "released" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "album", "VBP" ], [ "ha", "NNS" ], [ "billy", "RB" ], [ "cobam", "VBP" ], [ "released", "VBN" ], [ "?", "." ] ], "values": [ "albums", "Billy Cobham", "Billy Corgan" ], "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(1)" }, { "db_id": "store_1", "query": "SELECT company FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\";", "query_toks": [ "SELECT", "company", "FROM", "customers", "WHERE", "first_name", "=", "``", "Eduardo", "''", "AND", "last_name", "=", "``", "Martins", "''", ";" ], "query_toks_no_value": [ "select", "company", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "Eduardo Martins is a customer at which company?", "question_toks": [ "eduardo", "martin", "is", "a", "customer", "at", "which", "company", "?" ], "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, 24, false ], null ], "\"Eduardo\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Martins\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "Eduardo", "Martins", "is", "a", "customer", "at", "which", "company", "?" ], "question_arg": [ [ "eduardo" ], [ "martin" ], [ "is" ], [ "a" ], [ "customer" ], [ "at" ], [ "which" ], [ "company" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "eduardo", "NN" ], [ "martin", "NN" ], [ "is", "VBZ" ], [ "a", "DT" ], [ "customer", "NN" ], [ "at", "IN" ], [ "which", "WDT" ], [ "company", "NN" ], [ "?", "." ] ], "values": [ "Eduardo", "Martins" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(4) Filter(0) Filter(2) A(0) C(7) T(4) V(0) Filter(2) A(0) C(6) T(4) V(1)" }, { "db_id": "store_1", "query": "SELECT company FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\";", "query_toks": [ "SELECT", "company", "FROM", "customers", "WHERE", "first_name", "=", "``", "Eduardo", "''", "AND", "last_name", "=", "``", "Martins", "''", ";" ], "query_toks_no_value": [ "select", "company", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is the company where Eduardo Martins is a customer?", "question_toks": [ "what", "is", "company", "where", "eduardo", "martin", "is", "a", "customer", "?" ], "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, 24, false ], null ], "\"Eduardo\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Martins\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "company", "where", "Eduardo", "Martins", "is", "a", "customer", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "company" ], [ "where" ], [ "eduardo" ], [ "martin" ], [ "is" ], [ "a" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "company", "NN" ], [ "where", "WRB" ], [ "eduardo", "NN" ], [ "martin", "NN" ], [ "is", "VBZ" ], [ "a", "DT" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [ "Eduardo", "Martins" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(4) Filter(0) Filter(2) A(0) C(7) T(4) V(0) Filter(2) A(0) C(6) T(4) V(1)" }, { "db_id": "store_1", "query": "SELECT email , phone FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\";", "query_toks": [ "SELECT", "email", ",", "phone", "FROM", "customers", "WHERE", "first_name", "=", "``", "Astrid", "''", "AND", "last_name", "=", "``", "Gruber", "''", ";" ], "query_toks_no_value": [ "select", "email", ",", "phone", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is Astrid Gruber's email and phone number?", "question_toks": [ "what", "is", "astrid", "gruber", "'s", "email", "and", "phone", "number", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Astrid\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Gruber\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "Astrid", "Gruber", "'s", "email", "and", "phone", "number", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "astrid" ], [ "gruber" ], [ "'s" ], [ "email" ], [ "and" ], [ "phone" ], [ "number" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "astrid", "JJ" ], [ "gruber", "NN" ], [ "'s", "POS" ], [ "email", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "?", "." ] ], "values": [ "Numbers", "Astrid", "Gruber" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(18) T(4) A(0) C(16) T(4) Filter(0) Filter(2) A(0) C(7) T(4) V(1) Filter(2) A(0) C(6) T(4) V(2)" }, { "db_id": "store_1", "query": "SELECT email , phone FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\";", "query_toks": [ "SELECT", "email", ",", "phone", "FROM", "customers", "WHERE", "first_name", "=", "``", "Astrid", "''", "AND", "last_name", "=", "``", "Gruber", "''", ";" ], "query_toks_no_value": [ "select", "email", ",", "phone", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is the email and phone number of Astrid Gruber the customer?", "question_toks": [ "what", "is", "email", "and", "phone", "number", "of", "astrid", "gruber", "customer", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Astrid\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Gruber\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "email", "and", "phone", "number", "of", "Astrid", "Gruber", "the", "customer", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "email" ], [ "and" ], [ "phone" ], [ "number" ], [ "of" ], [ "astrid" ], [ "gruber" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "email", "JJ" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "astrid", "JJ" ], [ "gruber", "NN" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [ "Astrid", "Gruber", "Numbers", "customers" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(18) T(4) A(0) C(16) T(4) Filter(0) Filter(2) A(0) C(7) T(4) V(0) Filter(2) A(0) C(6) T(4) V(1)" }, { "db_id": "store_1", "query": "SELECT count(*) FROM customers WHERE city = \"Prague\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "WHERE", "city", "=", "``", "Prague", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "where", "city", "=", "value" ], "question": "How many customers live in Prague city?", "question_toks": [ "how", "many", "customer", "live", "in", "prague", "city", "?" ], "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": [ [ false, 2, [ 0, [ 0, 28, false ], null ], "\"Prague\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "customers", "live", "in", "Prague", "city", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "live" ], [ "in" ], [ "prague" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "prague", "NN" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "customers", "Prague" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(2) A(0) C(12) T(4) V(1)" }, { "db_id": "store_1", "query": "SELECT count(*) FROM customers WHERE city = \"Prague\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "WHERE", "city", "=", "``", "Prague", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "where", "city", "=", "value" ], "question": "How many customers live in the city of Prague?", "question_toks": [ "how", "many", "customer", "live", "in", "city", "of", "prague", "?" ], "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": [ [ false, 2, [ 0, [ 0, 28, false ], null ], "\"Prague\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "customers", "live", "in", "the", "city", "of", "Prague", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "live" ], [ "in" ], [ "city" ], [ "of" ], [ "prague" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "prague", "NN" ], [ "?", "." ] ], "values": [ "customers", "Prague" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(2) A(0) C(12) T(4) V(1)" }, { "db_id": "store_1", "query": "SELECT count(*) FROM customers WHERE state = \"CA\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "WHERE", "state", "=", "``", "CA", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "where", "state", "=", "value" ], "question": "How many customers in state of CA?", "question_toks": [ "how", "many", "customer", "in", "state", "of", "ca", "?" ], "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": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"CA\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "customers", "in", "state", "of", "CA", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "in" ], [ "state" ], [ "of" ], [ "ca" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "in", "IN" ], [ "state", "NN" ], [ "of", "IN" ], [ "ca", "MD" ], [ "?", "." ] ], "values": [ "CA", "customers" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "store_1", "query": "SELECT count(*) FROM customers WHERE state = \"CA\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "WHERE", "state", "=", "``", "CA", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "where", "state", "=", "value" ], "question": "How many customers are from California?", "question_toks": [ "how", "many", "customer", "are", "from", "california", "?" ], "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": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"CA\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "customers", "are", "from", "California", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "are" ], [ "from" ], [ "california" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "state" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "california", "NN" ], [ "?", "." ] ], "values": [ "CA", "customers" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(2) A(0) C(13) T(4) V(0)" }, { "db_id": "store_1", "query": "SELECT country FROM customers WHERE first_name = \"Roberto\" AND last_name = \"Almeida\";", "query_toks": [ "SELECT", "country", "FROM", "customers", "WHERE", "first_name", "=", "``", "Roberto", "''", "AND", "last_name", "=", "``", "Almeida", "''", ";" ], "query_toks_no_value": [ "select", "country", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What country does Roberto Almeida live?", "question_toks": [ "what", "country", "doe", "roberto", "almeida", "live", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Roberto\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Almeida\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "country", "does", "Roberto", "Almeida", "live", "?" ], "question_arg": [ [ "what" ], [ "country" ], [ "doe" ], [ "roberto" ], [ "almeida" ], [ "live" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "country", "NN" ], [ "doe", "VBD" ], [ "roberto", "JJ" ], [ "almeida", "NN" ], [ "live", "NN" ], [ "?", "." ] ], "values": [ "Almeida", "Robert", "Roberto" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(4) Filter(0) Filter(2) A(0) C(7) T(4) V(2) Filter(2) A(0) C(6) T(4) V(0)" }, { "db_id": "store_1", "query": "SELECT country FROM customers WHERE first_name = \"Roberto\" AND last_name = \"Almeida\";", "query_toks": [ "SELECT", "country", "FROM", "customers", "WHERE", "first_name", "=", "``", "Roberto", "''", "AND", "last_name", "=", "``", "Almeida", "''", ";" ], "query_toks_no_value": [ "select", "country", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "In which country does Roberto Almeida?", "question_toks": [ "in", "which", "country", "doe", "roberto", "almeida", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 30, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Roberto\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Almeida\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "In", "which", "country", "does", "Roberto", "Almeida", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "country" ], [ "doe" ], [ "roberto" ], [ "almeida" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "country", "NN" ], [ "doe", "VBZ" ], [ "roberto", "VB" ], [ "almeida", "NN" ], [ "?", "." ] ], "values": [ "Almeida", "Robert", "Roberto" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(4) Filter(0) Filter(2) A(0) C(7) T(4) V(2) Filter(2) A(0) C(6) T(4) V(0)" }, { "db_id": "store_1", "query": "SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%'", "query_toks": [ "SELECT", "T2.title", "FROM", "artists", "AS", "T1", "JOIN", "albums", "AS", "T2", "ON", "T1.id", "=", "T2.artist_id", "WHERE", "T1.name", "LIKE", "'", "%", "Led", "%", "'" ], "query_toks_no_value": [ "select", "t2", ".", "title", "from", "artists", "as", "t1", "join", "albums", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "artist_id", "where", "t1", ".", "name", "like", "value" ], "question": "List the name of albums that are released by aritist whose name has 'Led'", "question_toks": [ "list", "name", "of", "album", "that", "are", "released", "by", "aritist", "whose", "name", "ha", "'", "led", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 2, false ], null ], "\"%Led%\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "name", "of", "albums", "that", "are", "released", "by", "aritist", "whose", "name", "has", "'Led", "'" ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "album" ], [ "that" ], [ "are" ], [ "released" ], [ "by" ], [ "aritist" ], [ "whose" ], [ "name" ], [ "ha" ], [ "'" ], [ "led" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "album", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "released", "VBN" ], [ "by", "IN" ], [ "aritist", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "ha", "NN" ], [ "'", "''" ], [ "led", "VBN" ], [ "'", "POS" ] ], "values": [ "Led", "albums" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(2) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "store_1", "query": "SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%'", "query_toks": [ "SELECT", "T2.title", "FROM", "artists", "AS", "T1", "JOIN", "albums", "AS", "T2", "ON", "T1.id", "=", "T2.artist_id", "WHERE", "T1.name", "LIKE", "'", "%", "Led", "%", "'" ], "query_toks_no_value": [ "select", "t2", ".", "title", "from", "artists", "as", "t1", "join", "albums", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "artist_id", "where", "t1", ".", "name", "like", "value" ], "question": "What is the title of the album that was released by the artist whose name has the phrase 'Led'?", "question_toks": [ "what", "is", "title", "of", "album", "that", "wa", "released", "by", "artist", "whose", "name", "ha", "phrase", "'", "led", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 2, false ], null ], "\"%Led%\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "title", "of", "the", "album", "that", "was", "released", "by", "the", "artist", "whose", "name", "has", "the", "phrase", "'Led", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "of" ], [ "album" ], [ "that" ], [ "wa" ], [ "released" ], [ "by" ], [ "artist" ], [ "whose" ], [ "name" ], [ "ha" ], [ "phrase" ], [ "'" ], [ "led" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "NN" ], [ "of", "IN" ], [ "album", "NN" ], [ "that", "IN" ], [ "wa", "NN" ], [ "released", "VBN" ], [ "by", "IN" ], [ "artist", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "ha", "JJ" ], [ "phrase", "NN" ], [ "'", "''" ], [ "led", "VBN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Led", "albums", "artists" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(2) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "store_1", "query": "SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "employees", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T2.support_rep_id", "=", "T1.id", "WHERE", "T1.first_name", "=", "``", "Steve", "''", "AND", "T1.last_name", "=", "``", "Johnson", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employees", "as", "t1", "join", "customers", "as", "t2", "on", "t2", ".", "support_rep_id", "=", "t1", ".", "id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ], "question": "How many customers does Steve Johnson support?", "question_toks": [ "how", "many", "customer", "doe", "steve", "johnson", "support", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 35, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "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 ], "\"Steve\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Johnson\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "customers", "does", "Steve", "Johnson", "support", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "doe" ], [ "steve" ], [ "johnson" ], [ "support" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "doe", "NNS" ], [ "steve", "VBP" ], [ "johnson", "NN" ], [ "support", "NN" ], [ "?", "." ] ], "values": [ "Johansson", "Steve", "Johnson", "customers" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(0) Filter(2) A(0) C(7) T(3) V(1) Filter(2) A(0) C(6) T(3) V(2)" }, { "db_id": "store_1", "query": "SELECT count(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "employees", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T2.support_rep_id", "=", "T1.id", "WHERE", "T1.first_name", "=", "``", "Steve", "''", "AND", "T1.last_name", "=", "``", "Johnson", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employees", "as", "t1", "join", "customers", "as", "t2", "on", "t2", ".", "support_rep_id", "=", "t1", ".", "id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ], "question": "What is the count of customers that Steve Johnson supports?", "question_toks": [ "what", "is", "count", "of", "customer", "that", "steve", "johnson", "support", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 35, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "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 ], "\"Steve\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Johnson\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "count", "of", "customers", "that", "Steve", "Johnson", "supports", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "count" ], [ "of" ], [ "customer" ], [ "that" ], [ "steve" ], [ "johnson" ], [ "support" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "count", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "that", "IN" ], [ "steve", "VBP" ], [ "johnson", "NN" ], [ "support", "NN" ], [ "?", "." ] ], "values": [ "Johansson", "Steve", "Johnson", "customers" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(4) Filter(0) Filter(2) A(0) C(7) T(3) V(1) Filter(2) A(0) C(6) T(3) V(2)" }, { "db_id": "store_1", "query": "SELECT title , phone , hire_date FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";", "query_toks": [ "SELECT", "title", ",", "phone", ",", "hire_date", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";" ], "query_toks_no_value": [ "select", "title", ",", "phone", ",", "hire_date", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is the title, phone and hire date of Nancy Edwards?", "question_toks": [ "what", "is", "title", ",", "phone", "and", "hire", "date", "of", "nancy", "edward", "?" ], "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, 20, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Nancy\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Edwards\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "title", ",", "phone", "and", "hire", "date", "of", "Nancy", "Edwards", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "," ], [ "phone" ], [ "and" ], [ "hire", "date" ], [ "of" ], [ "nancy" ], [ "edward" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "JJ" ], [ ",", "," ], [ "phone", "NN" ], [ "and", "CC" ], [ "hire", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "nancy", "NN" ], [ "edward", "NN" ], [ "?", "." ] ], "values": [ "Nancy", "Edward", "Edwards" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(4) T(3) A(0) C(16) T(3) A(0) C(10) T(3) Filter(0) Filter(2) A(0) C(7) T(3) V(0) Filter(2) A(0) C(6) T(3) V(2)" }, { "db_id": "store_1", "query": "SELECT title , phone , hire_date FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";", "query_toks": [ "SELECT", "title", ",", "phone", ",", "hire_date", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";" ], "query_toks_no_value": [ "select", "title", ",", "phone", ",", "hire_date", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is the title, phone number and hire date for the employee named Nancy Edwards?", "question_toks": [ "what", "is", "title", ",", "phone", "number", "and", "hire", "date", "for", "employee", "named", "nancy", "edward", "?" ], "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, 20, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Nancy\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Edwards\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "title", ",", "phone", "number", "and", "hire", "date", "for", "the", "employee", "named", "Nancy", "Edwards", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "," ], [ "phone" ], [ "number" ], [ "and" ], [ "hire", "date" ], [ "for" ], [ "employee" ], [ "named" ], [ "nancy" ], [ "edward" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "JJ" ], [ ",", "," ], [ "phone", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "hire", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "named", "VBN" ], [ "nancy", "NN" ], [ "edward", "NN" ], [ "?", "." ] ], "values": [ "Nancy", "employees", "Numbers", "Edward", "Edwards" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(4) T(3) A(0) C(16) T(3) A(0) C(10) T(3) Filter(0) Filter(2) A(0) C(7) T(3) V(0) Filter(2) A(0) C(6) T(3) V(4)" }, { "db_id": "store_1", "query": "SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = \"Nancy\" AND T1.last_name = \"Edwards\";", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "employees", "AS", "T1", "JOIN", "employees", "AS", "T2", "ON", "T1.id", "=", "T2.reports_to", "WHERE", "T1.first_name", "=", "``", "Nancy", "''", "AND", "T1.last_name", "=", "``", "Edwards", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "employees", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "reports_to", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ], "question": "find the full name of employees who report to Nancy Edwards?", "question_toks": [ "find", "full", "name", "of", "employee", "who", "report", "to", "nancy", "edward", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Nancy\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Edwards\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "find", "the", "full", "name", "of", "employees", "who", "report", "to", "Nancy", "Edwards", "?" ], "question_arg": [ [ "find" ], [ "full" ], [ "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "report", "to" ], [ "nancy" ], [ "edward" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "report", "VBP" ], [ "to", "TO" ], [ "nancy", "VB" ], [ "edward", "RB" ], [ "?", "." ] ], "values": [ "employees", "Edward", "Edwards", "Nancy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(3) A(0) C(6) T(3) Filter(0) Filter(2) A(0) C(7) T(3) V(3) Filter(2) A(0) C(6) T(3) V(2)" }, { "db_id": "store_1", "query": "SELECT T2.first_name , T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = \"Nancy\" AND T1.last_name = \"Edwards\";", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "employees", "AS", "T1", "JOIN", "employees", "AS", "T2", "ON", "T1.id", "=", "T2.reports_to", "WHERE", "T1.first_name", "=", "``", "Nancy", "''", "AND", "T1.last_name", "=", "``", "Edwards", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "employees", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "reports_to", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ], "question": "What is the first and last name of the employee who reports to Nancy Edwards?", "question_toks": [ "what", "is", "first", "and", "last", "name", "of", "employee", "who", "report", "to", "nancy", "edward", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Nancy\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Edwards\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "first", "and", "last", "name", "of", "the", "employee", "who", "reports", "to", "Nancy", "Edwards", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "report", "to" ], [ "nancy" ], [ "edward" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "report", "VBP" ], [ "to", "TO" ], [ "nancy", "VB" ], [ "edward", "RB" ], [ "?", "." ] ], "values": [ "Nancy", "employees", "1", "Edward", "Edwards" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(3) A(0) C(6) T(3) Filter(0) Filter(2) A(0) C(7) T(3) V(0) Filter(2) A(0) C(6) T(3) V(4)" }, { "db_id": "store_1", "query": "SELECT address FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";", "query_toks": [ "SELECT", "address", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";" ], "query_toks_no_value": [ "select", "address", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is the address of employee Nancy Edwards?", "question_toks": [ "what", "is", "address", "of", "employee", "nancy", "edward", "?" ], "sql": { "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, 10, false ], null ], "\"Nancy\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Edwards\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "address", "of", "employee", "Nancy", "Edwards", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "address" ], [ "of" ], [ "employee" ], [ "nancy" ], [ "edward" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "address", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "nancy", "NN" ], [ "edward", "NN" ], [ "?", "." ] ], "values": [ "Edward", "Edwards", "Nancy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(0) Filter(2) A(0) C(7) T(3) V(2) Filter(2) A(0) C(6) T(3) V(1)" }, { "db_id": "store_1", "query": "SELECT address FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";", "query_toks": [ "SELECT", "address", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";" ], "query_toks_no_value": [ "select", "address", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is Nancy Edwards's address?", "question_toks": [ "what", "is", "nancy", "edward", "'s", "address", "?" ], "sql": { "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, 10, false ], null ], "\"Nancy\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Edwards\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "Nancy", "Edwards", "'s", "address", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "nancy" ], [ "edward" ], [ "'s" ], [ "address" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "nancy", "DT" ], [ "edward", "NN" ], [ "'s", "POS" ], [ "address", "NN" ], [ "?", "." ] ], "values": [ "Edwards", "Edward", "Nancy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(3) Filter(0) Filter(2) A(0) C(7) T(3) V(2) Filter(2) A(0) C(6) T(3) V(0)" }, { "db_id": "store_1", "query": "SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "employees", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.id", "=", "T2.support_rep_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "employees", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "support_rep_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the full name of employee who supported the most number of customers.", "question_toks": [ "find", "full", "name", "of", "employee", "who", "supported", "most", "number", "of", "customer", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 35, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "Find", "the", "full", "name", "of", "employee", "who", "supported", "the", "most", "number", "of", "customers", "." ], "question_arg": [ [ "find" ], [ "full" ], [ "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "supported" ], [ "most" ], [ "number" ], [ "of" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "supported", "VBD" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [ "employees", "customers", "Numbers" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(7) T(3) A(0) C(6) T(3) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(3) T(3) Root(5) Sel(0) N(0) A(0) C(20) T(4)" }, { "db_id": "store_1", "query": "SELECT T1.first_name , T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.first_name", ",", "T1.last_name", "FROM", "employees", "AS", "T1", "JOIN", "customers", "AS", "T2", "ON", "T1.id", "=", "T2.support_rep_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "first_name", ",", "t1", ".", "last_name", "from", "employees", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "support_rep_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the full name of the employee who has the most customers?", "question_toks": [ "what", "is", "full", "name", "of", "employee", "who", "ha", "most", "customer", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 35, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "full", "name", "of", "the", "employee", "who", "has", "the", "most", "customers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "full" ], [ "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "ha" ], [ "most" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [ "employees", "customers" ], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(7) T(3) A(0) C(6) T(3) Sup(0) A(3) C(0) T(4) Filter(18) A(0) C(3) T(3) Root(5) Sel(0) N(0) A(0) C(20) T(4)" }, { "db_id": "store_1", "query": "SELECT count(*) FROM employees WHERE country = \"Canada\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "employees", "WHERE", "country", "=", "``", "Canada", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employees", "where", "country", "=", "value" ], "question": "How many employees are living in Canada?", "question_toks": [ "how", "many", "employee", "are", "living", "in", "canada", "?" ], "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": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Canada\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "employees", "are", "living", "in", "Canada", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "employee" ], [ "are" ], [ "living" ], [ "in" ], [ "canada" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "state" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "employee", "NN" ], [ "are", "VBP" ], [ "living", "VBG" ], [ "in", "IN" ], [ "canada", "NN" ], [ "?", "." ] ], "values": [ "employees", "Canada" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(14) T(3) V(1)" }, { "db_id": "store_1", "query": "SELECT count(*) FROM employees WHERE country = \"Canada\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "employees", "WHERE", "country", "=", "``", "Canada", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "employees", "where", "country", "=", "value" ], "question": "How many employees live in Canada?", "question_toks": [ "how", "many", "employee", "live", "in", "canada", "?" ], "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": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Canada\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "employees", "live", "in", "Canada", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "employee" ], [ "live" ], [ "in" ], [ "canada" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "state" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "employee", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "canada", "NN" ], [ "?", "." ] ], "values": [ "Canada", "employees" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(14) T(3) V(0)" }, { "db_id": "store_1", "query": "SELECT phone FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";", "query_toks": [ "SELECT", "phone", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";" ], "query_toks_no_value": [ "select", "phone", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is employee Nancy Edwards's phone number?", "question_toks": [ "what", "is", "employee", "nancy", "edward", "'s", "phone", "number", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Nancy\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Edwards\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "employee", "Nancy", "Edwards", "'s", "phone", "number", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "employee" ], [ "nancy" ], [ "edward" ], [ "'s" ], [ "phone" ], [ "number" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "employee", "NN" ], [ "nancy", "NN" ], [ "edward", "NN" ], [ "'s", "POS" ], [ "phone", "NN" ], [ "number", "NN" ], [ "?", "." ] ], "values": [ "Nancy", "Edward", "Edwards", "Numbers" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(0) Filter(2) A(0) C(7) T(3) V(0) Filter(2) A(0) C(6) T(3) V(2)" }, { "db_id": "store_1", "query": "SELECT phone FROM employees WHERE first_name = \"Nancy\" AND last_name = \"Edwards\";", "query_toks": [ "SELECT", "phone", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";" ], "query_toks_no_value": [ "select", "phone", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value" ], "question": "What is the the phone number of Nancy Edwards?", "question_toks": [ "what", "is", "phone", "number", "of", "nancy", "edward", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Nancy\"", null ], "and", [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Edwards\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "the", "phone", "number", "of", "Nancy", "Edwards", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "phone" ], [ "number" ], [ "of" ], [ "nancy" ], [ "edward" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "nancy", "NN" ], [ "edward", "NN" ], [ "?", "." ] ], "values": [ "Nancy", "Edward", "Edwards", "Numbers" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(3) Filter(0) Filter(2) A(0) C(7) T(3) V(0) Filter(2) A(0) C(6) T(3) V(2)" }, { "db_id": "store_1", "query": "SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "employees", "ORDER", "BY", "birth_date", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "employees", "order", "by", "birth_date", "desc", "limit", "value" ], "question": "Who is the youngest employee in the company? List employee's first and last name.", "question_toks": [ "who", "is", "youngest", "employee", "in", "company", "?", "list", "employee", "'s", "first", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "Who", "is", "the", "youngest", "employee", "in", "the", "company", "?", "List", "employee", "'s", "first", "and", "last", "name", "." ], "question_arg": [ [ "who" ], [ "is" ], [ "youngest" ], [ "employee" ], [ "in" ], [ "company" ], [ "?" ], [ "list" ], [ "employee" ], [ "'s" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "youngest", "JJS" ], [ "employee", "NN" ], [ "in", "IN" ], [ "company", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "employee", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "employees", "1", "Lost" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(3) A(0) C(6) T(3) Sup(0) A(0) C(9) T(3)" }, { "db_id": "store_1", "query": "SELECT first_name , last_name FROM employees ORDER BY birth_date DESC LIMIT 1;", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "employees", "ORDER", "BY", "birth_date", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "employees", "order", "by", "birth_date", "desc", "limit", "value" ], "question": "What si the youngest employee's first and last name?", "question_toks": [ "what", "si", "youngest", "employee", "'s", "first", "and", "last", "name", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "si", "the", "youngest", "employee", "'s", "first", "and", "last", "name", "?" ], "question_arg": [ [ "what" ], [ "si" ], [ "youngest" ], [ "employee" ], [ "'s" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "si", "VBD" ], [ "youngest", "JJS" ], [ "employee", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "1", "employees" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(3) A(0) C(6) T(3) Sup(0) A(0) C(9) T(3)" }, { "db_id": "store_1", "query": "SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "employees", "ORDER", "BY", "hire_date", "ASC", "LIMIT", "10", ";" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "employees", "order", "by", "hire_date", "asc", "limit", "value" ], "question": "List top 10 employee work longest in the company. List employee's first and last name.", "question_toks": [ "list", "top", "10", "employee", "work", "longest", "in", "company", ".", "list", "employee", "'s", "first", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 10, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "top", "10", "employee", "work", "longest", "in", "the", "company", ".", "List", "employee", "'s", "first", "and", "last", "name", "." ], "question_arg": [ [ "list" ], [ "top" ], [ "10" ], [ "employee" ], [ "work" ], [ "longest" ], [ "in" ], [ "company" ], [ "." ], [ "list" ], [ "employee" ], [ "'s" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "top", "NN" ], [ "10", "CD" ], [ "employee", "NN" ], [ "work", "NN" ], [ "longest", "JJS" ], [ "in", "IN" ], [ "company", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "employee", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1", "Lost", "10", "employees" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(3) A(0) C(6) T(3) Sup(1) A(0) C(10) T(3)" }, { "db_id": "store_1", "query": "SELECT first_name , last_name FROM employees ORDER BY hire_date ASC LIMIT 10;", "query_toks": [ "SELECT", "first_name", ",", "last_name", "FROM", "employees", "ORDER", "BY", "hire_date", "ASC", "LIMIT", "10", ";" ], "query_toks_no_value": [ "select", "first_name", ",", "last_name", "from", "employees", "order", "by", "hire_date", "asc", "limit", "value" ], "question": "What are the first and last names of the top 10 longest-serving employees?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "top", "10", "longest-serving", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 10, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "the", "top", "10", "longest-serving", "employees", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "top" ], [ "10" ], [ "longest-serving" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "10", "CD" ], [ "longest-serving", "JJ" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [ "1", "10", "employees" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(7) T(3) A(0) C(6) T(3) Sup(1) A(0) C(10) T(3)" }, { "db_id": "store_1", "query": "SELECT count(*) , city FROM employees WHERE title = 'IT Staff' GROUP BY city", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "city", "FROM", "employees", "WHERE", "title", "=", "'IT", "Staff", "'", "GROUP", "BY", "city" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "city", "from", "employees", "where", "title", "=", "value", "group", "by", "city" ], "question": "Find the number of employees whose title is IT Staff from each city?", "question_toks": [ "find", "number", "of", "employee", "whose", "title", "is", "it", "staff", "from", "each", "city", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"IT Staff\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "Find", "the", "number", "of", "employees", "whose", "title", "is", "IT", "Staff", "from", "each", "city", "?" ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "employee" ], [ "whose" ], [ "title" ], [ "is" ], [ "it" ], [ "staff" ], [ "from" ], [ "each" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "whose", "WP$" ], [ "title", "NN" ], [ "is", "VBZ" ], [ "it", "PRP" ], [ "staff", "NN" ], [ "from", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "Numbers", "IT Staff", "employees" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(3) A(0) C(12) T(3) Filter(2) A(0) C(4) T(3) V(1)" }, { "db_id": "store_1", "query": "SELECT count(*) , city FROM employees WHERE title = 'IT Staff' GROUP BY city", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "city", "FROM", "employees", "WHERE", "title", "=", "'IT", "Staff", "'", "GROUP", "BY", "city" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "city", "from", "employees", "where", "title", "=", "value", "group", "by", "city" ], "question": "How many employees who are IT staff are from each city?", "question_toks": [ "how", "many", "employee", "who", "are", "it", "staff", "are", "from", "each", "city", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"IT Staff\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "employees", "who", "are", "IT", "staff", "are", "from", "each", "city", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "employee" ], [ "who" ], [ "are" ], [ "it" ], [ "staff" ], [ "are" ], [ "from" ], [ "each" ], [ "city" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "employee", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "it", "PRP" ], [ "staff", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "each", "DT" ], [ "city", "NN" ], [ "?", "." ] ], "values": [ "employees", "IT Staff" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(3) A(0) C(12) T(3) Filter(2) A(0) C(4) T(3) V(1)" }, { "db_id": "store_1", "query": "SELECT T2.first_name , T2.last_name , count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", ",", "count", "(", "T1.reports_to", ")", "FROM", "employees", "AS", "T1", "JOIN", "employees", "AS", "T2", "ON", "T1.reports_to", "=", "T2.id", "GROUP", "BY", "T1.reports_to", "ORDER", "BY", "count", "(", "T1.reports_to", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", ",", "count", "(", "t1", ".", "reports_to", ")", "from", "employees", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "reports_to", "=", "t2", ".", "id", "group", "by", "t1", ".", "reports_to", "order", "by", "count", "(", "t1", ".", "reports_to", ")", "desc", "limit", "value" ], "question": "Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee.", "question_toks": [ "which", "employee", "manage", "most", "number", "of", "people", "?", "list", "employee", "'s", "first", "and", "last", "name", ",", "and", "number", "of", "people", "report", "to", "that", "employee", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 3, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "Which", "employee", "manage", "most", "number", "of", "peoples", "?", "List", "employee", "'s", "first", "and", "last", "name", ",", "and", "number", "of", "people", "report", "to", "that", "employee", "." ], "question_arg": [ [ "which" ], [ "employee" ], [ "manage" ], [ "most" ], [ "number" ], [ "of" ], [ "people" ], [ "?" ], [ "list" ], [ "employee" ], [ "'s" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "," ], [ "and" ], [ "number" ], [ "of" ], [ "people" ], [ "report", "to" ], [ "that" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "employee", "NN" ], [ "manage", "NN" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "?", "." ], [ "list", "NN" ], [ "employee", "NN" ], [ "'s", "POS" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "report", "VBP" ], [ "to", "TO" ], [ "that", "DT" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [ "Numbers", "Lost", "employees", "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(7) T(3) A(0) C(6) T(3) A(3) C(8) T(3) Sup(0) A(3) C(8) T(3)" }, { "db_id": "store_1", "query": "SELECT T2.first_name , T2.last_name , count(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY count(T1.reports_to) DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.first_name", ",", "T2.last_name", ",", "count", "(", "T1.reports_to", ")", "FROM", "employees", "AS", "T1", "JOIN", "employees", "AS", "T2", "ON", "T1.reports_to", "=", "T2.id", "GROUP", "BY", "T1.reports_to", "ORDER", "BY", "count", "(", "T1.reports_to", ")", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "first_name", ",", "t2", ".", "last_name", ",", "count", "(", "t1", ".", "reports_to", ")", "from", "employees", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "reports_to", "=", "t2", ".", "id", "group", "by", "t1", ".", "reports_to", "order", "by", "count", "(", "t1", ".", "reports_to", ")", "desc", "limit", "value" ], "question": "What are the first and last names of all the employees and how many people report to them?", "question_toks": [ "what", "are", "first", "and", "last", "name", "of", "all", "employee", "and", "how", "many", "people", "report", "to", "them", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 3, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "first", "and", "last", "names", "of", "all", "the", "employees", "and", "how", "many", "people", "report", "to", "them", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "all" ], [ "employee" ], [ "and" ], [ "how" ], [ "many" ], [ "people" ], [ "report", "to" ], [ "them" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "people", "NNS" ], [ "report", "VBP" ], [ "to", "TO" ], [ "them", "PRP" ], [ "?", "." ] ], "values": [ "employees", "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(7) T(3) A(0) C(6) T(3) A(3) C(8) T(3) Sup(0) A(3) C(8) T(3)" }, { "db_id": "store_1", "query": "SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T1.id", "=", "T2.customer_id", "WHERE", "T1.first_name", "=", "``", "Lucas", "''", "AND", "T1.last_name", "=", "``", "Mancini", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "customer_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ], "question": "How many orders does Lucas Mancini has?", "question_toks": [ "how", "many", "order", "doe", "lucas", "mancini", "ha", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 39, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Lucas\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Mancini\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "orders", "does", "Lucas", "Mancini", "has", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "order" ], [ "doe" ], [ "lucas" ], [ "mancini" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "order", "NN" ], [ "doe", "NNS" ], [ "lucas", "VBP" ], [ "mancini", "NN" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [ "Lucas", "Mancini" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(0) Filter(2) A(0) C(7) T(4) V(0) Filter(2) A(0) C(6) T(4) V(1)" }, { "db_id": "store_1", "query": "SELECT count(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T1.id", "=", "T2.customer_id", "WHERE", "T1.first_name", "=", "``", "Lucas", "''", "AND", "T1.last_name", "=", "``", "Mancini", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "customer_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ], "question": "How many orders does Luca Mancini have in his invoices?", "question_toks": [ "how", "many", "order", "doe", "luca", "mancini", "have", "in", "his", "invoice", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 39, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Lucas\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Mancini\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "orders", "does", "Luca", "Mancini", "have", "in", "his", "invoices", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "order" ], [ "doe" ], [ "luca" ], [ "mancini" ], [ "have" ], [ "in" ], [ "his" ], [ "invoice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "order", "NN" ], [ "doe", "NNS" ], [ "luca", "VBP" ], [ "mancini", "NNS" ], [ "have", "VBP" ], [ "in", "IN" ], [ "his", "PRP$" ], [ "invoice", "NN" ], [ "?", "." ] ], "values": [ "Lucas", "Mancini", "invoices" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(0) Filter(2) A(0) C(7) T(4) V(0) Filter(2) A(0) C(6) T(4) V(1)" }, { "db_id": "store_1", "query": "SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";", "query_toks": [ "SELECT", "sum", "(", "T2.total", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T1.id", "=", "T2.customer_id", "WHERE", "T1.first_name", "=", "``", "Lucas", "''", "AND", "T1.last_name", "=", "``", "Mancini", "''", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "total", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "customer_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ], "question": "What is the total amount of money spent by Lucas Mancini?", "question_toks": [ "what", "is", "total", "amount", "of", "money", "spent", "by", "lucas", "mancini", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 39, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Lucas\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Mancini\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "total", "amount", "of", "money", "spent", "by", "Lucas", "Mancini", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "amount" ], [ "of" ], [ "money" ], [ "spent" ], [ "by" ], [ "lucas" ], [ "mancini" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "money", "NN" ], [ "spent", "VBN" ], [ "by", "IN" ], [ "lucas", "NN" ], [ "mancini", "NN" ], [ "?", "." ] ], "values": [ "Lucas", "Mancini", "Money" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(28) T(6) Filter(0) Filter(2) A(0) C(7) T(4) V(0) Filter(2) A(0) C(6) T(4) V(1)" }, { "db_id": "store_1", "query": "SELECT sum(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\";", "query_toks": [ "SELECT", "sum", "(", "T2.total", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T1.id", "=", "T2.customer_id", "WHERE", "T1.first_name", "=", "``", "Lucas", "''", "AND", "T1.last_name", "=", "``", "Mancini", "''", ";" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "total", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "customer_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value" ], "question": "How much money did Lucas Mancini spend?", "question_toks": [ "how", "much", "money", "did", "lucas", "mancini", "spend", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 39, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Lucas\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Mancini\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "much", "money", "did", "Lucas", "Mancini", "spend", "?" ], "question_arg": [ [ "how" ], [ "much" ], [ "money" ], [ "did" ], [ "lucas" ], [ "mancini" ], [ "spend" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "much", "JJ" ], [ "money", "NN" ], [ "did", "VBD" ], [ "lucas", "RB" ], [ "mancini", "VB" ], [ "spend", "NN" ], [ "?", "." ] ], "values": [ "Lucas", "Mancini", "Money" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(28) T(6) Filter(0) Filter(2) A(0) C(7) T(4) V(0) Filter(2) A(0) C(6) T(4) V(1)" }, { "db_id": "store_1", "query": "SELECT name FROM media_types;", "query_toks": [ "SELECT", "name", "FROM", "media_types", ";" ], "query_toks_no_value": [ "select", "name", "from", "media_types" ], "question": "List all media types.", "question_toks": [ "list", "all", "medium", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 48, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "all", "media", "types", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "medium", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "medium", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "media_types" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(1) T(7)" }, { "db_id": "store_1", "query": "SELECT name FROM media_types;", "query_toks": [ "SELECT", "name", "FROM", "media_types", ";" ], "query_toks_no_value": [ "select", "name", "from", "media_types" ], "question": "What are the names of all the media types?", "question_toks": [ "what", "are", "name", "of", "all", "medium", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 48, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "media", "types", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "medium", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "medium", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [ "media_types" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(1) T(7)" }, { "db_id": "store_1", "query": "SELECT DISTINCT name FROM genres;", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "genres", ";" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "genres" ], "question": "List all different genre types.", "question_toks": [ "list", "all", "different", "genre", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "all", "different", "genre", "types", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "different" ], [ "genre" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "different", "JJ" ], [ "genre", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "genres" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(1) T(5)" }, { "db_id": "store_1", "query": "SELECT DISTINCT name FROM genres;", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "genres", ";" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "genres" ], "question": "What are the different names of the genres?", "question_toks": [ "what", "are", "different", "name", "of", "genre", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "of", "the", "genres", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "of" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [ "genres" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(1) T(5)" }, { "db_id": "store_1", "query": "SELECT name FROM playlists;", "query_toks": [ "SELECT", "name", "FROM", "playlists", ";" ], "query_toks_no_value": [ "select", "name", "from", "playlists" ], "question": "List the name of all playlist.", "question_toks": [ "list", "name", "of", "all", "playlist", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 64, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "name", "of", "all", "playlist", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "playlist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "playlist", "NN" ], [ ".", "." ] ], "values": [ "playlists" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(1) T(10)" }, { "db_id": "store_1", "query": "SELECT name FROM playlists;", "query_toks": [ "SELECT", "name", "FROM", "playlists", ";" ], "query_toks_no_value": [ "select", "name", "from", "playlists" ], "question": "What are the names of all the playlists?", "question_toks": [ "what", "are", "name", "of", "all", "playlist", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 64, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "playlists", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "playlist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "playlist", "NN" ], [ "?", "." ] ], "values": [ "playlists" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(1) T(10)" }, { "db_id": "store_1", "query": "SELECT composer FROM tracks WHERE name = \"Fast As a Shark\";", "query_toks": [ "SELECT", "composer", "FROM", "tracks", "WHERE", "name", "=", "``", "Fast", "As", "a", "Shark", "''", ";" ], "query_toks_no_value": [ "select", "composer", "from", "tracks", "where", "name", "=", "value" ], "question": "Who is the composer of track Fast As a Shark?", "question_toks": [ "who", "is", "composer", "of", "track", "fast", "a", "a", "shark", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 54, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"Fast As a Shark\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "Who", "is", "the", "composer", "of", "track", "Fast", "As", "a", "Shark", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "composer" ], [ "of" ], [ "track" ], [ "fast" ], [ "a" ], [ "a" ], [ "shark" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "composer", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "fast", "VBP" ], [ "a", "DT" ], [ "a", "DT" ], [ "shark", "NN" ], [ "?", "." ] ], "values": [ "Fast As a Shark" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(32) T(8) Filter(2) A(0) C(1) T(8) V(0)" }, { "db_id": "store_1", "query": "SELECT composer FROM tracks WHERE name = \"Fast As a Shark\";", "query_toks": [ "SELECT", "composer", "FROM", "tracks", "WHERE", "name", "=", "``", "Fast", "As", "a", "Shark", "''", ";" ], "query_toks_no_value": [ "select", "composer", "from", "tracks", "where", "name", "=", "value" ], "question": "What is the composer who created the track \"Fast As a Shark\"?", "question_toks": [ "what", "is", "composer", "who", "created", "track", "'", "fast", "a", "a", "shark", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 54, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"Fast As a Shark\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "composer", "who", "created", "the", "track", "``", "Fast", "As", "a", "Shark", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "composer" ], [ "who" ], [ "created" ], [ "track" ], [ "'" ], [ "fast" ], [ "a" ], [ "a" ], [ "shark" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "composer", "NN" ], [ "who", "WP" ], [ "created", "VBD" ], [ "track", "NN" ], [ "'", "''" ], [ "fast", "RB" ], [ "a", "DT" ], [ "a", "DT" ], [ "shark", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Fast As a Shark", "tracks" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(32) T(8) Filter(2) A(0) C(1) T(8) V(0)" }, { "db_id": "store_1", "query": "SELECT milliseconds FROM tracks WHERE name = \"Fast As a Shark\";", "query_toks": [ "SELECT", "milliseconds", "FROM", "tracks", "WHERE", "name", "=", "``", "Fast", "As", "a", "Shark", "''", ";" ], "query_toks_no_value": [ "select", "milliseconds", "from", "tracks", "where", "name", "=", "value" ], "question": "How long does track Fast As a Shark has?", "question_toks": [ "how", "long", "doe", "track", "fast", "a", "a", "shark", "ha", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"Fast As a Shark\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "long", "does", "track", "Fast", "As", "a", "Shark", "has", "?" ], "question_arg": [ [ "how" ], [ "long" ], [ "doe" ], [ "track" ], [ "fast" ], [ "a" ], [ "a" ], [ "shark" ], [ "ha" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "long", "JJ" ], [ "doe", "JJ" ], [ "track", "NN" ], [ "fast", "VBD" ], [ "a", "DT" ], [ "a", "DT" ], [ "shark", "NN" ], [ "ha", "NN" ], [ "?", "." ] ], "values": [ "Fast As a Shark" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(33) T(8) Filter(2) A(0) C(1) T(8) V(0)" }, { "db_id": "store_1", "query": "SELECT milliseconds FROM tracks WHERE name = \"Fast As a Shark\";", "query_toks": [ "SELECT", "milliseconds", "FROM", "tracks", "WHERE", "name", "=", "``", "Fast", "As", "a", "Shark", "''", ";" ], "query_toks_no_value": [ "select", "milliseconds", "from", "tracks", "where", "name", "=", "value" ], "question": "How many milliseconds long is Fast As a Shark?", "question_toks": [ "how", "many", "millisecond", "long", "is", "fast", "a", "a", "shark", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 55, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"Fast As a Shark\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "milliseconds", "long", "is", "Fast", "As", "a", "Shark", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "millisecond" ], [ "long" ], [ "is" ], [ "fast" ], [ "a" ], [ "a" ], [ "shark" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "millisecond", "NN" ], [ "long", "RB" ], [ "is", "VBZ" ], [ "fast", "RB" ], [ "a", "DT" ], [ "a", "DT" ], [ "shark", "NN" ], [ "?", "." ] ], "values": [ "Fast As a Shark" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(33) T(8) Filter(2) A(0) C(1) T(8) V(0)" }, { "db_id": "store_1", "query": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\";", "query_toks": [ "SELECT", "T2.name", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "WHERE", "T1.name", "=", "``", "Rock", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "where", "t1", ".", "name", "=", "value" ], "question": "What is the name of tracks whose genre is Rock?", "question_toks": [ "what", "is", "name", "of", "track", "whose", "genre", "is", "rock", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Rock\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "tracks", "whose", "genre", "is", "Rock", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "track" ], [ "whose" ], [ "genre" ], [ "is" ], [ "rock" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "whose", "WP$" ], [ "genre", "NN" ], [ "is", "VBZ" ], [ "rock", "VBN" ], [ "?", "." ] ], "values": [ "Rock", "tracks", "genres" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(2) A(0) C(1) T(5) V(0)" }, { "db_id": "store_1", "query": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\";", "query_toks": [ "SELECT", "T2.name", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "WHERE", "T1.name", "=", "``", "Rock", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "where", "t1", ".", "name", "=", "value" ], "question": "What is the name of all tracks in the Rock genre?", "question_toks": [ "what", "is", "name", "of", "all", "track", "in", "rock", "genre", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Rock\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "all", "tracks", "in", "the", "Rock", "genre", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "all" ], [ "track" ], [ "in" ], [ "rock" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "in", "IN" ], [ "rock", "NN" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [ "Rock", "tracks", "genres" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(2) A(0) C(1) T(5) V(0)" }, { "db_id": "store_1", "query": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = \"Balls to the Wall\";", "query_toks": [ "SELECT", "T1.title", "FROM", "albums", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "WHERE", "T2.name", "=", "``", "Balls", "to", "the", "Wall", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "albums", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "where", "t2", ".", "name", "=", "value" ], "question": "What is title of album which track Balls to the Wall belongs to?", "question_toks": [ "what", "is", "title", "of", "album", "which", "track", "ball", "to", "wall", "belongs", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"Balls to the Wall\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "title", "of", "album", "which", "track", "Balls", "to", "the", "Wall", "belongs", "to", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "of" ], [ "album" ], [ "which" ], [ "track" ], [ "ball" ], [ "to" ], [ "wall" ], [ "belongs" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "NN" ], [ "of", "IN" ], [ "album", "NN" ], [ "which", "WDT" ], [ "track", "VBP" ], [ "ball", "NN" ], [ "to", "TO" ], [ "wall", "VB" ], [ "belongs", "NNS" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "tracks", "Balls to the Wall", "The Wait", "albums" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(2) Filter(2) A(0) C(1) T(8) V(1)" }, { "db_id": "store_1", "query": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = \"Balls to the Wall\";", "query_toks": [ "SELECT", "T1.title", "FROM", "albums", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "WHERE", "T2.name", "=", "``", "Balls", "to", "the", "Wall", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "albums", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "where", "t2", ".", "name", "=", "value" ], "question": "What is the name of the album that has the track Ball to the Wall?", "question_toks": [ "what", "is", "name", "of", "album", "that", "ha", "track", "ball", "to", "wall", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"Balls to the Wall\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "album", "that", "has", "the", "track", "Ball", "to", "the", "Wall", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "album" ], [ "that" ], [ "ha" ], [ "track" ], [ "ball" ], [ "to" ], [ "wall" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "album", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "track", "RB" ], [ "ball", "NN" ], [ "to", "TO" ], [ "wall", "VB" ], [ "?", "." ] ], "values": [ "tracks", "albums", "Balls to the Wall" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(2) Filter(2) A(0) C(1) T(8) V(2)" }, { "db_id": "store_1", "query": "SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = \"Balls to the Wall\";", "query_toks": [ "SELECT", "T2.name", "FROM", "albums", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "WHERE", "T1.title", "=", "``", "Balls", "to", "the", "Wall", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "albums", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "where", "t1", ".", "title", "=", "value" ], "question": "List name of all tracks in Balls to the Wall.", "question_toks": [ "list", "name", "of", "all", "track", "in", "ball", "to", "wall", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Balls to the Wall\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "name", "of", "all", "tracks", "in", "Balls", "to", "the", "Wall", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "track" ], [ "in" ], [ "ball" ], [ "to" ], [ "wall" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "in", "IN" ], [ "ball", "NN" ], [ "to", "TO" ], [ "wall", "VB" ], [ ".", "." ] ], "values": [ "tracks", "Lost", "Balls to the Wall" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(2) A(0) C(4) T(2) V(2)" }, { "db_id": "store_1", "query": "SELECT T2.name FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.title = \"Balls to the Wall\";", "query_toks": [ "SELECT", "T2.name", "FROM", "albums", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "WHERE", "T1.title", "=", "``", "Balls", "to", "the", "Wall", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "albums", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "where", "t1", ".", "title", "=", "value" ], "question": "What is the name of all tracks in the album named Balls to the Wall?", "question_toks": [ "what", "is", "name", "of", "all", "track", "in", "album", "named", "ball", "to", "wall", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Balls to the Wall\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "all", "tracks", "in", "the", "album", "named", "Balls", "to", "the", "Wall", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "all" ], [ "track" ], [ "in" ], [ "album" ], [ "named" ], [ "ball" ], [ "to" ], [ "wall" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "in", "IN" ], [ "album", "NN" ], [ "named", "VBN" ], [ "ball", "NN" ], [ "to", "TO" ], [ "wall", "VB" ], [ "?", "." ] ], "values": [ "tracks", "albums", "Balls to the Wall", "The Wait" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(2) A(0) C(4) T(2) V(2)" }, { "db_id": "store_1", "query": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id) > 10;", "query_toks": [ "SELECT", "T1.title", "FROM", "albums", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.album_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "T1.id", ")", ">", "10", ";" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "albums", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "album_id", "group", "by", "t1", ".", "id", "having", "count", "(", "t1", ".", "id", ")", ">", "value" ], "question": "List title of albums have the number of tracks greater than 10.", "question_toks": [ "list", "title", "of", "album", "have", "number", "of", "track", "greater", "than", "10", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 51, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 3, [ 0, [ 3, 5, false ], null ], 10.0, null ] ], "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, 51, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "title", "of", "albums", "have", "the", "number", "of", "tracks", "greater", "than", "10", "." ], "question_arg": [ [ "list" ], [ "title" ], [ "of" ], [ "album" ], [ "have" ], [ "number" ], [ "of" ], [ "track" ], [ "greater" ], [ "than" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "album", "NN" ], [ "have", "VBP" ], [ "number", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "Numbers", "10", "albums", "tracks", "Lost" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(2) Filter(0) Filter(18) A(0) C(3) T(2) Root(5) Sel(0) N(0) A(0) C(29) T(8) Filter(5) A(3) C(3) T(2) V(1)" }, { "db_id": "store_1", "query": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING count(T1.id) > 10;", "query_toks": [ "SELECT", "T1.title", "FROM", "albums", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.album_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "T1.id", ")", ">", "10", ";" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "albums", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "album_id", "group", "by", "t1", ".", "id", "having", "count", "(", "t1", ".", "id", ")", ">", "value" ], "question": "What are the names of the albums that have more than 10 tracks?", "question_toks": [ "what", "are", "name", "of", "album", "that", "have", "more", "than", "10", "track", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 51, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 3, [ 0, [ 3, 5, false ], null ], 10.0, null ] ], "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, 51, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "albums", "that", "have", "more", "than", "10", "tracks", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "album" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "10" ], [ "track" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "album", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10", "CD" ], [ "track", "NN" ], [ "?", "." ] ], "values": [ "albums", "tracks", "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(2) Filter(0) Filter(18) A(0) C(3) T(2) Root(5) Sel(0) N(0) A(0) C(29) T(8) Filter(5) A(3) C(3) T(2) V(2)" }, { "db_id": "store_1", "query": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" AND T3.name = \"MPEG audio file\";", "query_toks": [ "SELECT", "T2.name", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "JOIN", "media_types", "AS", "T3", "ON", "T3.id", "=", "T2.media_type_id", "WHERE", "T1.name", "=", "``", "Rock", "''", "AND", "T3.name", "=", "``", "MPEG", "audio", "file", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "join", "media_types", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "media_type_id", "where", "t1", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value" ], "question": "List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.", "question_toks": [ "list", "name", "of", "track", "belongs", "to", "genre", "rock", "and", "whose", "medium", "type", "is", "mpeg", "audio", "file", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Rock\"", null ], "and", [ false, 2, [ 0, [ 0, 48, false ], null ], "\"MPEG audio file\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "name", "of", "tracks", "belongs", "to", "genre", "Rock", "and", "whose", "media", "type", "is", "MPEG", "audio", "file", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "track" ], [ "belongs" ], [ "to" ], [ "genre" ], [ "rock" ], [ "and" ], [ "whose" ], [ "medium", "type" ], [ "is" ], [ "mpeg" ], [ "audio" ], [ "file" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "belongs", "NNS" ], [ "to", "TO" ], [ "genre", "VB" ], [ "rock", "NN" ], [ "and", "CC" ], [ "whose", "WP$" ], [ "medium", "NN" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "mpeg", "JJ" ], [ "audio", "JJ" ], [ "file", "NN" ], [ ".", "." ] ], "values": [ "tracks", "genres", "Fire", "MPEG audio file", "Rock" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(2) A(0) C(1) T(5) V(4) Filter(2) A(0) C(1) T(7) V(3)" }, { "db_id": "store_1", "query": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" AND T3.name = \"MPEG audio file\";", "query_toks": [ "SELECT", "T2.name", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "JOIN", "media_types", "AS", "T3", "ON", "T3.id", "=", "T2.media_type_id", "WHERE", "T1.name", "=", "``", "Rock", "''", "AND", "T3.name", "=", "``", "MPEG", "audio", "file", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "join", "media_types", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "media_type_id", "where", "t1", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value" ], "question": "What are the names of all Rock tracks that are stored on MPEG audio files?", "question_toks": [ "what", "are", "name", "of", "all", "rock", "track", "that", "are", "stored", "on", "mpeg", "audio", "file", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Rock\"", null ], "and", [ false, 2, [ 0, [ 0, 48, false ], null ], "\"MPEG audio file\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "Rock", "tracks", "that", "are", "stored", "on", "MPEG", "audio", "files", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "rock" ], [ "track" ], [ "that" ], [ "are" ], [ "stored" ], [ "on" ], [ "mpeg" ], [ "audio" ], [ "file" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "rock", "NN" ], [ "track", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "stored", "VBN" ], [ "on", "IN" ], [ "mpeg", "NN" ], [ "audio", "NN" ], [ "file", "NN" ], [ "?", "." ] ], "values": [ "tracks", "Rock", "MPEG audio file" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(2) A(0) C(1) T(5) V(1) Filter(2) A(0) C(1) T(7) V(2)" }, { "db_id": "store_1", "query": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" OR T3.name = \"MPEG audio file\";", "query_toks": [ "SELECT", "T2.name", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "JOIN", "media_types", "AS", "T3", "ON", "T3.id", "=", "T2.media_type_id", "WHERE", "T1.name", "=", "``", "Rock", "''", "OR", "T3.name", "=", "``", "MPEG", "audio", "file", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "join", "media_types", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "media_type_id", "where", "t1", ".", "name", "=", "value", "or", "t3", ".", "name", "=", "value" ], "question": "List the name of tracks belongs to genre Rock or media type is MPEG audio file.", "question_toks": [ "list", "name", "of", "track", "belongs", "to", "genre", "rock", "or", "medium", "type", "is", "mpeg", "audio", "file", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Rock\"", null ], "or", [ false, 2, [ 0, [ 0, 48, false ], null ], "\"MPEG audio file\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "name", "of", "tracks", "belongs", "to", "genre", "Rock", "or", "media", "type", "is", "MPEG", "audio", "file", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "track" ], [ "belongs" ], [ "to" ], [ "genre" ], [ "rock" ], [ "or" ], [ "medium", "type" ], [ "is" ], [ "mpeg" ], [ "audio" ], [ "file" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "belongs", "NNS" ], [ "to", "TO" ], [ "genre", "VB" ], [ "rock", "NN" ], [ "or", "CC" ], [ "medium", "NN" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "mpeg", "JJ" ], [ "audio", "JJ" ], [ "file", "NN" ], [ ".", "." ] ], "values": [ "Rock", "media_types", "MPEG audio file", "genres", "tracks", "Fire" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(1) Filter(2) A(0) C(1) T(5) V(0) Filter(2) A(0) C(1) T(7) V(2)" }, { "db_id": "store_1", "query": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" OR T3.name = \"MPEG audio file\";", "query_toks": [ "SELECT", "T2.name", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "JOIN", "media_types", "AS", "T3", "ON", "T3.id", "=", "T2.media_type_id", "WHERE", "T1.name", "=", "``", "Rock", "''", "OR", "T3.name", "=", "``", "MPEG", "audio", "file", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "join", "media_types", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "media_type_id", "where", "t1", ".", "name", "=", "value", "or", "t3", ".", "name", "=", "value" ], "question": "What are the names of all tracks that belong to the Rock genre and whose media type is MPEG?", "question_toks": [ "what", "are", "name", "of", "all", "track", "that", "belong", "to", "rock", "genre", "and", "whose", "medium", "type", "is", "mpeg", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Rock\"", null ], "or", [ false, 2, [ 0, [ 0, 48, false ], null ], "\"MPEG audio file\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "tracks", "that", "belong", "to", "the", "Rock", "genre", "and", "whose", "media", "type", "is", "MPEG", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "track" ], [ "that" ], [ "belong" ], [ "to" ], [ "rock" ], [ "genre" ], [ "and" ], [ "whose" ], [ "medium", "type" ], [ "is" ], [ "mpeg" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "that", "WDT" ], [ "belong", "VBP" ], [ "to", "TO" ], [ "rock", "VB" ], [ "genre", "NN" ], [ "and", "CC" ], [ "whose", "WP$" ], [ "medium", "NN" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "mpeg", "VBN" ], [ "?", "." ] ], "values": [ "Rock", "genres", "tracks", "media_types", "MPEG audio file" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(1) Filter(2) A(0) C(1) T(5) V(0) Filter(2) A(0) C(1) T(7) V(4)" }, { "db_id": "store_1", "query": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\" OR T1.name = \"Jazz\"", "query_toks": [ "SELECT", "T2.name", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "WHERE", "T1.name", "=", "``", "Rock", "''", "OR", "T1.name", "=", "``", "Jazz", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "where", "t1", ".", "name", "=", "value", "or", "t1", ".", "name", "=", "value" ], "question": "List the name of tracks belongs to genre Rock or genre Jazz.", "question_toks": [ "list", "name", "of", "track", "belongs", "to", "genre", "rock", "or", "genre", "jazz", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Rock\"", null ], "or", [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Jazz\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "name", "of", "tracks", "belongs", "to", "genre", "Rock", "or", "genre", "Jazz", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "track" ], [ "belongs" ], [ "to" ], [ "genre" ], [ "rock" ], [ "or" ], [ "genre" ], [ "jazz" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "belongs", "NNS" ], [ "to", "TO" ], [ "genre", "VB" ], [ "rock", "NN" ], [ "or", "CC" ], [ "genre", "JJ" ], [ "jazz", "NN" ], [ ".", "." ] ], "values": [ "genres", "Jazz", "Rock", "tracks" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(1) Filter(2) A(0) C(1) T(5) V(2) Filter(2) A(0) C(1) T(5) V(1)" }, { "db_id": "store_1", "query": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = \"Rock\" OR T1.name = \"Jazz\"", "query_toks": [ "SELECT", "T2.name", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "WHERE", "T1.name", "=", "``", "Rock", "''", "OR", "T1.name", "=", "``", "Jazz", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "where", "t1", ".", "name", "=", "value", "or", "t1", ".", "name", "=", "value" ], "question": "What are the names of the tracks that are Rock or Jazz songs?", "question_toks": [ "what", "are", "name", "of", "track", "that", "are", "rock", "or", "jazz", "song", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Rock\"", null ], "or", [ false, 2, [ 0, [ 0, 37, false ], null ], "\"Jazz\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "tracks", "that", "are", "Rock", "or", "Jazz", "songs", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "track" ], [ "that" ], [ "are" ], [ "rock" ], [ "or" ], [ "jazz" ], [ "song" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "rock", "NN" ], [ "or", "CC" ], [ "jazz", "NN" ], [ "song", "NN" ], [ "?", "." ] ], "values": [ "tracks", "Rock", "Jazz" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(1) Filter(2) A(0) C(1) T(5) V(1) Filter(2) A(0) C(1) T(5) V(2)" }, { "db_id": "store_1", "query": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = \"Movies\";", "query_toks": [ "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T3.id", "=", "T2.playlist_id", "WHERE", "T3.name", "=", "``", "Movies", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "playlist_id", "where", "t3", ".", "name", "=", "value" ], "question": "List the name of all tracks in the playlists of Movies.", "question_toks": [ "list", "name", "of", "all", "track", "in", "playlist", "of", "movie", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 66, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 49, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 64, false ], null ], "\"Movies\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "name", "of", "all", "tracks", "in", "the", "playlists", "of", "Movies", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "track" ], [ "in" ], [ "playlist" ], [ "of" ], [ "movie" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "in", "IN" ], [ "playlist", "NN" ], [ "of", "IN" ], [ "movie", "NN" ], [ ".", "." ] ], "values": [ "tracks", "playlists", "Movies" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(18) A(0) C(3) T(8) Root(5) Sel(0) N(0) A(0) C(37) T(11) Filter(2) A(0) C(1) T(10) V(2)" }, { "db_id": "store_1", "query": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = \"Movies\";", "query_toks": [ "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T3.id", "=", "T2.playlist_id", "WHERE", "T3.name", "=", "``", "Movies", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "playlist_id", "where", "t3", ".", "name", "=", "value" ], "question": "What are the names of all tracks that are on playlists titled Movies?", "question_toks": [ "what", "are", "name", "of", "all", "track", "that", "are", "on", "playlist", "titled", "movie", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 66, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 49, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 64, false ], null ], "\"Movies\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "playlists", "titled", "Movies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "track" ], [ "that" ], [ "are" ], [ "on" ], [ "playlist" ], [ "titled" ], [ "movie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "on", "IN" ], [ "playlist", "NN" ], [ "titled", "VBN" ], [ "movie", "NN" ], [ "?", "." ] ], "values": [ "Movies", "tracks", "playlists" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(18) A(0) C(3) T(8) Root(5) Sel(0) N(0) A(0) C(37) T(11) Filter(2) A(0) C(1) T(10) V(0)" }, { "db_id": "store_1", "query": "SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id) > 100;", "query_toks": [ "SELECT", "T2.name", "FROM", "playlist_tracks", "AS", "T1", "JOIN", "playlists", "AS", "T2", "ON", "T2.id", "=", "T1.playlist_id", "GROUP", "BY", "T1.playlist_id", "HAVING", "count", "(", "T1.track_id", ")", ">", "100", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t2", ".", "id", "=", "t1", ".", "playlist_id", "group", "by", "t1", ".", "playlist_id", "having", "count", "(", "t1", ".", "track_id", ")", ">", "value" ], "question": "List the name of playlist which has number of tracks greater than 100.", "question_toks": [ "list", "name", "of", "playlist", "which", "ha", "number", "of", "track", "greater", "than", "100", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 63, false ], null ], [ 0, 65, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 65, false ] ], "having": [ [ false, 3, [ 0, [ 3, 66, false ], null ], 100.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 64, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 63, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 65, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "the", "name", "of", "playlist", "which", "has", "number", "of", "tracks", "greater", "than", "100", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "playlist" ], [ "which" ], [ "ha" ], [ "number" ], [ "of" ], [ "track" ], [ "greater" ], [ "than" ], [ "100" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "playlist", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "number", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ ".", "." ] ], "values": [ "tracks", "100", "Numbers", "playlists" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(10) Filter(0) Filter(18) A(0) C(3) T(10) Root(5) Sel(0) N(0) A(0) C(39) T(11) Filter(5) A(3) C(37) T(11) V(1)" }, { "db_id": "store_1", "query": "SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING count(T1.track_id) > 100;", "query_toks": [ "SELECT", "T2.name", "FROM", "playlist_tracks", "AS", "T1", "JOIN", "playlists", "AS", "T2", "ON", "T2.id", "=", "T1.playlist_id", "GROUP", "BY", "T1.playlist_id", "HAVING", "count", "(", "T1.track_id", ")", ">", "100", ";" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t2", ".", "id", "=", "t1", ".", "playlist_id", "group", "by", "t1", ".", "playlist_id", "having", "count", "(", "t1", ".", "track_id", ")", ">", "value" ], "question": "What are the names of all playlists that have more than 100 tracks?", "question_toks": [ "what", "are", "name", "of", "all", "playlist", "that", "have", "more", "than", "100", "track", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 63, false ], null ], [ 0, 65, false ], null ] ], "table_units": [ [ "table_unit", 11 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 65, false ] ], "having": [ [ false, 3, [ 0, [ 3, 66, false ], null ], 100.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 64, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 63, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 65, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "playlists", "that", "have", "more", "than", "100", "tracks", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "playlist" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "100" ], [ "track" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "playlist", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "track", "NN" ], [ "?", "." ] ], "values": [ "tracks", "100", "playlists" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(10) Filter(0) Filter(18) A(0) C(3) T(10) Root(5) Sel(0) N(0) A(0) C(39) T(11) Filter(5) A(3) C(37) T(11) V(1)" }, { "db_id": "store_1", "query": "SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = \"Daan\" AND T4.last_name = \"Peeters\";", "query_toks": [ "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "invoice_lines", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "invoices", "AS", "T3", "ON", "T3.id", "=", "T2.invoice_id", "JOIN", "customers", "AS", "T4", "ON", "T4.id", "=", "T3.customer_id", "WHERE", "T4.first_name", "=", "``", "Daan", "''", "AND", "T4.last_name", "=", "``", "Peeters", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "invoice_lines", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "invoices", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "invoice_id", "join", "customers", "as", "t4", "on", "t4", ".", "id", "=", "t3", ".", "customer_id", "where", "t4", ".", "first_name", "=", "value", "and", "t4", ".", "last_name", "=", "value" ], "question": "List all tracks bought by customer Daan Peeters.", "question_toks": [ "list", "all", "track", "bought", "by", "customer", "daan", "peeters", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 49, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 60, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Daan\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Peeters\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "List", "all", "tracks", "bought", "by", "customer", "Daan", "Peeters", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "track" ], [ "bought" ], [ "by" ], [ "customer" ], [ "daan" ], [ "peeters" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "track", "NN" ], [ "bought", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "daan", "NN" ], [ "peeters", "NNS" ], [ ".", "." ] ], "values": [ "tracks", "Peeters", "Daan", "Dan" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(18) A(0) C(3) T(8) Root(5) Sel(0) N(0) A(0) C(37) T(9) Filter(0) Filter(2) A(0) C(7) T(4) V(2) Filter(2) A(0) C(6) T(4) V(1)" }, { "db_id": "store_1", "query": "SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = \"Daan\" AND T4.last_name = \"Peeters\";", "query_toks": [ "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "invoice_lines", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "invoices", "AS", "T3", "ON", "T3.id", "=", "T2.invoice_id", "JOIN", "customers", "AS", "T4", "ON", "T4.id", "=", "T3.customer_id", "WHERE", "T4.first_name", "=", "``", "Daan", "''", "AND", "T4.last_name", "=", "``", "Peeters", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "invoice_lines", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "invoices", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "invoice_id", "join", "customers", "as", "t4", "on", "t4", ".", "id", "=", "t3", ".", "customer_id", "where", "t4", ".", "first_name", "=", "value", "and", "t4", ".", "last_name", "=", "value" ], "question": "What are the tracks that Dean Peeters bought?", "question_toks": [ "what", "are", "track", "that", "dean", "peeters", "bought", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 9 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 49, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 60, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 9 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Daan\"", null ], "and", [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Peeters\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "tracks", "that", "Dean", "Peeters", "bought", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "track" ], [ "that" ], [ "dean" ], [ "peeters" ], [ "bought" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "track", "JJ" ], [ "that", "IN" ], [ "dean", "VBZ" ], [ "peeters", "NNS" ], [ "bought", "VBD" ], [ "?", "." ] ], "values": [ "tracks", "Dan", "Peeters", "Daan" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(18) A(0) C(3) T(8) Root(5) Sel(0) N(0) A(0) C(37) T(9) Filter(0) Filter(2) A(0) C(7) T(4) V(3) Filter(2) A(0) C(6) T(4) V(2)" }, { "db_id": "store_1", "query": "SELECT unit_price FROM tracks WHERE name = \"Fast As a Shark\";", "query_toks": [ "SELECT", "unit_price", "FROM", "tracks", "WHERE", "name", "=", "``", "Fast", "As", "a", "Shark", "''", ";" ], "query_toks_no_value": [ "select", "unit_price", "from", "tracks", "where", "name", "=", "value" ], "question": "How much is the track Fast As a Shark?", "question_toks": [ "how", "much", "is", "track", "fast", "a", "a", "shark", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 57, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"Fast As a Shark\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "much", "is", "the", "track", "Fast", "As", "a", "Shark", "?" ], "question_arg": [ [ "how" ], [ "much" ], [ "is" ], [ "track" ], [ "fast" ], [ "a" ], [ "a" ], [ "shark" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "much", "JJ" ], [ "is", "VBZ" ], [ "track", "JJ" ], [ "fast", "RB" ], [ "a", "DT" ], [ "a", "DT" ], [ "shark", "NN" ], [ "?", "." ] ], "values": [ "Fast As a Shark" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(35) T(8) Filter(2) A(0) C(1) T(8) V(0)" }, { "db_id": "store_1", "query": "SELECT unit_price FROM tracks WHERE name = \"Fast As a Shark\";", "query_toks": [ "SELECT", "unit_price", "FROM", "tracks", "WHERE", "name", "=", "``", "Fast", "As", "a", "Shark", "''", ";" ], "query_toks_no_value": [ "select", "unit_price", "from", "tracks", "where", "name", "=", "value" ], "question": "What is the unit price of the tune \"Fast As a Shark\"?", "question_toks": [ "what", "is", "unit", "price", "of", "tune", "'", "fast", "a", "a", "shark", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 57, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 50, false ], null ], "\"Fast As a Shark\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "is", "the", "unit", "price", "of", "the", "tune", "``", "Fast", "As", "a", "Shark", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "unit", "price" ], [ "of" ], [ "tune" ], [ "'" ], [ "fast" ], [ "a" ], [ "a" ], [ "shark" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "unit", "NN" ], [ "price", "NN" ], [ "of", "IN" ], [ "tune", "NN" ], [ "'", "''" ], [ "fast", "RB" ], [ "a", "DT" ], [ "a", "DT" ], [ "shark", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Fast As a Shark" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(35) T(8) Filter(2) A(0) C(1) T(8) V(0)" }, { "db_id": "store_1", "query": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'", "query_toks": [ "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Movies", "'", "EXCEPT", "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Music", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "except", "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value" ], "question": "Find the name of tracks which are in Movies playlist but not in music playlist.", "question_toks": [ "find", "name", "of", "track", "which", "are", "in", "movie", "playlist", "but", "not", "in", "music", "playlist", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 66, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 49, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 64, false ], null ], "\"Music\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 66, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 49, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 64, false ], null ], "\"Movies\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "Find", "the", "name", "of", "tracks", "which", "are", "in", "Movies", "playlist", "but", "not", "in", "music", "playlist", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "track" ], [ "which" ], [ "are" ], [ "in" ], [ "movie" ], [ "playlist" ], [ "but" ], [ "not" ], [ "in" ], [ "music" ], [ "playlist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "movie", "NN" ], [ "playlist", "NN" ], [ "but", "CC" ], [ "not", "RB" ], [ "in", "IN" ], [ "music", "NN" ], [ "playlist", "NN" ], [ ".", "." ] ], "values": [ "Movies", "tracks", "playlists", "Music" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(18) A(0) C(3) T(8) Root(5) Sel(0) N(0) A(0) C(37) T(11) Filter(2) A(0) C(1) T(10) V(0) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(18) A(0) C(3) T(8) Root(5) Sel(0) N(0) A(0) C(37) T(11) Filter(2) A(0) C(1) T(10) V(3)" }, { "db_id": "store_1", "query": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'", "query_toks": [ "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Movies", "'", "EXCEPT", "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Music", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "except", "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value" ], "question": "What are the names of all tracks that are on the Movies playlist but not in the music playlist?", "question_toks": [ "what", "are", "name", "of", "all", "track", "that", "are", "on", "movie", "playlist", "but", "not", "in", "music", "playlist", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 66, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 49, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 64, false ], null ], "\"Music\"", null ] ] }, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 66, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 49, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 64, false ], null ], "\"Movies\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "the", "Movies", "playlist", "but", "not", "in", "the", "music", "playlist", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "track" ], [ "that" ], [ "are" ], [ "on" ], [ "movie" ], [ "playlist" ], [ "but" ], [ "not" ], [ "in" ], [ "music" ], [ "playlist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "on", "IN" ], [ "movie", "NN" ], [ "playlist", "NN" ], [ "but", "CC" ], [ "not", "RB" ], [ "in", "IN" ], [ "music", "NN" ], [ "playlist", "NN" ], [ "?", "." ] ], "values": [ "Music", "tracks", "playlists", "Movies" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(18) A(0) C(3) T(8) Root(5) Sel(0) N(0) A(0) C(37) T(11) Filter(2) A(0) C(1) T(10) V(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(18) A(0) C(3) T(8) Root(5) Sel(0) N(0) A(0) C(37) T(11) Filter(2) A(0) C(1) T(10) V(0)" }, { "db_id": "store_1", "query": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'", "query_toks": [ "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Movies", "'", "INTERSECT", "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Music", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value" ], "question": "Find the name of tracks which are in both Movies and music playlists.", "question_toks": [ "find", "name", "of", "track", "which", "are", "in", "both", "movie", "and", "music", "playlist", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 66, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 66, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 49, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 64, false ], null ], "\"Music\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 49, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 64, false ], null ], "\"Movies\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "Find", "the", "name", "of", "tracks", "which", "are", "in", "both", "Movies", "and", "music", "playlists", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "track" ], [ "which" ], [ "are" ], [ "in" ], [ "both" ], [ "movie" ], [ "and" ], [ "music" ], [ "playlist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "which", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "both", "DT" ], [ "movie", "NN" ], [ "and", "CC" ], [ "music", "NN" ], [ "playlist", "NN" ], [ ".", "." ] ], "values": [ "Movies", "tracks", "Music", "playlists" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(18) A(0) C(3) T(8) Root(5) Sel(0) N(0) A(0) C(37) T(11) Filter(2) A(0) C(1) T(10) V(0) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(18) A(0) C(3) T(8) Root(5) Sel(0) N(0) A(0) C(37) T(11) Filter(2) A(0) C(1) T(10) V(2)" }, { "db_id": "store_1", "query": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'", "query_toks": [ "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Movies", "'", "INTERSECT", "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Music", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value" ], "question": "What are the names of all the tracks that are in both the Movies and music playlists?", "question_toks": [ "what", "are", "name", "of", "all", "track", "that", "are", "in", "both", "movie", "and", "music", "playlist", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 66, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 49, false ], null ], [ 0, 66, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 11 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 49, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 64, false ], null ], "\"Music\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 50, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 49, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 66, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 11 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 64, false ], null ], "\"Movies\"", null ] ] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "tracks", "that", "are", "in", "both", "the", "Movies", "and", "music", "playlists", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "track" ], [ "that" ], [ "are" ], [ "in" ], [ "both" ], [ "movie" ], [ "and" ], [ "music" ], [ "playlist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "both", "DT" ], [ "movie", "NN" ], [ "and", "CC" ], [ "music", "NN" ], [ "playlist", "NN" ], [ "?", "." ] ], "values": [ "tracks", "playlists", "Music", "Movies" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(18) A(0) C(3) T(8) Root(5) Sel(0) N(0) A(0) C(37) T(11) Filter(2) A(0) C(1) T(10) V(3) Root(3) Sel(0) N(0) A(0) C(1) T(8) Filter(0) Filter(18) A(0) C(3) T(8) Root(5) Sel(0) N(0) A(0) C(37) T(11) Filter(2) A(0) C(1) T(10) V(2)" }, { "db_id": "store_1", "query": "SELECT count(*) , T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "GROUP", "BY", "T1.name", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "group", "by", "t1", ".", "name" ], "question": "Find number of tracks in each genre?", "question_toks": [ "find", "number", "of", "track", "in", "each", "genre", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "Find", "number", "of", "tracks", "in", "each", "genre", "?" ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "track" ], [ "in" ], [ "each" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [ "tracks", "genres", "Numbers" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(8) A(0) C(1) T(5)" }, { "db_id": "store_1", "query": "SELECT count(*) , T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name;", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "genres", "AS", "T1", "JOIN", "tracks", "AS", "T2", "ON", "T1.id", "=", "T2.genre_id", "GROUP", "BY", "T1.name", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "genres", "as", "t1", "join", "tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "genre_id", "group", "by", "t1", ".", "name" ], "question": "How many tracks are in each genre?", "question_toks": [ "how", "many", "track", "are", "in", "each", "genre", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "name", "seq", "id", "name", "id", "title", "artist id", "id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support rep id", "id", "name", "id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "id", "name", "id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "id", "invoice id", "track id", "unit price", "quantity", "id", "name", "playlist id", "track id" ], "table_names": [ "sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks" ], "col_set": [ "*", "name", "seq", "id", "title", "artist id", "last name", "first name", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "company", "support rep id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price", "invoice id", "track id", "quantity", "playlist id" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 11, 11 ], "keys": { "7": 1, "1": 1, "12": 8, "8": 8, "35": 8, "39": 23, "23": 23, "52": 47, "47": 47, "53": 36, "36": 36, "51": 5, "5": 5, "60": 49, "49": 49, "59": 38, "38": 38, "66": 49, "65": 65, "63": 63, "58": 58 }, "origin_question_toks": [ "How", "many", "tracks", "are", "in", "each", "genre", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "track" ], [ "are" ], [ "in" ], [ "each" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "track", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "each", "DT" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [ "tracks", "genres" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(8) A(0) C(1) T(5)" }, { "db_id": "journal_committee", "query": "SELECT count(*) FROM editor", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "editor" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "editor" ], "question": "How many editors are there?", "question_toks": [ "how", "many", "editor", "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": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "How", "many", "editors", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "editor" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "editor", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "journal_committee", "query": "SELECT Name FROM editor ORDER BY Age ASC", "query_toks": [ "SELECT", "Name", "FROM", "editor", "ORDER", "BY", "Age", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "editor", "order", "by", "age", "asc" ], "question": "List the names of editors in ascending order of age.", "question_toks": [ "list", "name", "of", "editor", "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, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "List", "the", "names", "of", "editors", "in", "ascending", "order", "of", "age", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "editor" ], [ "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" ], [ "editor", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(1) Order(1) A(0) C(7) T(1)" }, { "db_id": "journal_committee", "query": "SELECT Name , Age FROM editor", "query_toks": [ "SELECT", "Name", ",", "Age", "FROM", "editor" ], "query_toks_no_value": [ "select", "name", ",", "age", "from", "editor" ], "question": "What are the names and ages of editors?", "question_toks": [ "what", "are", "name", "and", "age", "of", "editor", "?" ], "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": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "ages", "of", "editors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "age" ], [ "of" ], [ "editor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "editor", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(1) A(0) C(7) T(1)" }, { "db_id": "journal_committee", "query": "SELECT Name FROM editor WHERE Age > 25", "query_toks": [ "SELECT", "Name", "FROM", "editor", "WHERE", "Age", ">", "25" ], "query_toks_no_value": [ "select", "name", "from", "editor", "where", "age", ">", "value" ], "question": "List the names of editors who are older than 25.", "question_toks": [ "list", "name", "of", "editor", "who", "are", "older", "than", "25", "." ], "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, 7, false ], null ], 25.0, null ] ] }, "names": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "List", "the", "names", "of", "editors", "who", "are", "older", "than", "25", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "editor" ], [ "who" ], [ "are" ], [ "older" ], [ "than" ], [ "25" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "editor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "25", "CD" ], [ ".", "." ] ], "values": [ "25" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(5) A(0) C(7) T(1) V(0)" }, { "db_id": "journal_committee", "query": "SELECT Name FROM editor WHERE Age = 24 OR Age = 25", "query_toks": [ "SELECT", "Name", "FROM", "editor", "WHERE", "Age", "=", "24", "OR", "Age", "=", "25" ], "query_toks_no_value": [ "select", "name", "from", "editor", "where", "age", "=", "value", "or", "age", "=", "value" ], "question": "Show the names of editors of age either 24 or 25.", "question_toks": [ "show", "name", "of", "editor", "of", "age", "either", "24", "or", "25", "." ], "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, 2, [ 0, [ 0, 7, false ], null ], 24.0, null ], "or", [ false, 2, [ 0, [ 0, 7, false ], null ], 25.0, null ] ] }, "names": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "Show", "the", "names", "of", "editors", "of", "age", "either", "24", "or", "25", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "editor" ], [ "of" ], [ "age" ], [ "either" ], [ "24" ], [ "or" ], [ "25" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "editor", "NN" ], [ "of", "IN" ], [ "age", "NN" ], [ "either", "CC" ], [ "24", "CD" ], [ "or", "CC" ], [ "25", "CD" ], [ ".", "." ] ], "values": [ "24", "25" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(1) Filter(2) A(0) C(7) T(1) V(0) Filter(2) A(0) C(7) T(1) V(1)" }, { "db_id": "journal_committee", "query": "SELECT Name FROM editor ORDER BY Age ASC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "editor", "ORDER", "BY", "Age", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "editor", "order", "by", "age", "asc", "limit", "value" ], "question": "What is the name of the youngest editor?", "question_toks": [ "what", "is", "name", "of", "youngest", "editor", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "youngest", "editor", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "youngest" ], [ "editor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "editor", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(1) Sup(1) A(0) C(7) T(1)" }, { "db_id": "journal_committee", "query": "SELECT Age , COUNT(*) FROM editor GROUP BY Age", "query_toks": [ "SELECT", "Age", ",", "COUNT", "(", "*", ")", "FROM", "editor", "GROUP", "BY", "Age" ], "query_toks_no_value": [ "select", "age", ",", "count", "(", "*", ")", "from", "editor", "group", "by", "age" ], "question": "What are the different ages of editors? Show each age along with the number of editors of that age.", "question_toks": [ "what", "are", "different", "age", "of", "editor", "?", "show", "each", "age", "along", "with", "number", "of", "editor", "of", "that", "age", "." ], "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": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "different", "ages", "of", "editors", "?", "Show", "each", "age", "along", "with", "the", "number", "of", "editors", "of", "that", "age", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "age" ], [ "of" ], [ "editor" ], [ "?" ], [ "show" ], [ "each" ], [ "age" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "editor" ], [ "of" ], [ "that" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "editor", "NN" ], [ "?", "." ], [ "show", "VB" ], [ "each", "DT" ], [ "age", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "editor", "NN" ], [ "of", "IN" ], [ "that", "DT" ], [ "age", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(1) A(3) C(0) T(1)" }, { "db_id": "journal_committee", "query": "SELECT Age FROM editor GROUP BY Age ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Age", "FROM", "editor", "GROUP", "BY", "Age", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "age", "from", "editor", "group", "by", "age", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Please show the most common age of editors.", "question_toks": [ "please", "show", "most", "common", "age", "of", "editor", "." ], "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": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "Please", "show", "the", "most", "common", "age", "of", "editors", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "most" ], [ "common" ], [ "age" ], [ "of" ], [ "editor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "editor", "NN" ], [ ".", "." ] ], "values": [], "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": "journal_committee", "query": "SELECT DISTINCT Theme FROM journal", "query_toks": [ "SELECT", "DISTINCT", "Theme", "FROM", "journal" ], "query_toks_no_value": [ "select", "distinct", "theme", "from", "journal" ], "question": "Show the distinct themes of journals.", "question_toks": [ "show", "distinct", "theme", "of", "journal", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "Show", "the", "distinct", "themes", "of", "journals", "." ], "question_arg": [ [ "show" ], [ "distinct" ], [ "theme" ], [ "of" ], [ "journal" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "distinct", "JJ" ], [ "theme", "NN" ], [ "of", "IN" ], [ "journal", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(0)" }, { "db_id": "journal_committee", "query": "SELECT T2.Name , T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID", "query_toks": [ "SELECT", "T2.Name", ",", "T3.Theme", "FROM", "journal_committee", "AS", "T1", "JOIN", "editor", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "JOIN", "journal", "AS", "T3", "ON", "T1.Journal_ID", "=", "T3.Journal_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t3", ".", "theme", "from", "journal_committee", "as", "t1", "join", "editor", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "join", "journal", "as", "t3", "on", "t1", ".", "journal_id", "=", "t3", ".", "journal_id" ], "question": "Show the names of editors and the theme of journals for which they serve on committees.", "question_toks": [ "show", "name", "of", "editor", "and", "theme", "of", "journal", "for", "which", "they", "serve", "on", "committee", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "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, 8, [ 0, [ 0, 5, 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": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "Show", "the", "names", "of", "editors", "and", "the", "theme", "of", "journals", "for", "which", "they", "serve", "on", "committees", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "editor" ], [ "and" ], [ "theme" ], [ "of" ], [ "journal" ], [ "for" ], [ "which" ], [ "they" ], [ "serve" ], [ "on" ], [ "committee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "editor", "NN" ], [ "and", "CC" ], [ "theme", "NN" ], [ "of", "IN" ], [ "journal", "NN" ], [ "for", "IN" ], [ "which", "WDT" ], [ "they", "PRP" ], [ "serve", "VBP" ], [ "on", "IN" ], [ "committee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(1) A(0) C(3) T(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "journal_committee", "query": "SELECT T2.Name , T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID", "query_toks": [ "SELECT", "T2.Name", ",", "T3.Theme", "FROM", "journal_committee", "AS", "T1", "JOIN", "editor", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "JOIN", "journal", "AS", "T3", "ON", "T1.Journal_ID", "=", "T3.Journal_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t3", ".", "theme", "from", "journal_committee", "as", "t1", "join", "editor", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "join", "journal", "as", "t3", "on", "t1", ".", "journal_id", "=", "t3", ".", "journal_id" ], "question": "For each journal_committee, find the editor name and the journal theme.", "question_toks": [ "for", "each", "journal_committee", ",", "find", "editor", "name", "and", "journal", "theme", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "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, 8, [ 0, [ 0, 5, 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": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "For", "each", "journal_committee", ",", "find", "the", "editor", "name", "and", "the", "journal", "theme", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "journal_committee" ], [ "," ], [ "find" ], [ "editor" ], [ "name" ], [ "and" ], [ "journal" ], [ "theme" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "journal_committee", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "editor", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "journal", "JJ" ], [ "theme", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(1) A(0) C(3) T(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "journal_committee", "query": "SELECT T2.Name , T2.age , T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID ORDER BY T3.Theme ASC", "query_toks": [ "SELECT", "T2.Name", ",", "T2.age", ",", "T3.Theme", "FROM", "journal_committee", "AS", "T1", "JOIN", "editor", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "JOIN", "journal", "AS", "T3", "ON", "T1.Journal_ID", "=", "T3.Journal_ID", "ORDER", "BY", "T3.Theme", "ASC" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "age", ",", "t3", ".", "theme", "from", "journal_committee", "as", "t1", "join", "editor", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "join", "journal", "as", "t3", "on", "t1", ".", "journal_id", "=", "t3", ".", "journal_id", "order", "by", "t3", ".", "theme", "asc" ], "question": "Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.", "question_toks": [ "show", "name", "and", "age", "of", "editor", "and", "theme", "of", "journal", "for", "which", "they", "serve", "on", "committee", ",", "in", "ascending", "alphabetical", "order", "of", "theme", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "Show", "the", "names", "and", "ages", "of", "editors", "and", "the", "theme", "of", "journals", "for", "which", "they", "serve", "on", "committees", ",", "in", "ascending", "alphabetical", "order", "of", "theme", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "age" ], [ "of" ], [ "editor" ], [ "and" ], [ "theme" ], [ "of" ], [ "journal" ], [ "for" ], [ "which" ], [ "they" ], [ "serve" ], [ "on" ], [ "committee" ], [ "," ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "theme" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "of", "IN" ], [ "editor", "NN" ], [ "and", "CC" ], [ "theme", "NN" ], [ "of", "IN" ], [ "journal", "NN" ], [ "for", "IN" ], [ "which", "WDT" ], [ "they", "PRP" ], [ "serve", "VBP" ], [ "on", "IN" ], [ "committee", "NN" ], [ ",", "," ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "theme", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(6) T(1) A(0) C(7) T(1) A(0) C(3) T(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2) Order(1) A(0) C(3) T(0)" }, { "db_id": "journal_committee", "query": "SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000", "query_toks": [ "SELECT", "T2.Name", "FROM", "journal_committee", "AS", "T1", "JOIN", "editor", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "JOIN", "journal", "AS", "T3", "ON", "T1.Journal_ID", "=", "T3.Journal_ID", "WHERE", "T3.Sales", ">", "3000" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "journal_committee", "as", "t1", "join", "editor", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "join", "journal", "as", "t3", "on", "t1", ".", "journal_id", "=", "t3", ".", "journal_id", "where", "t3", ".", "sales", ">", "value" ], "question": "Show the names of editors that are on the committee of journals with sales bigger than 3000.", "question_toks": [ "show", "name", "of", "editor", "that", "are", "on", "committee", "of", "journal", "with", "sale", "bigger", "than", "3000", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "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, 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, 3, [ 0, [ 0, 4, false ], null ], 3000.0, null ] ] }, "names": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "Show", "the", "names", "of", "editors", "that", "are", "on", "the", "committee", "of", "journals", "with", "sales", "bigger", "than", "3000", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "editor" ], [ "that" ], [ "are" ], [ "on" ], [ "committee" ], [ "of" ], [ "journal" ], [ "with" ], [ "sale" ], [ "bigger" ], [ "than" ], [ "3000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "editor", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "on", "IN" ], [ "committee", "NN" ], [ "of", "IN" ], [ "journal", "NN" ], [ "with", "IN" ], [ "sale", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "3000", "CD" ], [ ".", "." ] ], "values": [ "3000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) 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(0)" }, { "db_id": "journal_committee", "query": "SELECT T1.editor_id , T1.Name , COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.editor_id", "query_toks": [ "SELECT", "T1.editor_id", ",", "T1.Name", ",", "COUNT", "(", "*", ")", "FROM", "editor", "AS", "T1", "JOIN", "journal_committee", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "GROUP", "BY", "T1.editor_id" ], "query_toks_no_value": [ "select", "t1", ".", "editor_id", ",", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "editor", "as", "t1", "join", "journal_committee", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "group", "by", "t1", ".", "editor_id" ], "question": "Show the id, name of each editor and the number of journal committees they are on.", "question_toks": [ "show", "id", ",", "name", "of", "each", "editor", "and", "number", "of", "journal", "committee", "they", "are", "on", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 8, 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 ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "Show", "the", "id", ",", "name", "of", "each", "editor", "and", "the", "number", "of", "journal", "committees", "they", "are", "on", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "," ], [ "name" ], [ "of" ], [ "each" ], [ "editor" ], [ "and" ], [ "number" ], [ "of" ], [ "journal", "committee" ], [ "they" ], [ "are" ], [ "on" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "editor", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "journal", "JJ" ], [ "committee", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "on", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(5) T(1) A(0) C(6) T(1) A(3) C(0) T(2)" }, { "db_id": "journal_committee", "query": "SELECT T1.Name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Name HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T1.Name", "FROM", "editor", "AS", "T1", "JOIN", "journal_committee", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "GROUP", "BY", "T1.Name", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "editor", "as", "t1", "join", "journal_committee", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "group", "by", "t1", ".", "name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the names of editors that are on at least two journal committees.", "question_toks": [ "show", "name", "of", "editor", "that", "are", "on", "at", "least", "two", "journal", "committee", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "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, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "Show", "the", "names", "of", "editors", "that", "are", "on", "at", "least", "two", "journal", "committees", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "editor" ], [ "that" ], [ "are" ], [ "on" ], [ "at" ], [ "least" ], [ "two" ], [ "journal", "committee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "editor", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "on", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "journal", "JJ" ], [ "committee", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) 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(7) A(3) C(0) T(2) V(0)" }, { "db_id": "journal_committee", "query": "SELECT Name FROM editor WHERE editor_id NOT IN (SELECT editor_id FROM journal_committee)", "query_toks": [ "SELECT", "Name", "FROM", "editor", "WHERE", "editor_id", "NOT", "IN", "(", "SELECT", "editor_id", "FROM", "journal_committee", ")" ], "query_toks_no_value": [ "select", "name", "from", "editor", "where", "editor_id", "not", "in", "(", "select", "editor_id", "from", "journal_committee", ")" ], "question": "List the names of editors that are not on any journal committee.", "question_toks": [ "list", "name", "of", "editor", "that", "are", "not", "on", "any", "journal", "committee", "." ], "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, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "List", "the", "names", "of", "editors", "that", "are", "not", "on", "any", "journal", "committee", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "editor" ], [ "that" ], [ "are" ], [ "not" ], [ "on" ], [ "any" ], [ "journal", "committee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "editor", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "on", "IN" ], [ "any", "DT" ], [ "journal", "JJ" ], [ "committee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(19) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(2)" }, { "db_id": "journal_committee", "query": "SELECT date , theme , sales FROM journal EXCEPT SELECT T1.date , T1.theme , T1.sales FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID", "query_toks": [ "SELECT", "date", ",", "theme", ",", "sales", "FROM", "journal", "EXCEPT", "SELECT", "T1.date", ",", "T1.theme", ",", "T1.sales", "FROM", "journal", "AS", "T1", "JOIN", "journal_committee", "AS", "T2", "ON", "T1.journal_ID", "=", "T2.journal_ID" ], "query_toks_no_value": [ "select", "date", ",", "theme", ",", "sales", "from", "journal", "except", "select", "t1", ".", "date", ",", "t1", ".", "theme", ",", "t1", ".", "sales", "from", "journal", "as", "t1", "join", "journal_committee", "as", "t2", "on", "t1", ".", "journal_id", "=", "t2", ".", "journal_id" ], "question": "List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.", "question_toks": [ "list", "date", ",", "theme", "and", "sale", "of", "journal", "which", "did", "not", "have", "any", "of", "listed", "editor", "serving", "on", "committee", "." ], "sql": { "except": { "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, 2, false ], null ] ], [ 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", 2 ] ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "List", "the", "date", ",", "theme", "and", "sales", "of", "the", "journal", "which", "did", "not", "have", "any", "of", "the", "listed", "editors", "serving", "on", "committee", "." ], "question_arg": [ [ "list" ], [ "date" ], [ "," ], [ "theme" ], [ "and" ], [ "sale" ], [ "of" ], [ "journal" ], [ "which" ], [ "did" ], [ "not" ], [ "have" ], [ "any" ], [ "of" ], [ "listed" ], [ "editor" ], [ "serving" ], [ "on" ], [ "committee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "date", "NN" ], [ ",", "," ], [ "theme", "NN" ], [ "and", "CC" ], [ "sale", "NN" ], [ "of", "IN" ], [ "journal", "NN" ], [ "which", "WDT" ], [ "did", "VBD" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "of", "IN" ], [ "listed", "JJ" ], [ "editor", "NN" ], [ "serving", "VBG" ], [ "on", "IN" ], [ "committee", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(4) T(0) Root(3) Sel(0) N(2) A(0) C(2) T(0) 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(2)" }, { "db_id": "journal_committee", "query": "SELECT avg(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo'", "query_toks": [ "SELECT", "avg", "(", "T1.sales", ")", "FROM", "journal", "AS", "T1", "JOIN", "journal_committee", "AS", "T2", "ON", "T1.journal_ID", "=", "T2.journal_ID", "WHERE", "T2.work_type", "=", "'Photo", "'" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "sales", ")", "from", "journal", "as", "t1", "join", "journal_committee", "as", "t2", "on", "t1", ".", "journal_id", "=", "t2", ".", "journal_id", "where", "t2", ".", "work_type", "=", "value" ], "question": "What is the average sales of the journals that have an editor whose work type is 'Photo'?", "question_toks": [ "what", "is", "average", "sale", "of", "journal", "that", "have", "an", "editor", "whose", "work", "type", "is", "'", "photo", "'", "?" ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Photo\"", null ] ] }, "names": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "editor id", "journal id", "work type" ], "table_names": [ "journal", "editor", "journal committee" ], "col_set": [ "*", "journal id", "date", "theme", "sales", "editor id", "name", "age", "work type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "8": 8, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "average", "sales", "of", "the", "journals", "that", "have", "an", "editor", "whose", "work", "type", "is", "'Photo", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "sale" ], [ "of" ], [ "journal" ], [ "that" ], [ "have" ], [ "an" ], [ "editor" ], [ "whose" ], [ "work", "type" ], [ "is" ], [ "'" ], [ "photo" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "sale", "NN" ], [ "of", "IN" ], [ "journal", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "editor", "NN" ], [ "whose", "WP$" ], [ "work", "NN" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "photo", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Photo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Accounts", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "accounts" ], "question": "How many accounts do we have?", "question_toks": [ "how", "many", "account", "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "accounts", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "account" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "account", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Accounts", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "accounts" ], "question": "Count the number of accounts.", "question_toks": [ "count", "number", "of", "account", "." ], "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Count", "the", "number", "of", "accounts", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT account_id , customer_id , account_name FROM Accounts", "query_toks": [ "SELECT", "account_id", ",", "customer_id", ",", "account_name", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "account_id", ",", "customer_id", ",", "account_name", "from", "accounts" ], "question": "Show ids, customer ids, names for all accounts.", "question_toks": [ "show", "id", ",", "customer", "id", ",", "name", "for", "all", "account", "." ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "ids", ",", "customer", "ids", ",", "names", "for", "all", "accounts", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "," ], [ "customer", "id" ], [ "," ], [ "name" ], [ "for" ], [ "all" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "customer", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) T(0) A(0) C(3) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT account_id , customer_id , account_name FROM Accounts", "query_toks": [ "SELECT", "account_id", ",", "customer_id", ",", "account_name", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "account_id", ",", "customer_id", ",", "account_name", "from", "accounts" ], "question": "What are the account ids, customer ids, and account names for all the accounts?", "question_toks": [ "what", "are", "account", "id", ",", "customer", "id", ",", "and", "account", "name", "for", "all", "account", "?" ], "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 ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "account", "ids", ",", "customer", "ids", ",", "and", "account", "names", "for", "all", "the", "accounts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "account", "id" ], [ "," ], [ "customer", "id" ], [ "," ], [ "and" ], [ "account", "name" ], [ "for" ], [ "all" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "account", "JJ" ], [ "id", "NN" ], [ ",", "," ], [ "customer", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "account", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) T(0) A(0) C(3) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT other_account_details FROM Accounts WHERE account_name = \"338\"", "query_toks": [ "SELECT", "other_account_details", "FROM", "Accounts", "WHERE", "account_name", "=", "``", "338", "''" ], "query_toks_no_value": [ "select", "other_account_details", "from", "accounts", "where", "account_name", "=", "value" ], "question": "Show other account details for account with name 338.", "question_toks": [ "show", "other", "account", "detail", "for", "account", "with", "name", "338", "." ], "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, 3, false ], null ], "\"338\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "other", "account", "details", "for", "account", "with", "name", "338", "." ], "question_arg": [ [ "show" ], [ "other", "account", "detail" ], [ "for" ], [ "account" ], [ "with" ], [ "name" ], [ "338" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "other", "JJ" ], [ "account", "NN" ], [ "detail", "NN" ], [ "for", "IN" ], [ "account", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "338", "CD" ], [ ".", "." ] ], "values": [ "338" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT other_account_details FROM Accounts WHERE account_name = \"338\"", "query_toks": [ "SELECT", "other_account_details", "FROM", "Accounts", "WHERE", "account_name", "=", "``", "338", "''" ], "query_toks_no_value": [ "select", "other_account_details", "from", "accounts", "where", "account_name", "=", "value" ], "question": "What are the other account details for the account with the name 338?", "question_toks": [ "what", "are", "other", "account", "detail", "for", "account", "with", "name", "338", "?" ], "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, 3, false ], null ], "\"338\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "other", "account", "details", "for", "the", "account", "with", "the", "name", "338", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "other", "account", "detail" ], [ "for" ], [ "account" ], [ "with" ], [ "name" ], [ "338" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "other", "JJ" ], [ "account", "NN" ], [ "detail", "NN" ], [ "for", "IN" ], [ "account", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "338", "CD" ], [ "?", "." ] ], "values": [ "338" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT T2.customer_first_name , T2.customer_last_name , T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = \"162\"", "query_toks": [ "SELECT", "T2.customer_first_name", ",", "T2.customer_last_name", ",", "T2.customer_phone", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.account_name", "=", "``", "162", "''" ], "query_toks_no_value": [ "select", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", ",", "t2", ".", "customer_phone", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "account_name", "=", "value" ], "question": "What is the first name, last name, and phone of the customer with account name 162?", "question_toks": [ "what", "is", "first", "name", ",", "last", "name", ",", "and", "phone", "of", "customer", "with", "account", "name", "162", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, 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, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"162\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "first", "name", ",", "last", "name", ",", "and", "phone", "of", "the", "customer", "with", "account", "name", "162", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "customer", "first", "name" ], [ "," ], [ "customer", "last", "name" ], [ "," ], [ "and" ], [ "phone" ], [ "of" ], [ "customer" ], [ "with" ], [ "account", "name" ], [ "162" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "phone", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "account", "NN" ], [ "name", "NN" ], [ "162", "CD" ], [ "?", "." ] ], "values": [ "1", "162" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(5) T(1) A(0) C(6) T(1) A(0) C(8) T(1) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "customers_card_transactions", "query": "SELECT T2.customer_first_name , T2.customer_last_name , T2.customer_phone FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = \"162\"", "query_toks": [ "SELECT", "T2.customer_first_name", ",", "T2.customer_last_name", ",", "T2.customer_phone", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.account_name", "=", "``", "162", "''" ], "query_toks_no_value": [ "select", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", ",", "t2", ".", "customer_phone", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "account_name", "=", "value" ], "question": "Give the full name and phone of the customer who has the account name 162.", "question_toks": [ "give", "full", "name", "and", "phone", "of", "customer", "who", "ha", "account", "name", "162", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, 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, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"162\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Give", "the", "full", "name", "and", "phone", "of", "the", "customer", "who", "has", "the", "account", "name", "162", "." ], "question_arg": [ [ "give" ], [ "full" ], [ "name" ], [ "and" ], [ "phone" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "account", "name" ], [ "162" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "account", "NN" ], [ "name", "NN" ], [ "162", "CD" ], [ ".", "." ] ], "values": [ "162" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(5) T(1) A(0) C(6) T(1) A(0) C(8) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Art\" AND T2.customer_last_name = \"Turcotte\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.customer_first_name", "=", "``", "Art", "''", "AND", "T2.customer_last_name", "=", "``", "Turcotte", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value", "and", "t2", ".", "customer_last_name", "=", "value" ], "question": "How many accounts does the customer with first name Art and last name Turcotte have?", "question_toks": [ "how", "many", "account", "doe", "customer", "with", "first", "name", "art", "and", "last", "name", "turcotte", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 5, 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, 6, false ], null ], "\"Art\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Turcotte\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "accounts", "does", "the", "customer", "with", "first", "name", "Art", "and", "last", "name", "Turcotte", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "account" ], [ "doe" ], [ "customer" ], [ "with" ], [ "customer", "first", "name" ], [ "art" ], [ "and" ], [ "customer", "last", "name" ], [ "turcotte" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "account", "NN" ], [ "doe", "NNS" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "art", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "turcotte", "NN" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [ "1", "Turcotte", "Art" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(5) T(1) V(2) Filter(2) A(0) C(6) T(1) V(1)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Art\" AND T2.customer_last_name = \"Turcotte\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.customer_first_name", "=", "``", "Art", "''", "AND", "T2.customer_last_name", "=", "``", "Turcotte", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value", "and", "t2", ".", "customer_last_name", "=", "value" ], "question": "Return the number of accounts that the customer with the first name Art and last name Turcotte has.", "question_toks": [ "return", "number", "of", "account", "that", "customer", "with", "first", "name", "art", "and", "last", "name", "turcotte", "ha", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 5, 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, 6, false ], null ], "\"Art\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Turcotte\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Return", "the", "number", "of", "accounts", "that", "the", "customer", "with", "the", "first", "name", "Art", "and", "last", "name", "Turcotte", "has", "." ], "question_arg": [ [ "return" ], [ "number" ], [ "of" ], [ "account" ], [ "that" ], [ "customer" ], [ "with" ], [ "customer", "first", "name" ], [ "art" ], [ "and" ], [ "customer", "last", "name" ], [ "turcotte" ], [ "ha" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "that", "WDT" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "art", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "turcotte", "NN" ], [ "ha", "NN" ], [ ".", "." ] ], "values": [ "1", "Turcotte", "Art" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(5) T(1) V(2) Filter(2) A(0) C(6) T(1) V(1)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_id , count(*) FROM Accounts GROUP BY customer_id", "query_toks": [ "SELECT", "customer_id", ",", "count", "(", "*", ")", "FROM", "Accounts", "GROUP", "BY", "customer_id" ], "query_toks_no_value": [ "select", "customer_id", ",", "count", "(", "*", ")", "from", "accounts", "group", "by", "customer_id" ], "question": "Show all customer ids and the number of accounts for each customer.", "question_toks": [ "show", "all", "customer", "id", "and", "number", "of", "account", "for", "each", "customer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "all", "customer", "ids", "and", "the", "number", "of", "accounts", "for", "each", "customer", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "customer", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "account" ], [ "for" ], [ "each" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_id , count(*) FROM Accounts GROUP BY customer_id", "query_toks": [ "SELECT", "customer_id", ",", "count", "(", "*", ")", "FROM", "Accounts", "GROUP", "BY", "customer_id" ], "query_toks_no_value": [ "select", "customer_id", ",", "count", "(", "*", ")", "from", "accounts", "group", "by", "customer_id" ], "question": "How many accounts are there for each customer id?", "question_toks": [ "how", "many", "account", "are", "there", "for", "each", "customer", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "accounts", "are", "there", "for", "each", "customer", "id", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "account" ], [ "are" ], [ "there" ], [ "for" ], [ "each" ], [ "customer", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "account", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "each", "DT" ], [ "customer", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_id , count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "customer_id", ",", "count", "(", "*", ")", "FROM", "Accounts", "GROUP", "BY", "customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "customer_id", ",", "count", "(", "*", ")", "from", "accounts", "group", "by", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the customer id and number of accounts with most accounts.", "question_toks": [ "show", "customer", "id", "and", "number", "of", "account", "with", "most", "account", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "the", "customer", "id", "and", "number", "of", "accounts", "with", "most", "accounts", "." ], "question_arg": [ [ "show" ], [ "customer", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "account" ], [ "with" ], [ "most" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "customer", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_id , count(*) FROM Accounts GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "customer_id", ",", "count", "(", "*", ")", "FROM", "Accounts", "GROUP", "BY", "customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "customer_id", ",", "count", "(", "*", ")", "from", "accounts", "group", "by", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the customer id of the customer with the most accounts, and how many accounts does this person have?", "question_toks": [ "what", "is", "customer", "id", "of", "customer", "with", "most", "account", ",", "and", "how", "many", "account", "doe", "this", "person", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "customer", "id", "of", "the", "customer", "with", "the", "most", "accounts", ",", "and", "how", "many", "accounts", "does", "this", "person", "have", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "customer", "id" ], [ "of" ], [ "customer" ], [ "with" ], [ "most" ], [ "account" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "account" ], [ "doe" ], [ "this" ], [ "person" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "customer", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "account", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "account", "VBP" ], [ "doe", "VB" ], [ "this", "DT" ], [ "person", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT T2.customer_first_name , T2.customer_last_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T2.customer_first_name", ",", "T2.customer_last_name", ",", "T1.customer_id", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", ",", "t1", ".", "customer_id", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the customer first, last name and id with least number of accounts.", "question_toks": [ "what", "is", "customer", "first", ",", "last", "name", "and", "id", "with", "least", "number", "of", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "customer", "first", ",", "last", "name", "and", "id", "with", "least", "number", "of", "accounts", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "customer" ], [ "first" ], [ "," ], [ "customer", "last", "name" ], [ "and" ], [ "id" ], [ "with" ], [ "least" ], [ "number" ], [ "of" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "customer", "NN" ], [ "first", "RB" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(5) T(1) A(0) C(6) T(1) A(0) C(2) T(0) Sup(1) A(3) C(0) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT T2.customer_first_name , T2.customer_last_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T2.customer_first_name", ",", "T2.customer_last_name", ",", "T1.customer_id", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", ",", "t1", ".", "customer_id", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Give the full name and customer id of the customer with the fewest accounts.", "question_toks": [ "give", "full", "name", "and", "customer", "id", "of", "customer", "with", "fewest", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Give", "the", "full", "name", "and", "customer", "id", "of", "the", "customer", "with", "the", "fewest", "accounts", "." ], "question_arg": [ [ "give" ], [ "full" ], [ "name" ], [ "and" ], [ "customer", "id" ], [ "of" ], [ "customer" ], [ "with" ], [ "fewest" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "customer", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "fewest", "JJ" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(5) T(1) A(0) C(6) T(1) A(0) C(2) T(0) Sup(1) A(3) C(0) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Accounts", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "accounts", ")" ], "question": "Show the number of all customers without an account.", "question_toks": [ "show", "number", "of", "all", "customer", "without", "an", "account", "." ], "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": [], "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "the", "number", "of", "all", "customers", "without", "an", "account", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "all" ], [ "customer" ], [ "without" ], [ "an" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "without", "IN" ], [ "an", "DT" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Accounts", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "accounts", ")" ], "question": "How many customers do not have an account?", "question_toks": [ "how", "many", "customer", "do", "not", "have", "an", "account", "?" ], "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": [], "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "customers", "do", "not", "have", "an", "account", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "do" ], [ "not" ], [ "have" ], [ "an" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "an", "DT" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_first_name , customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id", "query_toks": [ "SELECT", "customer_first_name", ",", "customer_last_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_first_name", ",", "T1.customer_last_name", "FROM", "Customers", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id" ], "query_toks_no_value": [ "select", "customer_first_name", ",", "customer_last_name", "from", "customers", "except", "select", "t1", ".", "customer_first_name", ",", "t1", ".", "customer_last_name", "from", "customers", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "Show the first names and last names of customers without any account.", "question_toks": [ "show", "first", "name", "and", "last", "name", "of", "customer", "without", "any", "account", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, 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, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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 ] ] }, "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "the", "first", "names", "and", "last", "names", "of", "customers", "without", "any", "account", "." ], "question_arg": [ [ "show" ], [ "customer", "first", "name" ], [ "and" ], [ "customer", "last", "name" ], [ "of" ], [ "customer" ], [ "without" ], [ "any" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "account", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(2) Root(5) Sel(0) N(1) A(0) C(5) T(1) A(0) C(6) T(1) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(6) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_first_name , customer_last_name FROM Customers EXCEPT SELECT T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id", "query_toks": [ "SELECT", "customer_first_name", ",", "customer_last_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_first_name", ",", "T1.customer_last_name", "FROM", "Customers", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id" ], "query_toks_no_value": [ "select", "customer_first_name", ",", "customer_last_name", "from", "customers", "except", "select", "t1", ".", "customer_first_name", ",", "t1", ".", "customer_last_name", "from", "customers", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "What are the full names of customers who do not have any accounts?", "question_toks": [ "what", "are", "full", "name", "of", "customer", "who", "do", "not", "have", "any", "account", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, 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, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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 ] ] }, "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "of", "customers", "who", "do", "not", "have", "any", "accounts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(1) A(0) C(5) T(1) A(0) C(6) T(1) Root(3) Sel(0) N(1) A(0) C(5) T(1) A(0) C(6) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT DISTINCT T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_first_name", ",", "T1.customer_last_name", "FROM", "Customers", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_first_name", ",", "t1", ".", "customer_last_name", "from", "customers", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "Show distinct first and last names for all customers with an account.", "question_toks": [ "show", "distinct", "first", "and", "last", "name", "for", "all", "customer", "with", "an", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "distinct", "first", "and", "last", "names", "for", "all", "customers", "with", "an", "account", "." ], "question_arg": [ [ "show" ], [ "distinct" ], [ "first" ], [ "and" ], [ "customer", "last", "name" ], [ "for" ], [ "all" ], [ "customer" ], [ "with" ], [ "an" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "distinct", "VBZ" ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "with", "IN" ], [ "an", "DT" ], [ "account", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(5) T(1) A(0) C(6) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT DISTINCT T1.customer_first_name , T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_first_name", ",", "T1.customer_last_name", "FROM", "Customers", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_first_name", ",", "t1", ".", "customer_last_name", "from", "customers", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "What are the full names of customers who have accounts?", "question_toks": [ "what", "are", "full", "name", "of", "customer", "who", "have", "account", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "of", "customers", "who", "have", "accounts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "account", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(5) T(1) A(0) C(6) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(DISTINCT customer_id) FROM Accounts", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "customer_id", ")", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "customer_id", ")", "from", "accounts" ], "question": "How many customers have an account?", "question_toks": [ "how", "many", "customer", "have", "an", "account", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "customers", "have", "an", "account", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "have" ], [ "an" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "an", "DT" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(2) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(DISTINCT customer_id) FROM Accounts", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "customer_id", ")", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "customer_id", ")", "from", "accounts" ], "question": "Count the number of customers who hold an account.", "question_toks": [ "count", "number", "of", "customer", "who", "hold", "an", "account", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Count", "the", "number", "of", "customers", "who", "hold", "an", "account", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "customer" ], [ "who" ], [ "hold" ], [ "an" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "hold", "VBP" ], [ "an", "DT" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(2) T(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Customers", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers" ], "question": "How many customers do we have?", "question_toks": [ "how", "many", "customer", "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "customers", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Customers", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers" ], "question": "Count the number of customers.", "question_toks": [ "count", "number", "of", "customer", "." ], "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Count", "the", "number", "of", "customers", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_id , customer_first_name , customer_last_name , customer_phone FROM Customers", "query_toks": [ "SELECT", "customer_id", ",", "customer_first_name", ",", "customer_last_name", ",", "customer_phone", "FROM", "Customers" ], "query_toks_no_value": [ "select", "customer_id", ",", "customer_first_name", ",", "customer_last_name", ",", "customer_phone", "from", "customers" ], "question": "Show ids, first names, last names, and phones for all customers.", "question_toks": [ "show", "id", ",", "first", "name", ",", "last", "name", ",", "and", "phone", "for", "all", "customer", "." ], "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, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "ids", ",", "first", "names", ",", "last", "names", ",", "and", "phones", "for", "all", "customers", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "," ], [ "customer", "first", "name" ], [ "," ], [ "customer", "last", "name" ], [ "," ], [ "and" ], [ "phone" ], [ "for" ], [ "all" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "phone", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(2) T(1) A(0) C(5) T(1) A(0) C(6) T(1) A(0) C(8) T(1)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_id , customer_first_name , customer_last_name , customer_phone FROM Customers", "query_toks": [ "SELECT", "customer_id", ",", "customer_first_name", ",", "customer_last_name", ",", "customer_phone", "FROM", "Customers" ], "query_toks_no_value": [ "select", "customer_id", ",", "customer_first_name", ",", "customer_last_name", ",", "customer_phone", "from", "customers" ], "question": "What are the ids, full names, and phones of each customer?", "question_toks": [ "what", "are", "id", ",", "full", "name", ",", "and", "phone", "of", "each", "customer", "?" ], "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, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "ids", ",", "full", "names", ",", "and", "phones", "of", "each", "customer", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "," ], [ "full" ], [ "name" ], [ "," ], [ "and" ], [ "phone" ], [ "of" ], [ "each" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ ",", "," ], [ "full", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "phone", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(2) T(1) A(0) C(5) T(1) A(0) C(6) T(1) A(0) C(8) T(1)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_phone , customer_email FROM Customers WHERE customer_first_name = \"Aniyah\" AND customer_last_name = \"Feest\"", "query_toks": [ "SELECT", "customer_phone", ",", "customer_email", "FROM", "Customers", "WHERE", "customer_first_name", "=", "``", "Aniyah", "''", "AND", "customer_last_name", "=", "``", "Feest", "''" ], "query_toks_no_value": [ "select", "customer_phone", ",", "customer_email", "from", "customers", "where", "customer_first_name", "=", "value", "and", "customer_last_name", "=", "value" ], "question": "What is the phone and email for customer with first name Aniyah and last name Feest?", "question_toks": [ "what", "is", "phone", "and", "email", "for", "customer", "with", "first", "name", "aniyah", "and", "last", "name", "feest", "?" ], "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, 2, [ 0, [ 0, 6, false ], null ], "\"Aniyah\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Feest\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "phone", "and", "email", "for", "customer", "with", "first", "name", "Aniyah", "and", "last", "name", "Feest", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "phone" ], [ "and" ], [ "email" ], [ "for" ], [ "customer" ], [ "with" ], [ "customer", "first", "name" ], [ "aniyah" ], [ "and" ], [ "customer", "last", "name" ], [ "feest" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "phone", "NN" ], [ "and", "CC" ], [ "email", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "aniyah", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "feest", "JJS" ], [ "?", "." ] ], "values": [ "Aniyah", "Feest", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(9) T(1) Filter(0) Filter(2) A(0) C(5) T(1) V(0) Filter(2) A(0) C(6) T(1) V(1)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_phone , customer_email FROM Customers WHERE customer_first_name = \"Aniyah\" AND customer_last_name = \"Feest\"", "query_toks": [ "SELECT", "customer_phone", ",", "customer_email", "FROM", "Customers", "WHERE", "customer_first_name", "=", "``", "Aniyah", "''", "AND", "customer_last_name", "=", "``", "Feest", "''" ], "query_toks_no_value": [ "select", "customer_phone", ",", "customer_email", "from", "customers", "where", "customer_first_name", "=", "value", "and", "customer_last_name", "=", "value" ], "question": "Return the phone and email of the customer with the first name Aniyah and last name Feest.", "question_toks": [ "return", "phone", "and", "email", "of", "customer", "with", "first", "name", "aniyah", "and", "last", "name", "feest", "." ], "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, 2, [ 0, [ 0, 6, false ], null ], "\"Aniyah\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Feest\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Return", "the", "phone", "and", "email", "of", "the", "customer", "with", "the", "first", "name", "Aniyah", "and", "last", "name", "Feest", "." ], "question_arg": [ [ "return" ], [ "phone" ], [ "and" ], [ "email" ], [ "of" ], [ "customer" ], [ "with" ], [ "customer", "first", "name" ], [ "aniyah" ], [ "and" ], [ "customer", "last", "name" ], [ "feest" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "phone", "NN" ], [ "and", "CC" ], [ "email", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "aniyah", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "feest", "JJS" ], [ ".", "." ] ], "values": [ "1", "Feest", "Aniyah" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(9) T(1) Filter(0) Filter(2) A(0) C(5) T(1) V(2) Filter(2) A(0) C(6) T(1) V(1)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Customers_cards", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers_cards" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers_cards" ], "question": "Show the number of customer cards.", "question_toks": [ "show", "number", "of", "customer", "card", "." ], "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "the", "number", "of", "customer", "cards", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "customer", "card" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "card", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Customers_cards", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers_cards" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers_cards" ], "question": "How many customer cards are there?", "question_toks": [ "how", "many", "customer", "card", "are", "there", "?" ], "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "customer", "cards", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer", "card" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "card", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT card_id , customer_id , card_type_code , card_number FROM Customers_cards", "query_toks": [ "SELECT", "card_id", ",", "customer_id", ",", "card_type_code", ",", "card_number", "FROM", "Customers_cards" ], "query_toks_no_value": [ "select", "card_id", ",", "customer_id", ",", "card_type_code", ",", "card_number", "from", "customers_cards" ], "question": "Show ids, customer ids, card type codes, card numbers for all cards.", "question_toks": [ "show", "id", ",", "customer", "id", ",", "card", "type", "code", ",", "card", "number", "for", "all", "card", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "ids", ",", "customer", "ids", ",", "card", "type", "codes", ",", "card", "numbers", "for", "all", "cards", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "," ], [ "customer", "id" ], [ "," ], [ "card", "type", "code" ], [ "," ], [ "card", "number" ], [ "for" ], [ "all" ], [ "card" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "customer", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "card", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "card", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "card", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(11) T(2) A(0) C(2) T(2) A(0) C(12) T(2) A(0) C(13) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT card_id , customer_id , card_type_code , card_number FROM Customers_cards", "query_toks": [ "SELECT", "card_id", ",", "customer_id", ",", "card_type_code", ",", "card_number", "FROM", "Customers_cards" ], "query_toks_no_value": [ "select", "card_id", ",", "customer_id", ",", "card_type_code", ",", "card_number", "from", "customers_cards" ], "question": "What are card ids, customer ids, card types, and card numbers for each customer card?", "question_toks": [ "what", "are", "card", "id", ",", "customer", "id", ",", "card", "type", ",", "and", "card", "number", "for", "each", "customer", "card", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "card", "ids", ",", "customer", "ids", ",", "card", "types", ",", "and", "card", "numbers", "for", "each", "customer", "card", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "card", "id" ], [ "," ], [ "customer", "id" ], [ "," ], [ "card", "type", "code" ], [ "," ], [ "and" ], [ "card", "number" ], [ "for" ], [ "each" ], [ "customer", "card" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "card", "JJ" ], [ "id", "NN" ], [ ",", "," ], [ "customer", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "card", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "card", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "customer", "NN" ], [ "card", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(11) T(2) A(0) C(2) T(2) A(0) C(12) T(2) A(0) C(13) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT date_valid_from , date_valid_to FROM Customers_cards WHERE card_number = \"4560596484842\"", "query_toks": [ "SELECT", "date_valid_from", ",", "date_valid_to", "FROM", "Customers_cards", "WHERE", "card_number", "=", "``", "4560596484842", "''" ], "query_toks_no_value": [ "select", "date_valid_from", ",", "date_valid_to", "from", "customers_cards", "where", "card_number", "=", "value" ], "question": "Show the date valid from and the date valid to for the card with card number '4560596484842'.", "question_toks": [ "show", "date", "valid", "from", "and", "date", "valid", "to", "for", "card", "with", "card", "number", "'", "4560596484842", "'", "." ], "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 ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"4560596484842\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "the", "date", "valid", "from", "and", "the", "date", "valid", "to", "for", "the", "card", "with", "card", "number", "'4560596484842", "'", "." ], "question_arg": [ [ "show" ], [ "date", "valid", "from" ], [ "and" ], [ "date", "valid", "to" ], [ "for" ], [ "card" ], [ "with" ], [ "card", "number" ], [ "'" ], [ "4560596484842" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "date", "NN" ], [ "valid", "NN" ], [ "from", "IN" ], [ "and", "CC" ], [ "date", "NN" ], [ "valid", "NNS" ], [ "to", "TO" ], [ "for", "IN" ], [ "card", "NN" ], [ "with", "IN" ], [ "card", "JJ" ], [ "number", "NN" ], [ "'", "POS" ], [ "4560596484842", "CD" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "4560596484842" ], "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(13) T(2) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT date_valid_from , date_valid_to FROM Customers_cards WHERE card_number = \"4560596484842\"", "query_toks": [ "SELECT", "date_valid_from", ",", "date_valid_to", "FROM", "Customers_cards", "WHERE", "card_number", "=", "``", "4560596484842", "''" ], "query_toks_no_value": [ "select", "date_valid_from", ",", "date_valid_to", "from", "customers_cards", "where", "card_number", "=", "value" ], "question": "What are the valid from and valid to dates for the card with the number 4560596484842?", "question_toks": [ "what", "are", "valid", "from", "and", "valid", "to", "date", "for", "card", "with", "number", "4560596484842", "?" ], "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 ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"4560596484842\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "valid", "from", "and", "valid", "to", "dates", "for", "the", "card", "with", "the", "number", "4560596484842", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date", "valid", "from" ], [ "and" ], [ "date", "valid", "to" ], [ "for" ], [ "card" ], [ "with" ], [ "number" ], [ "4560596484842" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "valid", "JJ" ], [ "from", "IN" ], [ "and", "CC" ], [ "valid", "JJ" ], [ "to", "TO" ], [ "date", "NN" ], [ "for", "IN" ], [ "card", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "4560596484842", "CD" ], [ "?", "." ] ], "values": [ "4560596484842" ], "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(13) T(2) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT T2.customer_first_name , T2.customer_last_name , T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = \"4560596484842\"", "query_toks": [ "SELECT", "T2.customer_first_name", ",", "T2.customer_last_name", ",", "T2.customer_phone", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.card_number", "=", "``", "4560596484842", "''" ], "query_toks_no_value": [ "select", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", ",", "t2", ".", "customer_phone", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "card_number", "=", "value" ], "question": "What is the first name, last name, and phone of the customer with card 4560596484842.", "question_toks": [ "what", "is", "first", "name", ",", "last", "name", ",", "and", "phone", "of", "customer", "with", "card", "4560596484842", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"4560596484842\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "first", "name", ",", "last", "name", ",", "and", "phone", "of", "the", "customer", "with", "card", "4560596484842", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "customer", "first", "name" ], [ "," ], [ "customer", "last", "name" ], [ "," ], [ "and" ], [ "phone" ], [ "of" ], [ "customer" ], [ "with" ], [ "card" ], [ "4560596484842" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "phone", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "card", "NN" ], [ "4560596484842", "CD" ], [ ".", "." ] ], "values": [ "4560596484842", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(5) T(1) A(0) C(6) T(1) A(0) C(8) T(1) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT T2.customer_first_name , T2.customer_last_name , T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = \"4560596484842\"", "query_toks": [ "SELECT", "T2.customer_first_name", ",", "T2.customer_last_name", ",", "T2.customer_phone", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.card_number", "=", "``", "4560596484842", "''" ], "query_toks_no_value": [ "select", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", ",", "t2", ".", "customer_phone", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "card_number", "=", "value" ], "question": "Return the full name and phone of the customer who has card number 4560596484842.", "question_toks": [ "return", "full", "name", "and", "phone", "of", "customer", "who", "ha", "card", "number", "4560596484842", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"4560596484842\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Return", "the", "full", "name", "and", "phone", "of", "the", "customer", "who", "has", "card", "number", "4560596484842", "." ], "question_arg": [ [ "return" ], [ "full" ], [ "name" ], [ "and" ], [ "phone" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "card", "number" ], [ "4560596484842" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "card", "NN" ], [ "number", "NN" ], [ "4560596484842", "CD" ], [ ".", "." ] ], "values": [ "4560596484842" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(5) T(1) A(0) C(6) T(1) A(0) C(8) T(1) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Art\" AND T2.customer_last_name = \"Turcotte\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.customer_first_name", "=", "``", "Art", "''", "AND", "T2.customer_last_name", "=", "``", "Turcotte", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value", "and", "t2", ".", "customer_last_name", "=", "value" ], "question": "How many cards does customer Art Turcotte have?", "question_toks": [ "how", "many", "card", "doe", "customer", "art", "turcotte", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, 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, 6, false ], null ], "\"Art\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Turcotte\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "cards", "does", "customer", "Art", "Turcotte", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "card" ], [ "doe" ], [ "customer" ], [ "art" ], [ "turcotte" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "card", "NN" ], [ "doe", "NN" ], [ "customer", "NN" ], [ "art", "NN" ], [ "turcotte", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "Art", "Turcotte" ], "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(0) Filter(2) A(0) C(6) T(1) V(1)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Art\" AND T2.customer_last_name = \"Turcotte\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.customer_first_name", "=", "``", "Art", "''", "AND", "T2.customer_last_name", "=", "``", "Turcotte", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value", "and", "t2", ".", "customer_last_name", "=", "value" ], "question": "Count the number of cards the customer with the first name Art and last name Turcotte has.", "question_toks": [ "count", "number", "of", "card", "customer", "with", "first", "name", "art", "and", "last", "name", "turcotte", "ha", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, 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, 6, false ], null ], "\"Art\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Turcotte\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Count", "the", "number", "of", "cards", "the", "customer", "with", "the", "first", "name", "Art", "and", "last", "name", "Turcotte", "has", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "card" ], [ "customer" ], [ "with" ], [ "customer", "first", "name" ], [ "art" ], [ "and" ], [ "customer", "last", "name" ], [ "turcotte" ], [ "ha" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "card", "JJ" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "art", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "turcotte", "NN" ], [ "ha", "NN" ], [ ".", "." ] ], "values": [ "1", "Turcotte", "Art" ], "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(2) Filter(2) A(0) C(6) T(1) V(1)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Customers_cards WHERE card_type_code = \"Debit\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers_cards", "WHERE", "card_type_code", "=", "``", "Debit", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers_cards", "where", "card_type_code", "=", "value" ], "question": "How many debit cards do we have?", "question_toks": [ "how", "many", "debit", "card", "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": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Debit\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "debit", "cards", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "debit" ], [ "card" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "debit", "RB" ], [ "card", "JJ" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "Debit" ], "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": "customers_card_transactions", "query": "SELECT count(*) FROM Customers_cards WHERE card_type_code = \"Debit\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers_cards", "WHERE", "card_type_code", "=", "``", "Debit", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers_cards", "where", "card_type_code", "=", "value" ], "question": "Count the number of customer cards of the type Debit.", "question_toks": [ "count", "number", "of", "customer", "card", "of", "type", "debit", "." ], "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, 14, false ], null ], "\"Debit\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Count", "the", "number", "of", "customer", "cards", "of", "the", "type", "Debit", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "customer", "card" ], [ "of" ], [ "type" ], [ "debit" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "card", "NN" ], [ "of", "IN" ], [ "type", "JJ" ], [ "debit", "NN" ], [ ".", "." ] ], "values": [ "Debit" ], "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": "customers_card_transactions", "query": "SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Blanche\" AND T2.customer_last_name = \"Huels\" AND T1.card_type_code = \"Credit\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.customer_first_name", "=", "``", "Blanche", "''", "AND", "T2.customer_last_name", "=", "``", "Huels", "''", "AND", "T1.card_type_code", "=", "``", "Credit", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value", "and", "t2", ".", "customer_last_name", "=", "value", "and", "t1", ".", "card_type_code", "=", "value" ], "question": "How many credit cards does customer Blanche Huels have?", "question_toks": [ "how", "many", "credit", "card", "doe", "customer", "blanche", "huels", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, 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, 6, false ], null ], "\"Blanche\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Huels\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Credit\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "credit", "cards", "does", "customer", "Blanche", "Huels", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "credit" ], [ "card" ], [ "doe" ], [ "customer" ], [ "blanche" ], [ "huels" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "credit", "NN" ], [ "card", "NN" ], [ "doe", "NN" ], [ "customer", "NN" ], [ "blanche", "NN" ], [ "huels", "NNS" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [ "Huels", "Credit", "Blanche" ], "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(2) Filter(0) Filter(2) A(0) C(6) T(1) V(0) Filter(2) A(0) C(12) T(2) V(1)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Blanche\" AND T2.customer_last_name = \"Huels\" AND T1.card_type_code = \"Credit\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.customer_first_name", "=", "``", "Blanche", "''", "AND", "T2.customer_last_name", "=", "``", "Huels", "''", "AND", "T1.card_type_code", "=", "``", "Credit", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value", "and", "t2", ".", "customer_last_name", "=", "value", "and", "t1", ".", "card_type_code", "=", "value" ], "question": "Count the number of credit cards that the customer with first name Blanche and last name Huels has.", "question_toks": [ "count", "number", "of", "credit", "card", "that", "customer", "with", "first", "name", "blanche", "and", "last", "name", "huels", "ha", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, 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, 6, false ], null ], "\"Blanche\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Huels\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Credit\"", null ] ] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Count", "the", "number", "of", "credit", "cards", "that", "the", "customer", "with", "first", "name", "Blanche", "and", "last", "name", "Huels", "has", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "credit" ], [ "card" ], [ "that" ], [ "customer" ], [ "with" ], [ "customer", "first", "name" ], [ "blanche" ], [ "and" ], [ "customer", "last", "name" ], [ "huels" ], [ "ha" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "credit", "NN" ], [ "card", "NN" ], [ "that", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "blanche", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "huels", "NNS" ], [ "ha", "NN" ], [ ".", "." ] ], "values": [ "1", "Blanche", "Huels", "Credit" ], "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(0) Filter(2) A(0) C(6) T(1) V(2) Filter(2) A(0) C(12) T(2) V(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_id , count(*) FROM Customers_cards GROUP BY customer_id", "query_toks": [ "SELECT", "customer_id", ",", "count", "(", "*", ")", "FROM", "Customers_cards", "GROUP", "BY", "customer_id" ], "query_toks_no_value": [ "select", "customer_id", ",", "count", "(", "*", ")", "from", "customers_cards", "group", "by", "customer_id" ], "question": "Show all customer ids and the number of cards owned by each customer.", "question_toks": [ "show", "all", "customer", "id", "and", "number", "of", "card", "owned", "by", "each", "customer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "all", "customer", "ids", "and", "the", "number", "of", "cards", "owned", "by", "each", "customer", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "customer", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "card" ], [ "owned" ], [ "by" ], [ "each" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "card", "NN" ], [ "owned", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(2) A(3) C(0) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_id , count(*) FROM Customers_cards GROUP BY customer_id", "query_toks": [ "SELECT", "customer_id", ",", "count", "(", "*", ")", "FROM", "Customers_cards", "GROUP", "BY", "customer_id" ], "query_toks_no_value": [ "select", "customer_id", ",", "count", "(", "*", ")", "from", "customers_cards", "group", "by", "customer_id" ], "question": "What are the different customer ids, and how many cards does each one hold?", "question_toks": [ "what", "are", "different", "customer", "id", ",", "and", "how", "many", "card", "doe", "each", "one", "hold", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "different", "customer", "ids", ",", "and", "how", "many", "cards", "does", "each", "one", "hold", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "customer", "id" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "card" ], [ "doe" ], [ "each" ], [ "one" ], [ "hold" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "customer", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "card", "NN" ], [ "doe", "VBZ" ], [ "each", "DT" ], [ "one", "CD" ], [ "hold", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(2) A(3) C(0) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_id , count(*) FROM Customers_cards GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "customer_id", ",", "count", "(", "*", ")", "FROM", "Customers_cards", "GROUP", "BY", "customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "customer_id", ",", "count", "(", "*", ")", "from", "customers_cards", "group", "by", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the customer id with most number of cards, and how many does he have?", "question_toks": [ "what", "is", "customer", "id", "with", "most", "number", "of", "card", ",", "and", "how", "many", "doe", "he", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "customer", "id", "with", "most", "number", "of", "cards", ",", "and", "how", "many", "does", "he", "have", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "customer", "id" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "card" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "doe" ], [ "he" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "customer", "NN" ], [ "id", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "card", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "doe", "NN" ], [ "he", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(2) A(3) C(0) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_id , count(*) FROM Customers_cards GROUP BY customer_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "customer_id", ",", "count", "(", "*", ")", "FROM", "Customers_cards", "GROUP", "BY", "customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "customer_id", ",", "count", "(", "*", ")", "from", "customers_cards", "group", "by", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the id of the customer who has the most cards, as well as the number of cards.", "question_toks": [ "return", "id", "of", "customer", "who", "ha", "most", "card", ",", "a", "well", "a", "number", "of", "card", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Return", "the", "id", "of", "the", "customer", "who", "has", "the", "most", "cards", ",", "as", "well", "as", "the", "number", "of", "cards", "." ], "question_arg": [ [ "return" ], [ "id" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "most" ], [ "card" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "number" ], [ "of" ], [ "card" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "id", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "card", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "number", "NN" ], [ "of", "IN" ], [ "card", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(2) A(3) C(0) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.customer_id", ",", "T2.customer_first_name", ",", "T2.customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show id, first and last names for all customers with at least two cards.", "question_toks": [ "show", "id", ",", "first", "and", "last", "name", "for", "all", "customer", "with", "at", "least", "two", "card", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "id", ",", "first", "and", "last", "names", "for", "all", "customers", "with", "at", "least", "two", "cards", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "," ], [ "first" ], [ "and" ], [ "customer", "last", "name" ], [ "for" ], [ "all" ], [ "customer" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "card" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "card", "NN" ], [ ".", "." ] ], "values": [ "2", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(2) T(2) A(0) C(5) T(1) A(0) C(6) T(1) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.customer_id", ",", "T2.customer_first_name", ",", "T2.customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the ids and full names of customers who hold two or more cards?", "question_toks": [ "what", "are", "id", "and", "full", "name", "of", "customer", "who", "hold", "two", "or", "more", "card", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "full", "names", "of", "customers", "who", "hold", "two", "or", "more", "cards", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "full" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "hold" ], [ "two" ], [ "or" ], [ "more" ], [ "card" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "hold", "VBP" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "card", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(2) T(2) A(0) C(5) T(1) A(0) C(6) T(1) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.customer_id", ",", "T2.customer_first_name", ",", "T2.customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the customer id, first and last name with least number of accounts.", "question_toks": [ "what", "is", "customer", "id", ",", "first", "and", "last", "name", "with", "least", "number", "of", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "customer", "id", ",", "first", "and", "last", "name", "with", "least", "number", "of", "accounts", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "customer", "id" ], [ "," ], [ "first" ], [ "and" ], [ "customer", "last", "name" ], [ "with" ], [ "least" ], [ "number" ], [ "of" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "customer", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "with", "IN" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(2) T(2) A(0) C(5) T(1) A(0) C(6) T(1) Sup(1) A(3) C(0) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.customer_id", ",", "T2.customer_first_name", ",", "T2.customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Return the id and full name of the customer who has the fewest accounts.", "question_toks": [ "return", "id", "and", "full", "name", "of", "customer", "who", "ha", "fewest", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Return", "the", "id", "and", "full", "name", "of", "the", "customer", "who", "has", "the", "fewest", "accounts", "." ], "question_arg": [ [ "return" ], [ "id" ], [ "and" ], [ "full" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "fewest" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "fewest", "JJS" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(2) T(2) A(0) C(5) T(1) A(0) C(6) T(1) Sup(1) A(3) C(0) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT card_type_code , count(*) FROM Customers_cards GROUP BY card_type_code", "query_toks": [ "SELECT", "card_type_code", ",", "count", "(", "*", ")", "FROM", "Customers_cards", "GROUP", "BY", "card_type_code" ], "query_toks_no_value": [ "select", "card_type_code", ",", "count", "(", "*", ")", "from", "customers_cards", "group", "by", "card_type_code" ], "question": "Show all card type codes and the number of cards in each type.", "question_toks": [ "show", "all", "card", "type", "code", "and", "number", "of", "card", "in", "each", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "all", "card", "type", "codes", "and", "the", "number", "of", "cards", "in", "each", "type", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "card", "type", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "card" ], [ "in" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "card", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "card", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(2) A(3) C(0) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT card_type_code , count(*) FROM Customers_cards GROUP BY card_type_code", "query_toks": [ "SELECT", "card_type_code", ",", "count", "(", "*", ")", "FROM", "Customers_cards", "GROUP", "BY", "card_type_code" ], "query_toks_no_value": [ "select", "card_type_code", ",", "count", "(", "*", ")", "from", "customers_cards", "group", "by", "card_type_code" ], "question": "What are the different card types, and how many cards are there of each?", "question_toks": [ "what", "are", "different", "card", "type", ",", "and", "how", "many", "card", "are", "there", "of", "each", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "different", "card", "types", ",", "and", "how", "many", "cards", "are", "there", "of", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "card", "type", "code" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "card" ], [ "are" ], [ "there" ], [ "of" ], [ "each" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "card", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "card", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "of", "IN" ], [ "each", "DT" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(2) A(3) C(0) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "card_type_code", "FROM", "Customers_cards", "GROUP", "BY", "card_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "card_type_code", "from", "customers_cards", "group", "by", "card_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the card type code with most number of cards?", "question_toks": [ "what", "is", "card", "type", "code", "with", "most", "number", "of", "card", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "card", "type", "code", "with", "most", "number", "of", "cards", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "card", "type", "code" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "card" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "card", "JJ" ], [ "type", "NN" ], [ "code", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "card", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT card_type_code FROM Customers_cards GROUP BY card_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "card_type_code", "FROM", "Customers_cards", "GROUP", "BY", "card_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "card_type_code", "from", "customers_cards", "group", "by", "card_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the code of the card type that is most common.", "question_toks": [ "return", "code", "of", "card", "type", "that", "is", "most", "common", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Return", "the", "code", "of", "the", "card", "type", "that", "is", "most", "common", "." ], "question_arg": [ [ "return" ], [ "code" ], [ "of" ], [ "card", "type", "code" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "card", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT card_type_code FROM Customers_cards GROUP BY card_type_code HAVING count(*) >= 5", "query_toks": [ "SELECT", "card_type_code", "FROM", "Customers_cards", "GROUP", "BY", "card_type_code", "HAVING", "count", "(", "*", ")", ">", "=", "5" ], "query_toks_no_value": [ "select", "card_type_code", "from", "customers_cards", "group", "by", "card_type_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show card type codes with at least 5 cards.", "question_toks": [ "show", "card", "type", "code", "with", "at", "least", "5", "card", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "card", "type", "codes", "with", "at", "least", "5", "cards", "." ], "question_arg": [ [ "show" ], [ "card", "type", "code" ], [ "with" ], [ "at" ], [ "least" ], [ "5" ], [ "card" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "card", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "5", "CD" ], [ "card", "NN" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT card_type_code FROM Customers_cards GROUP BY card_type_code HAVING count(*) >= 5", "query_toks": [ "SELECT", "card_type_code", "FROM", "Customers_cards", "GROUP", "BY", "card_type_code", "HAVING", "count", "(", "*", ")", ">", "=", "5" ], "query_toks_no_value": [ "select", "card_type_code", "from", "customers_cards", "group", "by", "card_type_code", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the codes of card types that have 5 or more cards?", "question_toks": [ "what", "are", "code", "of", "card", "type", "that", "have", "5", "or", "more", "card", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "codes", "of", "card", "types", "that", "have", "5", "or", "more", "cards", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "code" ], [ "of" ], [ "card", "type", "code" ], [ "that" ], [ "have" ], [ "5" ], [ "or" ], [ "more" ], [ "card" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "code", "NN" ], [ "of", "IN" ], [ "card", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "5", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "card", "NN" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT card_type_code , count(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code", "query_toks": [ "SELECT", "card_type_code", ",", "count", "(", "DISTINCT", "customer_id", ")", "FROM", "Customers_cards", "GROUP", "BY", "card_type_code" ], "query_toks_no_value": [ "select", "card_type_code", ",", "count", "(", "distinct", "customer_id", ")", "from", "customers_cards", "group", "by", "card_type_code" ], "question": "Show all card type codes and the number of customers holding cards in each type.", "question_toks": [ "show", "all", "card", "type", "code", "and", "number", "of", "customer", "holding", "card", "in", "each", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "all", "card", "type", "codes", "and", "the", "number", "of", "customers", "holding", "cards", "in", "each", "type", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "card", "type", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "customer" ], [ "holding" ], [ "card" ], [ "in" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "card", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "holding", "VBG" ], [ "card", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(12) T(2) A(3) C(2) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT card_type_code , count(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code", "query_toks": [ "SELECT", "card_type_code", ",", "count", "(", "DISTINCT", "customer_id", ")", "FROM", "Customers_cards", "GROUP", "BY", "card_type_code" ], "query_toks_no_value": [ "select", "card_type_code", ",", "count", "(", "distinct", "customer_id", ")", "from", "customers_cards", "group", "by", "card_type_code" ], "question": "What are the different card type codes, and how many different customers hold each type?", "question_toks": [ "what", "are", "different", "card", "type", "code", ",", "and", "how", "many", "different", "customer", "hold", "each", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "different", "card", "type", "codes", ",", "and", "how", "many", "different", "customers", "hold", "each", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "card", "type", "code" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "different" ], [ "customer" ], [ "hold" ], [ "each" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "card", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "customer", "NN" ], [ "hold", "VB" ], [ "each", "DT" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(12) T(2) A(3) C(2) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_id , customer_first_name FROM Customers EXCEPT SELECT T1.customer_id , T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = \"Credit\"", "query_toks": [ "SELECT", "customer_id", ",", "customer_first_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_id", ",", "T2.customer_first_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "card_type_code", "=", "``", "Credit", "''" ], "query_toks_no_value": [ "select", "customer_id", ",", "customer_first_name", "from", "customers", "except", "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "card_type_code", "=", "value" ], "question": "Show the customer ids and firstname without a credit card.", "question_toks": [ "show", "customer", "id", "and", "firstname", "without", "a", "credit", "card", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Credit\"", 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, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "the", "customer", "ids", "and", "firstname", "without", "a", "credit", "card", "." ], "question_arg": [ [ "show" ], [ "customer", "id" ], [ "and" ], [ "firstname" ], [ "without" ], [ "a" ], [ "credit" ], [ "card" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "customer", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "firstname", "NN" ], [ "without", "IN" ], [ "a", "DT" ], [ "credit", "NN" ], [ "card", "NN" ], [ ".", "." ] ], "values": [ "Credit" ], "rule_label": "Root1(2) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(5) T(1) Root(3) Sel(0) N(1) A(0) C(2) T(2) A(0) C(5) T(1) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT customer_id , customer_first_name FROM Customers EXCEPT SELECT T1.customer_id , T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = \"Credit\"", "query_toks": [ "SELECT", "customer_id", ",", "customer_first_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_id", ",", "T2.customer_first_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "card_type_code", "=", "``", "Credit", "''" ], "query_toks_no_value": [ "select", "customer_id", ",", "customer_first_name", "from", "customers", "except", "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "card_type_code", "=", "value" ], "question": "What are the ids and first names of customers who do not hold a credit card?", "question_toks": [ "what", "are", "id", "and", "first", "name", "of", "customer", "who", "do", "not", "hold", "a", "credit", "card", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Credit\"", 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, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "first", "names", "of", "customers", "who", "do", "not", "hold", "a", "credit", "card", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "customer", "first", "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "do" ], [ "not" ], [ "hold" ], [ "a" ], [ "credit" ], [ "card" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "hold", "VB" ], [ "a", "DT" ], [ "credit", "NN" ], [ "card", "NN" ], [ "?", "." ] ], "values": [ "Credit", "1" ], "rule_label": "Root1(2) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(5) T(1) Root(3) Sel(0) N(1) A(0) C(2) T(2) A(0) C(5) T(1) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "customers_card_transactions", "query": "SELECT DISTINCT card_type_code FROM Customers_Cards", "query_toks": [ "SELECT", "DISTINCT", "card_type_code", "FROM", "Customers_Cards" ], "query_toks_no_value": [ "select", "distinct", "card_type_code", "from", "customers_cards" ], "question": "Show all card type codes.", "question_toks": [ "show", "all", "card", "type", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "all", "card", "type", "codes", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "card", "type", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "card", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(12) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT DISTINCT card_type_code FROM Customers_Cards", "query_toks": [ "SELECT", "DISTINCT", "card_type_code", "FROM", "Customers_Cards" ], "query_toks_no_value": [ "select", "distinct", "card_type_code", "from", "customers_cards" ], "question": "What are the different card type codes?", "question_toks": [ "what", "are", "different", "card", "type", "code", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "different", "card", "type", "codes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "card", "type", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "card", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(12) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(DISTINCT card_type_code) FROM Customers_Cards", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "card_type_code", ")", "FROM", "Customers_Cards" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "card_type_code", ")", "from", "customers_cards" ], "question": "Show the number of card types.", "question_toks": [ "show", "number", "of", "card", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 14, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "the", "number", "of", "card", "types", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "card", "type", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "card", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(12) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(DISTINCT card_type_code) FROM Customers_Cards", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "card_type_code", ")", "FROM", "Customers_Cards" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "card_type_code", ")", "from", "customers_cards" ], "question": "How many different card types are there?", "question_toks": [ "how", "many", "different", "card", "type", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 14, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "different", "card", "types", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "card", "type", "code" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "card", "NN" ], [ "type", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(12) T(2)" }, { "db_id": "customers_card_transactions", "query": "SELECT DISTINCT transaction_type FROM Financial_Transactions", "query_toks": [ "SELECT", "DISTINCT", "transaction_type", "FROM", "Financial_Transactions" ], "query_toks_no_value": [ "select", "distinct", "transaction_type", "from", "financial_transactions" ], "question": "Show all transaction types.", "question_toks": [ "show", "all", "transaction", "type", "." ], "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": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "all", "transaction", "types", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "transaction", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "transaction", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(19) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT DISTINCT transaction_type FROM Financial_Transactions", "query_toks": [ "SELECT", "DISTINCT", "transaction_type", "FROM", "Financial_Transactions" ], "query_toks_no_value": [ "select", "distinct", "transaction_type", "from", "financial_transactions" ], "question": "What are the different types of transactions?", "question_toks": [ "what", "are", "different", "type", "of", "transaction", "?" ], "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": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "different", "types", "of", "transactions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "type" ], [ "of" ], [ "transaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(19) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(DISTINCT transaction_type) FROM Financial_Transactions", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "transaction_type", ")", "FROM", "Financial_Transactions" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "transaction_type", ")", "from", "financial_transactions" ], "question": "Show the number of transaction types.", "question_toks": [ "show", "number", "of", "transaction", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 23, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "the", "number", "of", "transaction", "types", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "transaction", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(19) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT count(DISTINCT transaction_type) FROM Financial_Transactions", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "transaction_type", ")", "FROM", "Financial_Transactions" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "transaction_type", ")", "from", "financial_transactions" ], "question": "How many different types of transactions are there?", "question_toks": [ "how", "many", "different", "type", "of", "transaction", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 23, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "different", "types", "of", "transactions", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "type" ], [ "of" ], [ "transaction" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(19) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT avg(transaction_amount) , sum(transaction_amount) FROM Financial_transactions", "query_toks": [ "SELECT", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions" ], "query_toks_no_value": [ "select", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions" ], "question": "What is the average and total transaction amount?", "question_toks": [ "what", "is", "average", "and", "total", "transaction", "amount", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 25, false ], null ] ], [ 4, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "average", "and", "total", "transaction", "amount", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "and" ], [ "total" ], [ "transaction", "amount" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "total", "JJ" ], [ "transaction", "NN" ], [ "amount", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(21) T(3) A(4) C(21) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT avg(transaction_amount) , sum(transaction_amount) FROM Financial_transactions", "query_toks": [ "SELECT", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions" ], "query_toks_no_value": [ "select", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions" ], "question": "Return the average transaction amount, as well as the total amount of all transactions.", "question_toks": [ "return", "average", "transaction", "amount", ",", "a", "well", "a", "total", "amount", "of", "all", "transaction", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 25, false ], null ] ], [ 4, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Return", "the", "average", "transaction", "amount", ",", "as", "well", "as", "the", "total", "amount", "of", "all", "transactions", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "transaction", "amount" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "total" ], [ "amount" ], [ "of" ], [ "all" ], [ "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "JJ" ], [ "transaction", "NN" ], [ "amount", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(21) T(3) A(4) C(21) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT T2.card_type_code , count(*) FROM Financial_transactions AS T1 JOIN Customers_cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code", "query_toks": [ "SELECT", "T2.card_type_code", ",", "count", "(", "*", ")", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Customers_cards", "AS", "T2", "ON", "T1.card_id", "=", "T2.card_id", "GROUP", "BY", "T2.card_type_code" ], "query_toks_no_value": [ "select", "t2", ".", "card_type_code", ",", "count", "(", "*", ")", "from", "financial_transactions", "as", "t1", "join", "customers_cards", "as", "t2", "on", "t1", ".", "card_id", "=", "t2", ".", "card_id", "group", "by", "t2", ".", "card_type_code" ], "question": "Show the card type codes and the number of transactions.", "question_toks": [ "show", "card", "type", "code", "and", "number", "of", "transaction", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "the", "card", "type", "codes", "and", "the", "number", "of", "transactions", "." ], "question_arg": [ [ "show" ], [ "card", "type", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "card", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(2) A(3) C(0) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT T2.card_type_code , count(*) FROM Financial_transactions AS T1 JOIN Customers_cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code", "query_toks": [ "SELECT", "T2.card_type_code", ",", "count", "(", "*", ")", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Customers_cards", "AS", "T2", "ON", "T1.card_id", "=", "T2.card_id", "GROUP", "BY", "T2.card_type_code" ], "query_toks_no_value": [ "select", "t2", ".", "card_type_code", ",", "count", "(", "*", ")", "from", "financial_transactions", "as", "t1", "join", "customers_cards", "as", "t2", "on", "t1", ".", "card_id", "=", "t2", ".", "card_id", "group", "by", "t2", ".", "card_type_code" ], "question": "What are the different card types, and how many transactions have been made with each?", "question_toks": [ "what", "are", "different", "card", "type", ",", "and", "how", "many", "transaction", "have", "been", "made", "with", "each", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 12, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "different", "card", "types", ",", "and", "how", "many", "transactions", "have", "been", "made", "with", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "card", "type", "code" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "transaction" ], [ "have" ], [ "been" ], [ "made" ], [ "with" ], [ "each" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "card", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "transaction", "NN" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "made", "VBN" ], [ "with", "IN" ], [ "each", "DT" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(12) T(2) A(3) C(0) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT transaction_type , count(*) FROM Financial_transactions GROUP BY transaction_type", "query_toks": [ "SELECT", "transaction_type", ",", "count", "(", "*", ")", "FROM", "Financial_transactions", "GROUP", "BY", "transaction_type" ], "query_toks_no_value": [ "select", "transaction_type", ",", "count", "(", "*", ")", "from", "financial_transactions", "group", "by", "transaction_type" ], "question": "Show the transaction type and the number of transactions.", "question_toks": [ "show", "transaction", "type", "and", "number", "of", "transaction", "." ], "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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "the", "transaction", "type", "and", "the", "number", "of", "transactions", "." ], "question_arg": [ [ "show" ], [ "transaction", "type" ], [ "and" ], [ "number" ], [ "of" ], [ "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "transaction", "NN" ], [ "type", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(19) T(3) A(3) C(0) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT transaction_type , count(*) FROM Financial_transactions GROUP BY transaction_type", "query_toks": [ "SELECT", "transaction_type", ",", "count", "(", "*", ")", "FROM", "Financial_transactions", "GROUP", "BY", "transaction_type" ], "query_toks_no_value": [ "select", "transaction_type", ",", "count", "(", "*", ")", "from", "financial_transactions", "group", "by", "transaction_type" ], "question": "What are the different transaction types, and how many transactions of each have taken place?", "question_toks": [ "what", "are", "different", "transaction", "type", ",", "and", "how", "many", "transaction", "of", "each", "have", "taken", "place", "?" ], "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 ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "different", "transaction", "types", ",", "and", "how", "many", "transactions", "of", "each", "have", "taken", "place", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "transaction", "type" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "transaction" ], [ "of" ], [ "each" ], [ "have" ], [ "taken" ], [ "place" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "transaction", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "transaction", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "place", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(19) T(3) A(3) C(0) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT transaction_type FROM Financial_transactions GROUP BY transaction_type ORDER BY sum(transaction_amount) DESC LIMIT 1", "query_toks": [ "SELECT", "transaction_type", "FROM", "Financial_transactions", "GROUP", "BY", "transaction_type", "ORDER", "BY", "sum", "(", "transaction_amount", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "transaction_type", "from", "financial_transactions", "group", "by", "transaction_type", "order", "by", "sum", "(", "transaction_amount", ")", "desc", "limit", "value" ], "question": "What is the transaction type that has processed the greatest total amount in transactions?", "question_toks": [ "what", "is", "transaction", "type", "that", "ha", "processed", "greatest", "total", "amount", "in", "transaction", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 25, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "transaction", "type", "that", "has", "processed", "the", "greatest", "total", "amount", "in", "transactions", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "transaction", "type" ], [ "that" ], [ "ha" ], [ "processed" ], [ "greatest" ], [ "total" ], [ "amount" ], [ "in" ], [ "transaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "transaction", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "processed", "VBN" ], [ "greatest", "JJS" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "in", "IN" ], [ "transaction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(19) T(3) Sup(0) A(4) C(21) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT transaction_type FROM Financial_transactions GROUP BY transaction_type ORDER BY sum(transaction_amount) DESC LIMIT 1", "query_toks": [ "SELECT", "transaction_type", "FROM", "Financial_transactions", "GROUP", "BY", "transaction_type", "ORDER", "BY", "sum", "(", "transaction_amount", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "transaction_type", "from", "financial_transactions", "group", "by", "transaction_type", "order", "by", "sum", "(", "transaction_amount", ")", "desc", "limit", "value" ], "question": "Return the type of transaction with the highest total amount.", "question_toks": [ "return", "type", "of", "transaction", "with", "highest", "total", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 23, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 25, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Return", "the", "type", "of", "transaction", "with", "the", "highest", "total", "amount", "." ], "question_arg": [ [ "return" ], [ "type" ], [ "of" ], [ "transaction" ], [ "with" ], [ "highest" ], [ "total" ], [ "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "total", "JJ" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(19) T(3) Sup(0) A(4) C(21) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT account_id , count(*) FROM Financial_transactions GROUP BY account_id", "query_toks": [ "SELECT", "account_id", ",", "count", "(", "*", ")", "FROM", "Financial_transactions", "GROUP", "BY", "account_id" ], "query_toks_no_value": [ "select", "account_id", ",", "count", "(", "*", ")", "from", "financial_transactions", "group", "by", "account_id" ], "question": "Show the account id and the number of transactions for each account", "question_toks": [ "show", "account", "id", "and", "number", "of", "transaction", "for", "each", "account" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "the", "account", "id", "and", "the", "number", "of", "transactions", "for", "each", "account" ], "question_arg": [ [ "show" ], [ "account", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "transaction" ], [ "for" ], [ "each" ], [ "account" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "show", "NN" ], [ "account", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "account", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(3) A(3) C(0) T(3)" }, { "db_id": "customers_card_transactions", "query": "SELECT account_id , count(*) FROM Financial_transactions GROUP BY account_id", "query_toks": [ "SELECT", "account_id", ",", "count", "(", "*", ")", "FROM", "Financial_transactions", "GROUP", "BY", "account_id" ], "query_toks_no_value": [ "select", "account_id", ",", "count", "(", "*", ")", "from", "financial_transactions", "group", "by", "account_id" ], "question": "What are the different account ids that have made financial transactions, as well as how many transactions correspond to each?", "question_toks": [ "what", "are", "different", "account", "id", "that", "have", "made", "financial", "transaction", ",", "a", "well", "a", "how", "many", "transaction", "correspond", "to", "each", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "account id", "customer id", "account name", "other account details", "customer id", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "customer id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "account id", "card id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "table_names": [ "accounts", "customers", "customers cards", "financial transactions" ], "col_set": [ "*", "account id", "customer id", "account name", "other account details", "customer first name", "customer last name", "customer address", "customer phone", "customer email", "other customer details", "card id", "card type code", "card number", "date valid from", "date valid to", "other card details", "transaction id", "previous transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "21": 1, "1": 1, "22": 12, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "different", "account", "ids", "that", "have", "made", "financial", "transactions", ",", "as", "well", "as", "how", "many", "transactions", "correspond", "to", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "account", "id" ], [ "that" ], [ "have" ], [ "made" ], [ "financial", "transaction" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "how" ], [ "many" ], [ "transaction" ], [ "correspond" ], [ "to" ], [ "each" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "account", "NN" ], [ "id", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "made", "VBN" ], [ "financial", "JJ" ], [ "transaction", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "transaction", "NN" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(3) A(3) C(0) T(3)" }, { "db_id": "race_track", "query": "SELECT count(*) FROM track", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "track" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "track" ], "question": "How many tracks do we have?", "question_toks": [ "how", "many", "track", "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": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "tracks", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "track" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "track", "RB" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "race_track", "query": "SELECT count(*) FROM track", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "track" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "track" ], "question": "Count the number of tracks.", "question_toks": [ "count", "number", "of", "track", "." ], "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": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "tracks", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "race_track", "query": "SELECT name , LOCATION FROM track", "query_toks": [ "SELECT", "name", ",", "LOCATION", "FROM", "track" ], "query_toks_no_value": [ "select", "name", ",", "location", "from", "track" ], "question": "Show the name and location for all tracks.", "question_toks": [ "show", "name", "and", "location", "for", "all", "track", "." ], "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 ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "and", "location", "for", "all", "tracks", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "location" ], [ "for" ], [ "all" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(6) T(1)" }, { "db_id": "race_track", "query": "SELECT name , LOCATION FROM track", "query_toks": [ "SELECT", "name", ",", "LOCATION", "FROM", "track" ], "query_toks_no_value": [ "select", "name", ",", "location", "from", "track" ], "question": "What are the names and locations of all tracks?", "question_toks": [ "what", "are", "name", "and", "location", "of", "all", "track", "?" ], "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 ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "locations", "of", "all", "tracks", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "all" ], [ "track" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(6) T(1)" }, { "db_id": "race_track", "query": "SELECT name , seating FROM track WHERE year_opened > 2000 ORDER BY seating", "query_toks": [ "SELECT", "name", ",", "seating", "FROM", "track", "WHERE", "year_opened", ">", "2000", "ORDER", "BY", "seating" ], "query_toks_no_value": [ "select", "name", ",", "seating", "from", "track", "where", "year_opened", ">", "value", "order", "by", "seating" ], "question": "Show names and seatings, ordered by seating for all tracks opened after 2000.", "question_toks": [ "show", "name", "and", "seating", ",", "ordered", "by", "seating", "for", "all", "track", "opened", "after", "year", "." ], "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, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 2000.0, null ] ] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "names", "and", "seatings", ",", "ordered", "by", "seating", "for", "all", "tracks", "opened", "after", "2000", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "seating" ], [ "," ], [ "ordered" ], [ "by" ], [ "seating" ], [ "for" ], [ "all" ], [ "track" ], [ "opened" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "seating", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "seating", "VBG" ], [ "for", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "opened", "VBD" ], [ "after", "IN" ], [ "2000", "CD" ], [ ".", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(1) A(0) C(7) T(1) Filter(5) A(0) C(8) T(1) V(0) Order(1) A(0) C(7) T(1)" }, { "db_id": "race_track", "query": "SELECT name , seating FROM track WHERE year_opened > 2000 ORDER BY seating", "query_toks": [ "SELECT", "name", ",", "seating", "FROM", "track", "WHERE", "year_opened", ">", "2000", "ORDER", "BY", "seating" ], "query_toks_no_value": [ "select", "name", ",", "seating", "from", "track", "where", "year_opened", ">", "value", "order", "by", "seating" ], "question": "What are the names and seatings for all tracks opened after 2000, ordered by seating?", "question_toks": [ "what", "are", "name", "and", "seating", "for", "all", "track", "opened", "after", "year", ",", "ordered", "by", "seating", "?" ], "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, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 2000.0, null ] ] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "seatings", "for", "all", "tracks", "opened", "after", "2000", ",", "ordered", "by", "seating", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "seating" ], [ "for" ], [ "all" ], [ "track" ], [ "opened" ], [ "after" ], [ "year" ], [ "," ], [ "ordered" ], [ "by" ], [ "seating" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "seating", "VBG" ], [ "for", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "opened", "VBD" ], [ "after", "IN" ], [ "2000", "CD" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "seating", "VBG" ], [ "?", "." ] ], "values": [ "2000" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(1) A(0) C(7) T(1) Filter(5) A(0) C(8) T(1) V(0) Order(1) A(0) C(7) T(1)" }, { "db_id": "race_track", "query": "SELECT name , LOCATION , seating FROM track ORDER BY year_opened DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "LOCATION", ",", "seating", "FROM", "track", "ORDER", "BY", "year_opened", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "location", ",", "seating", "from", "track", "order", "by", "year_opened", "desc", "limit", "value" ], "question": "What is the name, location and seating for the most recently opened track?", "question_toks": [ "what", "is", "name", ",", "location", "and", "seating", "for", "most", "recently", "opened", "track", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", ",", "location", "and", "seating", "for", "the", "most", "recently", "opened", "track", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "," ], [ "location" ], [ "and" ], [ "seating" ], [ "for" ], [ "most" ], [ "recently" ], [ "opened" ], [ "track" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ ",", "," ], [ "location", "NN" ], [ "and", "CC" ], [ "seating", "NN" ], [ "for", "IN" ], [ "most", "JJS" ], [ "recently", "RB" ], [ "opened", "VBN" ], [ "track", "RP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(2) T(1) A(0) C(6) T(1) A(0) C(7) T(1) Sup(0) A(0) C(8) T(1)" }, { "db_id": "race_track", "query": "SELECT name , LOCATION , seating FROM track ORDER BY year_opened DESC LIMIT 1", "query_toks": [ "SELECT", "name", ",", "LOCATION", ",", "seating", "FROM", "track", "ORDER", "BY", "year_opened", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", ",", "location", ",", "seating", "from", "track", "order", "by", "year_opened", "desc", "limit", "value" ], "question": "Return the name, location, and seating of the track that was opened in the most recent year.", "question_toks": [ "return", "name", ",", "location", ",", "and", "seating", "of", "track", "that", "wa", "opened", "in", "most", "recent", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "name", ",", "location", ",", "and", "seating", "of", "the", "track", "that", "was", "opened", "in", "the", "most", "recent", "year", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "," ], [ "location" ], [ "," ], [ "and" ], [ "seating" ], [ "of" ], [ "track" ], [ "that" ], [ "wa" ], [ "opened" ], [ "in" ], [ "most" ], [ "recent" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "location", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "seating", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "that", "IN" ], [ "wa", "NN" ], [ "opened", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "recent", "JJ" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(2) T(1) A(0) C(6) T(1) A(0) C(7) T(1) Sup(0) A(0) C(8) T(1)" }, { "db_id": "race_track", "query": "SELECT min(seating) , max(seating) , avg(seating) FROM track", "query_toks": [ "SELECT", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "FROM", "track" ], "query_toks_no_value": [ "select", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "from", "track" ], "question": "What is the minimum, maximum, and average seating for all tracks.", "question_toks": [ "what", "is", "minimum", ",", "maximum", ",", "and", "average", "seating", "for", "all", "track", "." ], "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 ] ], [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "minimum", ",", "maximum", ",", "and", "average", "seating", "for", "all", "tracks", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "minimum" ], [ "," ], [ "maximum" ], [ "," ], [ "and" ], [ "average" ], [ "seating" ], [ "for" ], [ "all" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "minimum", "JJ" ], [ ",", "," ], [ "maximum", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "average", "JJ" ], [ "seating", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(2) C(7) T(1) A(1) C(7) T(1) A(5) C(7) T(1)" }, { "db_id": "race_track", "query": "SELECT min(seating) , max(seating) , avg(seating) FROM track", "query_toks": [ "SELECT", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "FROM", "track" ], "query_toks_no_value": [ "select", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "from", "track" ], "question": "Return the minimum, maximum, and average seating across all tracks.", "question_toks": [ "return", "minimum", ",", "maximum", ",", "and", "average", "seating", "across", "all", "track", "." ], "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 ] ], [ 5, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "minimum", ",", "maximum", ",", "and", "average", "seating", "across", "all", "tracks", "." ], "question_arg": [ [ "return" ], [ "minimum" ], [ "," ], [ "maximum" ], [ "," ], [ "and" ], [ "average" ], [ "seating" ], [ "across" ], [ "all" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "minimum", "NN" ], [ ",", "," ], [ "maximum", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "average", "JJ" ], [ "seating", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(2) C(7) T(1) A(1) C(7) T(1) A(5) C(7) T(1)" }, { "db_id": "race_track", "query": "SELECT name , LOCATION , year_opened FROM track WHERE seating > (SELECT avg(seating) FROM track)", "query_toks": [ "SELECT", "name", ",", "LOCATION", ",", "year_opened", "FROM", "track", "WHERE", "seating", ">", "(", "SELECT", "avg", "(", "seating", ")", "FROM", "track", ")" ], "query_toks_no_value": [ "select", "name", ",", "location", ",", "year_opened", "from", "track", "where", "seating", ">", "(", "select", "avg", "(", "seating", ")", "from", "track", ")" ], "question": "Show the name, location, open year for all tracks with a seating higher than the average.", "question_toks": [ "show", "name", ",", "location", ",", "open", "year", "for", "all", "track", "with", "a", "seating", "higher", "than", "average", "." ], "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 ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, 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": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", ",", "location", ",", "open", "year", "for", "all", "tracks", "with", "a", "seating", "higher", "than", "the", "average", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "location" ], [ "," ], [ "open" ], [ "year" ], [ "for" ], [ "all" ], [ "track" ], [ "with" ], [ "a" ], [ "seating" ], [ "higher" ], [ "than" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "location", "NN" ], [ ",", "," ], [ "open", "JJ" ], [ "year", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "seating", "VBG" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(2) T(1) A(0) C(6) T(1) A(0) C(8) T(1) Filter(13) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(5) C(7) T(1)" }, { "db_id": "race_track", "query": "SELECT name , LOCATION , year_opened FROM track WHERE seating > (SELECT avg(seating) FROM track)", "query_toks": [ "SELECT", "name", ",", "LOCATION", ",", "year_opened", "FROM", "track", "WHERE", "seating", ">", "(", "SELECT", "avg", "(", "seating", ")", "FROM", "track", ")" ], "query_toks_no_value": [ "select", "name", ",", "location", ",", "year_opened", "from", "track", "where", "seating", ">", "(", "select", "avg", "(", "seating", ")", "from", "track", ")" ], "question": "What are the names, locations, and years of opening for tracks with seating higher than average?", "question_toks": [ "what", "are", "name", ",", "location", ",", "and", "year", "of", "opening", "for", "track", "with", "seating", "higher", "than", "average", "?" ], "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 ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, 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": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "locations", ",", "and", "years", "of", "opening", "for", "tracks", "with", "seating", "higher", "than", "average", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "location" ], [ "," ], [ "and" ], [ "year" ], [ "of" ], [ "opening" ], [ "for" ], [ "track" ], [ "with" ], [ "seating" ], [ "higher" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "location", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "year", "NN" ], [ "of", "IN" ], [ "opening", "NN" ], [ "for", "IN" ], [ "track", "NN" ], [ "with", "IN" ], [ "seating", "VBG" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(2) T(1) A(0) C(6) T(1) A(0) C(8) T(1) Filter(13) A(0) C(7) T(1) Root(5) Sel(0) N(0) A(5) C(7) T(1)" }, { "db_id": "race_track", "query": "SELECT DISTINCT LOCATION FROM track", "query_toks": [ "SELECT", "DISTINCT", "LOCATION", "FROM", "track" ], "query_toks_no_value": [ "select", "distinct", "location", "from", "track" ], "question": "What are distinct locations where tracks are located?", "question_toks": [ "what", "are", "distinct", "location", "where", "track", "are", "located", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "distinct", "locations", "where", "tracks", "are", "located", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "location" ], [ "where" ], [ "track" ], [ "are" ], [ "located" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "location", "NN" ], [ "where", "WRB" ], [ "track", "NN" ], [ "are", "VBP" ], [ "located", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(6) T(1)" }, { "db_id": "race_track", "query": "SELECT DISTINCT LOCATION FROM track", "query_toks": [ "SELECT", "DISTINCT", "LOCATION", "FROM", "track" ], "query_toks_no_value": [ "select", "distinct", "location", "from", "track" ], "question": "Give the different locations of tracks.", "question_toks": [ "give", "different", "location", "of", "track", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Give", "the", "different", "locations", "of", "tracks", "." ], "question_arg": [ [ "give" ], [ "different" ], [ "location" ], [ "of" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "different", "JJ" ], [ "location", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(6) T(1)" }, { "db_id": "race_track", "query": "SELECT count(*) FROM race", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "race" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "race" ], "question": "How many races are there?", "question_toks": [ "how", "many", "race", "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": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "races", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "race" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "race", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "race_track", "query": "SELECT count(*) FROM race", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "race" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "race" ], "question": "Count the number of races.", "question_toks": [ "count", "number", "of", "race", "." ], "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": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "races", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "race" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "race_track", "query": "SELECT DISTINCT CLASS FROM race", "query_toks": [ "SELECT", "DISTINCT", "CLASS", "FROM", "race" ], "query_toks_no_value": [ "select", "distinct", "class", "from", "race" ], "question": "What are the distinct classes that races can have?", "question_toks": [ "what", "are", "distinct", "class", "that", "race", "can", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "distinct", "classes", "that", "races", "can", "have", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "class" ], [ "that" ], [ "race" ], [ "can" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "class", "NN" ], [ "that", "IN" ], [ "race", "NN" ], [ "can", "MD" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(0)" }, { "db_id": "race_track", "query": "SELECT DISTINCT CLASS FROM race", "query_toks": [ "SELECT", "DISTINCT", "CLASS", "FROM", "race" ], "query_toks_no_value": [ "select", "distinct", "class", "from", "race" ], "question": "Return the different classes of races.", "question_toks": [ "return", "different", "class", "of", "race", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "different", "classes", "of", "races", "." ], "question_arg": [ [ "return" ], [ "different" ], [ "class" ], [ "of" ], [ "race" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "different", "JJ" ], [ "class", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(0)" }, { "db_id": "race_track", "query": "SELECT name , CLASS , date FROM race", "query_toks": [ "SELECT", "name", ",", "CLASS", ",", "date", "FROM", "race" ], "query_toks_no_value": [ "select", "name", ",", "class", ",", "date", "from", "race" ], "question": "Show name, class, and date for all races.", "question_toks": [ "show", "name", ",", "class", ",", "and", "date", "for", "all", "race", "." ], "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 ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "name", ",", "class", ",", "and", "date", "for", "all", "races", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "class" ], [ "," ], [ "and" ], [ "date" ], [ "for" ], [ "all" ], [ "race" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "class", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "race", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(4) T(0)" }, { "db_id": "race_track", "query": "SELECT name , CLASS , date FROM race", "query_toks": [ "SELECT", "name", ",", "CLASS", ",", "date", "FROM", "race" ], "query_toks_no_value": [ "select", "name", ",", "class", ",", "date", "from", "race" ], "question": "What are the names, classes, and dates for all races?", "question_toks": [ "what", "are", "name", ",", "class", ",", "and", "date", "for", "all", "race", "?" ], "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 ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "classes", ",", "and", "dates", "for", "all", "races", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "class" ], [ "," ], [ "and" ], [ "date" ], [ "for" ], [ "all" ], [ "race" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "class", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "date", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "race", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(3) T(0) A(0) C(4) T(0)" }, { "db_id": "race_track", "query": "SELECT CLASS , count(*) FROM race GROUP BY CLASS", "query_toks": [ "SELECT", "CLASS", ",", "count", "(", "*", ")", "FROM", "race", "GROUP", "BY", "CLASS" ], "query_toks_no_value": [ "select", "class", ",", "count", "(", "*", ")", "from", "race", "group", "by", "class" ], "question": "Show the race class and number of races in each class.", "question_toks": [ "show", "race", "class", "and", "number", "of", "race", "in", "each", "class", "." ], "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": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "race", "class", "and", "number", "of", "races", "in", "each", "class", "." ], "question_arg": [ [ "show" ], [ "race" ], [ "class" ], [ "and" ], [ "number" ], [ "of" ], [ "race" ], [ "in" ], [ "each" ], [ "class" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "race", "NN" ], [ "class", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "class", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(0)" }, { "db_id": "race_track", "query": "SELECT CLASS , count(*) FROM race GROUP BY CLASS", "query_toks": [ "SELECT", "CLASS", ",", "count", "(", "*", ")", "FROM", "race", "GROUP", "BY", "CLASS" ], "query_toks_no_value": [ "select", "class", ",", "count", "(", "*", ")", "from", "race", "group", "by", "class" ], "question": "What are the different classes of races, and how many races correspond to each?", "question_toks": [ "what", "are", "different", "class", "of", "race", ",", "and", "how", "many", "race", "correspond", "to", "each", "?" ], "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": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "classes", "of", "races", ",", "and", "how", "many", "races", "correspond", "to", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "class" ], [ "of" ], [ "race" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "race" ], [ "correspond" ], [ "to" ], [ "each" ], [ "?" ] ], "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" ], [ "class", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "race", "NN" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(0)" }, { "db_id": "race_track", "query": "SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "CLASS", "FROM", "race", "GROUP", "BY", "CLASS", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "class", "from", "race", "group", "by", "class", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the race class with most number of races.", "question_toks": [ "what", "is", "race", "class", "with", "most", "number", "of", "race", "." ], "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": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "race", "class", "with", "most", "number", "of", "races", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "race" ], [ "class" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "race" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "race", "NN" ], [ "class", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ ".", "." ] ], "values": [], "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": "race_track", "query": "SELECT CLASS FROM race GROUP BY CLASS ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "CLASS", "FROM", "race", "GROUP", "BY", "CLASS", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "class", "from", "race", "group", "by", "class", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Give the class of races that is most common.", "question_toks": [ "give", "class", "of", "race", "that", "is", "most", "common", "." ], "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": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Give", "the", "class", "of", "races", "that", "is", "most", "common", "." ], "question_arg": [ [ "give" ], [ "class" ], [ "of" ], [ "race" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "class", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ ".", "." ] ], "values": [], "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": "race_track", "query": "SELECT CLASS FROM race GROUP BY CLASS HAVING count(*) >= 2", "query_toks": [ "SELECT", "CLASS", "FROM", "race", "GROUP", "BY", "CLASS", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "class", "from", "race", "group", "by", "class", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "List the race class with at least two races.", "question_toks": [ "list", "race", "class", "with", "at", "least", "two", "race", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "race", "class", "with", "at", "least", "two", "races", "." ], "question_arg": [ [ "list" ], [ "race" ], [ "class" ], [ "with" ], [ "at" ], [ "least" ], [ "two" ], [ "race" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "race", "NN" ], [ "class", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "race", "NN" ], [ ".", "." ] ], "values": [ "2" ], "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": "race_track", "query": "SELECT CLASS FROM race GROUP BY CLASS HAVING count(*) >= 2", "query_toks": [ "SELECT", "CLASS", "FROM", "race", "GROUP", "BY", "CLASS", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "class", "from", "race", "group", "by", "class", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the classes of races that have two or more corresponding races?", "question_toks": [ "what", "are", "class", "of", "race", "that", "have", "two", "or", "more", "corresponding", "race", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "classes", "of", "races", "that", "have", "two", "or", "more", "corresponding", "races", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "class" ], [ "of" ], [ "race" ], [ "that" ], [ "have" ], [ "two" ], [ "or" ], [ "more" ], [ "corresponding" ], [ "race" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "class", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "corresponding", "JJ" ], [ "race", "NN" ], [ "?", "." ] ], "values": [ "2" ], "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": "race_track", "query": "SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class = 'GT'", "query_toks": [ "SELECT", "name", "FROM", "track", "EXCEPT", "SELECT", "T2.name", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id", "WHERE", "T1.class", "=", "'GT", "'" ], "query_toks_no_value": [ "select", "name", "from", "track", "except", "select", "t2", ".", "name", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id", "where", "t1", ".", "class", "=", "value" ], "question": "What are the names for tracks without a race in class 'GT'.", "question_toks": [ "what", "are", "name", "for", "track", "without", "a", "race", "in", "class", "'", "gt", "'", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"GT\"", 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": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "for", "tracks", "without", "a", "race", "in", "class", "'GT", "'", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "for" ], [ "track" ], [ "without" ], [ "a" ], [ "race" ], [ "in" ], [ "class" ], [ "'" ], [ "gt" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "for", "IN" ], [ "track", "NN" ], [ "without", "IN" ], [ "a", "DT" ], [ "race", "NN" ], [ "in", "IN" ], [ "class", "NN" ], [ "'", "''" ], [ "gt", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "GT" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(2) T(1) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "race_track", "query": "SELECT name FROM track EXCEPT SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id WHERE T1.class = 'GT'", "query_toks": [ "SELECT", "name", "FROM", "track", "EXCEPT", "SELECT", "T2.name", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id", "WHERE", "T1.class", "=", "'GT", "'" ], "query_toks_no_value": [ "select", "name", "from", "track", "except", "select", "t2", ".", "name", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id", "where", "t1", ".", "class", "=", "value" ], "question": "Give the names of tracks that do not have a race in the class 'GT'.", "question_toks": [ "give", "name", "of", "track", "that", "do", "not", "have", "a", "race", "in", "class", "'", "gt", "'", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"GT\"", 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": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Give", "the", "names", "of", "tracks", "that", "do", "not", "have", "a", "race", "in", "the", "class", "'GT", "'", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "track" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "race" ], [ "in" ], [ "class" ], [ "'" ], [ "gt" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "race", "NN" ], [ "in", "IN" ], [ "class", "NN" ], [ "'", "''" ], [ "gt", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "GT" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(2) T(1) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "race_track", "query": "SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)", "query_toks": [ "SELECT", "name", "FROM", "track", "WHERE", "track_id", "NOT", "IN", "(", "SELECT", "track_id", "FROM", "race", ")" ], "query_toks_no_value": [ "select", "name", "from", "track", "where", "track_id", "not", "in", "(", "select", "track_id", "from", "race", ")" ], "question": "Show all track names that have had no races.", "question_toks": [ "show", "all", "track", "name", "that", "have", "had", "no", "race", "." ], "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", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "all", "track", "names", "that", "have", "had", "no", "races", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "track" ], [ "name" ], [ "that" ], [ "have" ], [ "had" ], [ "no" ], [ "race" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "track", "NN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "had", "VBN" ], [ "no", "DT" ], [ "race", "NN" ], [ ".", "." ] ], "values": [], "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(0)" }, { "db_id": "race_track", "query": "SELECT name FROM track WHERE track_id NOT IN (SELECT track_id FROM race)", "query_toks": [ "SELECT", "name", "FROM", "track", "WHERE", "track_id", "NOT", "IN", "(", "SELECT", "track_id", "FROM", "race", ")" ], "query_toks_no_value": [ "select", "name", "from", "track", "where", "track_id", "not", "in", "(", "select", "track_id", "from", "race", ")" ], "question": "Return the names of tracks that have no had any races.", "question_toks": [ "return", "name", "of", "track", "that", "have", "no", "had", "any", "race", "." ], "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", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Return", "the", "names", "of", "tracks", "that", "have", "no", "had", "any", "races", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "track" ], [ "that" ], [ "have" ], [ "no" ], [ "had" ], [ "any" ], [ "race" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "no", "DT" ], [ "had", "VBD" ], [ "any", "DT" ], [ "race", "NN" ], [ ".", "." ] ], "values": [], "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(0)" }, { "db_id": "race_track", "query": "SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000", "query_toks": [ "SELECT", "year_opened", "FROM", "track", "WHERE", "seating", "BETWEEN", "4000", "AND", "5000" ], "query_toks_no_value": [ "select", "year_opened", "from", "track", "where", "seating", "between", "value", "and", "value" ], "question": "Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened.", "question_toks": [ "show", "year", "where", "a", "track", "with", "a", "seating", "at", "least", "5000", "opened", "and", "a", "track", "with", "seating", "no", "more", "than", "4000", "opened", "." ], "sql": { "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, 1, [ 0, [ 0, 9, false ], null ], 4000.0, 5000.0 ] ] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "year", "where", "a", "track", "with", "a", "seating", "at", "least", "5000", "opened", "and", "a", "track", "with", "seating", "no", "more", "than", "4000", "opened", "." ], "question_arg": [ [ "show" ], [ "year" ], [ "where" ], [ "a" ], [ "track" ], [ "with" ], [ "a" ], [ "seating" ], [ "at" ], [ "least" ], [ "5000" ], [ "opened" ], [ "and" ], [ "a" ], [ "track" ], [ "with" ], [ "seating" ], [ "no" ], [ "more" ], [ "than" ], [ "4000" ], [ "opened" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "year", "NN" ], [ "where", "WRB" ], [ "a", "DT" ], [ "track", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "seating", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "5000", "CD" ], [ "opened", "VBD" ], [ "and", "CC" ], [ "a", "DT" ], [ "track", "NN" ], [ "with", "IN" ], [ "seating", "VBG" ], [ "no", "DT" ], [ "more", "JJR" ], [ "than", "IN" ], [ "4000", "CD" ], [ "opened", "VBD" ], [ ".", "." ] ], "values": [ "4000", "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(8) A(0) C(7) T(1) V(0) V(1)" }, { "db_id": "race_track", "query": "SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000", "query_toks": [ "SELECT", "year_opened", "FROM", "track", "WHERE", "seating", "BETWEEN", "4000", "AND", "5000" ], "query_toks_no_value": [ "select", "year_opened", "from", "track", "where", "seating", "between", "value", "and", "value" ], "question": "What are the years of opening for tracks with seating between 4000 and 5000?", "question_toks": [ "what", "are", "year", "of", "opening", "for", "track", "with", "seating", "between", "4000", "and", "5000", "?" ], "sql": { "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, 1, [ 0, [ 0, 9, false ], null ], 4000.0, 5000.0 ] ] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "years", "of", "opening", "for", "tracks", "with", "seating", "between", "4000", "and", "5000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "year" ], [ "of" ], [ "opening" ], [ "for" ], [ "track" ], [ "with" ], [ "seating" ], [ "between" ], [ "4000" ], [ "and" ], [ "5000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "year", "NN" ], [ "of", "IN" ], [ "opening", "NN" ], [ "for", "IN" ], [ "track", "NN" ], [ "with", "IN" ], [ "seating", "VBG" ], [ "between", "IN" ], [ "4000", "CD" ], [ "and", "CC" ], [ "5000", "CD" ], [ "?", "." ] ], "values": [ "4000", "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(8) A(0) C(7) T(1) V(0) V(1)" }, { "db_id": "race_track", "query": "SELECT T2.name , count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id", "GROUP", "BY", "T1.track_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id", "group", "by", "t1", ".", "track_id" ], "question": "Show the name of track and the number of races in each track.", "question_toks": [ "show", "name", "of", "track", "and", "number", "of", "race", "in", "each", "track", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, 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": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "of", "track", "and", "the", "number", "of", "races", "in", "each", "track", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "track" ], [ "and" ], [ "number" ], [ "of" ], [ "race" ], [ "in" ], [ "each" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "track", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(3) C(0) T(0)" }, { "db_id": "race_track", "query": "SELECT T2.name , count(*) FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id", "GROUP", "BY", "T1.track_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id", "group", "by", "t1", ".", "track_id" ], "question": "What are the names of different tracks, and how many races has each had?", "question_toks": [ "what", "are", "name", "of", "different", "track", ",", "and", "how", "many", "race", "ha", "each", "had", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, 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": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "different", "tracks", ",", "and", "how", "many", "races", "has", "each", "had", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "different" ], [ "track" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "race" ], [ "ha" ], [ "each" ], [ "had" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "track", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "race", "NN" ], [ "ha", "NN" ], [ "each", "DT" ], [ "had", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(3) C(0) T(0)" }, { "db_id": "race_track", "query": "SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id", "GROUP", "BY", "T1.track_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id", "group", "by", "t1", ".", "track_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the name of track with most number of races.", "question_toks": [ "show", "name", "of", "track", "with", "most", "number", "of", "race", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "of", "track", "with", "most", "number", "of", "races", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "track" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "race" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(1) Sup(0) A(3) C(0) T(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(0)" }, { "db_id": "race_track", "query": "SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id", "GROUP", "BY", "T1.track_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id", "group", "by", "t1", ".", "track_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the track that has had the greatest number of races?", "question_toks": [ "what", "is", "name", "of", "track", "that", "ha", "had", "greatest", "number", "of", "race", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "track", "that", "has", "had", "the", "greatest", "number", "of", "races", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "track" ], [ "that" ], [ "ha" ], [ "had" ], [ "greatest" ], [ "number" ], [ "of" ], [ "race" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "had", "VBD" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(2) T(1) Sup(0) A(3) C(0) T(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(0)" }, { "db_id": "race_track", "query": "SELECT T1.name , T1.date , T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id", "query_toks": [ "SELECT", "T1.name", ",", "T1.date", ",", "T2.name", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "date", ",", "t2", ".", "name", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id" ], "question": "Show the name and date for each race and its track name.", "question_toks": [ "show", "name", "and", "date", "for", "each", "race", "and", "it", "track", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "and", "date", "for", "each", "race", "and", "its", "track", "name", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "date" ], [ "for" ], [ "each" ], [ "race" ], [ "and" ], [ "it" ], [ "track" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "race", "NN" ], [ "and", "CC" ], [ "it", "PRP" ], [ "track", "RP" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(4) T(0) A(0) C(2) T(1)" }, { "db_id": "race_track", "query": "SELECT T1.name , T1.date , T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id", "query_toks": [ "SELECT", "T1.name", ",", "T1.date", ",", "T2.name", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "date", ",", "t2", ".", "name", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id" ], "question": "What are the names and dates of races, and the names of the tracks where they are held?", "question_toks": [ "what", "are", "name", "and", "date", "of", "race", ",", "and", "name", "of", "track", "where", "they", "are", "held", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "dates", "of", "races", ",", "and", "the", "names", "of", "the", "tracks", "where", "they", "are", "held", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "date" ], [ "of" ], [ "race" ], [ "," ], [ "and" ], [ "name" ], [ "of" ], [ "track" ], [ "where" ], [ "they" ], [ "are" ], [ "held" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "race", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "where", "WRB" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "held", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(4) T(0) A(0) C(2) T(1)" }, { "db_id": "race_track", "query": "SELECT T2.name , T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING count(*) = 1", "query_toks": [ "SELECT", "T2.name", ",", "T2.location", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id", "GROUP", "BY", "T1.track_id", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "location", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id", "group", "by", "t1", ".", "track_id", "having", "count", "(", "*", ")", "=", "value" ], "question": "Show the name and location of track with 1 race.", "question_toks": [ "show", "name", "and", "location", "of", "track", "with", "1", "race", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "the", "name", "and", "location", "of", "track", "with", "1", "race", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "track" ], [ "with" ], [ "1" ], [ "race" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "with", "IN" ], [ "1", "CD" ], [ "race", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(6) T(1) Filter(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(3) C(0) T(0) V(0)" }, { "db_id": "race_track", "query": "SELECT T2.name , T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING count(*) = 1", "query_toks": [ "SELECT", "T2.name", ",", "T2.location", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id", "GROUP", "BY", "T1.track_id", "HAVING", "count", "(", "*", ")", "=", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "location", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id", "group", "by", "t1", ".", "track_id", "having", "count", "(", "*", ")", "=", "value" ], "question": "What are the names and locations of tracks that have had exactly 1 race?", "question_toks": [ "what", "are", "name", "and", "location", "of", "track", "that", "have", "had", "exactly", "1", "race", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 5, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "locations", "of", "tracks", "that", "have", "had", "exactly", "1", "race", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "track" ], [ "that" ], [ "have" ], [ "had" ], [ "exactly" ], [ "1" ], [ "race" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "had", "VBN" ], [ "exactly", "RB" ], [ "1", "CD" ], [ "race", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(1) A(0) C(6) T(1) Filter(0) Filter(18) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(3) C(0) T(0) V(0)" }, { "db_id": "race_track", "query": "SELECT LOCATION FROM track WHERE seating > 90000 INTERSECT SELECT LOCATION FROM track WHERE seating < 70000", "query_toks": [ "SELECT", "LOCATION", "FROM", "track", "WHERE", "seating", ">", "90000", "INTERSECT", "SELECT", "LOCATION", "FROM", "track", "WHERE", "seating", "<", "70000" ], "query_toks_no_value": [ "select", "location", "from", "track", "where", "seating", ">", "value", "intersect", "select", "location", "from", "track", "where", "seating", "<", "value" ], "question": "Find the locations where have both tracks with more than 90000 seats and tracks with less than 70000 seats.", "question_toks": [ "find", "location", "where", "have", "both", "track", "with", "more", "than", "90000", "seat", "and", "track", "with", "le", "than", "70000", "seat", "." ], "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, 4, [ 0, [ 0, 9, false ], null ], 70000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 90000.0, null ] ] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Find", "the", "locations", "where", "have", "both", "tracks", "with", "more", "than", "90000", "seats", "and", "tracks", "with", "less", "than", "70000", "seats", "." ], "question_arg": [ [ "find" ], [ "location" ], [ "where" ], [ "have" ], [ "both" ], [ "track" ], [ "with" ], [ "more" ], [ "than" ], [ "90000" ], [ "seat" ], [ "and" ], [ "track" ], [ "with" ], [ "le" ], [ "than" ], [ "70000" ], [ "seat" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "location", "NN" ], [ "where", "WRB" ], [ "have", "VBP" ], [ "both", "DT" ], [ "track", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "90000", "CD" ], [ "seat", "NN" ], [ "and", "CC" ], [ "track", "NN" ], [ "with", "IN" ], [ "le", "JJR" ], [ "than", "IN" ], [ "70000", "CD" ], [ "seat", "NN" ], [ ".", "." ] ], "values": [ "90000", "70000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(5) A(0) C(7) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(4) A(0) C(7) T(1) V(1)" }, { "db_id": "race_track", "query": "SELECT LOCATION FROM track WHERE seating > 90000 INTERSECT SELECT LOCATION FROM track WHERE seating < 70000", "query_toks": [ "SELECT", "LOCATION", "FROM", "track", "WHERE", "seating", ">", "90000", "INTERSECT", "SELECT", "LOCATION", "FROM", "track", "WHERE", "seating", "<", "70000" ], "query_toks_no_value": [ "select", "location", "from", "track", "where", "seating", ">", "value", "intersect", "select", "location", "from", "track", "where", "seating", "<", "value" ], "question": "What are the locations that have both tracks with more than 90000 seats, and tracks with fewer than 70000 seats?", "question_toks": [ "what", "are", "location", "that", "have", "both", "track", "with", "more", "than", "90000", "seat", ",", "and", "track", "with", "fewer", "than", "70000", "seat", "?" ], "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, 4, [ 0, [ 0, 9, false ], null ], 70000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 90000.0, null ] ] }, "names": [ "*", "race id", "name", "class", "date", "track id", "track id", "name", "location", "seating", "year opened" ], "table_names": [ "race", "track" ], "col_set": [ "*", "race id", "name", "class", "date", "track id", "location", "seating", "year opened" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "5": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "locations", "that", "have", "both", "tracks", "with", "more", "than", "90000", "seats", ",", "and", "tracks", "with", "fewer", "than", "70000", "seats", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "location" ], [ "that" ], [ "have" ], [ "both" ], [ "track" ], [ "with" ], [ "more" ], [ "than" ], [ "90000" ], [ "seat" ], [ "," ], [ "and" ], [ "track" ], [ "with" ], [ "fewer" ], [ "than" ], [ "70000" ], [ "seat" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "location", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "track", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "90000", "CD" ], [ "seat", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "track", "NN" ], [ "with", "IN" ], [ "fewer", "JJR" ], [ "than", "IN" ], [ "70000", "CD" ], [ "seat", "NN" ], [ "?", "." ] ], "values": [ "70000", "90000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(5) A(0) C(7) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(4) A(0) C(7) T(1) V(0)" }, { "db_id": "coffee_shop", "query": "SELECT count(*) FROM member WHERE Membership_card = 'Black'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "member", "WHERE", "Membership_card", "=", "'Black", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "member", "where", "membership_card", "=", "value" ], "question": "How many members have the black membership card?", "question_toks": [ "how", "many", "member", "have", "black", "membership", "card", "?" ], "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, 8, false ], null ], "\"Black\"", null ] ] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "How", "many", "members", "have", "the", "black", "membership", "card", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "member" ], [ "have" ], [ "black" ], [ "membership", "card" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "member", "NN" ], [ "have", "VBP" ], [ "black", "JJ" ], [ "membership", "NN" ], [ "card", "NN" ], [ "?", "." ] ], "values": [ "Black" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "coffee_shop", "query": "SELECT count(*) , address FROM member GROUP BY address", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "address", "FROM", "member", "GROUP", "BY", "address" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "address", "from", "member", "group", "by", "address" ], "question": "Find the number of members living in each address.", "question_toks": [ "find", "number", "of", "member", "living", "in", "each", "address", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 12, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "Find", "the", "number", "of", "members", "living", "in", "each", "address", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "member" ], [ "living" ], [ "in" ], [ "each" ], [ "address" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "address", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(1) A(0) C(2) T(1)" }, { "db_id": "coffee_shop", "query": "SELECT name FROM member WHERE address = 'Harford' OR address = 'Waterbury'", "query_toks": [ "SELECT", "name", "FROM", "member", "WHERE", "address", "=", "'Harford", "'", "OR", "address", "=", "'Waterbury", "'" ], "query_toks_no_value": [ "select", "name", "from", "member", "where", "address", "=", "value", "or", "address", "=", "value" ], "question": "Give me the names of members whose address is in Harford or Waterbury.", "question_toks": [ "give", "me", "name", "of", "member", "whose", "address", "is", "in", "harford", "or", "waterbury", "." ], "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, 12, false ], null ], "\"Harford\"", null ], "or", [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Waterbury\"", null ] ] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "Give", "me", "the", "names", "of", "members", "whose", "address", "is", "in", "Harford", "or", "Waterbury", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "name" ], [ "of" ], [ "member" ], [ "whose" ], [ "address" ], [ "is" ], [ "in" ], [ "harford" ], [ "or" ], [ "waterbury" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "whose", "WP$" ], [ "address", "NN" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "harford", "NN" ], [ "or", "CC" ], [ "waterbury", "NN" ], [ ".", "." ] ], "values": [ "Waterbury", "Hartford", "Harford" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(1) Filter(2) A(0) C(2) T(1) V(2) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "coffee_shop", "query": "SELECT name , member_id FROM member WHERE Membership_card = 'Black' OR age < 30", "query_toks": [ "SELECT", "name", ",", "member_id", "FROM", "member", "WHERE", "Membership_card", "=", "'Black", "'", "OR", "age", "<", "30" ], "query_toks_no_value": [ "select", "name", ",", "member_id", "from", "member", "where", "membership_card", "=", "value", "or", "age", "<", "value" ], "question": "Find the ids and names of members who are under age 30 or with black membership card.", "question_toks": [ "find", "id", "and", "name", "of", "member", "who", "are", "under", "age", "30", "or", "with", "black", "membership", "card", "." ], "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 ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Black\"", null ], "or", [ false, 4, [ 0, [ 0, 9, false ], null ], 30.0, null ] ] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "Find", "the", "ids", "and", "names", "of", "members", "who", "are", "under", "age", "30", "or", "with", "black", "membership", "card", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "member" ], [ "who" ], [ "are" ], [ "under" ], [ "age" ], [ "30" ], [ "or" ], [ "with" ], [ "black" ], [ "membership", "card" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "under", "IN" ], [ "age", "NN" ], [ "30", "CD" ], [ "or", "CC" ], [ "with", "IN" ], [ "black", "JJ" ], [ "membership", "NN" ], [ "card", "NN" ], [ ".", "." ] ], "values": [ "30", "Black" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(1) A(0) C(6) T(1) Filter(1) Filter(2) A(0) C(8) T(1) V(1) Filter(4) A(0) C(9) T(1) V(0)" }, { "db_id": "coffee_shop", "query": "SELECT Time_of_purchase , age , address FROM member ORDER BY Time_of_purchase", "query_toks": [ "SELECT", "Time_of_purchase", ",", "age", ",", "address", "FROM", "member", "ORDER", "BY", "Time_of_purchase" ], "query_toks_no_value": [ "select", "time_of_purchase", ",", "age", ",", "address", "from", "member", "order", "by", "time_of_purchase" ], "question": "Find the purchase time, age and address of each member, and show the results in the order of purchase time.", "question_toks": [ "find", "purchase", "time", ",", "age", "and", "address", "of", "each", "member", ",", "and", "show", "result", "in", "order", "of", "purchase", "time", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "Find", "the", "purchase", "time", ",", "age", "and", "address", "of", "each", "member", ",", "and", "show", "the", "results", "in", "the", "order", "of", "purchase", "time", "." ], "question_arg": [ [ "find" ], [ "time", "of", "purchase" ], [ "," ], [ "age" ], [ "and" ], [ "address" ], [ "of" ], [ "each" ], [ "member" ], [ "," ], [ "and" ], [ "show" ], [ "result" ], [ "in" ], [ "order" ], [ "time", "of", "purchase" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "purchase", "NN" ], [ "time", "NN" ], [ ",", "," ], [ "age", "NN" ], [ "and", "CC" ], [ "address", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "member", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "show", "VBP" ], [ "result", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "purchase", "NN" ], [ "time", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(10) T(1) A(0) C(9) T(1) A(0) C(2) T(1) Order(1) A(0) C(10) T(1)" }, { "db_id": "coffee_shop", "query": "SELECT Membership_card FROM member GROUP BY Membership_card HAVING count(*) > 5", "query_toks": [ "SELECT", "Membership_card", "FROM", "member", "GROUP", "BY", "Membership_card", "HAVING", "count", "(", "*", ")", ">", "5" ], "query_toks_no_value": [ "select", "membership_card", "from", "member", "group", "by", "membership_card", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which membership card has more than 5 members?", "question_toks": [ "which", "membership", "card", "ha", "more", "than", "5", "member", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 5.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "Which", "membership", "card", "has", "more", "than", "5", "members", "?" ], "question_arg": [ [ "which" ], [ "membership", "card" ], [ "ha" ], [ "more" ], [ "than" ], [ "5" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "membership", "NN" ], [ "card", "NN" ], [ "ha", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5", "CD" ], [ "member", "NN" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(3) C(0) T(1) V(0)" }, { "db_id": "coffee_shop", "query": "SELECT address FROM member WHERE age < 30 INTERSECT SELECT address FROM member WHERE age > 40", "query_toks": [ "SELECT", "address", "FROM", "member", "WHERE", "age", "<", "30", "INTERSECT", "SELECT", "address", "FROM", "member", "WHERE", "age", ">", "40" ], "query_toks_no_value": [ "select", "address", "from", "member", "where", "age", "<", "value", "intersect", "select", "address", "from", "member", "where", "age", ">", "value" ], "question": "Which address has both members younger than 30 and members older than 40?", "question_toks": [ "which", "address", "ha", "both", "member", "younger", "than", "30", "and", "member", "older", "than", "40", "?" ], "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, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 40.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 9, false ], null ], 30.0, null ] ] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "Which", "address", "has", "both", "members", "younger", "than", "30", "and", "members", "older", "than", "40", "?" ], "question_arg": [ [ "which" ], [ "address" ], [ "ha" ], [ "both" ], [ "member" ], [ "younger" ], [ "than" ], [ "30" ], [ "and" ], [ "member" ], [ "older" ], [ "than" ], [ "40" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "address", "NN" ], [ "ha", "VBD" ], [ "both", "DT" ], [ "member", "NN" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "30", "CD" ], [ "and", "CC" ], [ "member", "NN" ], [ "older", "JJR" ], [ "than", "IN" ], [ "40", "CD" ], [ "?", "." ] ], "values": [ "40", "30" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(4) A(0) C(9) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "coffee_shop", "query": "SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury'", "query_toks": [ "SELECT", "membership_card", "FROM", "member", "WHERE", "address", "=", "'Hartford", "'", "INTERSECT", "SELECT", "membership_card", "FROM", "member", "WHERE", "address", "=", "'Waterbury", "'" ], "query_toks_no_value": [ "select", "membership_card", "from", "member", "where", "address", "=", "value", "intersect", "select", "membership_card", "from", "member", "where", "address", "=", "value" ], "question": "What is the membership card held by both members living in Hartford and ones living in Waterbury address?", "question_toks": [ "what", "is", "membership", "card", "held", "by", "both", "member", "living", "in", "hartford", "and", "one", "living", "in", "waterbury", "address", "?" ], "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, 2, [ 0, [ 0, 12, false ], null ], "\"Waterbury\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"Hartford\"", null ] ] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "What", "is", "the", "membership", "card", "held", "by", "both", "members", "living", "in", "Hartford", "and", "ones", "living", "in", "Waterbury", "address", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "membership", "card" ], [ "held" ], [ "by" ], [ "both" ], [ "member" ], [ "living" ], [ "in" ], [ "hartford" ], [ "and" ], [ "one" ], [ "living" ], [ "in" ], [ "waterbury" ], [ "address" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "membership", "NN" ], [ "card", "NN" ], [ "held", "VBN" ], [ "by", "IN" ], [ "both", "DT" ], [ "member", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "hartford", "NN" ], [ "and", "CC" ], [ "one", "CD" ], [ "living", "NN" ], [ "in", "IN" ], [ "waterbury", "NN" ], [ "address", "NN" ], [ "?", "." ] ], "values": [ "Waterbury", "Hartford" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(2) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "coffee_shop", "query": "SELECT count(*) FROM member WHERE address != 'Hartford'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "member", "WHERE", "address", "!", "=", "'Hartford", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "member", "where", "address", "!", "=", "value" ], "question": "How many members are not living in Hartford?", "question_toks": [ "how", "many", "member", "are", "not", "living", "in", "hartford", "?" ], "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, 7, [ 0, [ 0, 12, false ], null ], "\"Hartford\"", null ] ] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "How", "many", "members", "are", "not", "living", "in", "Hartford", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "member" ], [ "are" ], [ "not" ], [ "living" ], [ "in" ], [ "hartford" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "member", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "living", "VBG" ], [ "in", "IN" ], [ "hartford", "NN" ], [ "?", "." ] ], "values": [ "Hartford" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(3) A(0) C(2) T(1) V(0)" }, { "db_id": "coffee_shop", "query": "SELECT address FROM member EXCEPT SELECT address FROM member WHERE Membership_card = 'Black'", "query_toks": [ "SELECT", "address", "FROM", "member", "EXCEPT", "SELECT", "address", "FROM", "member", "WHERE", "Membership_card", "=", "'Black", "'" ], "query_toks_no_value": [ "select", "address", "from", "member", "except", "select", "address", "from", "member", "where", "membership_card", "=", "value" ], "question": "Which address do not have any member with the black membership card?", "question_toks": [ "which", "address", "do", "not", "have", "any", "member", "with", "black", "membership", "card", "?" ], "sql": { "except": { "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, 8, false ], null ], "\"Black\"", 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": [] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "Which", "address", "do", "not", "have", "any", "member", "with", "the", "black", "membership", "card", "?" ], "question_arg": [ [ "which" ], [ "address" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "member" ], [ "with" ], [ "black" ], [ "membership", "card" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "address", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "member", "NN" ], [ "with", "IN" ], [ "black", "JJ" ], [ "membership", "NN" ], [ "card", "NN" ], [ "?", "." ] ], "values": [ "Black" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(2) T(1) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "coffee_shop", "query": "SELECT address FROM shop ORDER BY open_year", "query_toks": [ "SELECT", "address", "FROM", "shop", "ORDER", "BY", "open_year" ], "query_toks_no_value": [ "select", "address", "from", "shop", "order", "by", "open_year" ], "question": "Show the shop addresses ordered by their opening year.", "question_toks": [ "show", "shop", "address", "ordered", "by", "their", "opening", "year", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "Show", "the", "shop", "addresses", "ordered", "by", "their", "opening", "year", "." ], "question_arg": [ [ "show" ], [ "shop" ], [ "address" ], [ "ordered" ], [ "by" ], [ "their" ], [ "opening" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "shop", "NN" ], [ "address", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "opening", "JJ" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(5) T(0)" }, { "db_id": "coffee_shop", "query": "SELECT avg(num_of_staff) , avg(score) FROM shop", "query_toks": [ "SELECT", "avg", "(", "num_of_staff", ")", ",", "avg", "(", "score", ")", "FROM", "shop" ], "query_toks_no_value": [ "select", "avg", "(", "num_of_staff", ")", ",", "avg", "(", "score", ")", "from", "shop" ], "question": "What are the average score and average staff number of all shops?", "question_toks": [ "what", "are", "average", "score", "and", "average", "staff", "number", "of", "all", "shop", "?" ], "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 ] ], [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "average", "score", "and", "average", "staff", "number", "of", "all", "shops", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "score" ], [ "and" ], [ "average" ], [ "staff" ], [ "number" ], [ "of" ], [ "all" ], [ "shop" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "score", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "staff", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "shop", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(3) T(0) A(5) C(4) T(0)" }, { "db_id": "coffee_shop", "query": "SELECT shop_id , address FROM shop WHERE score < (SELECT avg(score) FROM shop)", "query_toks": [ "SELECT", "shop_id", ",", "address", "FROM", "shop", "WHERE", "score", "<", "(", "SELECT", "avg", "(", "score", ")", "FROM", "shop", ")" ], "query_toks_no_value": [ "select", "shop_id", ",", "address", "from", "shop", "where", "score", "<", "(", "select", "avg", "(", "score", ")", "from", "shop", ")" ], "question": "Find the id and address of the shops whose score is below the average score.", "question_toks": [ "find", "id", "and", "address", "of", "shop", "whose", "score", "is", "below", "average", "score", "." ], "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": [ [ false, 4, [ 0, [ 0, 4, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "Find", "the", "id", "and", "address", "of", "the", "shops", "whose", "score", "is", "below", "the", "average", "score", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "address" ], [ "of" ], [ "shop" ], [ "whose" ], [ "score" ], [ "is" ], [ "below" ], [ "average" ], [ "score" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "JJ" ], [ "and", "CC" ], [ "address", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "whose", "WP$" ], [ "score", "NN" ], [ "is", "VBZ" ], [ "below", "JJ" ], [ "average", "JJ" ], [ "score", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(12) A(0) C(4) T(0) Root(5) Sel(0) N(0) A(5) C(4) T(0)" }, { "db_id": "coffee_shop", "query": "SELECT address , num_of_staff FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM happy_hour)", "query_toks": [ "SELECT", "address", ",", "num_of_staff", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "happy_hour", ")" ], "query_toks_no_value": [ "select", "address", ",", "num_of_staff", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "happy_hour", ")" ], "question": "Find the address and staff number of the shops that do not have any happy hour.", "question_toks": [ "find", "address", "and", "staff", "number", "of", "shop", "that", "do", "not", "have", "any", "happy", "hour", "." ], "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": [ [ 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, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "Find", "the", "address", "and", "staff", "number", "of", "the", "shops", "that", "do", "not", "have", "any", "happy", "hour", "." ], "question_arg": [ [ "find" ], [ "address" ], [ "and" ], [ "staff" ], [ "number" ], [ "of" ], [ "shop" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "happy", "hour" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "address", "NN" ], [ "and", "CC" ], [ "staff", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "happy", "JJ" ], [ "hour", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(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": "coffee_shop", "query": "SELECT t1.address , t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id = t2.shop_id WHERE MONTH = 'May'", "query_toks": [ "SELECT", "t1.address", ",", "t1.shop_id", "FROM", "shop", "AS", "t1", "JOIN", "happy_hour", "AS", "t2", "ON", "t1.shop_id", "=", "t2.shop_id", "WHERE", "MONTH", "=", "'May", "'" ], "query_toks_no_value": [ "select", "t1", ".", "address", ",", "t1", ".", "shop_id", "from", "shop", "as", "t1", "join", "happy_hour", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "where", "month", "=", "value" ], "question": "What are the id and address of the shops which have a happy hour in May?", "question_toks": [ "what", "are", "id", "and", "address", "of", "shop", "which", "have", "a", "happy", "hour", "in", "may", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 14, 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, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"May\"", null ] ] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "What", "are", "the", "id", "and", "address", "of", "the", "shops", "which", "have", "a", "happy", "hour", "in", "May", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "address" ], [ "of" ], [ "shop" ], [ "which" ], [ "have" ], [ "a" ], [ "happy", "hour" ], [ "in" ], [ "may" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "month" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "address", "NN" ], [ "of", "IN" ], [ "shop", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "happy", "JJ" ], [ "hour", "NN" ], [ "in", "IN" ], [ "may", "MD" ], [ "?", "." ] ], "values": [ "May", "5/" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Filter(2) A(0) C(13) T(2) V(0)" }, { "db_id": "coffee_shop", "query": "SELECT shop_id , count(*) FROM happy_hour GROUP BY shop_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "shop_id", ",", "count", "(", "*", ")", "FROM", "happy_hour", "GROUP", "BY", "shop_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "shop_id", ",", "count", "(", "*", ")", "from", "happy_hour", "group", "by", "shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "which shop has happy hour most frequently? List its id and number of happy hours.", "question_toks": [ "which", "shop", "ha", "happy", "hour", "most", "frequently", "?", "list", "it", "id", "and", "number", "of", "happy", "hour", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "which", "shop", "has", "happy", "hour", "most", "frequently", "?", "List", "its", "id", "and", "number", "of", "happy", "hours", "." ], "question_arg": [ [ "which" ], [ "shop" ], [ "ha" ], [ "happy", "hour" ], [ "most" ], [ "frequently" ], [ "?" ], [ "list" ], [ "it" ], [ "id" ], [ "and" ], [ "number" ], [ "of" ], [ "happy", "hour" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "shop", "NN" ], [ "ha", "NN" ], [ "happy", "JJ" ], [ "hour", "NN" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ "?", "." ], [ "list", "NN" ], [ "it", "PRP" ], [ "id", "VBZ" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "happy", "JJ" ], [ "hour", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(2) A(3) C(0) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "coffee_shop", "query": "SELECT MONTH FROM happy_hour GROUP BY MONTH ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "MONTH", "FROM", "happy_hour", "GROUP", "BY", "MONTH", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "month", "from", "happy_hour", "group", "by", "month", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which month has the most happy hours?", "question_toks": [ "which", "month", "ha", "most", "happy", "hour", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "Which", "month", "has", "the", "most", "happy", "hours", "?" ], "question_arg": [ [ "which" ], [ "month" ], [ "ha" ], [ "most" ], [ "happy", "hour" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "month", "NN" ], [ "ha", "VBD" ], [ "most", "JJS" ], [ "happy", "JJ" ], [ "hour", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(13) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "coffee_shop", "query": "SELECT MONTH FROM happy_hour GROUP BY MONTH HAVING count(*) > 2", "query_toks": [ "SELECT", "MONTH", "FROM", "happy_hour", "GROUP", "BY", "MONTH", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "month", "from", "happy_hour", "group", "by", "month", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which months have more than 2 happy hours?", "question_toks": [ "which", "month", "have", "more", "than", "2", "happy", "hour", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 3, [ 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": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "address", "hh id", "shop id", "month", "num of shaff in charge", "hh id", "member id", "total amount" ], "table_names": [ "shop", "member", "happy hour", "happy hour member" ], "col_set": [ "*", "shop id", "address", "num of staff", "score", "open year", "member id", "name", "membership card", "age", "time of purchase", "level of membership", "hh id", "month", "num of shaff in charge", "total amount" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3 ], "keys": { "14": 1, "1": 1, "18": 6, "6": 6, "13": 13, "17": 17 }, "origin_question_toks": [ "Which", "months", "have", "more", "than", "2", "happy", "hours", "?" ], "question_arg": [ [ "which" ], [ "month" ], [ "have" ], [ "more" ], [ "than" ], [ "2" ], [ "happy", "hour" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "month", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "happy", "JJ" ], [ "hour", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "chinook_1", "query": "SELECT count(*) FROM ALBUM", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ALBUM" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "album" ], "question": "How many albums are there?", "question_toks": [ "how", "many", "album", "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": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "How", "many", "albums", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "album" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "album", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "chinook_1", "query": "SELECT count(*) FROM ALBUM", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ALBUM" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "album" ], "question": "Find the number of albums.", "question_toks": [ "find", "number", "of", "album", "." ], "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": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "number", "of", "albums", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "album" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "album", "NN" ], [ ".", "." ] ], "values": [ "Numbers" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "chinook_1", "query": "SELECT Name FROM GENRE", "query_toks": [ "SELECT", "Name", "FROM", "GENRE" ], "query_toks_no_value": [ "select", "name", "from", "genre" ], "question": "List the names of all music genres.", "question_toks": [ "list", "name", "of", "all", "music", "genre", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "music", "genres", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "music" ], [ "genre" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "music", "NN" ], [ "genre", "NN" ], [ ".", "." ] ], "values": [ "Music" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(4) T(4)" }, { "db_id": "chinook_1", "query": "SELECT Name FROM GENRE", "query_toks": [ "SELECT", "Name", "FROM", "GENRE" ], "query_toks_no_value": [ "select", "name", "from", "genre" ], "question": "What are the names of different music genres?", "question_toks": [ "what", "are", "name", "of", "different", "music", "genre", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "different", "music", "genres", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "different" ], [ "music" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "music", "NN" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [ "Music" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(4) T(4)" }, { "db_id": "chinook_1", "query": "SELECT * FROM CUSTOMER WHERE State = \"NY\"", "query_toks": [ "SELECT", "*", "FROM", "CUSTOMER", "WHERE", "State", "=", "``", "NY", "''" ], "query_toks_no_value": [ "select", "*", "from", "customer", "where", "state", "=", "value" ], "question": "Find all the customer information in state NY.", "question_toks": [ "find", "all", "customer", "information", "in", "state", "ny", "." ], "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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"NY\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "all", "the", "customer", "information", "in", "state", "NY", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "customer" ], [ "information" ], [ "in" ], [ "state" ], [ "ny" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "customer", "NN" ], [ "information", "NN" ], [ "in", "IN" ], [ "state", "NN" ], [ "ny", "NN" ], [ ".", "." ] ], "values": [ "NY", "New York" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(2) Filter(2) A(0) C(11) T(2) V(0)" }, { "db_id": "chinook_1", "query": "SELECT * FROM CUSTOMER WHERE State = \"NY\"", "query_toks": [ "SELECT", "*", "FROM", "CUSTOMER", "WHERE", "State", "=", "``", "NY", "''" ], "query_toks_no_value": [ "select", "*", "from", "customer", "where", "state", "=", "value" ], "question": "What is all the customer information for customers in NY state?", "question_toks": [ "what", "is", "all", "customer", "information", "for", "customer", "in", "ny", "state", "?" ], "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": [ [ false, 2, [ 0, [ 0, 12, false ], null ], "\"NY\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "is", "all", "the", "customer", "information", "for", "customers", "in", "NY", "state", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "customer" ], [ "information" ], [ "for" ], [ "customer" ], [ "in" ], [ "ny" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "customer", "NN" ], [ "information", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "in", "IN" ], [ "ny", "JJ" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "New York", "NY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(0) T(2) Filter(2) A(0) C(11) T(2) V(1)" }, { "db_id": "chinook_1", "query": "SELECT FirstName , LastName FROM EMPLOYEE WHERE City = \"Calgary\"", "query_toks": [ "SELECT", "FirstName", ",", "LastName", "FROM", "EMPLOYEE", "WHERE", "City", "=", "``", "Calgary", "''" ], "query_toks_no_value": [ "select", "firstname", ",", "lastname", "from", "employee", "where", "city", "=", "value" ], "question": "What are the first names and last names of the employees who live in Calgary city.", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "employee", "who", "live", "in", "calgary", "city", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Calgary\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "last", "names", "of", "the", "employees", "who", "live", "in", "Calgary", "city", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "live" ], [ "in" ], [ "calgary" ], [ "city" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "calgary", "JJ" ], [ "city", "NN" ], [ ".", "." ] ], "values": [ "1", "Calgary" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(3) A(0) C(7) T(3) Filter(2) A(0) C(10) T(3) V(1)" }, { "db_id": "chinook_1", "query": "SELECT FirstName , LastName FROM EMPLOYEE WHERE City = \"Calgary\"", "query_toks": [ "SELECT", "FirstName", ",", "LastName", "FROM", "EMPLOYEE", "WHERE", "City", "=", "``", "Calgary", "''" ], "query_toks_no_value": [ "select", "firstname", ",", "lastname", "from", "employee", "where", "city", "=", "value" ], "question": "Find the full names of employees living in the city of Calgary.", "question_toks": [ "find", "full", "name", "of", "employee", "living", "in", "city", "of", "calgary", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 27, false ], null ], "\"Calgary\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "full", "names", "of", "employees", "living", "in", "the", "city", "of", "Calgary", "." ], "question_arg": [ [ "find" ], [ "full" ], [ "name" ], [ "of" ], [ "employee" ], [ "living" ], [ "in" ], [ "city" ], [ "of" ], [ "calgary" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "calgary", "NN" ], [ ".", "." ] ], "values": [ "Calgary" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(3) A(0) C(7) T(3) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "chinook_1", "query": "SELECT distinct(BillingCountry) FROM INVOICE", "query_toks": [ "SELECT", "distinct", "(", "BillingCountry", ")", "FROM", "INVOICE" ], "query_toks_no_value": [ "select", "distinct", "(", "billingcountry", ")", "from", "invoice" ], "question": "What are the distinct billing countries of the invoices?", "question_toks": [ "what", "are", "distinct", "billing", "country", "of", "invoice", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 42, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "distinct", "billing", "countries", "of", "the", "invoices", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "billing", "country" ], [ "of" ], [ "invoice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "billing", "VBG" ], [ "country", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ "?", "." ] ], "values": [ "Failling" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(28) T(5)" }, { "db_id": "chinook_1", "query": "SELECT distinct(BillingCountry) FROM INVOICE", "query_toks": [ "SELECT", "distinct", "(", "BillingCountry", ")", "FROM", "INVOICE" ], "query_toks_no_value": [ "select", "distinct", "(", "billingcountry", ")", "from", "invoice" ], "question": "Find the different billing countries for all invoices.", "question_toks": [ "find", "different", "billing", "country", "for", "all", "invoice", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 42, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "different", "billing", "countries", "for", "all", "invoices", "." ], "question_arg": [ [ "find" ], [ "different" ], [ "billing", "country" ], [ "for" ], [ "all" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "different", "JJ" ], [ "billing", "NN" ], [ "country", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [ "Failling" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(28) T(5)" }, { "db_id": "chinook_1", "query": "SELECT Name FROM ARTIST WHERE Name LIKE \"%a%\"", "query_toks": [ "SELECT", "Name", "FROM", "ARTIST", "WHERE", "Name", "LIKE", "``", "%", "a", "%", "''" ], "query_toks_no_value": [ "select", "name", "from", "artist", "where", "name", "like", "value" ], "question": "Find the names of all artists that have \"a\" in their names.", "question_toks": [ "find", "name", "of", "all", "artist", "that", "have", "'", "a", "'", "in", "their", "name", "." ], "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, 9, [ 0, [ 0, 5, false ], null ], "\"%a%\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "artists", "that", "have", "``", "a", "''", "in", "their", "names", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "artist" ], [ "that" ], [ "have" ], [ "'" ], [ "a" ], [ "'" ], [ "in" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "'", "''" ], [ "a", "DT" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "a" ], "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(0)" }, { "db_id": "chinook_1", "query": "SELECT Name FROM ARTIST WHERE Name LIKE \"%a%\"", "query_toks": [ "SELECT", "Name", "FROM", "ARTIST", "WHERE", "Name", "LIKE", "``", "%", "a", "%", "''" ], "query_toks_no_value": [ "select", "name", "from", "artist", "where", "name", "like", "value" ], "question": "What are the names of artist who have the letter 'a' in their names?", "question_toks": [ "what", "are", "name", "of", "artist", "who", "have", "letter", "'a", "'", "in", "their", "name", "?" ], "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, 9, [ 0, [ 0, 5, false ], null ], "\"%a%\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "artist", "who", "have", "the", "letter", "'a", "'", "in", "their", "names", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "have" ], [ "letter" ], [ "'a" ], [ "'" ], [ "in" ], [ "their" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "letter", "NN" ], [ "'a", "VBN" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "a" ], "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(0)" }, { "db_id": "chinook_1", "query": "SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"AC/DC\"", "query_toks": [ "SELECT", "Title", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "WHERE", "T2.Name", "=", "``", "AC/DC", "''" ], "query_toks_no_value": [ "select", "title", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "where", "t2", ".", "name", "=", "value" ], "question": "Find the title of all the albums of the artist \"AC/DC\".", "question_toks": [ "find", "title", "of", "all", "album", "of", "artist", "'", "ac/dc", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 4, 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, 5, false ], null ], "\"AC/DC\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "title", "of", "all", "the", "albums", "of", "the", "artist", "``", "AC/DC", "''", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "all" ], [ "album" ], [ "of" ], [ "artist" ], [ "'" ], [ "ac/dc" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "album", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "'", "''" ], [ "ac/dc", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "AC/DC" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "chinook_1", "query": "SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"AC/DC\"", "query_toks": [ "SELECT", "Title", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "WHERE", "T2.Name", "=", "``", "AC/DC", "''" ], "query_toks_no_value": [ "select", "title", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "where", "t2", ".", "name", "=", "value" ], "question": "What are the titles of albums by the artist \"AC/DC\"?", "question_toks": [ "what", "are", "title", "of", "album", "by", "artist", "'", "ac/dc", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 4, 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, 5, false ], null ], "\"AC/DC\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "albums", "by", "the", "artist", "``", "AC/DC", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "album" ], [ "by" ], [ "artist" ], [ "'" ], [ "ac/dc" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "album", "NN" ], [ "by", "IN" ], [ "artist", "NN" ], [ "'", "''" ], [ "ac/dc", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "AC/DC" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "chinook_1", "query": "SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"Metallica\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "WHERE", "T2.Name", "=", "``", "Metallica", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "where", "t2", ".", "name", "=", "value" ], "question": "Hom many albums does the artist \"Metallica\" have?", "question_toks": [ "hom", "many", "album", "doe", "artist", "'", "metallica", "'", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 4, 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 ], "\"Metallica\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Hom", "many", "albums", "does", "the", "artist", "``", "Metallica", "''", "have", "?" ], "question_arg": [ [ "hom" ], [ "many" ], [ "album" ], [ "doe" ], [ "artist" ], [ "'" ], [ "metallica" ], [ "'" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "hom", "RB" ], [ "many", "JJ" ], [ "album", "VBP" ], [ "doe", "JJ" ], [ "artist", "NN" ], [ "'", "''" ], [ "metallica", "NN" ], [ "'", "POS" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "Metallica" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "chinook_1", "query": "SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = \"Metallica\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "WHERE", "T2.Name", "=", "``", "Metallica", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "where", "t2", ".", "name", "=", "value" ], "question": "Find the number of albums by the artist \"Metallica\".", "question_toks": [ "find", "number", "of", "album", "by", "artist", "'", "metallica", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 4, 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 ], "\"Metallica\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "number", "of", "albums", "by", "the", "artist", "``", "Metallica", "''", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "album" ], [ "by" ], [ "artist" ], [ "'" ], [ "metallica" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "album", "NN" ], [ "by", "IN" ], [ "artist", "NN" ], [ "'", "''" ], [ "metallica", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Numbers", "Metallica" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(4) T(1) V(1)" }, { "db_id": "chinook_1", "query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = \"Balls to the Wall\"", "query_toks": [ "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "WHERE", "T1.Title", "=", "``", "Balls", "to", "the", "Wall", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "where", "t1", ".", "title", "=", "value" ], "question": "Which artist does the album \"Balls to the Wall\" belong to?", "question_toks": [ "which", "artist", "doe", "album", "'", "ball", "to", "wall", "'", "belong", "to", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Balls to the Wall\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Which", "artist", "does", "the", "album", "``", "Balls", "to", "the", "Wall", "''", "belong", "to", "?" ], "question_arg": [ [ "which" ], [ "artist" ], [ "doe" ], [ "album" ], [ "'" ], [ "ball" ], [ "to" ], [ "wall" ], [ "'" ], [ "belong" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "artist", "VBP" ], [ "doe", "NN" ], [ "album", "NN" ], [ "'", "''" ], [ "ball", "NN" ], [ "to", "TO" ], [ "wall", "VB" ], [ "'", "''" ], [ "belong", "NN" ], [ "to", "TO" ], [ "?", "." ] ], "values": [ "The Wait", "Balls to the Wall" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "chinook_1", "query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = \"Balls to the Wall\"", "query_toks": [ "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "WHERE", "T1.Title", "=", "``", "Balls", "to", "the", "Wall", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "where", "t1", ".", "title", "=", "value" ], "question": "Find the name of the artist who made the album \"Balls to the Wall\".", "question_toks": [ "find", "name", "of", "artist", "who", "made", "album", "'", "ball", "to", "wall", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Balls to the Wall\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "artist", "who", "made", "the", "album", "``", "Balls", "to", "the", "Wall", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "made" ], [ "album" ], [ "'" ], [ "ball" ], [ "to" ], [ "wall" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "made", "VBD" ], [ "album", "NN" ], [ "'", "''" ], [ "ball", "NN" ], [ "to", "TO" ], [ "wall", "VB" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Balls to the Wall", "The Wait" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "chinook_1", "query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "GROUP", "BY", "T2.Name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t2", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which artist has the most albums?", "question_toks": [ "which", "artist", "ha", "most", "album", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Which", "artist", "has", "the", "most", "albums", "?" ], "question_arg": [ [ "which" ], [ "artist" ], [ "ha" ], [ "most" ], [ "album" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "artist", "VBP" ], [ "ha", "NN" ], [ "most", "RBS" ], [ "album", "NNS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(1) Sup(0) A(3) C(0) T(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(0)" }, { "db_id": "chinook_1", "query": "SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "GROUP", "BY", "T2.Name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t2", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the artist with the greatest number of albums?", "question_toks": [ "what", "is", "name", "of", "artist", "with", "greatest", "number", "of", "album", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "artist", "with", "the", "greatest", "number", "of", "albums", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "artist" ], [ "with" ], [ "greatest" ], [ "number" ], [ "of" ], [ "album" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "album", "NN" ], [ "?", "." ] ], "values": [ "Numbers" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(1) Sup(0) A(3) C(0) T(0) Filter(18) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(0) C(3) T(0)" }, { "db_id": "chinook_1", "query": "SELECT Name FROM TRACK WHERE Name LIKE '%you%'", "query_toks": [ "SELECT", "Name", "FROM", "TRACK", "WHERE", "Name", "LIKE", "'", "%", "you", "%", "'" ], "query_toks_no_value": [ "select", "name", "from", "track", "where", "name", "like", "value" ], "question": "Find the names of all the tracks that contain the word \"you\".", "question_toks": [ "find", "name", "of", "all", "track", "that", "contain", "word", "'", "you", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 57, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 57, false ], null ], "\"%you%\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "the", "tracks", "that", "contain", "the", "word", "``", "you", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "track" ], [ "that" ], [ "contain" ], [ "word" ], [ "'" ], [ "you" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "word", "NN" ], [ "'", "''" ], [ "you", "PRP" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "World", "you" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(10) Filter(9) A(0) C(4) T(10) V(1)" }, { "db_id": "chinook_1", "query": "SELECT Name FROM TRACK WHERE Name LIKE '%you%'", "query_toks": [ "SELECT", "Name", "FROM", "TRACK", "WHERE", "Name", "LIKE", "'", "%", "you", "%", "'" ], "query_toks_no_value": [ "select", "name", "from", "track", "where", "name", "like", "value" ], "question": "What are the names of tracks that contain the the word you in them?", "question_toks": [ "what", "are", "name", "of", "track", "that", "contain", "word", "you", "in", "them", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 57, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 57, false ], null ], "\"%you%\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "tracks", "that", "contain", "the", "the", "word", "you", "in", "them", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "track" ], [ "that" ], [ "contain" ], [ "word" ], [ "you" ], [ "in" ], [ "them" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "word", "NN" ], [ "you", "PRP" ], [ "in", "IN" ], [ "them", "PRP" ], [ "?", "." ] ], "values": [ "World", "you" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(10) Filter(9) A(0) C(4) T(10) V(1)" }, { "db_id": "chinook_1", "query": "SELECT AVG(UnitPrice) FROM TRACK", "query_toks": [ "SELECT", "AVG", "(", "UnitPrice", ")", "FROM", "TRACK" ], "query_toks_no_value": [ "select", "avg", "(", "unitprice", ")", "from", "track" ], "question": "What is the average unit price of all the tracks?", "question_toks": [ "what", "is", "average", "unit", "price", "of", "all", "track", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 64, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "is", "the", "average", "unit", "price", "of", "all", "the", "tracks", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "unit", "price" ], [ "of" ], [ "all" ], [ "track" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "unit", "NN" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(33) T(10)" }, { "db_id": "chinook_1", "query": "SELECT AVG(UnitPrice) FROM TRACK", "query_toks": [ "SELECT", "AVG", "(", "UnitPrice", ")", "FROM", "TRACK" ], "query_toks_no_value": [ "select", "avg", "(", "unitprice", ")", "from", "track" ], "question": "Find the average unit price for a track.", "question_toks": [ "find", "average", "unit", "price", "for", "a", "track", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 64, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "average", "unit", "price", "for", "a", "track", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "unit", "price" ], [ "for" ], [ "a" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "unit", "NN" ], [ "price", "NN" ], [ "for", "IN" ], [ "a", "DT" ], [ "track", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(33) T(10)" }, { "db_id": "chinook_1", "query": "SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK", "query_toks": [ "SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK" ], "query_toks_no_value": [ "select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track" ], "question": "What are the durations of the longest and the shortest tracks in milliseconds?", "question_toks": [ "what", "are", "duration", "of", "longest", "and", "shortest", "track", "in", "millisecond", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 62, false ], null ] ], [ 2, [ 0, [ 0, 62, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "durations", "of", "the", "longest", "and", "the", "shortest", "tracks", "in", "milliseconds", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "duration" ], [ "of" ], [ "longest" ], [ "and" ], [ "shortest" ], [ "track" ], [ "in" ], [ "millisecond" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "duration", "NN" ], [ "of", "IN" ], [ "longest", "JJS" ], [ "and", "CC" ], [ "shortest", "JJS" ], [ "track", "NN" ], [ "in", "IN" ], [ "millisecond", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(38) T(10) A(2) C(38) T(10)" }, { "db_id": "chinook_1", "query": "SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK", "query_toks": [ "SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK" ], "query_toks_no_value": [ "select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track" ], "question": "Find the maximum and minimum durations of tracks in milliseconds.", "question_toks": [ "find", "maximum", "and", "minimum", "duration", "of", "track", "in", "millisecond", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 62, false ], null ] ], [ 2, [ 0, [ 0, 62, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "maximum", "and", "minimum", "durations", "of", "tracks", "in", "milliseconds", "." ], "question_arg": [ [ "find" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "duration" ], [ "of" ], [ "track" ], [ "in" ], [ "millisecond" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "duration", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "in", "IN" ], [ "millisecond", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(38) T(10) A(2) C(38) T(10)" }, { "db_id": "chinook_1", "query": "SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID", "query_toks": [ "SELECT", "T1.Title", ",", "T2.AlbumID", ",", "COUNT", "(", "*", ")", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "GROUP", "BY", "T2.AlbumID" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t2", ".", "albumid", ",", "count", "(", "*", ")", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "group", "by", "t2", ".", "albumid" ], "question": "Show the album names, ids and the number of tracks for each album.", "question_toks": [ "show", "album", "name", ",", "id", "and", "number", "of", "track", "for", "each", "album", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 58, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 58, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 58, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Show", "the", "album", "names", ",", "ids", "and", "the", "number", "of", "tracks", "for", "each", "album", "." ], "question_arg": [ [ "show" ], [ "album" ], [ "name" ], [ "," ], [ "id" ], [ "and" ], [ "number" ], [ "of" ], [ "track" ], [ "for" ], [ "each" ], [ "album" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "album", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "album", "NN" ], [ ".", "." ] ], "values": [ "Numbers" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(1) T(10) A(3) C(0) T(10)" }, { "db_id": "chinook_1", "query": "SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID", "query_toks": [ "SELECT", "T1.Title", ",", "T2.AlbumID", ",", "COUNT", "(", "*", ")", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "GROUP", "BY", "T2.AlbumID" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t2", ".", "albumid", ",", "count", "(", "*", ")", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "group", "by", "t2", ".", "albumid" ], "question": "What are the names and ids of the different albums, and how many tracks are on each?", "question_toks": [ "what", "are", "name", "and", "id", "of", "different", "album", ",", "and", "how", "many", "track", "are", "on", "each", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 58, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 58, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 58, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "ids", "of", "the", "different", "albums", ",", "and", "how", "many", "tracks", "are", "on", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "different" ], [ "album" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "track" ], [ "are" ], [ "on" ], [ "each" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "album", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "track", "NN" ], [ "are", "VBP" ], [ "on", "IN" ], [ "each", "DT" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(1) T(10) A(3) C(0) T(10)" }, { "db_id": "chinook_1", "query": "SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "GROUP", "BY", "T2.GenreId", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "group", "by", "t2", ".", "genreid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the most common genre in all tracks?", "question_toks": [ "what", "is", "name", "of", "most", "common", "genre", "in", "all", "track", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 60, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 34, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 60, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "most", "common", "genre", "in", "all", "tracks", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "most" ], [ "common" ], [ "genre" ], [ "in" ], [ "all" ], [ "track" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "common", "JJ" ], [ "genre", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(4) Sup(0) A(3) C(0) T(10) Filter(18) A(0) C(22) T(4) Root(5) Sel(0) N(0) A(0) C(22) T(10)" }, { "db_id": "chinook_1", "query": "SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "GROUP", "BY", "T2.GenreId", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "group", "by", "t2", ".", "genreid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the genre that is most frequent across all tracks.", "question_toks": [ "find", "name", "of", "genre", "that", "is", "most", "frequent", "across", "all", "track", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 60, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 34, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 60, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "genre", "that", "is", "most", "frequent", "across", "all", "tracks", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "genre" ], [ "that" ], [ "is" ], [ "most" ], [ "frequent" ], [ "across" ], [ "all" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "genre", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "frequent", "JJ" ], [ "across", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(4) Sup(0) A(3) C(0) T(10) Filter(18) A(0) C(22) T(4) Root(5) Sel(0) N(0) A(0) C(22) T(10)" }, { "db_id": "chinook_1", "query": "SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "MEDIATYPE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.MediaTypeId", "=", "T2.MediaTypeId", "GROUP", "BY", "T2.MediaTypeId", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "mediatype", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "mediatypeid", "=", "t2", ".", "mediatypeid", "group", "by", "t2", ".", "mediatypeid", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the least common media type in all tracks?", "question_toks": [ "what", "is", "least", "common", "medium", "type", "in", "all", "track", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 50, false ], null ], [ 0, 59, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 59, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 51, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 50, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 59, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "is", "the", "least", "common", "media", "type", "in", "all", "tracks", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "least" ], [ "common" ], [ "medium", "type" ], [ "in" ], [ "all" ], [ "track" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "least", "JJ" ], [ "common", "JJ" ], [ "medium", "NN" ], [ "type", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(7) Sup(1) A(3) C(0) T(10) Filter(18) A(0) C(35) T(7) Root(5) Sel(0) N(0) A(0) C(35) T(10)" }, { "db_id": "chinook_1", "query": "SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1", "query_toks": [ "SELECT", "T1.Name", "FROM", "MEDIATYPE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.MediaTypeId", "=", "T2.MediaTypeId", "GROUP", "BY", "T2.MediaTypeId", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "mediatype", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "mediatypeid", "=", "t2", ".", "mediatypeid", "group", "by", "t2", ".", "mediatypeid", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "What is the name of the media type that is least common across all tracks?", "question_toks": [ "what", "is", "name", "of", "medium", "type", "that", "is", "least", "common", "across", "all", "track", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 50, false ], null ], [ 0, 59, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 59, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 51, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 50, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 59, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "media", "type", "that", "is", "least", "common", "across", "all", "tracks", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "medium", "type" ], [ "that" ], [ "is" ], [ "least" ], [ "common" ], [ "across" ], [ "all" ], [ "track" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "medium", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "least", "JJ" ], [ "common", "JJ" ], [ "across", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(4) T(7) Sup(1) A(3) C(0) T(10) Filter(18) A(0) C(35) T(7) Root(5) Sel(0) N(0) A(0) C(35) T(10)" }, { "db_id": "chinook_1", "query": "SELECT T1.Title , T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 GROUP BY T2.AlbumID", "query_toks": [ "SELECT", "T1.Title", ",", "T2.AlbumID", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "WHERE", "T2.UnitPrice", ">", "1", "GROUP", "BY", "T2.AlbumID" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t2", ".", "albumid", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "where", "t2", ".", "unitprice", ">", "value", "group", "by", "t2", ".", "albumid" ], "question": "Show the album names and ids for albums that contain tracks with unit price bigger than 1.", "question_toks": [ "show", "album", "name", "and", "id", "for", "album", "that", "contain", "track", "with", "unit", "price", "bigger", "than", "1", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 58, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 58, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 58, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 64, false ], null ], 1.0, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Show", "the", "album", "names", "and", "ids", "for", "albums", "that", "contain", "tracks", "with", "unit", "price", "bigger", "than", "1", "." ], "question_arg": [ [ "show" ], [ "album" ], [ "name" ], [ "and" ], [ "id" ], [ "for" ], [ "album" ], [ "that" ], [ "contain" ], [ "track" ], [ "with" ], [ "unit", "price" ], [ "bigger" ], [ "than" ], [ "1" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "album", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "for", "IN" ], [ "album", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "track", "VBP" ], [ "with", "IN" ], [ "unit", "NN" ], [ "price", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(10) Filter(5) A(0) C(33) T(10) V(0)" }, { "db_id": "chinook_1", "query": "SELECT T1.Title , T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 GROUP BY T2.AlbumID", "query_toks": [ "SELECT", "T1.Title", ",", "T2.AlbumID", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "WHERE", "T2.UnitPrice", ">", "1", "GROUP", "BY", "T2.AlbumID" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t2", ".", "albumid", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "where", "t2", ".", "unitprice", ">", "value", "group", "by", "t2", ".", "albumid" ], "question": "What are the titles and ids for albums containing tracks with unit price greater than 1?", "question_toks": [ "what", "are", "title", "and", "id", "for", "album", "containing", "track", "with", "unit", "price", "greater", "than", "1", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 58, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 58, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 58, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 64, false ], null ], 1.0, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "titles", "and", "ids", "for", "albums", "containing", "tracks", "with", "unit", "price", "greater", "than", "1", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "and" ], [ "id" ], [ "for" ], [ "album" ], [ "containing" ], [ "track" ], [ "with" ], [ "unit", "price" ], [ "greater" ], [ "than" ], [ "1" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "for", "IN" ], [ "album", "NN" ], [ "containing", "VBG" ], [ "track", "NN" ], [ "with", "IN" ], [ "unit", "NN" ], [ "price", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(10) Filter(5) A(0) C(33) T(10) V(0)" }, { "db_id": "chinook_1", "query": "SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Rock", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ], "question": "How many tracks belong to rock genre?", "question_toks": [ "how", "many", "track", "belong", "to", "rock", "genre", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Rock\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "How", "many", "tracks", "belong", "to", "rock", "genre", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "track" ], [ "belong" ], [ "to" ], [ "rock" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "track", "NN" ], [ "belong", "NN" ], [ "to", "TO" ], [ "rock", "VB" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [ "Rock" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(10) Filter(2) A(0) C(4) T(4) V(0)" }, { "db_id": "chinook_1", "query": "SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Rock", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ], "question": "Count the number of tracks that are part of the rock genre.", "question_toks": [ "count", "number", "of", "track", "that", "are", "part", "of", "rock", "genre", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Rock\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Count", "the", "number", "of", "tracks", "that", "are", "part", "of", "the", "rock", "genre", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "track" ], [ "that" ], [ "are" ], [ "part" ], [ "of" ], [ "rock" ], [ "genre" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "part", "NN" ], [ "of", "IN" ], [ "rock", "NN" ], [ "genre", "NN" ], [ ".", "." ] ], "values": [ "Rock", "Numbers", "Park" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(10) Filter(2) A(0) C(4) T(4) V(0)" }, { "db_id": "chinook_1", "query": "SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Jazz\"", "query_toks": [ "SELECT", "AVG", "(", "UnitPrice", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Jazz", "''" ], "query_toks_no_value": [ "select", "avg", "(", "unitprice", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ], "question": "What is the average unit price of tracks that belong to Jazz genre?", "question_toks": [ "what", "is", "average", "unit", "price", "of", "track", "that", "belong", "to", "jazz", "genre", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 64, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Jazz\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "is", "the", "average", "unit", "price", "of", "tracks", "that", "belong", "to", "Jazz", "genre", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "unit", "price" ], [ "of" ], [ "track" ], [ "that" ], [ "belong" ], [ "to" ], [ "jazz" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "unit", "NN" ], [ "price", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "that", "WDT" ], [ "belong", "VBP" ], [ "to", "TO" ], [ "jazz", "VB" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [ "Jazz" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(33) T(10) Filter(2) A(0) C(4) T(4) V(0)" }, { "db_id": "chinook_1", "query": "SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Jazz\"", "query_toks": [ "SELECT", "AVG", "(", "UnitPrice", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Jazz", "''" ], "query_toks_no_value": [ "select", "avg", "(", "unitprice", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ], "question": "Find the average unit price of jazz tracks.", "question_toks": [ "find", "average", "unit", "price", "of", "jazz", "track", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 64, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Jazz\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "average", "unit", "price", "of", "jazz", "tracks", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "unit", "price" ], [ "of" ], [ "jazz" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "unit", "NN" ], [ "price", "NN" ], [ "of", "IN" ], [ "jazz", "NN" ], [ "track", "NN" ], [ ".", "." ] ], "values": [ "Jazz" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(33) T(10) Filter(2) A(0) C(4) T(4) V(0)" }, { "db_id": "chinook_1", "query": "SELECT FirstName , LastName FROM CUSTOMER WHERE Email = \"luisg@embraer.com.br\"", "query_toks": [ "SELECT", "FirstName", ",", "LastName", "FROM", "CUSTOMER", "WHERE", "Email", "=", "``", "luisg", "@", "embraer.com.br", "''" ], "query_toks_no_value": [ "select", "firstname", ",", "lastname", "from", "customer", "where", "email", "=", "value" ], "question": "What is the first name and last name of the customer that has email \"luisg@embraer.com.br\"?", "question_toks": [ "what", "is", "first", "name", "and", "last", "name", "of", "customer", "that", "ha", "email", "'", "luisg", "@", "embraer.com.br", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"luisg@embraer.com.br\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "and", "last", "name", "of", "the", "customer", "that", "has", "email", "``", "luisg", "@", "embraer.com.br", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "of" ], [ "customer" ], [ "that" ], [ "ha" ], [ "email" ], [ "'" ], [ "luisg" ], [ "@" ], [ "embraer.com.br" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "that", "IN" ], [ "ha", "JJ" ], [ "email", "NN" ], [ "'", "POS" ], [ "luisg", "NN" ], [ "@", "NNP" ], [ "embraer.com.br", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "1", "luisg@embraer.com.br" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) A(0) C(7) T(2) Filter(2) A(0) C(16) T(2) V(1)" }, { "db_id": "chinook_1", "query": "SELECT FirstName , LastName FROM CUSTOMER WHERE Email = \"luisg@embraer.com.br\"", "query_toks": [ "SELECT", "FirstName", ",", "LastName", "FROM", "CUSTOMER", "WHERE", "Email", "=", "``", "luisg", "@", "embraer.com.br", "''" ], "query_toks_no_value": [ "select", "firstname", ",", "lastname", "from", "customer", "where", "email", "=", "value" ], "question": "Find the full name of the customer with the email \"luisg@embraer.com.br\".", "question_toks": [ "find", "full", "name", "of", "customer", "with", "email", "'", "luisg", "@", "embraer.com.br", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"luisg@embraer.com.br\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "full", "name", "of", "the", "customer", "with", "the", "email", "``", "luisg", "@", "embraer.com.br", "''", "." ], "question_arg": [ [ "find" ], [ "full" ], [ "name" ], [ "of" ], [ "customer" ], [ "with" ], [ "email" ], [ "'" ], [ "luisg" ], [ "@" ], [ "embraer.com.br" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "email", "NN" ], [ "'", "''" ], [ "luisg", "JJ" ], [ "@", "NNP" ], [ "embraer.com.br", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "luisg@embraer.com.br" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) A(0) C(7) T(2) Filter(2) A(0) C(16) T(2) V(0)" }, { "db_id": "chinook_1", "query": "SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE \"%gmail.com%\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "CUSTOMER", "WHERE", "Email", "LIKE", "``", "%", "gmail.com", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customer", "where", "email", "like", "value" ], "question": "How many customers have email that contains \"gmail.com\"?", "question_toks": [ "how", "many", "customer", "have", "email", "that", "contains", "'", "gmail.com", "'", "?" ], "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, 9, [ 0, [ 0, 17, false ], null ], "\"%gmail.com%\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "How", "many", "customers", "have", "email", "that", "contains", "``", "gmail.com", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "have" ], [ "email" ], [ "that" ], [ "contains" ], [ "'" ], [ "gmail.com" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "email", "VBN" ], [ "that", "IN" ], [ "contains", "NNS" ], [ "'", "POS" ], [ "gmail.com", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "gmail.com" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(9) A(0) C(16) T(2) V(0)" }, { "db_id": "chinook_1", "query": "SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE \"%gmail.com%\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "CUSTOMER", "WHERE", "Email", "LIKE", "``", "%", "gmail.com", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customer", "where", "email", "like", "value" ], "question": "Count the number of customers that have an email containing \"gmail.com\".", "question_toks": [ "count", "number", "of", "customer", "that", "have", "an", "email", "containing", "'", "gmail.com", "'", "." ], "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, 9, [ 0, [ 0, 17, false ], null ], "\"%gmail.com%\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Count", "the", "number", "of", "customers", "that", "have", "an", "email", "containing", "``", "gmail.com", "''", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "customer" ], [ "that" ], [ "have" ], [ "an" ], [ "email" ], [ "containing" ], [ "'" ], [ "gmail.com" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "email", "NN" ], [ "containing", "VBG" ], [ "'", "''" ], [ "gmail.com", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Numbers", "gmail.com" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(9) A(0) C(16) T(2) V(1)" }, { "db_id": "chinook_1", "query": "SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = \"Leonie\"", "query_toks": [ "SELECT", "T2.FirstName", ",", "T2.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "WHERE", "T1.FirstName", "=", "``", "Leonie", "''" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "where", "t1", ".", "firstname", "=", "value" ], "question": "What is the first name and last name employee helps the customer with first name Leonie?", "question_toks": [ "what", "is", "first", "name", "and", "last", "name", "employee", "help", "customer", "with", "first", "name", "leonie", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Leonie\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "is", "the", "first", "name", "and", "last", "name", "employee", "helps", "the", "customer", "with", "first", "name", "Leonie", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "first", "name" ], [ "and" ], [ "last", "name" ], [ "employee" ], [ "help" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "leonie" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "employee", "NN" ], [ "help", "NN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "leonie", "NN" ], [ "?", "." ] ], "values": [ "1", "Leonie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(3) A(0) C(7) T(3) Filter(2) A(0) C(6) T(2) V(1)" }, { "db_id": "chinook_1", "query": "SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = \"Leonie\"", "query_toks": [ "SELECT", "T2.FirstName", ",", "T2.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "WHERE", "T1.FirstName", "=", "``", "Leonie", "''" ], "query_toks_no_value": [ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "where", "t1", ".", "firstname", "=", "value" ], "question": "Find the full names of employees who help customers with the first name Leonie.", "question_toks": [ "find", "full", "name", "of", "employee", "who", "help", "customer", "with", "first", "name", "leonie", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Leonie\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "full", "names", "of", "employees", "who", "help", "customers", "with", "the", "first", "name", "Leonie", "." ], "question_arg": [ [ "find" ], [ "full" ], [ "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "help" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "leonie" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "help", "VBZ" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "leonie", "NN" ], [ ".", "." ] ], "values": [ "1", "Leonie" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(3) A(0) C(7) T(3) Filter(2) A(0) C(6) T(2) V(1)" }, { "db_id": "chinook_1", "query": "SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = \"70174\"", "query_toks": [ "SELECT", "T2.City", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "WHERE", "T1.PostalCode", "=", "``", "70174", "''" ], "query_toks_no_value": [ "select", "t2", ".", "city", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "where", "t1", ".", "postalcode", "=", "value" ], "question": "What city does the employee who helps the customer with postal code 70174 live in?", "question_toks": [ "what", "city", "doe", "employee", "who", "help", "customer", "with", "postal", "code", "70174", "live", "in", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"70174\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "city", "does", "the", "employee", "who", "helps", "the", "customer", "with", "postal", "code", "70174", "live", "in", "?" ], "question_arg": [ [ "what" ], [ "city" ], [ "doe" ], [ "employee" ], [ "who" ], [ "help" ], [ "customer" ], [ "with" ], [ "postal", "code" ], [ "70174" ], [ "live" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "city", "NN" ], [ "doe", "NN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "help", "VBZ" ], [ "customer", "NN" ], [ "with", "IN" ], [ "postal", "JJ" ], [ "code", "NN" ], [ "70174", "CD" ], [ "live", "NN" ], [ "in", "IN" ], [ "?", "." ] ], "values": [ "Coda", "70174", "Core" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(13) T(2) V(1)" }, { "db_id": "chinook_1", "query": "SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = \"70174\"", "query_toks": [ "SELECT", "T2.City", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "WHERE", "T1.PostalCode", "=", "``", "70174", "''" ], "query_toks_no_value": [ "select", "t2", ".", "city", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "where", "t1", ".", "postalcode", "=", "value" ], "question": "Find the cities corresponding to employees who help customers with the postal code 70174.", "question_toks": [ "find", "city", "corresponding", "to", "employee", "who", "help", "customer", "with", "postal", "code", "70174", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"70174\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "cities", "corresponding", "to", "employees", "who", "help", "customers", "with", "the", "postal", "code", "70174", "." ], "question_arg": [ [ "find" ], [ "city" ], [ "corresponding" ], [ "to" ], [ "employee" ], [ "who" ], [ "help" ], [ "customer" ], [ "with" ], [ "postal", "code" ], [ "70174" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "city", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "employee", "NN" ], [ "who", "WP" ], [ "help", "VBZ" ], [ "customer", "NN" ], [ "with", "IN" ], [ "postal", "JJ" ], [ "code", "NN" ], [ "70174", "CD" ], [ ".", "." ] ], "values": [ "Core", "70174", "Coda" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(13) T(2) V(1)" }, { "db_id": "chinook_1", "query": "SELECT COUNT(DISTINCT city) FROM EMPLOYEE", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "city", ")", "FROM", "EMPLOYEE" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "city", ")", "from", "employee" ], "question": "How many distinct cities does the employees live in?", "question_toks": [ "how", "many", "distinct", "city", "doe", "employee", "live", "in", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 27, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "How", "many", "distinct", "cities", "does", "the", "employees", "live", "in", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "city" ], [ "doe" ], [ "employee" ], [ "live" ], [ "in" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "city", "NN" ], [ "doe", "NN" ], [ "employee", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(3)" }, { "db_id": "chinook_1", "query": "SELECT COUNT(DISTINCT city) FROM EMPLOYEE", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "city", ")", "FROM", "EMPLOYEE" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "city", ")", "from", "employee" ], "question": "Find the number of different cities that employees live in.", "question_toks": [ "find", "number", "of", "different", "city", "that", "employee", "live", "in", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 27, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "number", "of", "different", "cities", "that", "employees", "live", "in", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "different" ], [ "city" ], [ "that" ], [ "employee" ], [ "live" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "city", "NN" ], [ "that", "WDT" ], [ "employee", "NN" ], [ "live", "VBP" ], [ "in", "IN" ], [ ".", "." ] ], "values": [ "Numbers" ], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(3)" }, { "db_id": "chinook_1", "query": "SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = \"Astrid\" AND LastName = \"Gruber\"", "query_toks": [ "SELECT", "T2.InvoiceDate", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "INVOICE", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T1.FirstName", "=", "``", "Astrid", "''", "AND", "LastName", "=", "``", "Gruber", "''" ], "query_toks_no_value": [ "select", "t2", ".", "invoicedate", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t1", ".", "firstname", "=", "value", "and", "lastname", "=", "value" ], "question": "Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.", "question_toks": [ "find", "all", "invoice", "date", "corresponding", "to", "customer", "with", "first", "name", "astrid", "and", "last", "name", "gruber", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Astrid\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Gruber\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "all", "invoice", "dates", "corresponding", "to", "customers", "with", "first", "name", "Astrid", "and", "last", "name", "Gruber", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "invoice", "date" ], [ "corresponding" ], [ "to" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "astrid" ], [ "and" ], [ "last", "name" ], [ "gruber" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "invoice", "NN" ], [ "date", "NN" ], [ "corresponding", "NN" ], [ "to", "TO" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "astrid", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "gruber", "NN" ], [ ".", "." ] ], "values": [ "Gruber", "Astrid", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(24) T(5) Filter(0) Filter(2) A(0) C(6) T(2) V(1) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "chinook_1", "query": "SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = \"Astrid\" AND LastName = \"Gruber\"", "query_toks": [ "SELECT", "T2.InvoiceDate", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "INVOICE", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T1.FirstName", "=", "``", "Astrid", "''", "AND", "LastName", "=", "``", "Gruber", "''" ], "query_toks_no_value": [ "select", "t2", ".", "invoicedate", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t1", ".", "firstname", "=", "value", "and", "lastname", "=", "value" ], "question": "What are the invoice dates for customers with the first name Astrid and the last name Gruber?", "question_toks": [ "what", "are", "invoice", "date", "for", "customer", "with", "first", "name", "astrid", "and", "last", "name", "gruber", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Astrid\"", null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Gruber\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "invoice", "dates", "for", "customers", "with", "the", "first", "name", "Astrid", "and", "the", "last", "name", "Gruber", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "invoice", "date" ], [ "for" ], [ "customer" ], [ "with" ], [ "first", "name" ], [ "astrid" ], [ "and" ], [ "last", "name" ], [ "gruber" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "invoice", "JJ" ], [ "date", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "astrid", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "gruber", "NN" ], [ "?", "." ] ], "values": [ "Gruber", "1", "Astrid" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(24) T(5) Filter(0) Filter(2) A(0) C(6) T(2) V(2) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "chinook_1", "query": "SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20", "query_toks": [ "SELECT", "LastName", "FROM", "CUSTOMER", "EXCEPT", "SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "Invoice", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T2.total", ">", "20" ], "query_toks_no_value": [ "select", "lastname", "from", "customer", "except", "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t2", ".", "total", ">", "value" ], "question": "Find all the customer last names that do not have invoice totals larger than 20.", "question_toks": [ "find", "all", "customer", "last", "name", "that", "do", "not", "have", "invoice", "total", "larger", "than", "20", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 44, false ], null ], 20.0, 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": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "all", "the", "customer", "last", "names", "that", "do", "not", "have", "invoice", "totals", "larger", "than", "20", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "customer" ], [ "last", "name" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "invoice" ], [ "total" ], [ "larger" ], [ "than" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "customer", "NN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "invoice", "NN" ], [ "total", "JJ" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "20" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(7) T(2) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(5) A(0) C(30) T(5) V(0)" }, { "db_id": "chinook_1", "query": "SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20", "query_toks": [ "SELECT", "LastName", "FROM", "CUSTOMER", "EXCEPT", "SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "Invoice", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T2.total", ">", "20" ], "query_toks_no_value": [ "select", "lastname", "from", "customer", "except", "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t2", ".", "total", ">", "value" ], "question": "What are the last names of customers without invoice totals exceeding 20?", "question_toks": [ "what", "are", "last", "name", "of", "customer", "without", "invoice", "total", "exceeding", "20", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 44, false ], null ], 20.0, 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": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "of", "customers", "without", "invoice", "totals", "exceeding", "20", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "of" ], [ "customer" ], [ "without" ], [ "invoice" ], [ "total" ], [ "exceeding" ], [ "20" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "without", "IN" ], [ "invoice", "NN" ], [ "total", "JJ" ], [ "exceeding", "VBG" ], [ "20", "CD" ], [ "?", "." ] ], "values": [ "20" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(7) T(2) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(5) A(0) C(30) T(5) V(0)" }, { "db_id": "chinook_1", "query": "SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Brazil\"", "query_toks": [ "SELECT", "DISTINCT", "T1.FirstName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "INVOICE", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T1.country", "=", "``", "Brazil", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "firstname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t1", ".", "country", "=", "value" ], "question": "Find the first names of all customers that live in Brazil and have an invoice.", "question_toks": [ "find", "first", "name", "of", "all", "customer", "that", "live", "in", "brazil", "and", "have", "an", "invoice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "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, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Brazil\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "first", "names", "of", "all", "customers", "that", "live", "in", "Brazil", "and", "have", "an", "invoice", "." ], "question_arg": [ [ "find" ], [ "first", "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "that" ], [ "live" ], [ "in" ], [ "brazil" ], [ "and" ], [ "have" ], [ "an" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "first", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "that", "WDT" ], [ "live", "VBP" ], [ "in", "IN" ], [ "brazil", "NN" ], [ "and", "CC" ], [ "have", "VBP" ], [ "an", "DT" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [ "Brasil", "Brazil", "1" ], "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(5) T(5) Filter(2) A(0) C(12) T(2) V(1)" }, { "db_id": "chinook_1", "query": "SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Brazil\"", "query_toks": [ "SELECT", "DISTINCT", "T1.FirstName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "INVOICE", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T1.country", "=", "``", "Brazil", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "firstname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t1", ".", "country", "=", "value" ], "question": "What are the different first names for customers from Brazil who have also had an invoice?", "question_toks": [ "what", "are", "different", "first", "name", "for", "customer", "from", "brazil", "who", "have", "also", "had", "an", "invoice", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "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, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Brazil\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "different", "first", "names", "for", "customers", "from", "Brazil", "who", "have", "also", "had", "an", "invoice", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "first", "name" ], [ "for" ], [ "customer" ], [ "from" ], [ "brazil" ], [ "who" ], [ "have" ], [ "also" ], [ "had" ], [ "an" ], [ "invoice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "from", "IN" ], [ "brazil", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "also", "RB" ], [ "had", "VBD" ], [ "an", "DT" ], [ "invoice", "NN" ], [ "?", "." ] ], "values": [ "1", "Brazil", "Brasil" ], "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(5) T(5) Filter(2) A(0) C(12) T(2) V(1)" }, { "db_id": "chinook_1", "query": "SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Germany\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Address", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "INVOICE", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T1.country", "=", "``", "Germany", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "address", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t1", ".", "country", "=", "value" ], "question": "Find the address of all customers that live in Germany and have invoice.", "question_toks": [ "find", "address", "of", "all", "customer", "that", "live", "in", "germany", "and", "have", "invoice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Germany\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "address", "of", "all", "customers", "that", "live", "in", "Germany", "and", "have", "invoice", "." ], "question_arg": [ [ "find" ], [ "address" ], [ "of" ], [ "all" ], [ "customer" ], [ "that" ], [ "live" ], [ "in" ], [ "germany" ], [ "and" ], [ "have" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "address", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "that", "WDT" ], [ "live", "VBP" ], [ "in", "IN" ], [ "germany", "NN" ], [ "and", "CC" ], [ "have", "VB" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [ "Germany" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(5) T(2) Root(5) Sel(0) N(0) A(0) C(5) T(5) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "chinook_1", "query": "SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = \"Germany\"", "query_toks": [ "SELECT", "DISTINCT", "T1.Address", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "INVOICE", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T1.country", "=", "``", "Germany", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "address", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t1", ".", "country", "=", "value" ], "question": "What are the addresses of customers living in Germany who have had an invoice?", "question_toks": [ "what", "are", "address", "of", "customer", "living", "in", "germany", "who", "have", "had", "an", "invoice", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Germany\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "addresses", "of", "customers", "living", "in", "Germany", "who", "have", "had", "an", "invoice", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "address" ], [ "of" ], [ "customer" ], [ "living" ], [ "in" ], [ "germany" ], [ "who" ], [ "have" ], [ "had" ], [ "an" ], [ "invoice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "address", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "germany", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "had", "VBD" ], [ "an", "DT" ], [ "invoice", "NN" ], [ "?", "." ] ], "values": [ "Germany" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(9) T(2) Filter(0) Filter(18) A(0) C(5) T(2) Root(5) Sel(0) N(0) A(0) C(5) T(5) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "chinook_1", "query": "SELECT Phone FROM EMPLOYEE", "query_toks": [ "SELECT", "Phone", "FROM", "EMPLOYEE" ], "query_toks_no_value": [ "select", "phone", "from", "employee" ], "question": "List the phone numbers of all employees.", "question_toks": [ "list", "phone", "number", "of", "all", "employee", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "List", "the", "phone", "numbers", "of", "all", "employees", "." ], "question_arg": [ [ "list" ], [ "phone" ], [ "number" ], [ "of" ], [ "all" ], [ "employee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "employee", "NN" ], [ ".", "." ] ], "values": [ "Numbers" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(14) T(3)" }, { "db_id": "chinook_1", "query": "SELECT Phone FROM EMPLOYEE", "query_toks": [ "SELECT", "Phone", "FROM", "EMPLOYEE" ], "query_toks_no_value": [ "select", "phone", "from", "employee" ], "question": "What are the phone numbers for each employee?", "question_toks": [ "what", "are", "phone", "number", "for", "each", "employee", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "phone", "numbers", "for", "each", "employee", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "phone" ], [ "number" ], [ "for" ], [ "each" ], [ "employee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "phone", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "employee", "NN" ], [ "?", "." ] ], "values": [ "Numbers" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(14) T(3)" }, { "db_id": "chinook_1", "query": "SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = \"AAC audio file\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "MEDIATYPE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.MediaTypeId", "=", "T2.MediaTypeId", "WHERE", "T1.Name", "=", "``", "AAC", "audio", "file", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "mediatype", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "mediatypeid", "=", "t2", ".", "mediatypeid", "where", "t1", ".", "name", "=", "value" ], "question": "How many tracks are in the AAC audio file media type?", "question_toks": [ "how", "many", "track", "are", "in", "aac", "audio", "file", "medium", "type", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 50, false ], null ], [ 0, 59, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 51, false ], null ], "\"AAC audio file\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "How", "many", "tracks", "are", "in", "the", "AAC", "audio", "file", "media", "type", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "track" ], [ "are" ], [ "in" ], [ "aac" ], [ "audio" ], [ "file" ], [ "medium", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "track", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "aac", "JJ" ], [ "audio", "NN" ], [ "file", "NN" ], [ "medium", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [ "Fire", "AAC audio file" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(10) Filter(2) A(0) C(4) T(7) V(1)" }, { "db_id": "chinook_1", "query": "SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = \"AAC audio file\"", "query_toks": [ "SELECT", "COUNT", "(", "*", ")", "FROM", "MEDIATYPE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.MediaTypeId", "=", "T2.MediaTypeId", "WHERE", "T1.Name", "=", "``", "AAC", "audio", "file", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "mediatype", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "mediatypeid", "=", "t2", ".", "mediatypeid", "where", "t1", ".", "name", "=", "value" ], "question": "Count the number of tracks that are of the media type \"AAC audio file\".", "question_toks": [ "count", "number", "of", "track", "that", "are", "of", "medium", "type", "'", "aac", "audio", "file", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 50, false ], null ], [ 0, 59, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 51, false ], null ], "\"AAC audio file\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Count", "the", "number", "of", "tracks", "that", "are", "of", "the", "media", "type", "``", "AAC", "audio", "file", "''", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "track" ], [ "that" ], [ "are" ], [ "of" ], [ "medium", "type" ], [ "'" ], [ "aac" ], [ "audio" ], [ "file" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "of", "IN" ], [ "medium", "NN" ], [ "type", "NN" ], [ "'", "''" ], [ "aac", "JJ" ], [ "audio", "NN" ], [ "file", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Fire", "AAC audio file", "Numbers" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(10) Filter(2) A(0) C(4) T(7) V(1)" }, { "db_id": "chinook_1", "query": "SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Latin\" OR T1.Name = \"Pop\"", "query_toks": [ "SELECT", "AVG", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Latin", "''", "OR", "T1.Name", "=", "``", "Pop", "''" ], "query_toks_no_value": [ "select", "avg", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value", "or", "t1", ".", "name", "=", "value" ], "question": "What is the average duration in milliseconds of tracks that belong to Latin or Pop genre?", "question_toks": [ "what", "is", "average", "duration", "in", "millisecond", "of", "track", "that", "belong", "to", "latin", "or", "pop", "genre", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 62, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Latin\"", null ], "or", [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Pop\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "is", "the", "average", "duration", "in", "milliseconds", "of", "tracks", "that", "belong", "to", "Latin", "or", "Pop", "genre", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "duration" ], [ "in" ], [ "millisecond" ], [ "of" ], [ "track" ], [ "that" ], [ "belong" ], [ "to" ], [ "latin" ], [ "or" ], [ "pop" ], [ "genre" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "duration", "NN" ], [ "in", "IN" ], [ "millisecond", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "that", "WDT" ], [ "belong", "VBP" ], [ "to", "TO" ], [ "latin", "VB" ], [ "or", "CC" ], [ "pop", "VB" ], [ "genre", "NN" ], [ "?", "." ] ], "values": [ "Latin", "Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(38) T(10) Filter(1) Filter(2) A(0) C(4) T(4) V(0) Filter(2) A(0) C(4) T(4) V(1)" }, { "db_id": "chinook_1", "query": "SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Latin\" OR T1.Name = \"Pop\"", "query_toks": [ "SELECT", "AVG", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Latin", "''", "OR", "T1.Name", "=", "``", "Pop", "''" ], "query_toks_no_value": [ "select", "avg", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value", "or", "t1", ".", "name", "=", "value" ], "question": "Find the average millisecond length of Latin and Pop tracks.", "question_toks": [ "find", "average", "millisecond", "length", "of", "latin", "and", "pop", "track", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 62, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Latin\"", null ], "or", [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Pop\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "average", "millisecond", "length", "of", "Latin", "and", "Pop", "tracks", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "millisecond" ], [ "length" ], [ "of" ], [ "latin" ], [ "and" ], [ "pop" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "millisecond", "NN" ], [ "length", "NN" ], [ "of", "IN" ], [ "latin", "NN" ], [ "and", "CC" ], [ "pop", "NN" ], [ "track", "NN" ], [ ".", "." ] ], "values": [ "Latin", "Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(38) T(10) Filter(1) Filter(2) A(0) C(4) T(4) V(0) Filter(2) A(0) C(4) T(4) V(1)" }, { "db_id": "chinook_1", "query": "SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10", "query_toks": [ "SELECT", "T1.FirstName", ",", "T1.SupportRepId", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "GROUP", "BY", "T1.SupportRepId", "HAVING", "COUNT", "(", "*", ")", ">", "=", "10" ], "query_toks_no_value": [ "select", "t1", ".", "firstname", ",", "t1", ".", "supportrepid", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Please show the employee first names and ids of employees who serve at least 10 customers.", "question_toks": [ "please", "show", "employee", "first", "name", "and", "id", "of", "employee", "who", "serve", "at", "least", "10", "customer", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Please", "show", "the", "employee", "first", "names", "and", "ids", "of", "employees", "who", "serve", "at", "least", "10", "customers", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "employee" ], [ "first", "name" ], [ "and" ], [ "id" ], [ "of" ], [ "employee" ], [ "who" ], [ "serve" ], [ "at" ], [ "least" ], [ "10" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "VB" ], [ "employee", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "serve", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "10", "CD" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [ "1", "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) A(0) C(17) T(2) Filter(0) Filter(18) A(0) C(17) T(2) Root(5) Sel(0) N(0) A(0) C(18) T(3) Filter(7) A(3) C(0) T(3) V(1)" }, { "db_id": "chinook_1", "query": "SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10", "query_toks": [ "SELECT", "T1.FirstName", ",", "T1.SupportRepId", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "GROUP", "BY", "T1.SupportRepId", "HAVING", "COUNT", "(", "*", ")", ">", "=", "10" ], "query_toks_no_value": [ "select", "t1", ".", "firstname", ",", "t1", ".", "supportrepid", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the first names and support rep ids for employees serving 10 or more customers?", "question_toks": [ "what", "are", "first", "name", "and", "support", "rep", "id", "for", "employee", "serving", "10", "or", "more", "customer", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 10.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "support", "rep", "ids", "for", "employees", "serving", "10", "or", "more", "customers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "first", "name" ], [ "and" ], [ "support" ], [ "rep" ], [ "id" ], [ "for" ], [ "employee" ], [ "serving" ], [ "10" ], [ "or" ], [ "more" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "support", "NN" ], [ "rep", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "employee", "NN" ], [ "serving", "VBG" ], [ "10", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [ "1", "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(2) A(0) C(17) T(2) Filter(0) Filter(18) A(0) C(17) T(2) Root(5) Sel(0) N(0) A(0) C(18) T(3) Filter(7) A(3) C(0) T(3) V(1)" }, { "db_id": "chinook_1", "query": "SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20", "query_toks": [ "SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "GROUP", "BY", "T1.SupportRepId", "HAVING", "COUNT", "(", "*", ")", "<", "=", "20" ], "query_toks_no_value": [ "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "Please show the employee last names that serves no more than 20 customers.", "question_toks": [ "please", "show", "employee", "last", "name", "that", "serf", "no", "more", "than", "20", "customer", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 20.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Please", "show", "the", "employee", "last", "names", "that", "serves", "no", "more", "than", "20", "customers", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "employee" ], [ "last", "name" ], [ "that" ], [ "serf" ], [ "no" ], [ "more" ], [ "than" ], [ "20" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "employee", "NN" ], [ "last", "JJ" ], [ "name", "NN" ], [ "that", "WDT" ], [ "serf", "VBZ" ], [ "no", "DT" ], [ "more", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(17) T(2) Root(5) Sel(0) N(0) A(0) C(18) T(3) Filter(6) A(3) C(0) T(3) V(0)" }, { "db_id": "chinook_1", "query": "SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20", "query_toks": [ "SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "GROUP", "BY", "T1.SupportRepId", "HAVING", "COUNT", "(", "*", ")", "<", "=", "20" ], "query_toks_no_value": [ "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(", "*", ")", "<", "=", "value" ], "question": "What are the last names of employees who serve at most 20 customers?", "question_toks": [ "what", "are", "last", "name", "of", "employee", "who", "serve", "at", "most", "20", "customer", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 19, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 6, [ 0, [ 3, 0, false ], null ], 20.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 18, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "last", "names", "of", "employees", "who", "serve", "at", "most", "20", "customers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "last", "name" ], [ "of" ], [ "employee" ], [ "who" ], [ "serve" ], [ "at" ], [ "most" ], [ "20" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "who", "WP" ], [ "serve", "VBP" ], [ "at", "IN" ], [ "most", "JJS" ], [ "20", "CD" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [ "20" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(17) T(2) Root(5) Sel(0) N(0) A(0) C(18) T(3) Filter(6) A(3) C(0) T(3) V(0)" }, { "db_id": "chinook_1", "query": "SELECT Title FROM ALBUM ORDER BY Title", "query_toks": [ "SELECT", "Title", "FROM", "ALBUM", "ORDER", "BY", "Title" ], "query_toks_no_value": [ "select", "title", "from", "album", "order", "by", "title" ], "question": "Please list all album titles in alphabetical order.", "question_toks": [ "please", "list", "all", "album", "title", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Please", "list", "all", "album", "titles", "in", "alphabetical", "order", "." ], "question_arg": [ [ "please" ], [ "list" ], [ "all" ], [ "album" ], [ "title" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "list", "NN" ], [ "all", "DT" ], [ "album", "JJ" ], [ "title", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "chinook_1", "query": "SELECT Title FROM ALBUM ORDER BY Title", "query_toks": [ "SELECT", "Title", "FROM", "ALBUM", "ORDER", "BY", "Title" ], "query_toks_no_value": [ "select", "title", "from", "album", "order", "by", "title" ], "question": "What are all the album titles, in alphabetical order?", "question_toks": [ "what", "are", "all", "album", "title", ",", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "all", "the", "album", "titles", ",", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "album" ], [ "title" ], [ "," ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "album", "JJ" ], [ "title", "NN" ], [ ",", "," ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "chinook_1", "query": "SELECT T2.Name , T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name", "query_toks": [ "SELECT", "T2.Name", ",", "T1.ArtistId", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistID", "GROUP", "BY", "T1.ArtistId", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3", "ORDER", "BY", "T2.Name" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "artistid", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t1", ".", "artistid", "having", "count", "(", "*", ")", ">", "=", "value", "order", "by", "t2", ".", "name" ], "question": "Please list the name and id of all artists that have at least 3 albums in alphabetical order.", "question_toks": [ "please", "list", "name", "and", "id", "of", "all", "artist", "that", "have", "at", "least", "3", "album", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Please", "list", "the", "name", "and", "id", "of", "all", "artists", "that", "have", "at", "least", "3", "albums", "in", "alphabetical", "order", "." ], "question_arg": [ [ "please" ], [ "list" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "all" ], [ "artist" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "3" ], [ "album" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "JJ" ], [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "album", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(3) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "chinook_1", "query": "SELECT T2.Name , T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name", "query_toks": [ "SELECT", "T2.Name", ",", "T1.ArtistId", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistID", "GROUP", "BY", "T1.ArtistId", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3", "ORDER", "BY", "T2.Name" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "artistid", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t1", ".", "artistid", "having", "count", "(", "*", ")", ">", "=", "value", "order", "by", "t2", ".", "name" ], "question": "What are the names and ids of artists with 3 or more albums, listed in alphabetical order?", "question_toks": [ "what", "are", "name", "and", "id", "of", "artist", "with", "3", "or", "more", "album", ",", "listed", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 3, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "ids", "of", "artists", "with", "3", "or", "more", "albums", ",", "listed", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "artist" ], [ "with" ], [ "3" ], [ "or" ], [ "more" ], [ "album" ], [ "," ], [ "listed" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "with", "IN" ], [ "3", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "album", "NNS" ], [ ",", "," ], [ "listed", "VBN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(3) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "chinook_1", "query": "SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId", "query_toks": [ "SELECT", "Name", "FROM", "ARTIST", "EXCEPT", "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId" ], "query_toks_no_value": [ "select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid" ], "question": "Find the names of artists that do not have any albums.", "question_toks": [ "find", "name", "of", "artist", "that", "do", "not", "have", "any", "album", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "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": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "names", "of", "artists", "that", "do", "not", "have", "any", "albums", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "artist" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "album" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "album", "NN" ], [ ".", "." ] ], "values": [], "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(3) T(0)" }, { "db_id": "chinook_1", "query": "SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId", "query_toks": [ "SELECT", "Name", "FROM", "ARTIST", "EXCEPT", "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId" ], "query_toks_no_value": [ "select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid" ], "question": "What are the names of artists who have not released any albums?", "question_toks": [ "what", "are", "name", "of", "artist", "who", "have", "not", "released", "any", "album", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 3, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 4, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 0 ] ], "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": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "artists", "who", "have", "not", "released", "any", "albums", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "have" ], [ "not" ], [ "released" ], [ "any" ], [ "album" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "not", "RB" ], [ "released", "VBN" ], [ "any", "DT" ], [ "album", "NN" ], [ "?", "." ] ], "values": [], "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(3) T(0)" }, { "db_id": "chinook_1", "query": "SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"", "query_toks": [ "SELECT", "AVG", "(", "T2.UnitPrice", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Rock", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "unitprice", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ], "question": "What is the average unit price of rock tracks?", "question_toks": [ "what", "is", "average", "unit", "price", "of", "rock", "track", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 64, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Rock\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "is", "the", "average", "unit", "price", "of", "rock", "tracks", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "unit", "price" ], [ "of" ], [ "rock" ], [ "track" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "unit", "NN" ], [ "price", "NN" ], [ "of", "IN" ], [ "rock", "NN" ], [ "track", "NN" ], [ "?", "." ] ], "values": [ "Rock" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(33) T(10) Filter(2) A(0) C(4) T(4) V(0)" }, { "db_id": "chinook_1", "query": "SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Rock\"", "query_toks": [ "SELECT", "AVG", "(", "T2.UnitPrice", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Rock", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "unitprice", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ], "question": "Find the average unit price of tracks from the Rock genre.", "question_toks": [ "find", "average", "unit", "price", "of", "track", "from", "rock", "genre", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 64, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Rock\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "average", "unit", "price", "of", "tracks", "from", "the", "Rock", "genre", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "unit", "price" ], [ "of" ], [ "track" ], [ "from" ], [ "rock" ], [ "genre" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "unit", "NN" ], [ "price", "NN" ], [ "of", "IN" ], [ "track", "NN" ], [ "from", "IN" ], [ "rock", "NN" ], [ "genre", "NN" ], [ ".", "." ] ], "values": [ "Rock" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(33) T(10) Filter(2) A(0) C(4) T(4) V(0)" }, { "db_id": "chinook_1", "query": "SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Pop\"", "query_toks": [ "SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Pop", "''" ], "query_toks_no_value": [ "select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ], "question": "What are the duration of the longest and shortest pop tracks in milliseconds?", "question_toks": [ "what", "are", "duration", "of", "longest", "and", "shortest", "pop", "track", "in", "millisecond", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 62, false ], null ] ], [ 2, [ 0, [ 0, 62, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Pop\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "duration", "of", "the", "longest", "and", "shortest", "pop", "tracks", "in", "milliseconds", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "duration" ], [ "of" ], [ "longest" ], [ "and" ], [ "shortest" ], [ "pop" ], [ "track" ], [ "in" ], [ "millisecond" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "duration", "NN" ], [ "of", "IN" ], [ "longest", "JJS" ], [ "and", "CC" ], [ "shortest", "JJS" ], [ "pop", "NN" ], [ "track", "NN" ], [ "in", "IN" ], [ "millisecond", "NN" ], [ "?", "." ] ], "values": [ "Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(38) T(10) A(2) C(38) T(10) Filter(2) A(0) C(4) T(4) V(0)" }, { "db_id": "chinook_1", "query": "SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Pop\"", "query_toks": [ "SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Pop", "''" ], "query_toks_no_value": [ "select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ], "question": "Find the maximum and minimum millisecond lengths of pop tracks.", "question_toks": [ "find", "maximum", "and", "minimum", "millisecond", "length", "of", "pop", "track", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 34, false ], null ], [ 0, 60, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 62, false ], null ] ], [ 2, [ 0, [ 0, 62, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Pop\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "maximum", "and", "minimum", "millisecond", "lengths", "of", "pop", "tracks", "." ], "question_arg": [ [ "find" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "millisecond" ], [ "length" ], [ "of" ], [ "pop" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "millisecond", "NN" ], [ "length", "NN" ], [ "of", "IN" ], [ "pop", "NN" ], [ "track", "NN" ], [ ".", "." ] ], "values": [ "Pop" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(38) T(10) A(2) C(38) T(10) Filter(2) A(0) C(4) T(4) V(0)" }, { "db_id": "chinook_1", "query": "SELECT BirthDate FROM EMPLOYEE WHERE City = \"Edmonton\"", "query_toks": [ "SELECT", "BirthDate", "FROM", "EMPLOYEE", "WHERE", "City", "=", "``", "Edmonton", "''" ], "query_toks_no_value": [ "select", "birthdate", "from", "employee", "where", "city", "=", "value" ], "question": "What are the birth dates of employees living in Edmonton?", "question_toks": [ "what", "are", "birth", "date", "of", "employee", "living", "in", "edmonton", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 27, false ], null ], "\"Edmonton\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "birth", "dates", "of", "employees", "living", "in", "Edmonton", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "birth", "date" ], [ "of" ], [ "employee" ], [ "living" ], [ "in" ], [ "edmonton" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "city" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "birth", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "employee", "NN" ], [ "living", "NN" ], [ "in", "IN" ], [ "edmonton", "NN" ], [ "?", "." ] ], "values": [ "Edmonton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(3) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "chinook_1", "query": "SELECT BirthDate FROM EMPLOYEE WHERE City = \"Edmonton\"", "query_toks": [ "SELECT", "BirthDate", "FROM", "EMPLOYEE", "WHERE", "City", "=", "``", "Edmonton", "''" ], "query_toks_no_value": [ "select", "birthdate", "from", "employee", "where", "city", "=", "value" ], "question": "Find the birth dates corresponding to employees who live in the city of Edmonton.", "question_toks": [ "find", "birth", "date", "corresponding", "to", "employee", "who", "live", "in", "city", "of", "edmonton", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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, 27, false ], null ], "\"Edmonton\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "birth", "dates", "corresponding", "to", "employees", "who", "live", "in", "the", "city", "of", "Edmonton", "." ], "question_arg": [ [ "find" ], [ "birth", "date" ], [ "corresponding" ], [ "to" ], [ "employee" ], [ "who" ], [ "live" ], [ "in" ], [ "city" ], [ "of" ], [ "edmonton" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "city" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "birth", "NN" ], [ "date", "NN" ], [ "corresponding", "NN" ], [ "to", "TO" ], [ "employee", "NN" ], [ "who", "WP" ], [ "live", "VBP" ], [ "in", "IN" ], [ "city", "NN" ], [ "of", "IN" ], [ "edmonton", "NN" ], [ ".", "." ] ], "values": [ "Edmonton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(20) T(3) Filter(2) A(0) C(10) T(3) V(0)" }, { "db_id": "chinook_1", "query": "SELECT distinct(UnitPrice) FROM TRACK", "query_toks": [ "SELECT", "distinct", "(", "UnitPrice", ")", "FROM", "TRACK" ], "query_toks_no_value": [ "select", "distinct", "(", "unitprice", ")", "from", "track" ], "question": "What are the distinct unit prices of all tracks?", "question_toks": [ "what", "are", "distinct", "unit", "price", "of", "all", "track", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 64, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "distinct", "unit", "prices", "of", "all", "tracks", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "unit", "price" ], [ "of" ], [ "all" ], [ "track" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "unit", "NN" ], [ "price", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "track", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(33) T(10)" }, { "db_id": "chinook_1", "query": "SELECT distinct(UnitPrice) FROM TRACK", "query_toks": [ "SELECT", "distinct", "(", "UnitPrice", ")", "FROM", "TRACK" ], "query_toks_no_value": [ "select", "distinct", "(", "unitprice", ")", "from", "track" ], "question": "Find the distinct unit prices for tracks.", "question_toks": [ "find", "distinct", "unit", "price", "for", "track", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 64, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "distinct", "unit", "prices", "for", "tracks", "." ], "question_arg": [ [ "find" ], [ "distinct" ], [ "unit", "price" ], [ "for" ], [ "track" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "distinct", "JJ" ], [ "unit", "NN" ], [ "price", "NN" ], [ "for", "IN" ], [ "track", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(33) T(10)" }, { "db_id": "chinook_1", "query": "SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ARTIST", "WHERE", "artistid", "NOT", "IN", "(", "SELECT", "artistid", "FROM", "ALBUM", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "artist", "where", "artistid", "not", "in", "(", "select", "artistid", "from", "album", ")" ], "question": "How many artists do not have any album?", "question_toks": [ "how", "many", "artist", "do", "not", "have", "any", "album", "?" ], "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, 4, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "How", "many", "artists", "do", "not", "have", "any", "album", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "artist" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "album" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "artist", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "album", "NN" ], [ "?", "." ] ], "values": [], "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(0)" }, { "db_id": "chinook_1", "query": "SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "ARTIST", "WHERE", "artistid", "NOT", "IN", "(", "SELECT", "artistid", "FROM", "ALBUM", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "artist", "where", "artistid", "not", "in", "(", "select", "artistid", "from", "album", ")" ], "question": "Cound the number of artists who have not released an album.", "question_toks": [ "cound", "number", "of", "artist", "who", "have", "not", "released", "an", "album", "." ], "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, 4, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Cound", "the", "number", "of", "artists", "who", "have", "not", "released", "an", "album", "." ], "question_arg": [ [ "cound" ], [ "number" ], [ "of" ], [ "artist" ], [ "who" ], [ "have" ], [ "not" ], [ "released" ], [ "an" ], [ "album" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "cound", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "not", "RB" ], [ "released", "VBN" ], [ "an", "DT" ], [ "album", "NN" ], [ ".", "." ] ], "values": [ "Numbers" ], "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(0)" }, { "db_id": "chinook_1", "query": "SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock'", "query_toks": [ "SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Reggae", "'", "INTERSECT", "SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Rock", "'" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value" ], "question": "What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?", "question_toks": [ "what", "are", "album", "title", "for", "album", "containing", "both", "'", "reggae", "'", "and", "'", "rock", "'", "genre", "track", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 58, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 58, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 10 ] ] }, "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, 58, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Rock\"", 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, 58, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Reggae\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "What", "are", "the", "album", "titles", "for", "albums", "containing", "both", "'Reggae", "'", "and", "'Rock", "'", "genre", "tracks", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "album" ], [ "title" ], [ "for" ], [ "album" ], [ "containing" ], [ "both" ], [ "'" ], [ "reggae" ], [ "'" ], [ "and" ], [ "'" ], [ "rock" ], [ "'" ], [ "genre" ], [ "track" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "album", "JJ" ], [ "title", "NN" ], [ "for", "IN" ], [ "album", "NN" ], [ "containing", "VBG" ], [ "both", "DT" ], [ "'", "''" ], [ "reggae", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "rock", "NN" ], [ "'", "''" ], [ "genre", "JJ" ], [ "track", "NN" ], [ "?", "." ] ], "values": [ "Reggae", "Rock" ], "rule_label": "Root1(0) 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(10) Filter(2) A(0) C(4) T(4) V(0) 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(10) Filter(2) A(0) C(4) T(4) V(1)" }, { "db_id": "chinook_1", "query": "SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock'", "query_toks": [ "SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Reggae", "'", "INTERSECT", "SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Rock", "'" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value" ], "question": "Find the titles of albums that contain tracks of both the Reggae and Rock genres.", "question_toks": [ "find", "title", "of", "album", "that", "contain", "track", "of", "both", "reggae", "and", "rock", "genre", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 58, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 58, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 10 ] ] }, "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, 58, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Rock\"", 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, 58, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], "\"Reggae\"", null ] ] }, "names": [ "*", "album id", "title", "artist id", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "last name", "first name", "title", "reports to", "birth date", "hire date", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "genre id", "name", "invoice id", "customer id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "invoice id", "track id", "unit price", "quantity", "media type id", "name", "play list id", "name", "play list id", "track id", "track id", "name", "album id", "media type id", "genre id", "composer", "milliseconds", "bytes", "unit price" ], "table_names": [ "album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track" ], "col_set": [ "*", "album id", "title", "artist id", "name", "customer id", "first name", "last name", "company", "address", "city", "state", "country", "postal code", "phone", "fax", "email", "support representative id", "employee id", "reports to", "birth date", "hire date", "genre id", "invoice id", "invoice date", "billing address", "billing city", "billing state", "billing country", "billing postal code", "total", "invoice line id", "track id", "unit price", "quantity", "media type id", "play list id", "composer", "milliseconds", "bytes" ], "col_table": [ -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10 ], "keys": { "3": 4, "4": 4, "18": 19, "19": 19, "23": 19, "37": 6, "6": 6, "47": 56, "56": 56, "46": 36, "36": 36, "55": 56, "54": 54, "52": 52, "59": 50, "50": 50, "60": 34, "34": 34, "58": 1, "1": 1, "45": 45 }, "origin_question_toks": [ "Find", "the", "titles", "of", "albums", "that", "contain", "tracks", "of", "both", "the", "Reggae", "and", "Rock", "genres", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "album" ], [ "that" ], [ "contain" ], [ "track" ], [ "of" ], [ "both" ], [ "reggae" ], [ "and" ], [ "rock" ], [ "genre" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "album", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "track", "NN" ], [ "of", "IN" ], [ "both", "DT" ], [ "reggae", "NNS" ], [ "and", "CC" ], [ "rock", "NN" ], [ "genre", "NN" ], [ ".", "." ] ], "values": [ "Rock", "Reggae" ], "rule_label": "Root1(0) 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(10) Filter(2) A(0) C(4) T(4) V(1) 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(10) Filter(2) A(0) C(4) T(4) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT customer_phone FROM available_policies", "query_toks": [ "SELECT", "customer_phone", "FROM", "available_policies" ], "query_toks_no_value": [ "select", "customer_phone", "from", "available_policies" ], "question": "Find all the phone numbers.", "question_toks": [ "find", "all", "phone", "number", "." ], "sql": { "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": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Find", "all", "the", "phone", "numbers", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "phone" ], [ "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "phone", "NN" ], [ "number", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "insurance_fnol", "query": "SELECT customer_phone FROM available_policies", "query_toks": [ "SELECT", "customer_phone", "FROM", "available_policies" ], "query_toks_no_value": [ "select", "customer_phone", "from", "available_policies" ], "question": "What are all the phone numbers?", "question_toks": [ "what", "are", "all", "phone", "number", "?" ], "sql": { "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": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "What", "are", "all", "the", "phone", "numbers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "phone" ], [ "number" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "phone", "NN" ], [ "number", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "insurance_fnol", "query": "SELECT customer_phone FROM available_policies WHERE policy_type_code = \"Life Insurance\"", "query_toks": [ "SELECT", "customer_phone", "FROM", "available_policies", "WHERE", "policy_type_code", "=", "``", "Life", "Insurance", "''" ], "query_toks_no_value": [ "select", "customer_phone", "from", "available_policies", "where", "policy_type_code", "=", "value" ], "question": "What are the customer phone numbers under the policy \"Life Insurance\"?", "question_toks": [ "what", "are", "customer", "phone", "number", "under", "policy", "'", "life", "insurance", "'", "?" ], "sql": { "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": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Life Insurance\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "What", "are", "the", "customer", "phone", "numbers", "under", "the", "policy", "``", "Life", "Insurance", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "customer", "phone" ], [ "number" ], [ "under" ], [ "policy" ], [ "'" ], [ "life" ], [ "insurance" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "customer", "NN" ], [ "phone", "NN" ], [ "number", "NN" ], [ "under", "IN" ], [ "policy", "NN" ], [ "'", "''" ], [ "life", "NN" ], [ "insurance", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Life Insurance" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT customer_phone FROM available_policies WHERE policy_type_code = \"Life Insurance\"", "query_toks": [ "SELECT", "customer_phone", "FROM", "available_policies", "WHERE", "policy_type_code", "=", "``", "Life", "Insurance", "''" ], "query_toks_no_value": [ "select", "customer_phone", "from", "available_policies", "where", "policy_type_code", "=", "value" ], "question": "What are the phone numbers of customers using the policy with the code \"Life Insurance\"?", "question_toks": [ "what", "are", "phone", "number", "of", "customer", "using", "policy", "with", "code", "'", "life", "insurance", "'", "?" ], "sql": { "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": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Life Insurance\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "What", "are", "the", "phone", "numbers", "of", "customers", "using", "the", "policy", "with", "the", "code", "``", "Life", "Insurance", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "phone" ], [ "number" ], [ "of" ], [ "customer" ], [ "using" ], [ "policy" ], [ "with" ], [ "code" ], [ "'" ], [ "life" ], [ "insurance" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "using", "VBG" ], [ "policy", "NN" ], [ "with", "IN" ], [ "code", "NN" ], [ "'", "''" ], [ "life", "NN" ], [ "insurance", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Life Insurance" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "policy_type_code", "FROM", "available_policies", "GROUP", "BY", "policy_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "policy_type_code", "from", "available_policies", "group", "by", "policy_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which policy type has the most records in the database?", "question_toks": [ "which", "policy", "type", "ha", "most", "record", "in", "database", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Which", "policy", "type", "has", "the", "most", "records", "in", "the", "database", "?" ], "question_arg": [ [ "which" ], [ "policy", "type", "code" ], [ "ha" ], [ "most" ], [ "record" ], [ "in" ], [ "database" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "policy", "NN" ], [ "type", "NN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "record", "NN" ], [ "in", "IN" ], [ "database", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "insurance_fnol", "query": "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "policy_type_code", "FROM", "available_policies", "GROUP", "BY", "policy_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "policy_type_code", "from", "available_policies", "group", "by", "policy_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which policy type appears most frequently in the available policies?", "question_toks": [ "which", "policy", "type", "appears", "most", "frequently", "in", "available", "policy", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Which", "policy", "type", "appears", "most", "frequently", "in", "the", "available", "policies", "?" ], "question_arg": [ [ "which" ], [ "policy", "type", "code" ], [ "appears" ], [ "most" ], [ "frequently" ], [ "in" ], [ "available", "policy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "policy", "NN" ], [ "type", "NN" ], [ "appears", "VBZ" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ "in", "IN" ], [ "available", "JJ" ], [ "policy", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "insurance_fnol", "query": "SELECT customer_phone FROM available_policies WHERE policy_type_code = (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "customer_phone", "FROM", "available_policies", "WHERE", "policy_type_code", "=", "(", "SELECT", "policy_type_code", "FROM", "available_policies", "GROUP", "BY", "policy_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "customer_phone", "from", "available_policies", "where", "policy_type_code", "=", "(", "select", "policy_type_code", "from", "available_policies", "group", "by", "policy_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "What are all the customer phone numbers under the most popular policy type?", "question_toks": [ "what", "are", "all", "customer", "phone", "number", "under", "most", "popular", "policy", "type", "?" ], "sql": { "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": [ [ false, 2, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "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": [] }, null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "What", "are", "all", "the", "customer", "phone", "numbers", "under", "the", "most", "popular", "policy", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "customer", "phone" ], [ "number" ], [ "under" ], [ "most" ], [ "popular" ], [ "policy", "type", "code" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "customer", "NN" ], [ "phone", "NN" ], [ "number", "NN" ], [ "under", "IN" ], [ "most", "RBS" ], [ "popular", "JJ" ], [ "policy", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(11) A(0) C(6) T(2) Root(2) Sel(0) N(0) A(0) C(6) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "insurance_fnol", "query": "SELECT customer_phone FROM available_policies WHERE policy_type_code = (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "customer_phone", "FROM", "available_policies", "WHERE", "policy_type_code", "=", "(", "SELECT", "policy_type_code", "FROM", "available_policies", "GROUP", "BY", "policy_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "customer_phone", "from", "available_policies", "where", "policy_type_code", "=", "(", "select", "policy_type_code", "from", "available_policies", "group", "by", "policy_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "Find the phone numbers of customers using the most common policy type among the available policies.", "question_toks": [ "find", "phone", "number", "of", "customer", "using", "most", "common", "policy", "type", "among", "available", "policy", "." ], "sql": { "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": [ [ false, 2, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "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": [] }, null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Find", "the", "phone", "numbers", "of", "customers", "using", "the", "most", "common", "policy", "type", "among", "the", "available", "policies", "." ], "question_arg": [ [ "find" ], [ "phone" ], [ "number" ], [ "of" ], [ "customer" ], [ "using" ], [ "most" ], [ "common" ], [ "policy", "type", "code" ], [ "among" ], [ "available", "policy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "using", "VBG" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "policy", "NN" ], [ "type", "NN" ], [ "among", "IN" ], [ "available", "JJ" ], [ "policy", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(11) A(0) C(6) T(2) Root(2) Sel(0) N(0) A(0) C(6) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "insurance_fnol", "query": "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*) > 4", "query_toks": [ "SELECT", "policy_type_code", "FROM", "available_policies", "GROUP", "BY", "policy_type_code", "HAVING", "count", "(", "*", ")", ">", "4" ], "query_toks_no_value": [ "select", "policy_type_code", "from", "available_policies", "group", "by", "policy_type_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the policy type used by more than 4 customers.", "question_toks": [ "find", "policy", "type", "used", "by", "more", "than", "4", "customer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Find", "the", "policy", "type", "used", "by", "more", "than", "4", "customers", "." ], "question_arg": [ [ "find" ], [ "policy", "type", "code" ], [ "used" ], [ "by" ], [ "more" ], [ "than" ], [ "4" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "policy", "NN" ], [ "type", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "4", "CD" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*) > 4", "query_toks": [ "SELECT", "policy_type_code", "FROM", "available_policies", "GROUP", "BY", "policy_type_code", "HAVING", "count", "(", "*", ")", ">", "4" ], "query_toks_no_value": [ "select", "policy_type_code", "from", "available_policies", "group", "by", "policy_type_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the policy types more than 4 customers use. Show their type code.", "question_toks": [ "find", "policy", "type", "more", "than", "4", "customer", "use", ".", "show", "their", "type", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Find", "the", "policy", "types", "more", "than", "4", "customers", "use", ".", "Show", "their", "type", "code", "." ], "question_arg": [ [ "find" ], [ "policy", "type", "code" ], [ "more" ], [ "than" ], [ "4" ], [ "customer" ], [ "use" ], [ "." ], [ "show" ], [ "their" ], [ "policy", "type", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "policy", "NN" ], [ "type", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "4", "CD" ], [ "customer", "NN" ], [ "use", "NN" ], [ ".", "." ], [ "show", "VB" ], [ "their", "PRP$" ], [ "type", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements", "query_toks": [ "SELECT", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "FROM", "settlements" ], "query_toks_no_value": [ "select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements" ], "question": "Find the total and average amount of settlements.", "question_toks": [ "find", "total", "and", "average", "amount", "of", "settlement", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 22, false ], null ] ], [ 5, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Find", "the", "total", "and", "average", "amount", "of", "settlements", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "and" ], [ "average" ], [ "amount" ], [ "of" ], [ "settlement" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "settlement", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(14) T(6) A(5) C(14) T(6)" }, { "db_id": "insurance_fnol", "query": "SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements", "query_toks": [ "SELECT", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "FROM", "settlements" ], "query_toks_no_value": [ "select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements" ], "question": "Return the sum and average of all settlement amounts.", "question_toks": [ "return", "sum", "and", "average", "of", "all", "settlement", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 22, false ], null ] ], [ 5, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Return", "the", "sum", "and", "average", "of", "all", "settlement", "amounts", "." ], "question_arg": [ [ "return" ], [ "sum" ], [ "and" ], [ "average" ], [ "of" ], [ "all" ], [ "settlement", "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "sum", "NN" ], [ "and", "CC" ], [ "average", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "settlement", "NN" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(14) T(6) A(5) C(14) T(6)" }, { "db_id": "insurance_fnol", "query": "SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING count(*) > 2", "query_toks": [ "SELECT", "t2.service_name", "FROM", "first_notification_of_loss", "AS", "t1", "JOIN", "services", "AS", "t2", "ON", "t1.service_id", "=", "t2.service_id", "GROUP", "BY", "t1.service_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "t2", ".", "service_name", "from", "first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_id", "=", "t2", ".", "service_id", "group", "by", "t1", ".", "service_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the name of services that have been used for more than 2 times in first notification of loss.", "question_toks": [ "find", "name", "of", "service", "that", "have", "been", "used", "for", "more", "than", "2", "time", "in", "first", "notification", "of", "loss", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "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, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Find", "the", "name", "of", "services", "that", "have", "been", "used", "for", "more", "than", "2", "times", "in", "first", "notification", "of", "loss", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "service" ], [ "that" ], [ "have" ], [ "been" ], [ "used" ], [ "for" ], [ "more" ], [ "than" ], [ "2" ], [ "time" ], [ "in" ], [ "first", "notification", "of", "loss" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "service", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "used", "VBN" ], [ "for", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "time", "NN" ], [ "in", "IN" ], [ "first", "JJ" ], [ "notification", "NN" ], [ "of", "IN" ], [ "loss", "NN" ], [ ".", "." ] ], "values": [ "1", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) 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(4) Filter(5) A(3) C(0) T(4) V(1)" }, { "db_id": "insurance_fnol", "query": "SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING count(*) > 2", "query_toks": [ "SELECT", "t2.service_name", "FROM", "first_notification_of_loss", "AS", "t1", "JOIN", "services", "AS", "t2", "ON", "t1.service_id", "=", "t2.service_id", "GROUP", "BY", "t1.service_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "t2", ".", "service_name", "from", "first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_id", "=", "t2", ".", "service_id", "group", "by", "t1", ".", "service_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which services have been used more than twice in first notification of loss? Return the service name.", "question_toks": [ "which", "service", "have", "been", "used", "more", "than", "twice", "in", "first", "notification", "of", "loss", "?", "return", "service", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "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, 15, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Which", "services", "have", "been", "used", "more", "than", "twice", "in", "first", "notification", "of", "loss", "?", "Return", "the", "service", "name", "." ], "question_arg": [ [ "which" ], [ "service" ], [ "have" ], [ "been" ], [ "used" ], [ "more" ], [ "than" ], [ "twice" ], [ "in" ], [ "first", "notification", "of", "loss" ], [ "?" ], [ "return" ], [ "service", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "service", "NN" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "used", "VBN" ], [ "more", "RBR" ], [ "than", "IN" ], [ "twice", "RB" ], [ "in", "IN" ], [ "first", "JJ" ], [ "notification", "NN" ], [ "of", "IN" ], [ "loss", "NN" ], [ "?", "." ], [ "return", "NN" ], [ "service", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "2", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) 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(4) Filter(5) A(3) C(0) T(4) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.Effective_Date", "FROM", "claims", "AS", "t1", "JOIN", "settlements", "AS", "t2", "ON", "t1.claim_id", "=", "t2.claim_id", "GROUP", "BY", "t1.claim_id", "ORDER", "BY", "sum", "(", "t2.settlement_amount", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "effective_date", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "order", "by", "sum", "(", "t2", ".", "settlement_amount", ")", "desc", "limit", "value" ], "question": "What is the effective date of the claim that has the largest amount of total settlement?", "question_toks": [ "what", "is", "effective", "date", "of", "claim", "that", "ha", "largest", "amount", "of", "total", "settlement", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 22, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "What", "is", "the", "effective", "date", "of", "the", "claim", "that", "has", "the", "largest", "amount", "of", "total", "settlement", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "effective", "date" ], [ "of" ], [ "claim" ], [ "that" ], [ "ha" ], [ "largest" ], [ "amount" ], [ "of" ], [ "total" ], [ "settlement" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "effective", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "claim", "NN" ], [ "that", "IN" ], [ "ha", "RB" ], [ "largest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "settlement", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(5) Sup(0) A(4) C(14) T(6)" }, { "db_id": "insurance_fnol", "query": "SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY sum(t2.settlement_amount) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.Effective_Date", "FROM", "claims", "AS", "t1", "JOIN", "settlements", "AS", "t2", "ON", "t1.claim_id", "=", "t2.claim_id", "GROUP", "BY", "t1.claim_id", "ORDER", "BY", "sum", "(", "t2.settlement_amount", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "effective_date", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "order", "by", "sum", "(", "t2", ".", "settlement_amount", ")", "desc", "limit", "value" ], "question": "Find the claim that has the largest total settlement amount. Return the effective date of the claim.", "question_toks": [ "find", "claim", "that", "ha", "largest", "total", "settlement", "amount", ".", "return", "effective", "date", "of", "claim", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 16, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 5 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 16, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 22, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Find", "the", "claim", "that", "has", "the", "largest", "total", "settlement", "amount", ".", "Return", "the", "effective", "date", "of", "the", "claim", "." ], "question_arg": [ [ "find" ], [ "claim" ], [ "that" ], [ "ha" ], [ "largest" ], [ "total" ], [ "settlement", "amount" ], [ "." ], [ "return" ], [ "effective", "date" ], [ "of" ], [ "claim" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "claim", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "total", "JJ" ], [ "settlement", "NN" ], [ "amount", "NN" ], [ ".", "." ], [ "return", "NN" ], [ "effective", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "claim", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(12) T(5) Sup(0) A(4) C(14) T(6)" }, { "db_id": "insurance_fnol", "query": "SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Dayana Robel\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "=", "``", "Dayana", "Robel", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "How many policies are listed for the customer named \"Dayana Robel\"?", "question_toks": [ "how", "many", "policy", "are", "listed", "for", "customer", "named", "'", "dayana", "robel", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 2, false ], null ], "\"Dayana Robel\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "How", "many", "policies", "are", "listed", "for", "the", "customer", "named", "``", "Dayana", "Robel", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "policy" ], [ "are" ], [ "listed" ], [ "for" ], [ "customer" ], [ "named" ], [ "'" ], [ "dayana" ], [ "robel" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "policy", "NN" ], [ "are", "VBP" ], [ "listed", "VBN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "dayana", "NN" ], [ "robel", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Dayana Robel" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT count(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Dayana Robel\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "=", "``", "Dayana", "Robel", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "Count the total number of policies used by the customer named \"Dayana Robel\".", "question_toks": [ "count", "total", "number", "of", "policy", "used", "by", "customer", "named", "'", "dayana", "robel", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 2, false ], null ], "\"Dayana Robel\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Count", "the", "total", "number", "of", "policies", "used", "by", "the", "customer", "named", "``", "Dayana", "Robel", "''", "." ], "question_arg": [ [ "count" ], [ "total" ], [ "number" ], [ "of" ], [ "policy" ], [ "used" ], [ "by" ], [ "customer" ], [ "named" ], [ "'" ], [ "dayana" ], [ "robel" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "policy", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "dayana", "NN" ], [ "robel", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Dayana Robel" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "GROUP", "BY", "t1.customer_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the customer who has the most policies listed?", "question_toks": [ "what", "is", "name", "of", "customer", "who", "ha", "most", "policy", "listed", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "customer", "who", "has", "the", "most", "policies", "listed", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "most" ], [ "policy" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "most", "JJS" ], [ "policy", "NN" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "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": "insurance_fnol", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "GROUP", "BY", "t1.customer_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which customer uses the most policies? Give me the customer name.", "question_toks": [ "which", "customer", "us", "most", "policy", "?", "give", "me", "customer", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Which", "customer", "uses", "the", "most", "policies", "?", "Give", "me", "the", "customer", "name", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "us" ], [ "most" ], [ "policy" ], [ "?" ], [ "give" ], [ "me" ], [ "customer", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "us", "PRP" ], [ "most", "RBS" ], [ "policy", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "customer", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "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": "insurance_fnol", "query": "SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = \"Dayana Robel\"", "query_toks": [ "SELECT", "DISTINCT", "t3.policy_type_code", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "available_policies", "AS", "t3", "ON", "t2.policy_id", "=", "t3.policy_id", "WHERE", "t1.customer_name", "=", "``", "Dayana", "Robel", "''" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "policy_type_code", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "available_policies", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "What are all the policy types of the customer named \"Dayana Robel\"?", "question_toks": [ "what", "are", "all", "policy", "type", "of", "customer", "named", "'", "dayana", "robel", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, 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", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Dayana Robel\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "What", "are", "all", "the", "policy", "types", "of", "the", "customer", "named", "``", "Dayana", "Robel", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "policy", "type", "code" ], [ "of" ], [ "customer" ], [ "named" ], [ "'" ], [ "dayana" ], [ "robel" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "policy", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "dayana", "NN" ], [ "robel", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Dayana Robel" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(2) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = \"Dayana Robel\"", "query_toks": [ "SELECT", "DISTINCT", "t3.policy_type_code", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "available_policies", "AS", "t3", "ON", "t2.policy_id", "=", "t3.policy_id", "WHERE", "t1.customer_name", "=", "``", "Dayana", "Robel", "''" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "policy_type_code", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "available_policies", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id", "where", "t1", ".", "customer_name", "=", "value" ], "question": "Tell me the types of the policy used by the customer named \"Dayana Robel\".", "question_toks": [ "tell", "me", "type", "of", "policy", "used", "by", "customer", "named", "'", "dayana", "robel", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, 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", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Dayana Robel\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Tell", "me", "the", "types", "of", "the", "policy", "used", "by", "the", "customer", "named", "``", "Dayana", "Robel", "''", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "type" ], [ "of" ], [ "policy" ], [ "used" ], [ "by" ], [ "customer" ], [ "named" ], [ "'" ], [ "dayana" ], [ "robel" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "type", "NN" ], [ "of", "IN" ], [ "policy", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "dayana", "NN" ], [ "robel", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Dayana Robel" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(2) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "DISTINCT", "t3.policy_type_code", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "available_policies", "AS", "t3", "ON", "t2.policy_id", "=", "t3.policy_id", "WHERE", "t1.customer_name", "=", "(", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "GROUP", "BY", "t1.customer_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "policy_type_code", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "available_policies", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id", "where", "t1", ".", "customer_name", "=", "(", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "What are all the policy types of the customer that has the most policies listed?", "question_toks": [ "what", "are", "all", "policy", "type", "of", "customer", "that", "ha", "most", "policy", "listed", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, 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", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "What", "are", "all", "the", "policy", "types", "of", "the", "customer", "that", "has", "the", "most", "policies", "listed", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "policy", "type", "code" ], [ "of" ], [ "customer" ], [ "that" ], [ "ha" ], [ "most" ], [ "policy" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "policy", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "policy", "NN" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(2) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3) Filter(11) A(0) C(2) T(0) 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": "insurance_fnol", "query": "SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY count(*) DESC LIMIT 1)", "query_toks": [ "SELECT", "DISTINCT", "t3.policy_type_code", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "available_policies", "AS", "t3", "ON", "t2.policy_id", "=", "t3.policy_id", "WHERE", "t1.customer_name", "=", "(", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "GROUP", "BY", "t1.customer_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "distinct", "t3", ".", "policy_type_code", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "available_policies", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id", "where", "t1", ".", "customer_name", "=", "(", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ], "question": "List all the policy types used by the customer enrolled in the most policies.", "question_toks": [ "list", "all", "policy", "type", "used", "by", "customer", "enrolled", "in", "most", "policy", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, 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", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "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, 8, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "List", "all", "the", "policy", "types", "used", "by", "the", "customer", "enrolled", "in", "the", "most", "policies", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "policy", "type", "code" ], [ "used" ], [ "by" ], [ "customer" ], [ "enrolled" ], [ "in" ], [ "most" ], [ "policy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "policy", "NN" ], [ "type", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "policy", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(6) T(2) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3) Filter(11) A(0) C(2) T(0) 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": "insurance_fnol", "query": "SELECT service_name FROM services ORDER BY service_name", "query_toks": [ "SELECT", "service_name", "FROM", "services", "ORDER", "BY", "service_name" ], "query_toks_no_value": [ "select", "service_name", "from", "services", "order", "by", "service_name" ], "question": "List all the services in the alphabetical order.", "question_toks": [ "list", "all", "service", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "List", "all", "the", "services", "in", "the", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "service" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "service", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(4) T(1) Order(1) A(0) C(4) T(1)" }, { "db_id": "insurance_fnol", "query": "SELECT service_name FROM services ORDER BY service_name", "query_toks": [ "SELECT", "service_name", "FROM", "services", "ORDER", "BY", "service_name" ], "query_toks_no_value": [ "select", "service_name", "from", "services", "order", "by", "service_name" ], "question": "Give me a list of all the service names sorted alphabetically.", "question_toks": [ "give", "me", "a", "list", "of", "all", "service", "name", "sorted", "alphabetically", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "all", "the", "service", "names", "sorted", "alphabetically", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "all" ], [ "service", "name" ], [ "sorted" ], [ "alphabetically" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "service", "NN" ], [ "name", "NN" ], [ "sorted", "VBD" ], [ "alphabetically", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(4) T(1) Order(1) A(0) C(4) T(1)" }, { "db_id": "insurance_fnol", "query": "SELECT count(*) FROM services", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "services" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "services" ], "question": "How many services are there?", "question_toks": [ "how", "many", "service", "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": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "How", "many", "services", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "service" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "service", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "insurance_fnol", "query": "SELECT count(*) FROM services", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "services" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "services" ], "question": "Count the total number of available services.", "question_toks": [ "count", "total", "number", "of", "available", "service", "." ], "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": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Count", "the", "total", "number", "of", "available", "services", "." ], "question_arg": [ [ "count" ], [ "total" ], [ "number" ], [ "of" ], [ "available" ], [ "service" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "available", "JJ" ], [ "service", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "insurance_fnol", "query": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "Find the names of users who do not have a first notification of loss record.", "question_toks": [ "find", "name", "of", "user", "who", "do", "not", "have", "a", "first", "notification", "of", "loss", "record", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "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, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "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": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Find", "the", "names", "of", "users", "who", "do", "not", "have", "a", "first", "notification", "of", "loss", "record", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "user" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "first", "notification", "of", "loss" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "first", "JJ" ], [ "notification", "NN" ], [ "of", "IN" ], [ "loss", "NN" ], [ "record", "NN" ], [ ".", "." ] ], "values": [ "1" ], "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(1) T(4)" }, { "db_id": "insurance_fnol", "query": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id", "query_toks": [ "SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id" ], "query_toks_no_value": [ "select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "Which customers do not have a first notification of loss record? Give me the customer names.", "question_toks": [ "which", "customer", "do", "not", "have", "a", "first", "notification", "of", "loss", "record", "?", "give", "me", "customer", "name", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "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, 13, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "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": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Which", "customers", "do", "not", "have", "a", "first", "notification", "of", "loss", "record", "?", "Give", "me", "the", "customer", "names", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "do" ], [ "not" ], [ "have" ], [ "a" ], [ "first", "notification", "of", "loss" ], [ "record" ], [ "?" ], [ "give" ], [ "me" ], [ "customer", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "first", "JJ" ], [ "notification", "NN" ], [ "of", "IN" ], [ "loss", "NN" ], [ "record", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "customer", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "1" ], "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(1) T(4)" }, { "db_id": "insurance_fnol", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"Close a policy\" OR t3.service_name = \"Upgrade a policy\"", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "Close", "a", "policy", "''", "OR", "t3.service_name", "=", "``", "Upgrade", "a", "policy", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value", "or", "t3", ".", "service_name", "=", "value" ], "question": "Find the names of customers who have used either the service \"Close a policy\" or the service \"Upgrade a policy\".", "question_toks": [ "find", "name", "of", "customer", "who", "have", "used", "either", "service", "'", "close", "a", "policy", "'", "or", "service", "'", "upgrade", "a", "policy", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "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, 13, 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, 4, false ], null ], "\"Close a policy\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Upgrade a policy\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Find", "the", "names", "of", "customers", "who", "have", "used", "either", "the", "service", "``", "Close", "a", "policy", "''", "or", "the", "service", "``", "Upgrade", "a", "policy", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "used" ], [ "either" ], [ "service" ], [ "'" ], [ "close" ], [ "a" ], [ "policy" ], [ "'" ], [ "or" ], [ "service" ], [ "'" ], [ "upgrade" ], [ "a" ], [ "policy" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "used", "VBN" ], [ "either", "DT" ], [ "service", "NN" ], [ "'", "''" ], [ "close", "RB" ], [ "a", "DT" ], [ "policy", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "service", "NN" ], [ "'", "''" ], [ "upgrade", "VBD" ], [ "a", "DT" ], [ "policy", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Upgrade a policy", "Close a policy" ], "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(4) Filter(1) Filter(2) A(0) C(4) T(1) V(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"Close a policy\" OR t3.service_name = \"Upgrade a policy\"", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "Close", "a", "policy", "''", "OR", "t3.service_name", "=", "``", "Upgrade", "a", "policy", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value", "or", "t3", ".", "service_name", "=", "value" ], "question": "Which customers have used the service named \"Close a policy\" or \"Upgrade a policy\"? Give me the customer names.", "question_toks": [ "which", "customer", "have", "used", "service", "named", "'", "close", "a", "policy", "'", "or", "'", "upgrade", "a", "policy", "'", "?", "give", "me", "customer", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "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, 13, 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, 4, false ], null ], "\"Close a policy\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Upgrade a policy\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Which", "customers", "have", "used", "the", "service", "named", "``", "Close", "a", "policy", "''", "or", "``", "Upgrade", "a", "policy", "''", "?", "Give", "me", "the", "customer", "names", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "have" ], [ "used" ], [ "service" ], [ "named" ], [ "'" ], [ "close" ], [ "a" ], [ "policy" ], [ "'" ], [ "or" ], [ "'" ], [ "upgrade" ], [ "a" ], [ "policy" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "customer", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "used", "VBN" ], [ "service", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "close", "RB" ], [ "a", "DT" ], [ "policy", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "''" ], [ "upgrade", "JJ" ], [ "a", "DT" ], [ "policy", "NN" ], [ "'", "POS" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "customer", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Upgrade a policy", "Close a policy" ], "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(4) Filter(1) Filter(2) A(0) C(4) T(1) V(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"Close a policy\" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"New policy application\"", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "Close", "a", "policy", "''", "INTERSECT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "New", "policy", "application", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value", "intersect", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value" ], "question": "Find the names of customers who have used both the service \"Close a policy\" and the service \"New policy application\".", "question_toks": [ "find", "name", "of", "customer", "who", "have", "used", "both", "service", "'", "close", "a", "policy", "'", "and", "service", "'", "new", "policy", "application", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "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, 13, 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, 4, false ], null ], "\"New policy application\"", 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, 13, 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, 4, false ], null ], "\"Close a policy\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Find", "the", "names", "of", "customers", "who", "have", "used", "both", "the", "service", "``", "Close", "a", "policy", "''", "and", "the", "service", "``", "New", "policy", "application", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "used" ], [ "both" ], [ "service" ], [ "'" ], [ "close" ], [ "a" ], [ "policy" ], [ "'" ], [ "and" ], [ "service" ], [ "'" ], [ "new" ], [ "policy" ], [ "application" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "used", "VBN" ], [ "both", "DT" ], [ "service", "NN" ], [ "'", "''" ], [ "close", "RB" ], [ "a", "DT" ], [ "policy", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "service", "NN" ], [ "'", "''" ], [ "new", "JJ" ], [ "policy", "NN" ], [ "application", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Close a policy", "New policy application" ], "rule_label": "Root1(0) 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(4) Filter(2) A(0) C(4) T(1) V(0) 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(4) Filter(2) A(0) C(4) T(1) V(1)" }, { "db_id": "insurance_fnol", "query": "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"Close a policy\" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"New policy application\"", "query_toks": [ "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "Close", "a", "policy", "''", "INTERSECT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "New", "policy", "application", "''" ], "query_toks_no_value": [ "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value", "intersect", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value" ], "question": "Which customers have used both the service named \"Close a policy\" and the service named \"Upgrade a policy\"? Give me the customer names.", "question_toks": [ "which", "customer", "have", "used", "both", "service", "named", "'", "close", "a", "policy", "'", "and", "service", "named", "'", "upgrade", "a", "policy", "'", "?", "give", "me", "customer", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "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, 13, 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, 4, false ], null ], "\"New policy application\"", 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, 13, 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, 4, false ], null ], "\"Close a policy\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Which", "customers", "have", "used", "both", "the", "service", "named", "``", "Close", "a", "policy", "''", "and", "the", "service", "named", "``", "Upgrade", "a", "policy", "''", "?", "Give", "me", "the", "customer", "names", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "have" ], [ "used" ], [ "both" ], [ "service" ], [ "named" ], [ "'" ], [ "close" ], [ "a" ], [ "policy" ], [ "'" ], [ "and" ], [ "service" ], [ "named" ], [ "'" ], [ "upgrade" ], [ "a" ], [ "policy" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "customer", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "used", "VBN" ], [ "both", "DT" ], [ "service", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "close", "RB" ], [ "a", "DT" ], [ "policy", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "service", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "upgrade", "VB" ], [ "a", "DT" ], [ "policy", "NN" ], [ "'", "POS" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "customer", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Upgrade a policy", "Close a policy", "New policy application" ], "rule_label": "Root1(0) 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(4) Filter(2) A(0) C(4) T(1) V(1) 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(4) Filter(2) A(0) C(4) T(1) V(2)" }, { "db_id": "insurance_fnol", "query": "SELECT customer_id FROM customers WHERE customer_name LIKE \"%Diana%\"", "query_toks": [ "SELECT", "customer_id", "FROM", "customers", "WHERE", "customer_name", "LIKE", "``", "%", "Diana", "%", "''" ], "query_toks_no_value": [ "select", "customer_id", "from", "customers", "where", "customer_name", "like", "value" ], "question": "Find the IDs of customers whose name contains \"Diana\".", "question_toks": [ "find", "id", "of", "customer", "whose", "name", "contains", "'", "diana", "'", "." ], "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, 9, [ 0, [ 0, 2, false ], null ], "\"%Diana%\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Find", "the", "IDs", "of", "customers", "whose", "name", "contains", "``", "Diana", "''", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "customer" ], [ "whose" ], [ "name" ], [ "contains" ], [ "'" ], [ "diana" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "'", "POS" ], [ "diana", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Diana" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT customer_id FROM customers WHERE customer_name LIKE \"%Diana%\"", "query_toks": [ "SELECT", "customer_id", "FROM", "customers", "WHERE", "customer_name", "LIKE", "``", "%", "Diana", "%", "''" ], "query_toks_no_value": [ "select", "customer_id", "from", "customers", "where", "customer_name", "like", "value" ], "question": "What are the IDs of customers who have \"Diana\" in part of their names?", "question_toks": [ "what", "are", "id", "of", "customer", "who", "have", "'", "diana", "'", "in", "part", "of", "their", "name", "?" ], "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, 9, [ 0, [ 0, 2, false ], null ], "\"%Diana%\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "What", "are", "the", "IDs", "of", "customers", "who", "have", "``", "Diana", "''", "in", "part", "of", "their", "names", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "'" ], [ "diana" ], [ "'" ], [ "in" ], [ "part" ], [ "of" ], [ "their" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "'", "''" ], [ "diana", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "part", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "Diana" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT max(settlement_amount) , min(settlement_amount) FROM settlements", "query_toks": [ "SELECT", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "FROM", "settlements" ], "query_toks_no_value": [ "select", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "from", "settlements" ], "question": "What are the maximum and minimum settlement amount on record?", "question_toks": [ "what", "are", "maximum", "and", "minimum", "settlement", "amount", "on", "record", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 22, false ], null ] ], [ 2, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "What", "are", "the", "maximum", "and", "minimum", "settlement", "amount", "on", "record", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "settlement", "amount" ], [ "on" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "settlement", "NN" ], [ "amount", "NN" ], [ "on", "IN" ], [ "record", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(14) T(6) A(2) C(14) T(6)" }, { "db_id": "insurance_fnol", "query": "SELECT max(settlement_amount) , min(settlement_amount) FROM settlements", "query_toks": [ "SELECT", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "FROM", "settlements" ], "query_toks_no_value": [ "select", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "from", "settlements" ], "question": "Find the maximum and minimum settlement amount.", "question_toks": [ "find", "maximum", "and", "minimum", "settlement", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 22, false ], null ] ], [ 2, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Find", "the", "maximum", "and", "minimum", "settlement", "amount", "." ], "question_arg": [ [ "find" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "settlement", "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "settlement", "NN" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(14) T(6) A(2) C(14) T(6)" }, { "db_id": "insurance_fnol", "query": "SELECT customer_id , customer_name FROM customers ORDER BY customer_id ASC", "query_toks": [ "SELECT", "customer_id", ",", "customer_name", "FROM", "customers", "ORDER", "BY", "customer_id", "ASC" ], "query_toks_no_value": [ "select", "customer_id", ",", "customer_name", "from", "customers", "order", "by", "customer_id", "asc" ], "question": "List all the customers in increasing order of IDs.", "question_toks": [ "list", "all", "customer", "in", "increasing", "order", "of", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 1, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "List", "all", "the", "customers", "in", "increasing", "order", "of", "IDs", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "customer" ], [ "in" ], [ "increasing" ], [ "order" ], [ "of" ], [ "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "in", "IN" ], [ "increasing", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Order(1) A(0) C(1) T(0)" }, { "db_id": "insurance_fnol", "query": "SELECT customer_id , customer_name FROM customers ORDER BY customer_id ASC", "query_toks": [ "SELECT", "customer_id", ",", "customer_name", "FROM", "customers", "ORDER", "BY", "customer_id", "ASC" ], "query_toks_no_value": [ "select", "customer_id", ",", "customer_name", "from", "customers", "order", "by", "customer_id", "asc" ], "question": "What is the ordered list of customer ids?", "question_toks": [ "what", "is", "ordered", "list", "of", "customer", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 1, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "What", "is", "the", "ordered", "list", "of", "customer", "ids", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "ordered" ], [ "list" ], [ "of" ], [ "customer", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "ordered", "JJ" ], [ "list", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Order(1) A(0) C(1) T(0)" }, { "db_id": "insurance_fnol", "query": "SELECT t2.date_opened , t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE \"%Diana%\"", "query_toks": [ "SELECT", "t2.date_opened", ",", "t2.date_closed", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "LIKE", "``", "%", "Diana", "%", "''" ], "query_toks_no_value": [ "select", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "like", "value" ], "question": "Retrieve the open and close dates of all the policies associated with the customer whose name contains \"Diana\"", "question_toks": [ "retrieve", "open", "and", "close", "date", "of", "all", "policy", "associated", "with", "customer", "whose", "name", "contains", "'", "diana", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 2, false ], null ], "\"%Diana%\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "Retrieve", "the", "open", "and", "close", "dates", "of", "all", "the", "policies", "associated", "with", "the", "customer", "whose", "name", "contains", "``", "Diana", "''" ], "question_arg": [ [ "retrieve" ], [ "open" ], [ "and" ], [ "close" ], [ "date" ], [ "of" ], [ "all" ], [ "policy" ], [ "associated" ], [ "with" ], [ "customer" ], [ "whose" ], [ "name" ], [ "contains" ], [ "'" ], [ "diana" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "retrieve", "VB" ], [ "open", "JJ" ], [ "and", "CC" ], [ "close", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "policy", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "'", "POS" ], [ "diana", "NN" ], [ "'", "''" ] ], "values": [ "Diana" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(3) A(0) C(9) T(3) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "insurance_fnol", "query": "SELECT t2.date_opened , t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE \"%Diana%\"", "query_toks": [ "SELECT", "t2.date_opened", ",", "t2.date_closed", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "LIKE", "``", "%", "Diana", "%", "''" ], "query_toks_no_value": [ "select", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "like", "value" ], "question": "What are the open and close dates of all the policies used by the customer who have \"Diana\" in part of their names?", "question_toks": [ "what", "are", "open", "and", "close", "date", "of", "all", "policy", "used", "by", "customer", "who", "have", "'", "diana", "'", "in", "part", "of", "their", "name", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 2, false ], null ], "\"%Diana%\"", null ] ] }, "names": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "customer id", "policy id", "date opened", "date closed", "fnol id", "customer id", "policy id", "service id", "claim id", "fnol id", "effective date", "settlement id", "claim id", "effective date", "settlement amount" ], "table_names": [ "customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements" ], "col_set": [ "*", "customer id", "customer name", "service id", "service name", "policy id", "policy type code", "customer phone", "date opened", "date closed", "fnol id", "claim id", "effective date", "settlement id", "settlement amount" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6 ], "keys": { "9": 14, "5": 5, "8": 8, "1": 1, "13": 8, "14": 9, "15": 3, "3": 3, "17": 12, "12": 12, "20": 16, "16": 16, "19": 19 }, "origin_question_toks": [ "What", "are", "the", "open", "and", "close", "dates", "of", "all", "the", "policies", "used", "by", "the", "customer", "who", "have", "``", "Diana", "''", "in", "part", "of", "their", "names", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "open" ], [ "and" ], [ "close" ], [ "date" ], [ "of" ], [ "all" ], [ "policy" ], [ "used" ], [ "by" ], [ "customer" ], [ "who" ], [ "have" ], [ "'" ], [ "diana" ], [ "'" ], [ "in" ], [ "part" ], [ "of" ], [ "their" ], [ "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "open", "JJ" ], [ "and", "CC" ], [ "close", "JJ" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "policy", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "'", "''" ], [ "diana", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "part", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "?", "." ] ], "values": [ "Diana" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(3) A(0) C(9) T(3) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT count(*) FROM enzyme", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "enzyme" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "enzyme" ], "question": "How many kinds of enzymes are there?", "question_toks": [ "how", "many", "kind", "of", "enzyme", "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": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "kinds", "of", "enzymes", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "kind" ], [ "of" ], [ "enzyme" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "kind", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT count(*) FROM enzyme", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "enzyme" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "enzyme" ], "question": "What is the total count of enzymes?", "question_toks": [ "what", "is", "total", "count", "of", "enzyme", "?" ], "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": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "total", "count", "of", "enzymes", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "count" ], [ "of" ], [ "enzyme" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "count", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT name FROM enzyme ORDER BY name DESC", "query_toks": [ "SELECT", "name", "FROM", "enzyme", "ORDER", "BY", "name", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "enzyme", "order", "by", "name", "desc" ], "question": "List the name of enzymes in descending lexicographical order.", "question_toks": [ "list", "name", "of", "enzyme", "in", "descending", "lexicographical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "List", "the", "name", "of", "enzymes", "in", "descending", "lexicographical", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "enzyme" ], [ "in" ], [ "descending" ], [ "lexicographical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "lexicographical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(0) A(0) C(2) T(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT name FROM enzyme ORDER BY name DESC", "query_toks": [ "SELECT", "name", "FROM", "enzyme", "ORDER", "BY", "name", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "enzyme", "order", "by", "name", "desc" ], "question": "What are the names of enzymes in descending order?", "question_toks": [ "what", "are", "name", "of", "enzyme", "in", "descending", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "enzymes", "in", "descending", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "enzyme" ], [ "in" ], [ "descending" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(0) A(0) C(2) T(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT name , LOCATION FROM enzyme", "query_toks": [ "SELECT", "name", ",", "LOCATION", "FROM", "enzyme" ], "query_toks_no_value": [ "select", "name", ",", "location", "from", "enzyme" ], "question": "List the names and the locations that the enzymes can make an effect.", "question_toks": [ "list", "name", "and", "location", "that", "enzyme", "can", "make", "an", "effect", "." ], "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": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "List", "the", "names", "and", "the", "locations", "that", "the", "enzymes", "can", "make", "an", "effect", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "location" ], [ "that" ], [ "enzyme" ], [ "can" ], [ "make" ], [ "an" ], [ "effect" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "that", "IN" ], [ "enzyme", "NN" ], [ "can", "MD" ], [ "make", "VB" ], [ "an", "DT" ], [ "effect", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(5) T(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT name , LOCATION FROM enzyme", "query_toks": [ "SELECT", "name", ",", "LOCATION", "FROM", "enzyme" ], "query_toks_no_value": [ "select", "name", ",", "location", "from", "enzyme" ], "question": "What are the names and locations of all enzymes listed?", "question_toks": [ "what", "are", "name", "and", "location", "of", "all", "enzyme", "listed", "?" ], "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": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "locations", "of", "all", "enzymes", "listed", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "all" ], [ "enzyme" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "enzyme", "NN" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(5) T(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT max(OMIM) FROM enzyme", "query_toks": [ "SELECT", "max", "(", "OMIM", ")", "FROM", "enzyme" ], "query_toks_no_value": [ "select", "max", "(", "omim", ")", "from", "enzyme" ], "question": "What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?", "question_toks": [ "what", "is", "maximum", "online", "mendelian", "inheritance", "in", "man", "(", "omim", ")", "value", "of", "enzyme", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "maximum", "Online", "Mendelian", "Inheritance", "in", "Man", "(", "OMIM", ")", "value", "of", "the", "enzymes", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "online" ], [ "mendelian" ], [ "inheritance" ], [ "in" ], [ "man" ], [ "(" ], [ "omim" ], [ ")" ], [ "value" ], [ "of" ], [ "enzyme" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "online", "JJ" ], [ "mendelian", "JJ" ], [ "inheritance", "NN" ], [ "in", "IN" ], [ "man", "NN" ], [ "(", "(" ], [ "omim", "PRP" ], [ ")", ")" ], [ "value", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(1) C(8) T(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT max(OMIM) FROM enzyme", "query_toks": [ "SELECT", "max", "(", "OMIM", ")", "FROM", "enzyme" ], "query_toks_no_value": [ "select", "max", "(", "omim", ")", "from", "enzyme" ], "question": "What is the maximum OMIM value in the database?", "question_toks": [ "what", "is", "maximum", "omim", "value", "in", "database", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "maximum", "OMIM", "value", "in", "the", "database", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "omim" ], [ "value" ], [ "in" ], [ "database" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "omim", "JJ" ], [ "value", "NN" ], [ "in", "IN" ], [ "database", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(1) C(8) T(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT product , chromosome , porphyria FROM enzyme WHERE LOCATION = 'Cytosol'", "query_toks": [ "SELECT", "product", ",", "chromosome", ",", "porphyria", "FROM", "enzyme", "WHERE", "LOCATION", "=", "'Cytosol", "'" ], "query_toks_no_value": [ "select", "product", ",", "chromosome", ",", "porphyria", "from", "enzyme", "where", "location", "=", "value" ], "question": "What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?", "question_toks": [ "what", "is", "product", ",", "chromosome", "and", "porphyria", "related", "to", "enzyme", "which", "take", "effect", "at", "location", "'", "cytosol", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Cytosol\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "product", ",", "chromosome", "and", "porphyria", "related", "to", "the", "enzymes", "which", "take", "effect", "at", "the", "location", "'Cytosol", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "product" ], [ "," ], [ "chromosome" ], [ "and" ], [ "porphyria" ], [ "related" ], [ "to" ], [ "enzyme" ], [ "which" ], [ "take" ], [ "effect" ], [ "at" ], [ "location" ], [ "'" ], [ "cytosol" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "product", "NN" ], [ ",", "," ], [ "chromosome", "NN" ], [ "and", "CC" ], [ "porphyria", "NN" ], [ "related", "VBN" ], [ "to", "TO" ], [ "enzyme", "VB" ], [ "which", "WDT" ], [ "take", "VB" ], [ "effect", "NN" ], [ "at", "IN" ], [ "location", "NN" ], [ "'", "''" ], [ "cytosol", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Cytosol" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(6) T(1) A(0) C(7) T(1) A(0) C(9) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT product , chromosome , porphyria FROM enzyme WHERE LOCATION = 'Cytosol'", "query_toks": [ "SELECT", "product", ",", "chromosome", ",", "porphyria", "FROM", "enzyme", "WHERE", "LOCATION", "=", "'Cytosol", "'" ], "query_toks_no_value": [ "select", "product", ",", "chromosome", ",", "porphyria", "from", "enzyme", "where", "location", "=", "value" ], "question": "What is the product, chromosome, and porphyria of the enzymes located at 'Cytosol'?", "question_toks": [ "what", "is", "product", ",", "chromosome", ",", "and", "porphyria", "of", "enzyme", "located", "at", "'", "cytosol", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Cytosol\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "product", ",", "chromosome", ",", "and", "porphyria", "of", "the", "enzymes", "located", "at", "'Cytosol", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "product" ], [ "," ], [ "chromosome" ], [ "," ], [ "and" ], [ "porphyria" ], [ "of" ], [ "enzyme" ], [ "located" ], [ "at" ], [ "'" ], [ "cytosol" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "product", "NN" ], [ ",", "," ], [ "chromosome", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "porphyria", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "located", "VBN" ], [ "at", "IN" ], [ "'", "''" ], [ "cytosol", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Cytosol" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(6) T(1) A(0) C(7) T(1) A(0) C(9) T(1) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT name FROM enzyme WHERE product != 'Heme'", "query_toks": [ "SELECT", "name", "FROM", "enzyme", "WHERE", "product", "!", "=", "'Heme", "'" ], "query_toks_no_value": [ "select", "name", "from", "enzyme", "where", "product", "!", "=", "value" ], "question": "What are the names of enzymes who does not produce 'Heme'?", "question_toks": [ "what", "are", "name", "of", "enzyme", "who", "doe", "not", "produce", "'", "heme", "'", "?" ], "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, 7, [ 0, [ 0, 8, false ], null ], "\"Heme\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "enzymes", "who", "does", "not", "produce", "'Heme", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "enzyme" ], [ "who" ], [ "doe" ], [ "not" ], [ "produce" ], [ "'" ], [ "heme" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "who", "WP" ], [ "doe", "VBZ" ], [ "not", "RB" ], [ "produce", "VB" ], [ "'", "''" ], [ "heme", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Heme" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(3) A(0) C(6) T(1) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT name FROM enzyme WHERE product != 'Heme'", "query_toks": [ "SELECT", "name", "FROM", "enzyme", "WHERE", "product", "!", "=", "'Heme", "'" ], "query_toks_no_value": [ "select", "name", "from", "enzyme", "where", "product", "!", "=", "value" ], "question": "What are the names of enzymes whose product is not 'Heme'?", "question_toks": [ "what", "are", "name", "of", "enzyme", "whose", "product", "is", "not", "'", "heme", "'", "?" ], "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, 7, [ 0, [ 0, 8, false ], null ], "\"Heme\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "enzymes", "whose", "product", "is", "not", "'Heme", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "enzyme" ], [ "whose" ], [ "product" ], [ "is" ], [ "not" ], [ "'" ], [ "heme" ], [ "'" ], [ "?" ] ], "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" ], [ "enzyme", "NN" ], [ "whose", "WP$" ], [ "product", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "heme", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Heme" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(3) A(0) C(6) T(1) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT name , trade_name FROM medicine WHERE FDA_approved = 'Yes'", "query_toks": [ "SELECT", "name", ",", "trade_name", "FROM", "medicine", "WHERE", "FDA_approved", "=", "'Yes", "'" ], "query_toks_no_value": [ "select", "name", ",", "trade_name", "from", "medicine", "where", "fda_approved", "=", "value" ], "question": "What are the names and trade names of the medicines which has 'Yes' value in the FDA record?", "question_toks": [ "what", "are", "name", "and", "trade", "name", "of", "medicine", "which", "ha", "'", "yes", "'", "value", "in", "fda", "record", "?" ], "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 ], "\"Yes\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "trade", "names", "of", "the", "medicines", "which", "has", "'Yes", "'", "value", "in", "the", "FDA", "record", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "trade", "name" ], [ "of" ], [ "medicine" ], [ "which" ], [ "ha" ], [ "'" ], [ "yes" ], [ "'" ], [ "value" ], [ "in" ], [ "fda" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "trade", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "medicine", "NN" ], [ "which", "WDT" ], [ "ha", "NN" ], [ "'", "''" ], [ "yes", "NNS" ], [ "'", "POS" ], [ "value", "NN" ], [ "in", "IN" ], [ "fda", "NN" ], [ "record", "NN" ], [ "?", "." ] ], "values": [ "Yes" ], "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": "medicine_enzyme_interaction", "query": "SELECT name , trade_name FROM medicine WHERE FDA_approved = 'Yes'", "query_toks": [ "SELECT", "name", ",", "trade_name", "FROM", "medicine", "WHERE", "FDA_approved", "=", "'Yes", "'" ], "query_toks_no_value": [ "select", "name", ",", "trade_name", "from", "medicine", "where", "fda_approved", "=", "value" ], "question": "What are the names and trade names of the medcines that are FDA approved?", "question_toks": [ "what", "are", "name", "and", "trade", "name", "of", "medcines", "that", "are", "fda", "approved", "?" ], "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 ], "\"Yes\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "trade", "names", "of", "the", "medcines", "that", "are", "FDA", "approved", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "trade", "name" ], [ "of" ], [ "medcines" ], [ "that" ], [ "are" ], [ "fda", "approved" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "trade", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "medcines", "NNS" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "fda", "VBN" ], [ "approved", "VBN" ], [ "?", "." ] ], "values": [ "Yes" ], "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": "medicine_enzyme_interaction", "query": "SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor'", "query_toks": [ "SELECT", "T1.name", "FROM", "enzyme", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T1.id", "=", "T2.enzyme_id", "JOIN", "medicine", "AS", "T3", "ON", "T2.medicine_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Amisulpride", "'", "AND", "T2.interaction_type", "=", "'inhibitor", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "enzyme", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "enzyme_id", "join", "medicine", "as", "t3", "on", "t2", ".", "medicine_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "interaction_type", "=", "value" ], "question": "What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?", "question_toks": [ "what", "are", "name", "of", "enzyme", "in", "medicine", "named", "'", "amisulpride", "'", "that", "can", "serve", "a", "an", "'", "inhibitor", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 12, 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, 2, [ 0, [ 0, 2, false ], null ], "\"Amisulpride\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"inhibitor\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "enzymes", "in", "the", "medicine", "named", "'Amisulpride", "'", "that", "can", "serve", "as", "an", "'inhibitor", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "enzyme" ], [ "in" ], [ "medicine" ], [ "named" ], [ "'" ], [ "amisulpride" ], [ "'" ], [ "that" ], [ "can" ], [ "serve" ], [ "a" ], [ "an" ], [ "'" ], [ "inhibitor" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "in", "IN" ], [ "medicine", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "amisulpride", "NN" ], [ "'", "POS" ], [ "that", "WDT" ], [ "can", "MD" ], [ "serve", "VB" ], [ "a", "DT" ], [ "an", "DT" ], [ "'", "POS" ], [ "inhibitor", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Amisulpride", "inhibitor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(12) T(2) V(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id JOIN medicine AS T3 ON T2.medicine_id = T3.id WHERE T3.name = 'Amisulpride' AND T2.interaction_type = 'inhibitor'", "query_toks": [ "SELECT", "T1.name", "FROM", "enzyme", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T1.id", "=", "T2.enzyme_id", "JOIN", "medicine", "AS", "T3", "ON", "T2.medicine_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Amisulpride", "'", "AND", "T2.interaction_type", "=", "'inhibitor", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "enzyme", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "enzyme_id", "join", "medicine", "as", "t3", "on", "t2", ".", "medicine_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "interaction_type", "=", "value" ], "question": "What are the names of the enzymes used in the medicine Amisulpride that acts as inhibitors?", "question_toks": [ "what", "are", "name", "of", "enzyme", "used", "in", "medicine", "amisulpride", "that", "act", "a", "inhibitor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 12, 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, 2, [ 0, [ 0, 2, false ], null ], "\"Amisulpride\"", null ], "and", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"inhibitor\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "enzymes", "used", "in", "the", "medicine", "Amisulpride", "that", "acts", "as", "inhibitors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "enzyme" ], [ "used" ], [ "in" ], [ "medicine" ], [ "amisulpride" ], [ "that" ], [ "act" ], [ "a" ], [ "inhibitor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "used", "VBN" ], [ "in", "IN" ], [ "medicine", "JJ" ], [ "amisulpride", "NN" ], [ "that", "WDT" ], [ "act", "VBZ" ], [ "a", "DT" ], [ "inhibitor", "NN" ], [ "?", "." ] ], "values": [ "Amisulpride", "inhibitor" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(12) T(2) V(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.id , T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.id", ",", "T1.Name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the ids and names of the medicine that can interact with two or more enzymes?", "question_toks": [ "what", "are", "id", "and", "name", "of", "medicine", "that", "can", "interact", "with", "two", "or", "more", "enzyme", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.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, 13, 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", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "names", "of", "the", "medicine", "that", "can", "interact", "with", "two", "or", "more", "enzymes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "medicine" ], [ "that" ], [ "can" ], [ "interact" ], [ "with" ], [ "two" ], [ "or" ], [ "more" ], [ "enzyme" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "medicine", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "interact", "VB" ], [ "with", "IN" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "enzyme", "NNS" ], [ "?", "." ] ], "values": [ "2" ], "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(11) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.id , T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.id", ",", "T1.Name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "For every medicine id, what are the names of the medicines that can interact with more than one enzyme?", "question_toks": [ "for", "every", "medicine", "id", ",", "what", "are", "name", "of", "medicine", "that", "can", "interact", "with", "more", "than", "one", "enzyme", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.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, 13, 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", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "For", "every", "medicine", "id", ",", "what", "are", "the", "names", "of", "the", "medicines", "that", "can", "interact", "with", "more", "than", "one", "enzyme", "?" ], "question_arg": [ [ "for" ], [ "every" ], [ "medicine", "id" ], [ "," ], [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "medicine" ], [ "that" ], [ "can" ], [ "interact" ], [ "with" ], [ "more" ], [ "than" ], [ "one" ], [ "enzyme" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "every", "DT" ], [ "medicine", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "medicine", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "interact", "VB" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "enzyme", "NN" ], [ "?", "." ] ], "values": [ "1", "2" ], "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(11) T(2) Filter(7) A(3) C(0) T(2) V(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.id , T1.Name , T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC", "query_toks": [ "SELECT", "T1.id", ",", "T1.Name", ",", "T1.FDA_approved", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "fda_approved", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc" ], "question": "What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.", "question_toks": [ "what", "are", "id", ",", "name", "and", "fda", "approval", "status", "of", "medicine", "in", "descending", "order", "of", "number", "of", "enzyme", "that", "it", "can", "interact", "with", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "ids", ",", "names", "and", "FDA", "approval", "status", "of", "medicines", "in", "descending", "order", "of", "the", "number", "of", "enzymes", "that", "it", "can", "interact", "with", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "," ], [ "name" ], [ "and" ], [ "fda" ], [ "approval" ], [ "status" ], [ "of" ], [ "medicine" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "number" ], [ "of" ], [ "enzyme" ], [ "that" ], [ "it" ], [ "can" ], [ "interact" ], [ "with" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "fda", "NN" ], [ "approval", "NN" ], [ "status", "NN" ], [ "of", "IN" ], [ "medicine", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "that", "IN" ], [ "it", "PRP" ], [ "can", "MD" ], [ "interact", "VB" ], [ "with", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) 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(11) T(2) Order(0) A(3) C(0) T(2)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.id , T1.Name , T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY count(*) DESC", "query_toks": [ "SELECT", "T1.id", ",", "T1.Name", ",", "T1.FDA_approved", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "fda_approved", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc" ], "question": "What are the ids, names, and FDA approval status for medicines ordered by descending number of possible enzyme interactions?", "question_toks": [ "what", "are", "id", ",", "name", ",", "and", "fda", "approval", "status", "for", "medicine", "ordered", "by", "descending", "number", "of", "possible", "enzyme", "interaction", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "ids", ",", "names", ",", "and", "FDA", "approval", "status", "for", "medicines", "ordered", "by", "descending", "number", "of", "possible", "enzyme", "interactions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "," ], [ "name" ], [ "," ], [ "and" ], [ "fda" ], [ "approval" ], [ "status" ], [ "for" ], [ "medicine" ], [ "ordered" ], [ "by" ], [ "descending" ], [ "number" ], [ "of" ], [ "possible" ], [ "enzyme" ], [ "interaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ ",", "," ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "fda", "VBD" ], [ "approval", "NN" ], [ "status", "NN" ], [ "for", "IN" ], [ "medicine", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "descending", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "possible", "JJ" ], [ "enzyme", "NN" ], [ "interaction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(1) T(0) A(0) C(2) 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(11) T(2) Order(0) A(3) C(0) T(2)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.id , T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", "FROM", "enzyme", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T1.id", "=", "T2.enzyme_id", "WHERE", "T2.interaction_type", "=", "'activitor", "'", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "enzyme", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "enzyme_id", "where", "t2", ".", "interaction_type", "=", "value", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id and name of the enzyme with most number of medicines that can interact as 'activator'?", "question_toks": [ "what", "is", "id", "and", "name", "of", "enzyme", "with", "most", "number", "of", "medicine", "that", "can", "interact", "a", "'", "activator", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, 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 ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"activitor\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "name", "of", "the", "enzyme", "with", "most", "number", "of", "medicines", "that", "can", "interact", "as", "'activator", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "enzyme" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "medicine" ], [ "that" ], [ "can" ], [ "interact" ], [ "a" ], [ "'" ], [ "activator" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "medicine", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "interact", "VB" ], [ "a", "DT" ], [ "'", "''" ], [ "activator", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "activator", "activitor" ], "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(1) Filter(2) A(0) C(12) T(2) V(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.id , T1.name FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T1.id = T2.enzyme_id WHERE T2.interaction_type = 'activitor' GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", "FROM", "enzyme", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T1.id", "=", "T2.enzyme_id", "WHERE", "T2.interaction_type", "=", "'activitor", "'", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "enzyme", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "enzyme_id", "where", "t2", ".", "interaction_type", "=", "value", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id and name of the enzyme that can interact with the most medicines as an activator?", "question_toks": [ "what", "is", "id", "and", "name", "of", "enzyme", "that", "can", "interact", "with", "most", "medicine", "a", "an", "activator", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, 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 ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"activitor\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "name", "of", "the", "enzyme", "that", "can", "interact", "with", "the", "most", "medicines", "as", "an", "activator", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "enzyme" ], [ "that" ], [ "can" ], [ "interact" ], [ "with" ], [ "most" ], [ "medicine" ], [ "a" ], [ "an" ], [ "activator" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "interact", "VB" ], [ "with", "IN" ], [ "most", "JJS" ], [ "medicine", "VB" ], [ "a", "DT" ], [ "an", "DT" ], [ "activator", "NN" ], [ "?", "." ] ], "values": [ "activitor" ], "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(1) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole'", "query_toks": [ "SELECT", "T1.interaction_type", "FROM", "medicine_enzyme_interaction", "AS", "T1", "JOIN", "medicine", "AS", "T2", "ON", "T1.medicine_id", "=", "T2.id", "JOIN", "enzyme", "AS", "T3", "ON", "T1.enzyme_id", "=", "T3.id", "WHERE", "T3.name", "=", "'ALA", "synthase", "'", "AND", "T2.name", "=", "'Aripiprazole", "'" ], "query_toks_no_value": [ "select", "t1", ".", "interaction_type", "from", "medicine_enzyme_interaction", "as", "t1", "join", "medicine", "as", "t2", "on", "t1", ".", "medicine_id", "=", "t2", ".", "id", "join", "enzyme", "as", "t3", "on", "t1", ".", "enzyme_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value" ], "question": "What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?", "question_toks": [ "what", "is", "interaction", "type", "of", "enzyme", "named", "'", "ala", "synthase", "'", "and", "medicine", "named", "'", "aripiprazole", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, 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, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"ALA synthase\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Aripiprazole\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "interaction", "type", "of", "the", "enzyme", "named", "'ALA", "synthase", "'", "and", "the", "medicine", "named", "'Aripiprazole", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "interaction", "type" ], [ "of" ], [ "enzyme" ], [ "named" ], [ "'" ], [ "ala" ], [ "synthase" ], [ "'" ], [ "and" ], [ "medicine" ], [ "named" ], [ "'" ], [ "aripiprazole" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "interaction", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "ala", "JJ" ], [ "synthase", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "medicine", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "aripiprazole", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Aripiprazole", "ALA synthase" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(0) Filter(2) A(0) C(2) T(1) V(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole'", "query_toks": [ "SELECT", "T1.interaction_type", "FROM", "medicine_enzyme_interaction", "AS", "T1", "JOIN", "medicine", "AS", "T2", "ON", "T1.medicine_id", "=", "T2.id", "JOIN", "enzyme", "AS", "T3", "ON", "T1.enzyme_id", "=", "T3.id", "WHERE", "T3.name", "=", "'ALA", "synthase", "'", "AND", "T2.name", "=", "'Aripiprazole", "'" ], "query_toks_no_value": [ "select", "t1", ".", "interaction_type", "from", "medicine_enzyme_interaction", "as", "t1", "join", "medicine", "as", "t2", "on", "t1", ".", "medicine_id", "=", "t2", ".", "id", "join", "enzyme", "as", "t3", "on", "t1", ".", "enzyme_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value" ], "question": "What is the type of interaction for the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?", "question_toks": [ "what", "is", "type", "of", "interaction", "for", "enzyme", "named", "'", "ala", "synthase", "'", "and", "medicine", "named", "'", "aripiprazole", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, 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, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"ALA synthase\"", null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Aripiprazole\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "type", "of", "interaction", "for", "the", "enzyme", "named", "'ALA", "synthase", "'", "and", "the", "medicine", "named", "'Aripiprazole", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "type" ], [ "of" ], [ "interaction" ], [ "for" ], [ "enzyme" ], [ "named" ], [ "'" ], [ "ala" ], [ "synthase" ], [ "'" ], [ "and" ], [ "medicine" ], [ "named" ], [ "'" ], [ "aripiprazole" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "type", "NN" ], [ "of", "IN" ], [ "interaction", "NN" ], [ "for", "IN" ], [ "enzyme", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "ala", "JJ" ], [ "synthase", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "medicine", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "aripiprazole", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "ALA synthase", "Aripiprazole" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(12) T(2) Filter(0) Filter(2) A(0) C(2) T(1) V(0) Filter(2) A(0) C(2) T(0) V(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT interaction_type , count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "interaction_type", ",", "count", "(", "*", ")", "FROM", "medicine_enzyme_interaction", "GROUP", "BY", "interaction_type", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "interaction_type", ",", "count", "(", "*", ")", "from", "medicine_enzyme_interaction", "group", "by", "interaction_type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common interaction type between enzymes and medicine? And how many are there?", "question_toks": [ "what", "is", "most", "common", "interaction", "type", "between", "enzyme", "and", "medicine", "?", "and", "how", "many", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "interaction", "type", "between", "enzymes", "and", "medicine", "?", "And", "how", "many", "are", "there", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "interaction", "type" ], [ "between" ], [ "enzyme" ], [ "and" ], [ "medicine" ], [ "?" ], [ "and" ], [ "how" ], [ "many" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "interaction", "NN" ], [ "type", "NN" ], [ "between", "IN" ], [ "enzyme", "NN" ], [ "and", "CC" ], [ "medicine", "NN" ], [ "?", "." ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(12) T(2) A(3) C(0) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT interaction_type , count(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "interaction_type", ",", "count", "(", "*", ")", "FROM", "medicine_enzyme_interaction", "GROUP", "BY", "interaction_type", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "interaction_type", ",", "count", "(", "*", ")", "from", "medicine_enzyme_interaction", "group", "by", "interaction_type", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the most common types of interactions between enzymes and medicine, and how many types are there?", "question_toks": [ "what", "are", "most", "common", "type", "of", "interaction", "between", "enzyme", "and", "medicine", ",", "and", "how", "many", "type", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "most", "common", "types", "of", "interactions", "between", "enzymes", "and", "medicine", ",", "and", "how", "many", "types", "are", "there", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "most" ], [ "common" ], [ "type" ], [ "of" ], [ "interaction" ], [ "between" ], [ "enzyme" ], [ "and" ], [ "medicine" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "type" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "type", "NN" ], [ "of", "IN" ], [ "interaction", "NN" ], [ "between", "IN" ], [ "enzyme", "NN" ], [ "and", "CC" ], [ "medicine", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "type", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(12) T(2) A(3) C(0) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT count(*) FROM medicine WHERE FDA_approved = 'No'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "medicine", "WHERE", "FDA_approved", "=", "'No", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "medicine", "where", "fda_approved", "=", "value" ], "question": "How many medicines have the FDA approval status 'No' ?", "question_toks": [ "how", "many", "medicine", "have", "fda", "approval", "status", "'", "no", "'", "?" ], "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 ], "\"No\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "medicines", "have", "the", "FDA", "approval", "status", "'No", "'", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "medicine" ], [ "have" ], [ "fda" ], [ "approval" ], [ "status" ], [ "'" ], [ "no" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "medicine", "NN" ], [ "have", "VBP" ], [ "fda", "VBN" ], [ "approval", "NN" ], [ "status", "NN" ], [ "'", "''" ], [ "no", "DT" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "No" ], "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": "medicine_enzyme_interaction", "query": "SELECT count(*) FROM medicine WHERE FDA_approved = 'No'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "medicine", "WHERE", "FDA_approved", "=", "'No", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "medicine", "where", "fda_approved", "=", "value" ], "question": "How many medicines were not approved by the FDA?", "question_toks": [ "how", "many", "medicine", "were", "not", "approved", "by", "fda", "?" ], "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 ], "\"No\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "medicines", "were", "not", "approved", "by", "the", "FDA", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "medicine" ], [ "were" ], [ "not" ], [ "approved" ], [ "by" ], [ "fda" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "medicine", "NN" ], [ "were", "VBD" ], [ "not", "RB" ], [ "approved", "VBN" ], [ "by", "IN" ], [ "fda", "NN" ], [ "?", "." ] ], "values": [ "No" ], "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": "medicine_enzyme_interaction", "query": "SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "enzyme", "WHERE", "id", "NOT", "IN", "(", "SELECT", "enzyme_id", "FROM", "medicine_enzyme_interaction", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "enzyme", "where", "id", "not", "in", "(", "select", "enzyme_id", "from", "medicine_enzyme_interaction", ")" ], "question": "How many enzymes do not have any interactions?", "question_toks": [ "how", "many", "enzyme", "do", "not", "have", "any", "interaction", "?" ], "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": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "enzymes", "do", "not", "have", "any", "interactions", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "enzyme" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "interaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "enzyme", "RB" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "interaction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(10) T(2)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT count(*) FROM enzyme WHERE id NOT IN ( SELECT enzyme_id FROM medicine_enzyme_interaction );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "enzyme", "WHERE", "id", "NOT", "IN", "(", "SELECT", "enzyme_id", "FROM", "medicine_enzyme_interaction", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "enzyme", "where", "id", "not", "in", "(", "select", "enzyme_id", "from", "medicine_enzyme_interaction", ")" ], "question": "What is the count of enzymes without any interactions?", "question_toks": [ "what", "is", "count", "of", "enzyme", "without", "any", "interaction", "?" ], "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": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "count", "of", "enzymes", "without", "any", "interactions", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "count" ], [ "of" ], [ "enzyme" ], [ "without" ], [ "any" ], [ "interaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "count", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "interaction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(10) T(2)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.id , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3", "query_toks": [ "SELECT", "T1.id", ",", "T1.trade_name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "GROUP", "BY", "T1.id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "trade_name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What is the id and trade name of the medicines can interact with at least 3 enzymes?", "question_toks": [ "what", "is", "id", "and", "trade", "name", "of", "medicine", "can", "interact", "with", "at", "least", "3", "enzyme", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "trade", "name", "of", "the", "medicines", "can", "interact", "with", "at", "least", "3", "enzymes", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "trade", "name" ], [ "of" ], [ "medicine" ], [ "can" ], [ "interact" ], [ "with" ], [ "at" ], [ "least" ], [ "3" ], [ "enzyme" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "trade", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "medicine", "NN" ], [ "can", "MD" ], [ "interact", "VB" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "enzyme", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(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(11) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.id , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 3", "query_toks": [ "SELECT", "T1.id", ",", "T1.trade_name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "GROUP", "BY", "T1.id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "trade_name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the ids and trade names of the medicine that can interact with at least 3 enzymes?", "question_toks": [ "what", "are", "id", "and", "trade", "name", "of", "medicine", "that", "can", "interact", "with", "at", "least", "3", "enzyme", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "trade", "names", "of", "the", "medicine", "that", "can", "interact", "with", "at", "least", "3", "enzymes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "trade", "name" ], [ "of" ], [ "medicine" ], [ "that" ], [ "can" ], [ "interact" ], [ "with" ], [ "at" ], [ "least" ], [ "3" ], [ "enzyme" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "trade", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "medicine", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "interact", "VB" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "3", "CD" ], [ "enzyme", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(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(11) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT DISTINCT T1.name , T1.location , T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'", "query_toks": [ "SELECT", "DISTINCT", "T1.name", ",", "T1.location", ",", "T1.product", "FROM", "enzyme", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.enzyme_id", "=", "T1.id", "WHERE", "T2.interaction_type", "=", "'inhibitor", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", ",", "t1", ".", "location", ",", "t1", ".", "product", "from", "enzyme", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "enzyme_id", "=", "t1", ".", "id", "where", "t2", ".", "interaction_type", "=", "value" ], "question": "What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction?", "question_toks": [ "what", "are", "distinct", "name", ",", "location", "and", "product", "of", "enzyme", "which", "ha", "any", "'", "inhibitor", "'", "interaction", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"inhibitor\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "distinct", "name", ",", "location", "and", "products", "of", "the", "enzymes", "which", "has", "any", "'inhibitor", "'", "interaction", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "name" ], [ "," ], [ "location" ], [ "and" ], [ "product" ], [ "of" ], [ "enzyme" ], [ "which" ], [ "ha" ], [ "any" ], [ "'" ], [ "inhibitor" ], [ "'" ], [ "interaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "location", "NN" ], [ "and", "CC" ], [ "product", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "any", "DT" ], [ "'", "''" ], [ "inhibitor", "NN" ], [ "'", "POS" ], [ "interaction", "NN" ], [ "?", "." ] ], "values": [ "inhibitor" ], "rule_label": "Root1(3) Root(3) Sel(1) N(2) A(0) C(2) T(1) A(0) C(5) T(1) A(0) C(6) T(1) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT DISTINCT T1.name , T1.location , T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'", "query_toks": [ "SELECT", "DISTINCT", "T1.name", ",", "T1.location", ",", "T1.product", "FROM", "enzyme", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.enzyme_id", "=", "T1.id", "WHERE", "T2.interaction_type", "=", "'inhibitor", "'" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", ",", "t1", ".", "location", ",", "t1", ".", "product", "from", "enzyme", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "enzyme_id", "=", "t1", ".", "id", "where", "t2", ".", "interaction_type", "=", "value" ], "question": "What are the different names, locations, and products of the enzymes that are capable inhibitor interactions?", "question_toks": [ "what", "are", "different", "name", ",", "location", ",", "and", "product", "of", "enzyme", "that", "are", "capable", "inhibitor", "interaction", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"inhibitor\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "different", "names", ",", "locations", ",", "and", "products", "of", "the", "enzymes", "that", "are", "capable", "inhibitor", "interactions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "," ], [ "location" ], [ "," ], [ "and" ], [ "product" ], [ "of" ], [ "enzyme" ], [ "that" ], [ "are" ], [ "capable" ], [ "inhibitor" ], [ "interaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "location", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "product", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "capable", "JJ" ], [ "inhibitor", "NN" ], [ "interaction", "NN" ], [ "?", "." ] ], "values": [ "inhibitor" ], "rule_label": "Root1(3) Root(3) Sel(1) N(2) A(0) C(2) T(1) A(0) C(5) T(1) A(0) C(6) T(1) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor'", "query_toks": [ "SELECT", "T1.name", ",", "T1.trade_name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "WHERE", "interaction_type", "=", "'inhibitor", "'", "INTERSECT", "SELECT", "T1.name", ",", "T1.trade_name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "WHERE", "interaction_type", "=", "'activitor", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "trade_name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "where", "interaction_type", "=", "value", "intersect", "select", "t1", ".", "name", ",", "t1", ".", "trade_name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "where", "interaction_type", "=", "value" ], "question": "List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.", "question_toks": [ "list", "medicine", "name", "and", "trade", "name", "which", "can", "both", "interact", "a", "'", "inhibitor", "'", "and", "'", "activitor", "'", "with", "enzyme", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 1, 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, 14, false ], null ], "\"activitor\"", 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, 14, false ], null ], "\"inhibitor\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "List", "the", "medicine", "name", "and", "trade", "name", "which", "can", "both", "interact", "as", "'inhibitor", "'", "and", "'activitor", "'", "with", "enzymes", "." ], "question_arg": [ [ "list" ], [ "medicine" ], [ "name" ], [ "and" ], [ "trade", "name" ], [ "which" ], [ "can" ], [ "both" ], [ "interact" ], [ "a" ], [ "'" ], [ "inhibitor" ], [ "'" ], [ "and" ], [ "'" ], [ "activitor" ], [ "'" ], [ "with" ], [ "enzyme" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "medicine", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "trade", "NN" ], [ "name", "NN" ], [ "which", "WDT" ], [ "can", "MD" ], [ "both", "DT" ], [ "interact", "VB" ], [ "a", "DT" ], [ "'", "''" ], [ "inhibitor", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "activitor", "NN" ], [ "'", "''" ], [ "with", "IN" ], [ "enzyme", "NNS" ], [ ".", "." ] ], "values": [ "activitor", "inhibitor" ], "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(12) 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(12) T(2) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor'", "query_toks": [ "SELECT", "T1.name", ",", "T1.trade_name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "WHERE", "interaction_type", "=", "'inhibitor", "'", "INTERSECT", "SELECT", "T1.name", ",", "T1.trade_name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "WHERE", "interaction_type", "=", "'activitor", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t1", ".", "trade_name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "where", "interaction_type", "=", "value", "intersect", "select", "t1", ".", "name", ",", "t1", ".", "trade_name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "where", "interaction_type", "=", "value" ], "question": "What are the medicine and trade names that can interact as an inhibitor and activitor with enzymes?", "question_toks": [ "what", "are", "medicine", "and", "trade", "name", "that", "can", "interact", "a", "an", "inhibitor", "and", "activitor", "with", "enzyme", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 1, 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, 14, false ], null ], "\"activitor\"", 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, 14, false ], null ], "\"inhibitor\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "medicine", "and", "trade", "names", "that", "can", "interact", "as", "an", "inhibitor", "and", "activitor", "with", "enzymes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "medicine" ], [ "and" ], [ "trade", "name" ], [ "that" ], [ "can" ], [ "interact" ], [ "a" ], [ "an" ], [ "inhibitor" ], [ "and" ], [ "activitor" ], [ "with" ], [ "enzyme" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "medicine", "JJ" ], [ "and", "CC" ], [ "trade", "NN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "interact", "VB" ], [ "a", "DT" ], [ "an", "DT" ], [ "inhibitor", "NN" ], [ "and", "CC" ], [ "activitor", "NN" ], [ "with", "IN" ], [ "enzyme", "NN" ], [ "?", "." ] ], "values": [ "activitor", "inhibitor" ], "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(12) 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(12) T(2) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT name , trade_name FROM medicine EXCEPT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX'", "query_toks": [ "SELECT", "name", ",", "trade_name", "FROM", "medicine", "EXCEPT", "SELECT", "T1.name", ",", "T1.trade_name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "JOIN", "enzyme", "AS", "T3", "ON", "T3.id", "=", "T2.enzyme_id", "WHERE", "T3.product", "=", "'Protoporphyrinogen", "IX", "'" ], "query_toks_no_value": [ "select", "name", ",", "trade_name", "from", "medicine", "except", "select", "t1", ".", "name", ",", "t1", ".", "trade_name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "join", "enzyme", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "enzyme_id", "where", "t3", ".", "product", "=", "value" ], "question": "Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.", "question_toks": [ "show", "medicine", "name", "and", "trade", "name", "that", "can", "not", "interact", "with", "enzyme", "with", "product", "'", "heme", "'", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 1, 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, 8, [ 0, [ 0, 1, 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 ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Protoporphyrinogen IX\"", 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", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "Show", "the", "medicine", "names", "and", "trade", "names", "that", "can", "not", "interact", "with", "the", "enzyme", "with", "product", "'Heme", "'", "." ], "question_arg": [ [ "show" ], [ "medicine" ], [ "name" ], [ "and" ], [ "trade", "name" ], [ "that" ], [ "can" ], [ "not" ], [ "interact" ], [ "with" ], [ "enzyme" ], [ "with" ], [ "product" ], [ "'" ], [ "heme" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "medicine", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "trade", "NN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "not", "RB" ], [ "interact", "VB" ], [ "with", "IN" ], [ "enzyme", "NN" ], [ "with", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "heme", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Heme", "Protoporphyrinogen IX" ], "rule_label": "Root1(2) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Root(3) Sel(0) N(1) A(0) C(2) T(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(11) T(2) Filter(2) A(0) C(6) T(1) V(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT name , trade_name FROM medicine EXCEPT SELECT T1.name , T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX'", "query_toks": [ "SELECT", "name", ",", "trade_name", "FROM", "medicine", "EXCEPT", "SELECT", "T1.name", ",", "T1.trade_name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "JOIN", "enzyme", "AS", "T3", "ON", "T3.id", "=", "T2.enzyme_id", "WHERE", "T3.product", "=", "'Protoporphyrinogen", "IX", "'" ], "query_toks_no_value": [ "select", "name", ",", "trade_name", "from", "medicine", "except", "select", "t1", ".", "name", ",", "t1", ".", "trade_name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "join", "enzyme", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "enzyme_id", "where", "t3", ".", "product", "=", "value" ], "question": "What are the medicine and trade names that cannot interact with the enzyme with the product 'Heme'?", "question_toks": [ "what", "are", "medicine", "and", "trade", "name", "that", "can", "not", "interact", "with", "enzyme", "with", "product", "'", "heme", "'", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 1, 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, 8, [ 0, [ 0, 1, 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 ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Protoporphyrinogen IX\"", 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", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "medicine", "and", "trade", "names", "that", "can", "not", "interact", "with", "the", "enzyme", "with", "the", "product", "'Heme", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "medicine" ], [ "and" ], [ "trade", "name" ], [ "that" ], [ "can" ], [ "not" ], [ "interact" ], [ "with" ], [ "enzyme" ], [ "with" ], [ "product" ], [ "'" ], [ "heme" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "medicine", "JJ" ], [ "and", "CC" ], [ "trade", "NN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "can", "MD" ], [ "not", "RB" ], [ "interact", "VB" ], [ "with", "IN" ], [ "enzyme", "NN" ], [ "with", "IN" ], [ "product", "NN" ], [ "'", "''" ], [ "heme", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Heme", "Protoporphyrinogen IX" ], "rule_label": "Root1(2) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Root(3) Sel(0) N(1) A(0) C(2) T(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(11) T(2) Filter(2) A(0) C(6) T(1) V(1)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT count(DISTINCT FDA_approved) FROM medicine", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "FDA_approved", ")", "FROM", "medicine" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "fda_approved", ")", "from", "medicine" ], "question": "How many distinct FDA approval statuses are there for the medicines?", "question_toks": [ "how", "many", "distinct", "fda", "approval", "status", "are", "there", "for", "medicine", "?" ], "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": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "distinct", "FDA", "approval", "statuses", "are", "there", "for", "the", "medicines", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "fda" ], [ "approval" ], [ "status" ], [ "are" ], [ "there" ], [ "for" ], [ "medicine" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "fda", "NNS" ], [ "approval", "NN" ], [ "status", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "medicine", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT count(DISTINCT FDA_approved) FROM medicine", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "FDA_approved", ")", "FROM", "medicine" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "fda_approved", ")", "from", "medicine" ], "question": "How many different FDA approval statuses exist for medicines?", "question_toks": [ "how", "many", "different", "fda", "approval", "status", "exist", "for", "medicine", "?" ], "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": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "different", "FDA", "approval", "statuses", "exist", "for", "medicines", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "fda" ], [ "approval" ], [ "status" ], [ "exist" ], [ "for" ], [ "medicine" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "fda", "NNS" ], [ "approval", "NN" ], [ "status", "NN" ], [ "exist", "VBP" ], [ "for", "IN" ], [ "medicine", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT name FROM enzyme WHERE name LIKE \"%ALA%\"", "query_toks": [ "SELECT", "name", "FROM", "enzyme", "WHERE", "name", "LIKE", "``", "%", "ALA", "%", "''" ], "query_toks_no_value": [ "select", "name", "from", "enzyme", "where", "name", "like", "value" ], "question": "Which enzyme names have the substring \"ALA\"?", "question_toks": [ "which", "enzyme", "name", "have", "substring", "'", "ala", "'", "?" ], "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, 9, [ 0, [ 0, 6, false ], null ], "\"%ALA%\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "Which", "enzyme", "names", "have", "the", "substring", "``", "ALA", "''", "?" ], "question_arg": [ [ "which" ], [ "enzyme" ], [ "name" ], [ "have" ], [ "substring" ], [ "'" ], [ "ala" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "enzyme", "VBP" ], [ "name", "NN" ], [ "have", "VBP" ], [ "substring", "VBG" ], [ "'", "''" ], [ "ala", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "ALA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(9) A(0) C(2) T(1) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT name FROM enzyme WHERE name LIKE \"%ALA%\"", "query_toks": [ "SELECT", "name", "FROM", "enzyme", "WHERE", "name", "LIKE", "``", "%", "ALA", "%", "''" ], "query_toks_no_value": [ "select", "name", "from", "enzyme", "where", "name", "like", "value" ], "question": "What are the names of enzymes that include the string 'ALA'?", "question_toks": [ "what", "are", "name", "of", "enzyme", "that", "include", "string", "'", "ala", "'", "?" ], "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, 9, [ 0, [ 0, 6, false ], null ], "\"%ALA%\"", null ] ] }, "names": [ "*", "id", "name", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "enzymes", "that", "include", "the", "string", "'ALA", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "enzyme" ], [ "that" ], [ "include" ], [ "string" ], [ "'" ], [ "ala" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "enzyme", "NN" ], [ "that", "WDT" ], [ "include", "VBP" ], [ "string", "VBG" ], [ "'", "''" ], [ "ala", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "ALA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(9) A(0) C(2) T(1) V(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT trade_name , count(*) FROM medicine GROUP BY trade_name", "query_toks": [ "SELECT", "trade_name", ",", "count", "(", "*", ")", "FROM", "medicine", "GROUP", "BY", "trade_name" ], "query_toks_no_value": [ "select", "trade_name", ",", "count", "(", "*", ")", "from", "medicine", "group", "by", "trade_name" ], "question": "find the number of medicines offered by each trade.", "question_toks": [ "find", "number", "of", "medicine", "offered", "by", "each", "trade", "." ], "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", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "find", "the", "number", "of", "medicines", "offered", "by", "each", "trade", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "medicine" ], [ "offered" ], [ "by" ], [ "each" ], [ "trade" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "medicine", "NN" ], [ "offered", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "trade", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(0)" }, { "db_id": "medicine_enzyme_interaction", "query": "SELECT trade_name , count(*) FROM medicine GROUP BY trade_name", "query_toks": [ "SELECT", "trade_name", ",", "count", "(", "*", ")", "FROM", "medicine", "GROUP", "BY", "trade_name" ], "query_toks_no_value": [ "select", "trade_name", ",", "count", "(", "*", ")", "from", "medicine", "group", "by", "trade_name" ], "question": "How many medicines are offered by each trade name?", "question_toks": [ "how", "many", "medicine", "are", "offered", "by", "each", "trade", "name", "?" ], "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", "trade name", "fda approved", "id", "name", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "table_names": [ "medicine", "enzyme", "medicine enzyme interaction" ], "col_set": [ "*", "id", "name", "trade name", "fda approved", "location", "product", "chromosome", "omim", "porphyria", "enzyme id", "medicine id", "interaction type" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 12, "5": 5 }, "origin_question_toks": [ "How", "many", "medicines", "are", "offered", "by", "each", "trade", "name", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "medicine" ], [ "are" ], [ "offered" ], [ "by" ], [ "each" ], [ "trade", "name" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "medicine", "NN" ], [ "are", "VBP" ], [ "offered", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "trade", "NN" ], [ "name", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(0)" }, { "db_id": "university_basketball", "query": "SELECT school , nickname FROM university ORDER BY founded", "query_toks": [ "SELECT", "school", ",", "nickname", "FROM", "university", "ORDER", "BY", "founded" ], "query_toks_no_value": [ "select", "school", ",", "nickname", "from", "university", "order", "by", "founded" ], "question": "List all schools and their nicknames in the order of founded year.", "question_toks": [ "list", "all", "school", "and", "their", "nickname", "in", "order", "of", "founded", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "List", "all", "schools", "and", "their", "nicknames", "in", "the", "order", "of", "founded", "year", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "school" ], [ "and" ], [ "their" ], [ "nickname" ], [ "in" ], [ "order" ], [ "of" ], [ "founded" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "school", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "nickname", "NN" ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "founded", "JJ" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(13) T(1) A(0) C(18) T(1) Order(1) A(0) C(15) T(1)" }, { "db_id": "university_basketball", "query": "SELECT school , nickname FROM university ORDER BY founded", "query_toks": [ "SELECT", "school", ",", "nickname", "FROM", "university", "ORDER", "BY", "founded" ], "query_toks_no_value": [ "select", "school", ",", "nickname", "from", "university", "order", "by", "founded" ], "question": "What are the different schools and their nicknames, ordered by their founding years?", "question_toks": [ "what", "are", "different", "school", "and", "their", "nickname", ",", "ordered", "by", "their", "founding", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "schools", "and", "their", "nicknames", ",", "ordered", "by", "their", "founding", "years", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "school" ], [ "and" ], [ "their" ], [ "nickname" ], [ "," ], [ "ordered" ], [ "by" ], [ "their" ], [ "founding" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "school", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "nickname", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "founding", "JJ" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(13) T(1) A(0) C(18) T(1) Order(1) A(0) C(15) T(1)" }, { "db_id": "university_basketball", "query": "SELECT school , LOCATION FROM university WHERE affiliation = 'Public'", "query_toks": [ "SELECT", "school", ",", "LOCATION", "FROM", "university", "WHERE", "affiliation", "=", "'Public", "'" ], "query_toks_no_value": [ "select", "school", ",", "location", "from", "university", "where", "affiliation", "=", "value" ], "question": "List all public schools and their locations.", "question_toks": [ "list", "all", "public", "school", "and", "their", "location", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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, 17, false ], null ], "\"Public\"", null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "List", "all", "public", "schools", "and", "their", "locations", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "public" ], [ "school" ], [ "and" ], [ "their" ], [ "location" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "public", "JJ" ], [ "school", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "location", "NN" ], [ ".", "." ] ], "values": [ "Public" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(1) A(0) C(14) T(1) Filter(2) A(0) C(16) T(1) V(0)" }, { "db_id": "university_basketball", "query": "SELECT school , LOCATION FROM university WHERE affiliation = 'Public'", "query_toks": [ "SELECT", "school", ",", "LOCATION", "FROM", "university", "WHERE", "affiliation", "=", "'Public", "'" ], "query_toks_no_value": [ "select", "school", ",", "location", "from", "university", "where", "affiliation", "=", "value" ], "question": "What are the public schools and what are their locations?", "question_toks": [ "what", "are", "public", "school", "and", "what", "are", "their", "location", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "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, 17, false ], null ], "\"Public\"", null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "public", "schools", "and", "what", "are", "their", "locations", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "public" ], [ "school" ], [ "and" ], [ "what" ], [ "are" ], [ "their" ], [ "location" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "public", "JJ" ], [ "school", "NN" ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "their", "PRP$" ], [ "location", "NN" ], [ "?", "." ] ], "values": [ "Public" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(1) A(0) C(14) T(1) Filter(2) A(0) C(16) T(1) V(0)" }, { "db_id": "university_basketball", "query": "SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1", "query_toks": [ "SELECT", "founded", "FROM", "university", "ORDER", "BY", "enrollment", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "founded", "from", "university", "order", "by", "enrollment", "desc", "limit", "value" ], "question": "When was the school with the largest enrollment founded?", "question_toks": [ "when", "wa", "school", "with", "largest", "enrollment", "founded", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "When", "was", "the", "school", "with", "the", "largest", "enrollment", "founded", "?" ], "question_arg": [ [ "when" ], [ "wa" ], [ "school" ], [ "with" ], [ "largest" ], [ "enrollment" ], [ "founded" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "wa", "JJ" ], [ "school", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "enrollment", "NN" ], [ "founded", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(1) Sup(0) A(0) C(17) T(1)" }, { "db_id": "university_basketball", "query": "SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1", "query_toks": [ "SELECT", "founded", "FROM", "university", "ORDER", "BY", "enrollment", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "founded", "from", "university", "order", "by", "enrollment", "desc", "limit", "value" ], "question": "Return the founded year for the school with the largest enrollment.", "question_toks": [ "return", "founded", "year", "for", "school", "with", "largest", "enrollment", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 18, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Return", "the", "founded", "year", "for", "the", "school", "with", "the", "largest", "enrollment", "." ], "question_arg": [ [ "return" ], [ "founded" ], [ "year" ], [ "for" ], [ "school" ], [ "with" ], [ "largest" ], [ "enrollment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "founded", "VBD" ], [ "year", "NN" ], [ "for", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "enrollment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(15) T(1) Sup(0) A(0) C(17) T(1)" }, { "db_id": "university_basketball", "query": "SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1", "query_toks": [ "SELECT", "founded", "FROM", "university", "WHERE", "affiliation", "!", "=", "'Public", "'", "ORDER", "BY", "founded", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "founded", "from", "university", "where", "affiliation", "!", "=", "value", "order", "by", "founded", "desc", "limit", "value" ], "question": "Find the founded year of the newest non public school.", "question_toks": [ "find", "founded", "year", "of", "newest", "non", "public", "school", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 17, false ], null ], "\"Public\"", null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Find", "the", "founded", "year", "of", "the", "newest", "non", "public", "school", "." ], "question_arg": [ [ "find" ], [ "founded" ], [ "year" ], [ "of" ], [ "newest" ], [ "non" ], [ "public" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "founded", "VBD" ], [ "year", "NN" ], [ "of", "IN" ], [ "newest", "JJS" ], [ "non", "JJ" ], [ "public", "JJ" ], [ "school", "NN" ], [ ".", "." ] ], "values": [ "Public" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(15) T(1) Sup(0) A(0) C(15) T(1) Filter(3) A(0) C(16) T(1) V(0)" }, { "db_id": "university_basketball", "query": "SELECT founded FROM university WHERE affiliation != 'Public' ORDER BY founded DESC LIMIT 1", "query_toks": [ "SELECT", "founded", "FROM", "university", "WHERE", "affiliation", "!", "=", "'Public", "'", "ORDER", "BY", "founded", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "founded", "from", "university", "where", "affiliation", "!", "=", "value", "order", "by", "founded", "desc", "limit", "value" ], "question": "What is the founded year of the non public school that was founded most recently?", "question_toks": [ "what", "is", "founded", "year", "of", "non", "public", "school", "that", "wa", "founded", "most", "recently", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 17, false ], null ], "\"Public\"", null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "founded", "year", "of", "the", "non", "public", "school", "that", "was", "founded", "most", "recently", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "founded" ], [ "year" ], [ "of" ], [ "non" ], [ "public" ], [ "school" ], [ "that" ], [ "wa" ], [ "founded" ], [ "most" ], [ "recently" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "founded", "JJ" ], [ "year", "NN" ], [ "of", "IN" ], [ "non", "JJ" ], [ "public", "JJ" ], [ "school", "NN" ], [ "that", "IN" ], [ "wa", "NN" ], [ "founded", "VBD" ], [ "most", "RBS" ], [ "recently", "RB" ], [ "?", "." ] ], "values": [ "Public" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(15) T(1) Sup(0) A(0) C(15) T(1) Filter(3) A(0) C(16) T(1) V(0)" }, { "db_id": "university_basketball", "query": "SELECT count(DISTINCT school_id) FROM basketball_match", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "school_id", ")", "FROM", "basketball_match" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "school_id", ")", "from", "basketball_match" ], "question": "How many schools are in the basketball match?", "question_toks": [ "how", "many", "school", "are", "in", "basketball", "match", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "How", "many", "schools", "are", "in", "the", "basketball", "match", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "school" ], [ "are" ], [ "in" ], [ "basketball", "match" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "school", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "basketball", "NN" ], [ "match", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(2) T(0)" }, { "db_id": "university_basketball", "query": "SELECT count(DISTINCT school_id) FROM basketball_match", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "school_id", ")", "FROM", "basketball_match" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "school_id", ")", "from", "basketball_match" ], "question": "Count the number of schools that have had basketball matches.", "question_toks": [ "count", "number", "of", "school", "that", "have", "had", "basketball", "match", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "schools", "that", "have", "had", "basketball", "matches", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "school" ], [ "that" ], [ "have" ], [ "had" ], [ "basketball", "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "had", "VBN" ], [ "basketball", "VBN" ], [ "match", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(2) T(0)" }, { "db_id": "university_basketball", "query": "SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1", "query_toks": [ "SELECT", "acc_percent", "FROM", "basketball_match", "ORDER", "BY", "acc_percent", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "acc_percent", "from", "basketball_match", "order", "by", "acc_percent", "desc", "limit", "value" ], "question": "What is the highest acc percent score in the competition?", "question_toks": [ "what", "is", "highest", "acc", "percent", "score", "in", "competition", "?" ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "highest", "acc", "percent", "score", "in", "the", "competition", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "highest" ], [ "acc", "percent" ], [ "score" ], [ "in" ], [ "competition" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "highest", "JJS" ], [ "acc", "JJ" ], [ "percent", "NN" ], [ "score", "NN" ], [ "in", "IN" ], [ "competition", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "university_basketball", "query": "SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1", "query_toks": [ "SELECT", "acc_percent", "FROM", "basketball_match", "ORDER", "BY", "acc_percent", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "acc_percent", "from", "basketball_match", "order", "by", "acc_percent", "desc", "limit", "value" ], "question": "Return the highest acc percent across all basketball matches.", "question_toks": [ "return", "highest", "acc", "percent", "across", "all", "basketball", "match", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Return", "the", "highest", "acc", "percent", "across", "all", "basketball", "matches", "." ], "question_arg": [ [ "return" ], [ "highest" ], [ "acc", "percent" ], [ "across" ], [ "all" ], [ "basketball", "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "highest", "JJS" ], [ "acc", "JJ" ], [ "percent", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "basketball", "NN" ], [ "match", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(5) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "university_basketball", "query": "SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1", "query_toks": [ "SELECT", "t1.Primary_conference", "FROM", "university", "AS", "t1", "JOIN", "basketball_match", "AS", "t2", "ON", "t1.school_id", "=", "t2.school_id", "ORDER", "BY", "t2.acc_percent", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "primary_conference", "from", "university", "as", "t1", "join", "basketball_match", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "order", "by", "t2", ".", "acc_percent", "limit", "value" ], "question": "What is the primary conference of the school that has the lowest acc percent score in the competition?", "question_toks": [ "what", "is", "primary", "conference", "of", "school", "that", "ha", "lowest", "acc", "percent", "score", "in", "competition", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "primary", "conference", "of", "the", "school", "that", "has", "the", "lowest", "acc", "percent", "score", "in", "the", "competition", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "primary", "conference" ], [ "of" ], [ "school" ], [ "that" ], [ "ha" ], [ "lowest" ], [ "acc", "percent" ], [ "score" ], [ "in" ], [ "competition" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "primary", "JJ" ], [ "conference", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "IN" ], [ "ha", "NN" ], [ "lowest", "JJS" ], [ "acc", "NN" ], [ "percent", "NN" ], [ "score", "NN" ], [ "in", "IN" ], [ "competition", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(19) T(1) Sup(1) A(0) C(5) T(0)" }, { "db_id": "university_basketball", "query": "SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1", "query_toks": [ "SELECT", "t1.Primary_conference", "FROM", "university", "AS", "t1", "JOIN", "basketball_match", "AS", "t2", "ON", "t1.school_id", "=", "t2.school_id", "ORDER", "BY", "t2.acc_percent", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "primary_conference", "from", "university", "as", "t1", "join", "basketball_match", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "order", "by", "t2", ".", "acc_percent", "limit", "value" ], "question": "Return the primary conference of the school with the lowest acc percentage score.", "question_toks": [ "return", "primary", "conference", "of", "school", "with", "lowest", "acc", "percentage", "score", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Return", "the", "primary", "conference", "of", "the", "school", "with", "the", "lowest", "acc", "percentage", "score", "." ], "question_arg": [ [ "return" ], [ "primary", "conference" ], [ "of" ], [ "school" ], [ "with" ], [ "lowest" ], [ "acc" ], [ "percentage" ], [ "score" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "primary", "JJ" ], [ "conference", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "with", "IN" ], [ "lowest", "JJS" ], [ "acc", "NN" ], [ "percentage", "NN" ], [ "score", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(19) T(1) Sup(1) A(0) C(5) T(0)" }, { "db_id": "university_basketball", "query": "SELECT t2.team_name , t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1", "query_toks": [ "SELECT", "t2.team_name", ",", "t2.ACC_Regular_Season", "FROM", "university", "AS", "t1", "JOIN", "basketball_match", "AS", "t2", "ON", "t1.school_id", "=", "t2.school_id", "ORDER", "BY", "t1.founded", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "team_name", ",", "t2", ".", "acc_regular_season", "from", "university", "as", "t1", "join", "basketball_match", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "order", "by", "t1", ".", "founded", "limit", "value" ], "question": "What is the team name and acc regular season score of the school that was founded for the longest time?", "question_toks": [ "what", "is", "team", "name", "and", "acc", "regular", "season", "score", "of", "school", "that", "wa", "founded", "for", "longest", "time", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "team", "name", "and", "acc", "regular", "season", "score", "of", "the", "school", "that", "was", "founded", "for", "the", "longest", "time", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "team", "name" ], [ "and" ], [ "acc", "regular", "season" ], [ "score" ], [ "of" ], [ "school" ], [ "that" ], [ "wa" ], [ "founded" ], [ "for" ], [ "longest" ], [ "time" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "team", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "acc", "NN" ], [ "regular", "JJ" ], [ "season", "NN" ], [ "score", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "IN" ], [ "wa", "NN" ], [ "founded", "VBD" ], [ "for", "IN" ], [ "longest", "JJS" ], [ "time", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Sup(1) A(0) C(15) T(1)" }, { "db_id": "university_basketball", "query": "SELECT t2.team_name , t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1", "query_toks": [ "SELECT", "t2.team_name", ",", "t2.ACC_Regular_Season", "FROM", "university", "AS", "t1", "JOIN", "basketball_match", "AS", "t2", "ON", "t1.school_id", "=", "t2.school_id", "ORDER", "BY", "t1.founded", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "team_name", ",", "t2", ".", "acc_regular_season", "from", "university", "as", "t1", "join", "basketball_match", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "order", "by", "t1", ".", "founded", "limit", "value" ], "question": "Return the name of the team and the acc during the regular season for the school that was founded the earliest.", "question_toks": [ "return", "name", "of", "team", "and", "acc", "during", "regular", "season", "for", "school", "that", "wa", "founded", "earliest", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "team", "and", "the", "acc", "during", "the", "regular", "season", "for", "the", "school", "that", "was", "founded", "the", "earliest", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "team" ], [ "and" ], [ "acc" ], [ "during" ], [ "acc", "regular", "season" ], [ "for" ], [ "school" ], [ "that" ], [ "wa" ], [ "founded" ], [ "earliest" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "and", "CC" ], [ "acc", "NN" ], [ "during", "IN" ], [ "regular", "JJ" ], [ "season", "NN" ], [ "for", "IN" ], [ "school", "NN" ], [ "that", "IN" ], [ "wa", "NN" ], [ "founded", "VBD" ], [ "earliest", "JJS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Sup(1) A(0) C(15) T(1)" }, { "db_id": "university_basketball", "query": "SELECT t2.All_Games , t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson'", "query_toks": [ "SELECT", "t2.All_Games", ",", "t1.location", "FROM", "university", "AS", "t1", "JOIN", "basketball_match", "AS", "t2", "ON", "t1.school_id", "=", "t2.school_id", "WHERE", "team_name", "=", "'Clemson", "'" ], "query_toks_no_value": [ "select", "t2", ".", "all_games", ",", "t1", ".", "location", "from", "university", "as", "t1", "join", "basketball_match", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "team_name", "=", "value" ], "question": "Find the location and all games score of the school that has Clemson as its team name.", "question_toks": [ "find", "location", "and", "all", "game", "score", "of", "school", "that", "ha", "clemson", "a", "it", "team", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, 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, 8, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Clemson\"", null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Find", "the", "location", "and", "all", "games", "score", "of", "the", "school", "that", "has", "Clemson", "as", "its", "team", "name", "." ], "question_arg": [ [ "find" ], [ "location" ], [ "and" ], [ "all", "game" ], [ "score" ], [ "of" ], [ "school" ], [ "that" ], [ "ha" ], [ "clemson" ], [ "a" ], [ "it" ], [ "team", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "location", "NN" ], [ "and", "CC" ], [ "all", "DT" ], [ "game", "NN" ], [ "score", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "clemson", "NN" ], [ "a", "DT" ], [ "it", "PRP" ], [ "team", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Clemson" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(0) A(0) C(14) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "university_basketball", "query": "SELECT t2.All_Games , t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson'", "query_toks": [ "SELECT", "t2.All_Games", ",", "t1.location", "FROM", "university", "AS", "t1", "JOIN", "basketball_match", "AS", "t2", "ON", "t1.school_id", "=", "t2.school_id", "WHERE", "team_name", "=", "'Clemson", "'" ], "query_toks_no_value": [ "select", "t2", ".", "all_games", ",", "t1", ".", "location", "from", "university", "as", "t1", "join", "basketball_match", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "team_name", "=", "value" ], "question": "What are the all games score and location of the school called Clemson?", "question_toks": [ "what", "are", "all", "game", "score", "and", "location", "of", "school", "called", "clemson", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, 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, 8, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Clemson\"", null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "all", "games", "score", "and", "location", "of", "the", "school", "called", "Clemson", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all", "game" ], [ "score" ], [ "and" ], [ "location" ], [ "of" ], [ "school" ], [ "called" ], [ "clemson" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "game", "NN" ], [ "score", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "called", "VBN" ], [ "clemson", "NN" ], [ "?", "." ] ], "values": [ "Clemson" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(0) A(0) C(14) T(1) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "university_basketball", "query": "SELECT avg(enrollment) FROM university WHERE founded < 1850", "query_toks": [ "SELECT", "avg", "(", "enrollment", ")", "FROM", "university", "WHERE", "founded", "<", "1850" ], "query_toks_no_value": [ "select", "avg", "(", "enrollment", ")", "from", "university", "where", "founded", "<", "value" ], "question": "What are the average enrollment size of the universities that are founded before 1850?", "question_toks": [ "what", "are", "average", "enrollment", "size", "of", "university", "that", "are", "founded", "before", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 16, false ], null ], 1850.0, null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "average", "enrollment", "size", "of", "the", "universities", "that", "are", "founded", "before", "1850", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "enrollment" ], [ "size" ], [ "of" ], [ "university" ], [ "that" ], [ "are" ], [ "founded" ], [ "before" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ "enrollment", "JJ" ], [ "size", "NN" ], [ "of", "IN" ], [ "university", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "founded", "VBN" ], [ "before", "IN" ], [ "1850", "CD" ], [ "?", "." ] ], "values": [ "1850" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(17) T(1) Filter(4) A(0) C(15) T(1) V(0)" }, { "db_id": "university_basketball", "query": "SELECT avg(enrollment) FROM university WHERE founded < 1850", "query_toks": [ "SELECT", "avg", "(", "enrollment", ")", "FROM", "university", "WHERE", "founded", "<", "1850" ], "query_toks_no_value": [ "select", "avg", "(", "enrollment", ")", "from", "university", "where", "founded", "<", "value" ], "question": "Return the average enrollment of universities founded before 1850.", "question_toks": [ "return", "average", "enrollment", "of", "university", "founded", "before", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 16, false ], null ], 1850.0, null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Return", "the", "average", "enrollment", "of", "universities", "founded", "before", "1850", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "enrollment" ], [ "of" ], [ "university" ], [ "founded" ], [ "before" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "JJ" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "university", "NN" ], [ "founded", "VBN" ], [ "before", "IN" ], [ "1850", "CD" ], [ ".", "." ] ], "values": [ "1850" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(17) T(1) Filter(4) A(0) C(15) T(1) V(0)" }, { "db_id": "university_basketball", "query": "SELECT enrollment , primary_conference FROM university ORDER BY founded LIMIT 1", "query_toks": [ "SELECT", "enrollment", ",", "primary_conference", "FROM", "university", "ORDER", "BY", "founded", "LIMIT", "1" ], "query_toks_no_value": [ "select", "enrollment", ",", "primary_conference", "from", "university", "order", "by", "founded", "limit", "value" ], "question": "Show the enrollment and primary_conference of the oldest college.", "question_toks": [ "show", "enrollment", "and", "primary_conference", "of", "oldest", "college", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Show", "the", "enrollment", "and", "primary_conference", "of", "the", "oldest", "college", "." ], "question_arg": [ [ "show" ], [ "enrollment" ], [ "and" ], [ "primary_conference" ], [ "of" ], [ "oldest" ], [ "college" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "enrollment", "NN" ], [ "and", "CC" ], [ "primary_conference", "NN" ], [ "of", "IN" ], [ "oldest", "JJS" ], [ "college", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(17) T(1) A(0) C(19) T(1) Sup(1) A(0) C(15) T(1)" }, { "db_id": "university_basketball", "query": "SELECT enrollment , primary_conference FROM university ORDER BY founded LIMIT 1", "query_toks": [ "SELECT", "enrollment", ",", "primary_conference", "FROM", "university", "ORDER", "BY", "founded", "LIMIT", "1" ], "query_toks_no_value": [ "select", "enrollment", ",", "primary_conference", "from", "university", "order", "by", "founded", "limit", "value" ], "question": "What are the enrollment and primary conference for the university which was founded the earliest?", "question_toks": [ "what", "are", "enrollment", "and", "primary", "conference", "for", "university", "which", "wa", "founded", "earliest", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 16, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "enrollment", "and", "primary", "conference", "for", "the", "university", "which", "was", "founded", "the", "earliest", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "enrollment" ], [ "and" ], [ "primary", "conference" ], [ "for" ], [ "university" ], [ "which" ], [ "wa" ], [ "founded" ], [ "earliest" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "enrollment", "JJ" ], [ "and", "CC" ], [ "primary", "JJ" ], [ "conference", "NN" ], [ "for", "IN" ], [ "university", "NN" ], [ "which", "WDT" ], [ "wa", "NN" ], [ "founded", "VBD" ], [ "earliest", "JJS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(17) T(1) A(0) C(19) T(1) Sup(1) A(0) C(15) T(1)" }, { "db_id": "university_basketball", "query": "SELECT sum(enrollment) , min(enrollment) FROM university", "query_toks": [ "SELECT", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "FROM", "university" ], "query_toks_no_value": [ "select", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "from", "university" ], "question": "What is the total and minimum enrollment of all schools?", "question_toks": [ "what", "is", "total", "and", "minimum", "enrollment", "of", "all", "school", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ], [ 2, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "total", "and", "minimum", "enrollment", "of", "all", "schools", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "and" ], [ "minimum" ], [ "enrollment" ], [ "of" ], [ "all" ], [ "school" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "school", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(17) T(1) A(2) C(17) T(1)" }, { "db_id": "university_basketball", "query": "SELECT sum(enrollment) , min(enrollment) FROM university", "query_toks": [ "SELECT", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "FROM", "university" ], "query_toks_no_value": [ "select", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "from", "university" ], "question": "Return the total and minimum enrollments across all schools.", "question_toks": [ "return", "total", "and", "minimum", "enrollment", "across", "all", "school", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ], [ 2, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Return", "the", "total", "and", "minimum", "enrollments", "across", "all", "schools", "." ], "question_arg": [ [ "return" ], [ "total" ], [ "and" ], [ "minimum" ], [ "enrollment" ], [ "across" ], [ "all" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "total", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "enrollment", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "school", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(17) T(1) A(2) C(17) T(1)" }, { "db_id": "university_basketball", "query": "SELECT sum(enrollment) , affiliation FROM university GROUP BY affiliation", "query_toks": [ "SELECT", "sum", "(", "enrollment", ")", ",", "affiliation", "FROM", "university", "GROUP", "BY", "affiliation" ], "query_toks_no_value": [ "select", "sum", "(", "enrollment", ")", ",", "affiliation", "from", "university", "group", "by", "affiliation" ], "question": "Find the total student enrollment for different affiliation type schools.", "question_toks": [ "find", "total", "student", "enrollment", "for", "different", "affiliation", "type", "school", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Find", "the", "total", "student", "enrollment", "for", "different", "affiliation", "type", "schools", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "student" ], [ "enrollment" ], [ "for" ], [ "different" ], [ "affiliation" ], [ "type" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "student", "NN" ], [ "enrollment", "NN" ], [ "for", "IN" ], [ "different", "JJ" ], [ "affiliation", "NN" ], [ "type", "NN" ], [ "school", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(17) T(1) A(0) C(16) T(1)" }, { "db_id": "university_basketball", "query": "SELECT sum(enrollment) , affiliation FROM university GROUP BY affiliation", "query_toks": [ "SELECT", "sum", "(", "enrollment", ")", ",", "affiliation", "FROM", "university", "GROUP", "BY", "affiliation" ], "query_toks_no_value": [ "select", "sum", "(", "enrollment", ")", ",", "affiliation", "from", "university", "group", "by", "affiliation" ], "question": "What are the total enrollments of universities of each affiliation type?", "question_toks": [ "what", "are", "total", "enrollment", "of", "university", "of", "each", "affiliation", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "total", "enrollments", "of", "universities", "of", "each", "affiliation", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "enrollment" ], [ "of" ], [ "university" ], [ "of" ], [ "each" ], [ "affiliation" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "university", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "affiliation", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(17) T(1) A(0) C(16) T(1)" }, { "db_id": "university_basketball", "query": "SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "university", "WHERE", "school_id", "NOT", "IN", "(", "SELECT", "school_id", "FROM", "basketball_match", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "university", "where", "school_id", "not", "in", "(", "select", "school_id", "from", "basketball_match", ")" ], "question": "How many schools do not participate in the basketball match?", "question_toks": [ "how", "many", "school", "do", "not", "participate", "in", "basketball", "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": [ [ true, 8, [ 0, [ 0, 13, 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": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "How", "many", "schools", "do", "not", "participate", "in", "the", "basketball", "match", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "school" ], [ "do" ], [ "not" ], [ "participate" ], [ "in" ], [ "basketball", "match" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "school", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "participate", "VB" ], [ "in", "IN" ], [ "basketball", "NN" ], [ "match", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "university_basketball", "query": "SELECT count(*) FROM university WHERE school_id NOT IN (SELECT school_id FROM basketball_match)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "university", "WHERE", "school_id", "NOT", "IN", "(", "SELECT", "school_id", "FROM", "basketball_match", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "university", "where", "school_id", "not", "in", "(", "select", "school_id", "from", "basketball_match", ")" ], "question": "Count the number of universities that do not participate in the baketball match.", "question_toks": [ "count", "number", "of", "university", "that", "do", "not", "participate", "in", "baketball", "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": [ [ true, 8, [ 0, [ 0, 13, 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": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "universities", "that", "do", "not", "participate", "in", "the", "baketball", "match", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "university" ], [ "that" ], [ "do" ], [ "not" ], [ "participate" ], [ "in" ], [ "baketball" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "university", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "participate", "VB" ], [ "in", "IN" ], [ "baketball", "DT" ], [ "match", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "university_basketball", "query": "SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public'", "query_toks": [ "SELECT", "school", "FROM", "university", "WHERE", "founded", ">", "1850", "OR", "affiliation", "=", "'Public", "'" ], "query_toks_no_value": [ "select", "school", "from", "university", "where", "founded", ">", "value", "or", "affiliation", "=", "value" ], "question": "Find the schools that were either founded after 1850 or public.", "question_toks": [ "find", "school", "that", "were", "either", "founded", "after", "year", "or", "public", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 16, false ], null ], 1850.0, null ], "or", [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Public\"", null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Find", "the", "schools", "that", "were", "either", "founded", "after", "1850", "or", "public", "." ], "question_arg": [ [ "find" ], [ "school" ], [ "that" ], [ "were" ], [ "either" ], [ "founded" ], [ "after" ], [ "year" ], [ "or" ], [ "public" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "school", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "either", "DT" ], [ "founded", "VBN" ], [ "after", "IN" ], [ "1850", "CD" ], [ "or", "CC" ], [ "public", "JJ" ], [ ".", "." ] ], "values": [ "1850", "Public" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(1) Filter(5) A(0) C(15) T(1) V(0) Filter(2) A(0) C(16) T(1) V(1)" }, { "db_id": "university_basketball", "query": "SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public'", "query_toks": [ "SELECT", "school", "FROM", "university", "WHERE", "founded", ">", "1850", "OR", "affiliation", "=", "'Public", "'" ], "query_toks_no_value": [ "select", "school", "from", "university", "where", "founded", ">", "value", "or", "affiliation", "=", "value" ], "question": "What are the schools that were either founded before 1850 or are public?", "question_toks": [ "what", "are", "school", "that", "were", "either", "founded", "before", "year", "or", "are", "public", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 16, false ], null ], 1850.0, null ], "or", [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Public\"", null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "schools", "that", "were", "either", "founded", "before", "1850", "or", "are", "public", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "school" ], [ "that" ], [ "were" ], [ "either" ], [ "founded" ], [ "before" ], [ "year" ], [ "or" ], [ "are" ], [ "public" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "school", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "either", "RB" ], [ "founded", "VBN" ], [ "before", "IN" ], [ "1850", "CD" ], [ "or", "CC" ], [ "are", "VBP" ], [ "public", "JJ" ], [ "?", "." ] ], "values": [ "1850", "Public" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(1) Filter(5) A(0) C(15) T(1) V(0) Filter(2) A(0) C(16) T(1) V(1)" }, { "db_id": "university_basketball", "query": "SELECT count(DISTINCT affiliation) FROM university", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "affiliation", ")", "FROM", "university" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "affiliation", ")", "from", "university" ], "question": "Find how many different affiliation types there are.", "question_toks": [ "find", "how", "many", "different", "affiliation", "type", "there", "are", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 17, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Find", "how", "many", "different", "affiliation", "types", "there", "are", "." ], "question_arg": [ [ "find" ], [ "how" ], [ "many" ], [ "different" ], [ "affiliation" ], [ "type" ], [ "there" ], [ "are" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "affiliation", "NN" ], [ "type", "NN" ], [ "there", "EX" ], [ "are", "VBP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(16) T(1)" }, { "db_id": "university_basketball", "query": "SELECT count(DISTINCT affiliation) FROM university", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "affiliation", ")", "FROM", "university" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "affiliation", ")", "from", "university" ], "question": "Count the number of different affiliation types.", "question_toks": [ "count", "number", "of", "different", "affiliation", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 17, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "affiliation", "types", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "affiliation" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "affiliation", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(16) T(1)" }, { "db_id": "university_basketball", "query": "SELECT count(*) FROM university WHERE LOCATION LIKE \"%NY%\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "university", "WHERE", "LOCATION", "LIKE", "``", "%", "NY", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "university", "where", "location", "like", "value" ], "question": "Find how many school locations have the word 'NY'.", "question_toks": [ "find", "how", "many", "school", "location", "have", "word", "'", "ny", "'", "." ], "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, 9, [ 0, [ 0, 15, false ], null ], "\"%NY%\"", null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Find", "how", "many", "school", "locations", "have", "the", "word", "'NY", "'", "." ], "question_arg": [ [ "find" ], [ "how" ], [ "many" ], [ "school" ], [ "location" ], [ "have" ], [ "word" ], [ "'" ], [ "ny" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "school", "NN" ], [ "location", "NN" ], [ "have", "VBP" ], [ "word", "NN" ], [ "'", "''" ], [ "ny", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "NY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(9) A(0) C(14) T(1) V(0)" }, { "db_id": "university_basketball", "query": "SELECT count(*) FROM university WHERE LOCATION LIKE \"%NY%\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "university", "WHERE", "LOCATION", "LIKE", "``", "%", "NY", "%", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "university", "where", "location", "like", "value" ], "question": "How many universities have a location that contains NY?", "question_toks": [ "how", "many", "university", "have", "a", "location", "that", "contains", "ny", "?" ], "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, 9, [ 0, [ 0, 15, false ], null ], "\"%NY%\"", null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "How", "many", "universities", "have", "a", "location", "that", "contains", "NY", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "university" ], [ "have" ], [ "a" ], [ "location" ], [ "that" ], [ "contains" ], [ "ny" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "university", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "location", "NN" ], [ "that", "WDT" ], [ "contains", "VBZ" ], [ "ny", "RB" ], [ "?", "." ] ], "values": [ "NY" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(9) A(0) C(14) T(1) V(0)" }, { "db_id": "university_basketball", "query": "SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT avg(enrollment) FROM university)", "query_toks": [ "SELECT", "t2.team_name", "FROM", "university", "AS", "t1", "JOIN", "basketball_match", "AS", "t2", "ON", "t1.school_id", "=", "t2.school_id", "WHERE", "enrollment", "<", "(", "SELECT", "avg", "(", "enrollment", ")", "FROM", "university", ")" ], "query_toks_no_value": [ "select", "t2", ".", "team_name", "from", "university", "as", "t1", "join", "basketball_match", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "enrollment", "<", "(", "select", "avg", "(", "enrollment", ")", "from", "university", ")" ], "question": "Find the team names of the universities whose enrollments are smaller than the average enrollment size.", "question_toks": [ "find", "team", "name", "of", "university", "whose", "enrollment", "are", "smaller", "than", "average", "enrollment", "size", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, 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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Find", "the", "team", "names", "of", "the", "universities", "whose", "enrollments", "are", "smaller", "than", "the", "average", "enrollment", "size", "." ], "question_arg": [ [ "find" ], [ "team", "name" ], [ "of" ], [ "university" ], [ "whose" ], [ "enrollment" ], [ "are" ], [ "smaller" ], [ "than" ], [ "average" ], [ "enrollment" ], [ "size" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "team", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "university", "NN" ], [ "whose", "WP$" ], [ "enrollment", "NN" ], [ "are", "VBP" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "enrollment", "JJ" ], [ "size", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(12) A(0) C(17) T(1) Root(5) Sel(0) N(0) A(5) C(17) T(1)" }, { "db_id": "university_basketball", "query": "SELECT t2.team_name FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE enrollment < (SELECT avg(enrollment) FROM university)", "query_toks": [ "SELECT", "t2.team_name", "FROM", "university", "AS", "t1", "JOIN", "basketball_match", "AS", "t2", "ON", "t1.school_id", "=", "t2.school_id", "WHERE", "enrollment", "<", "(", "SELECT", "avg", "(", "enrollment", ")", "FROM", "university", ")" ], "query_toks_no_value": [ "select", "t2", ".", "team_name", "from", "university", "as", "t1", "join", "basketball_match", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "enrollment", "<", "(", "select", "avg", "(", "enrollment", ")", "from", "university", ")" ], "question": "What are the names of teams from universities that have a below average enrollment?", "question_toks": [ "what", "are", "name", "of", "team", "from", "university", "that", "have", "a", "below", "average", "enrollment", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, 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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 18, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "teams", "from", "universities", "that", "have", "a", "below", "average", "enrollment", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "team" ], [ "from" ], [ "university" ], [ "that" ], [ "have" ], [ "a" ], [ "below" ], [ "average" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "from", "IN" ], [ "university", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "below", "JJ" ], [ "average", "NN" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(12) A(0) C(17) T(1) Root(5) Sel(0) N(0) A(5) C(17) T(1)" }, { "db_id": "university_basketball", "query": "SELECT count(*) , affiliation FROM university WHERE enrollment > 20000 GROUP BY affiliation", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "affiliation", "FROM", "university", "WHERE", "enrollment", ">", "20000", "GROUP", "BY", "affiliation" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "affiliation", "from", "university", "where", "enrollment", ">", "value", "group", "by", "affiliation" ], "question": "Find the number of universities that have over a 20000 enrollment size for each affiliation type.", "question_toks": [ "find", "number", "of", "university", "that", "have", "over", "a", "20000", "enrollment", "size", "for", "each", "affiliation", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 20000.0, null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "universities", "that", "have", "over", "a", "20000", "enrollment", "size", "for", "each", "affiliation", "type", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "university" ], [ "that" ], [ "have" ], [ "over" ], [ "a" ], [ "20000" ], [ "enrollment" ], [ "size" ], [ "for" ], [ "each" ], [ "affiliation" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "university", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "over", "IN" ], [ "a", "DT" ], [ "20000", "CD" ], [ "enrollment", "NN" ], [ "size", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "affiliation", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "20000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(1) A(0) C(16) T(1) Filter(5) A(0) C(17) T(1) V(0)" }, { "db_id": "university_basketball", "query": "SELECT count(*) , affiliation FROM university WHERE enrollment > 20000 GROUP BY affiliation", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "affiliation", "FROM", "university", "WHERE", "enrollment", ">", "20000", "GROUP", "BY", "affiliation" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "affiliation", "from", "university", "where", "enrollment", ">", "value", "group", "by", "affiliation" ], "question": "What are the different affiliations, and how many schools with each have an enrollment size of above 20000?", "question_toks": [ "what", "are", "different", "affiliation", ",", "and", "how", "many", "school", "with", "each", "have", "an", "enrollment", "size", "of", "above", "20000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 18, false ], null ], 20000.0, null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "affiliations", ",", "and", "how", "many", "schools", "with", "each", "have", "an", "enrollment", "size", "of", "above", "20000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "affiliation" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "school" ], [ "with" ], [ "each" ], [ "have" ], [ "an" ], [ "enrollment" ], [ "size" ], [ "of" ], [ "above" ], [ "20000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "affiliation", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "school", "NN" ], [ "with", "IN" ], [ "each", "DT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "enrollment", "JJ" ], [ "size", "NN" ], [ "of", "IN" ], [ "above", "IN" ], [ "20000", "CD" ], [ "?", "." ] ], "values": [ "20000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(1) A(0) C(16) T(1) Filter(5) A(0) C(17) T(1) V(0)" }, { "db_id": "university_basketball", "query": "SELECT sum(Enrollment) , affiliation FROM university WHERE founded > 1850 GROUP BY affiliation", "query_toks": [ "SELECT", "sum", "(", "Enrollment", ")", ",", "affiliation", "FROM", "university", "WHERE", "founded", ">", "1850", "GROUP", "BY", "affiliation" ], "query_toks_no_value": [ "select", "sum", "(", "enrollment", ")", ",", "affiliation", "from", "university", "where", "founded", ">", "value", "group", "by", "affiliation" ], "question": "Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.", "question_toks": [ "find", "total", "number", "of", "student", "enrolled", "in", "college", "that", "were", "founded", "after", "year", "of", "year", "for", "each", "affiliation", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 16, false ], null ], 1850.0, null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "students", "enrolled", "in", "the", "colleges", "that", "were", "founded", "after", "the", "year", "of", "1850", "for", "each", "affiliation", "type", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "enrolled" ], [ "in" ], [ "college" ], [ "that" ], [ "were" ], [ "founded" ], [ "after" ], [ "year" ], [ "of" ], [ "year" ], [ "for" ], [ "each" ], [ "affiliation" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "enrolled", "VBN" ], [ "in", "IN" ], [ "college", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "founded", "VBN" ], [ "after", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "1850", "CD" ], [ "for", "IN" ], [ "each", "DT" ], [ "affiliation", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "1850" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(17) T(1) A(0) C(16) T(1) Filter(5) A(0) C(15) T(1) V(0)" }, { "db_id": "university_basketball", "query": "SELECT sum(Enrollment) , affiliation FROM university WHERE founded > 1850 GROUP BY affiliation", "query_toks": [ "SELECT", "sum", "(", "Enrollment", ")", ",", "affiliation", "FROM", "university", "WHERE", "founded", ">", "1850", "GROUP", "BY", "affiliation" ], "query_toks_no_value": [ "select", "sum", "(", "enrollment", ")", ",", "affiliation", "from", "university", "where", "founded", ">", "value", "group", "by", "affiliation" ], "question": "What are the different affiliations, and what is the total enrollment of schools founded after 1850 for each enrollment type?", "question_toks": [ "what", "are", "different", "affiliation", ",", "and", "what", "is", "total", "enrollment", "of", "school", "founded", "after", "year", "for", "each", "enrollment", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 16, false ], null ], 1850.0, null ] ] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "affiliations", ",", "and", "what", "is", "the", "total", "enrollment", "of", "schools", "founded", "after", "1850", "for", "each", "enrollment", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "affiliation" ], [ "," ], [ "and" ], [ "what" ], [ "is" ], [ "total" ], [ "enrollment" ], [ "of" ], [ "school" ], [ "founded" ], [ "after" ], [ "year" ], [ "for" ], [ "each" ], [ "enrollment" ], [ "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "affiliation", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "enrollment", "NN" ], [ "of", "IN" ], [ "school", "NN" ], [ "founded", "VBN" ], [ "after", "IN" ], [ "1850", "CD" ], [ "for", "IN" ], [ "each", "DT" ], [ "enrollment", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [ "1850" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(4) C(17) T(1) A(0) C(16) T(1) Filter(5) A(0) C(15) T(1) V(0)" }, { "db_id": "university_basketball", "query": "SELECT max(Enrollment) FROM university", "query_toks": [ "SELECT", "max", "(", "Enrollment", ")", "FROM", "university" ], "query_toks_no_value": [ "select", "max", "(", "enrollment", ")", "from", "university" ], "question": "What is the maximum enrollment across all schools?", "question_toks": [ "what", "is", "maximum", "enrollment", "across", "all", "school", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "maximum", "enrollment", "across", "all", "schools", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "enrollment" ], [ "across" ], [ "all" ], [ "school" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "enrollment", "JJ" ], [ "across", "IN" ], [ "all", "DT" ], [ "school", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(1) C(17) T(1)" }, { "db_id": "university_basketball", "query": "SELECT max(Enrollment) FROM university", "query_toks": [ "SELECT", "max", "(", "Enrollment", ")", "FROM", "university" ], "query_toks_no_value": [ "select", "max", "(", "enrollment", ")", "from", "university" ], "question": "Return the maximum enrollment across all schools.", "question_toks": [ "return", "maximum", "enrollment", "across", "all", "school", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "Return", "the", "maximum", "enrollment", "across", "all", "schools", "." ], "question_arg": [ [ "return" ], [ "maximum" ], [ "enrollment" ], [ "across" ], [ "all" ], [ "school" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "maximum", "JJ" ], [ "enrollment", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "school", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(1) C(17) T(1)" }, { "db_id": "university_basketball", "query": "SELECT * FROM basketball_match", "query_toks": [ "SELECT", "*", "FROM", "basketball_match" ], "query_toks_no_value": [ "select", "*", "from", "basketball_match" ], "question": "List all information regarding the basketball match.", "question_toks": [ "list", "all", "information", "regarding", "basketball", "match", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "List", "all", "information", "regarding", "the", "basketball", "match", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "information" ], [ "regarding" ], [ "basketball", "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "information", "NN" ], [ "regarding", "VBG" ], [ "basketball", "NN" ], [ "match", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(0) T(0)" }, { "db_id": "university_basketball", "query": "SELECT * FROM basketball_match", "query_toks": [ "SELECT", "*", "FROM", "basketball_match" ], "query_toks_no_value": [ "select", "*", "from", "basketball_match" ], "question": "What is all the information about the basketball match?", "question_toks": [ "what", "is", "all", "information", "about", "basketball", "match", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "is", "all", "the", "information", "about", "the", "basketball", "match", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "all" ], [ "information" ], [ "about" ], [ "basketball", "match" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "basketball", "NN" ], [ "match", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(0) T(0)" }, { "db_id": "university_basketball", "query": "SELECT team_name FROM basketball_match ORDER BY All_Home DESC", "query_toks": [ "SELECT", "team_name", "FROM", "basketball_match", "ORDER", "BY", "All_Home", "DESC" ], "query_toks_no_value": [ "select", "team_name", "from", "basketball_match", "order", "by", "all_home", "desc" ], "question": "List names of all teams in the basketball competition, ordered by all home scores in descending order.", "question_toks": [ "list", "name", "of", "all", "team", "in", "basketball", "competition", ",", "ordered", "by", "all", "home", "score", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "List", "names", "of", "all", "teams", "in", "the", "basketball", "competition", ",", "ordered", "by", "all", "home", "scores", "in", "descending", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "team" ], [ "in" ], [ "basketball" ], [ "competition" ], [ "," ], [ "ordered" ], [ "by" ], [ "all", "home" ], [ "score" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "team", "NN" ], [ "in", "IN" ], [ "basketball", "NN" ], [ "competition", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "all", "DT" ], [ "home", "NN" ], [ "score", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(0) A(0) C(10) T(0)" }, { "db_id": "university_basketball", "query": "SELECT team_name FROM basketball_match ORDER BY All_Home DESC", "query_toks": [ "SELECT", "team_name", "FROM", "basketball_match", "ORDER", "BY", "All_Home", "DESC" ], "query_toks_no_value": [ "select", "team_name", "from", "basketball_match", "order", "by", "all_home", "desc" ], "question": "What are the names of all the teams in the basketball competition, sorted by all home scores in descending order?", "question_toks": [ "what", "are", "name", "of", "all", "team", "in", "basketball", "competition", ",", "sorted", "by", "all", "home", "score", "in", "descending", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school id", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "table_names": [ "basketball match", "university" ], "col_set": [ "*", "team id", "school id", "team name", "acc regular season", "acc percent", "acc home", "acc road", "all games", "all games percent", "all home", "all road", "all neutral", "school", "location", "founded", "affiliation", "enrollment", "nickname", "primary conference" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 13, "13": 13, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "teams", "in", "the", "basketball", "competition", ",", "sorted", "by", "all", "home", "scores", "in", "descending", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "team" ], [ "in" ], [ "basketball" ], [ "competition" ], [ "," ], [ "sorted" ], [ "by" ], [ "all", "home" ], [ "score" ], [ "in" ], [ "descending" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "team", "NN" ], [ "in", "IN" ], [ "basketball", "NN" ], [ "competition", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "all", "DT" ], [ "home", "NN" ], [ "score", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(0) A(0) C(10) T(0)" }, { "db_id": "phone_1", "query": "SELECT Model_name FROM chip_model WHERE Launch_year BETWEEN 2002 AND 2004;", "query_toks": [ "SELECT", "Model_name", "FROM", "chip_model", "WHERE", "Launch_year", "BETWEEN", "2002", "AND", "2004", ";" ], "query_toks_no_value": [ "select", "model_name", "from", "chip_model", "where", "launch_year", "between", "value", "and", "value" ], "question": "the names of models that launched between 2002 and 2004.", "question_toks": [ "name", "of", "model", "that", "launched", "between", "year", "and", "year", "." ], "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, 1, [ 0, [ 0, 2, false ], null ], 2002.0, 2004.0 ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "the", "names", "of", "models", "that", "launched", "between", "2002", "and", "2004", "." ], "question_arg": [ [ "name" ], [ "of" ], [ "model" ], [ "that" ], [ "launched" ], [ "between" ], [ "year" ], [ "and" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "name", "NN" ], [ "of", "IN" ], [ "model", "NN" ], [ "that", "WDT" ], [ "launched", "VBD" ], [ "between", "IN" ], [ "2002", "CD" ], [ "and", "CC" ], [ "2004", "CD" ], [ ".", "." ] ], "values": [ "2002", "2004" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(1) T(0) Filter(8) A(0) C(2) T(0) V(0) V(1)" }, { "db_id": "phone_1", "query": "SELECT Model_name , RAM_MiB FROM chip_model ORDER BY RAM_MiB ASC LIMIT 1;", "query_toks": [ "SELECT", "Model_name", ",", "RAM_MiB", "FROM", "chip_model", "ORDER", "BY", "RAM_MiB", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "model_name", ",", "ram_mib", "from", "chip_model", "order", "by", "ram_mib", "asc", "limit", "value" ], "question": "Which model has the least amount of RAM? List the model name and the amount of RAM.", "question_toks": [ "which", "model", "ha", "least", "amount", "of", "ram", "?", "list", "model", "name", "and", "amount", "of", "ram", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Which", "model", "has", "the", "least", "amount", "of", "RAM", "?", "List", "the", "model", "name", "and", "the", "amount", "of", "RAM", "." ], "question_arg": [ [ "which" ], [ "model" ], [ "ha" ], [ "least" ], [ "amount" ], [ "of" ], [ "ram" ], [ "?" ], [ "list" ], [ "model", "name" ], [ "and" ], [ "amount" ], [ "of" ], [ "ram" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "model", "NN" ], [ "ha", "NN" ], [ "least", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "ram", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "model", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "amount", "NN" ], [ "of", "IN" ], [ "ram", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(1) T(0) A(0) C(3) T(0) Sup(1) A(0) C(3) T(0)" }, { "db_id": "phone_1", "query": "SELECT chip_model , screen_mode FROM phone WHERE Hardware_Model_name = \"LG-P760\";", "query_toks": [ "SELECT", "chip_model", ",", "screen_mode", "FROM", "phone", "WHERE", "Hardware_Model_name", "=", "``", "LG-P760", "''", ";" ], "query_toks_no_value": [ "select", "chip_model", ",", "screen_mode", "from", "phone", "where", "hardware_model_name", "=", "value" ], "question": "What are the chip model and screen mode of the phone with hardware model name \"LG-P760\"?", "question_toks": [ "what", "are", "chip", "model", "and", "screen", "mode", "of", "phone", "with", "hardware", "model", "name", "'", "lg-p760", "'", "?" ], "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 ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"LG-P760\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "What", "are", "the", "chip", "model", "and", "screen", "mode", "of", "the", "phone", "with", "hardware", "model", "name", "``", "LG-P760", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "chip", "model" ], [ "and" ], [ "screen", "mode" ], [ "of" ], [ "phone" ], [ "with" ], [ "hardware", "model", "name" ], [ "'" ], [ "lg-p760" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "chip", "NN" ], [ "model", "NN" ], [ "and", "CC" ], [ "screen", "JJ" ], [ "mode", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "with", "IN" ], [ "hardware", "NN" ], [ "model", "NN" ], [ "name", "NN" ], [ "'", "POS" ], [ "lg-p760", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "LG-P760" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(20) T(2) A(0) C(21) T(2) Filter(2) A(0) C(16) T(2) V(0)" }, { "db_id": "phone_1", "query": "SELECT count(*) FROM phone WHERE Company_name = \"Nokia Corporation\";", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "phone", "WHERE", "Company_name", "=", "``", "Nokia", "Corporation", "''", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "phone", "where", "company_name", "=", "value" ], "question": "How many phone hardware models are produced by the company named \"Nokia Corporation\"?", "question_toks": [ "how", "many", "phone", "hardware", "model", "are", "produced", "by", "company", "named", "'", "nokia", "corporation", "'", "?" ], "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, 15, false ], null ], "\"Nokia Corporation\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "How", "many", "phone", "hardware", "models", "are", "produced", "by", "the", "company", "named", "``", "Nokia", "Corporation", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "phone" ], [ "hardware", "model", "name" ], [ "are" ], [ "produced" ], [ "by" ], [ "company" ], [ "named" ], [ "'" ], [ "nokia" ], [ "corporation" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "phone", "NN" ], [ "hardware", "NN" ], [ "model", "NN" ], [ "are", "VBP" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "company", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "nokia", "JJ" ], [ "corporation", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Nokia Corporation" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "phone_1", "query": "SELECT max(T1.RAM_MiB) , min(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = \"Nokia Corporation\";", "query_toks": [ "SELECT", "max", "(", "T1.RAM_MiB", ")", ",", "min", "(", "T1.RAM_MiB", ")", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Model_name", "=", "T2.chip_model", "WHERE", "T2.Company_name", "=", "``", "Nokia", "Corporation", "''", ";" ], "query_toks_no_value": [ "select", "max", "(", "t1", ".", "ram_mib", ")", ",", "min", "(", "t1", ".", "ram_mib", ")", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t2", ".", "company_name", "=", "value" ], "question": "What is maximum and minimum RAM size of phone produced by company named \"Nokia Corporation\"?", "question_toks": [ "what", "is", "maximum", "and", "minimum", "ram", "size", "of", "phone", "produced", "by", "company", "named", "'", "nokia", "corporation", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ], [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Nokia Corporation\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "What", "is", "maximum", "and", "minimum", "RAM", "size", "of", "phone", "produced", "by", "company", "named", "``", "Nokia", "Corporation", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "ram" ], [ "size" ], [ "of" ], [ "phone" ], [ "produced" ], [ "by" ], [ "company" ], [ "named" ], [ "'" ], [ "nokia" ], [ "corporation" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "ram", "NN" ], [ "size", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "company", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "nokia", "JJ" ], [ "corporation", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Nokia Corporation" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(1) C(3) T(0) A(2) C(3) T(0) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "phone_1", "query": "SELECT avg(T1.ROM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = \"Nokia Corporation\";", "query_toks": [ "SELECT", "avg", "(", "T1.ROM_MiB", ")", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Model_name", "=", "T2.chip_model", "WHERE", "T2.Company_name", "=", "``", "Nokia", "Corporation", "''", ";" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "rom_mib", ")", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t2", ".", "company_name", "=", "value" ], "question": "What is the average ROM size of phones produced by the company named \"Nokia Corporation\"?", "question_toks": [ "what", "is", "average", "rom", "size", "of", "phone", "produced", "by", "company", "named", "'", "nokia", "corporation", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Nokia Corporation\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "What", "is", "the", "average", "ROM", "size", "of", "phones", "produced", "by", "the", "company", "named", "``", "Nokia", "Corporation", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "rom" ], [ "size" ], [ "of" ], [ "phone" ], [ "produced" ], [ "by" ], [ "company" ], [ "named" ], [ "'" ], [ "nokia" ], [ "corporation" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "rom", "JJ" ], [ "size", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "company", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "nokia", "JJ" ], [ "corporation", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Nokia Corporation" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "phone_1", "query": "SELECT T2.Hardware_Model_name , T2.Company_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 OR T1.RAM_MiB > 32;", "query_toks": [ "SELECT", "T2.Hardware_Model_name", ",", "T2.Company_name", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Model_name", "=", "T2.chip_model", "WHERE", "T1.Launch_year", "=", "2002", "OR", "T1.RAM_MiB", ">", "32", ";" ], "query_toks_no_value": [ "select", "t2", ".", "hardware_model_name", ",", "t2", ".", "company_name", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t1", ".", "launch_year", "=", "value", "or", "t1", ".", "ram_mib", ">", "value" ], "question": "List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.", "question_toks": [ "list", "hardware", "model", "name", "and", "company", "name", "for", "all", "phone", "that", "were", "launched", "in", "year", "year", "or", "have", "ram", "size", "greater", "than", "32", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 2002.0, null ], "or", [ false, 3, [ 0, [ 0, 3, false ], null ], 32.0, null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "the", "hardware", "model", "name", "and", "company", "name", "for", "all", "the", "phones", "that", "were", "launched", "in", "year", "2002", "or", "have", "RAM", "size", "greater", "than", "32", "." ], "question_arg": [ [ "list" ], [ "hardware", "model", "name" ], [ "and" ], [ "company", "name" ], [ "for" ], [ "all" ], [ "phone" ], [ "that" ], [ "were" ], [ "launched" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "have" ], [ "ram" ], [ "size" ], [ "greater" ], [ "than" ], [ "32" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "hardware", "NN" ], [ "model", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "company", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "phone", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "launched", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2002", "CD" ], [ "or", "CC" ], [ "have", "VBP" ], [ "ram", "VBN" ], [ "size", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "32", "CD" ], [ ".", "." ] ], "values": [ "2002", "32" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(2) A(0) C(15) T(2) Filter(1) Filter(2) A(0) C(2) T(0) V(0) Filter(5) A(0) C(3) T(0) V(1)" }, { "db_id": "phone_1", "query": "SELECT Hardware_Model_name , Company_name FROM phone WHERE Accreditation_type LIKE 'Full';", "query_toks": [ "SELECT", "Hardware_Model_name", ",", "Company_name", "FROM", "phone", "WHERE", "Accreditation_type", "LIKE", "'Full", "'", ";" ], "query_toks_no_value": [ "select", "hardware_model_name", ",", "company_name", "from", "phone", "where", "accreditation_type", "like", "value" ], "question": "Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name.", "question_toks": [ "find", "all", "phone", "that", "have", "word", "'", "full", "'", "in", "their", "accreditation", "type", ".", "list", "hardware", "model", "name", "and", "company", "name", "." ], "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 ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 17, false ], null ], "\"Full\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Find", "all", "phones", "that", "have", "word", "'Full", "'", "in", "their", "accreditation", "types", ".", "List", "the", "Hardware", "Model", "name", "and", "Company", "name", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "phone" ], [ "that" ], [ "have" ], [ "word" ], [ "'" ], [ "full" ], [ "'" ], [ "in" ], [ "their" ], [ "accreditation", "type" ], [ "." ], [ "list" ], [ "hardware" ], [ "model" ], [ "name" ], [ "and" ], [ "company", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "phone", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "word", "NN" ], [ "'", "''" ], [ "full", "JJ" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "accreditation", "NN" ], [ "type", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "hardware", "NN" ], [ "model", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "company", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Full" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(2) A(0) C(15) T(2) Filter(9) A(0) C(17) T(2) V(0)" }, { "db_id": "phone_1", "query": "SELECT T1.Char_cells , T1.Pixels , T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = \"LG-P760\";", "query_toks": [ "SELECT", "T1.Char_cells", ",", "T1.Pixels", ",", "T1.Hardware_colours", "FROM", "screen_mode", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Graphics_mode", "=", "T2.screen_mode", "WHERE", "T2.Hardware_Model_name", "=", "``", "LG-P760", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "char_cells", ",", "t1", ".", "pixels", ",", "t1", ".", "hardware_colours", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t2", ".", "hardware_model_name", "=", "value" ], "question": "Find the Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is \"LG-P760\".", "question_toks": [ "find", "char", "cell", ",", "pixel", "and", "hardware", "colour", "for", "screen", "of", "phone", "whose", "hardware", "model", "name", "is", "'", "lg-p760", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, 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, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"LG-P760\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Find", "the", "Char", "cells", ",", "Pixels", "and", "Hardware", "colours", "for", "the", "screen", "of", "the", "phone", "whose", "hardware", "model", "name", "is", "``", "LG-P760", "''", "." ], "question_arg": [ [ "find" ], [ "char" ], [ "cell" ], [ "," ], [ "pixel" ], [ "and" ], [ "hardware", "colour" ], [ "for" ], [ "screen" ], [ "of" ], [ "phone" ], [ "whose" ], [ "hardware", "model", "name" ], [ "is" ], [ "'" ], [ "lg-p760" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "char", "NN" ], [ "cell", "NN" ], [ ",", "," ], [ "pixel", "NN" ], [ "and", "CC" ], [ "hardware", "VB" ], [ "colour", "NN" ], [ "for", "IN" ], [ "screen", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "whose", "WP$" ], [ "hardware", "NN" ], [ "model", "NN" ], [ "name", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "lg-p760", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "LG-P760" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(9) T(1) A(0) C(10) T(1) A(0) C(11) T(1) Filter(2) A(0) C(16) T(2) V(0)" }, { "db_id": "phone_1", "query": "SELECT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = \"Graphics\";", "query_toks": [ "SELECT", "T2.Hardware_Model_name", ",", "T2.Company_name", "FROM", "screen_mode", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Graphics_mode", "=", "T2.screen_mode", "WHERE", "T1.Type", "=", "``", "Graphics", "''", ";" ], "query_toks_no_value": [ "select", "t2", ".", "hardware_model_name", ",", "t2", ".", "company_name", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t1", ".", "type", "=", "value" ], "question": "List the hardware model name and company name for the phone whose screen mode type is \"Graphics.\"", "question_toks": [ "list", "hardware", "model", "name", "and", "company", "name", "for", "phone", "whose", "screen", "mode", "type", "is", "'", "graphic", ".", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Graphics\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "the", "hardware", "model", "name", "and", "company", "name", "for", "the", "phone", "whose", "screen", "mode", "type", "is", "``", "Graphics", ".", "''" ], "question_arg": [ [ "list" ], [ "hardware", "model", "name" ], [ "and" ], [ "company", "name" ], [ "for" ], [ "phone" ], [ "whose" ], [ "screen", "mode" ], [ "type" ], [ "is" ], [ "'" ], [ "graphic" ], [ "." ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "hardware", "NN" ], [ "model", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "company", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "phone", "NN" ], [ "whose", "WP$" ], [ "screen", "JJ" ], [ "mode", "NN" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "graphic", "JJ" ], [ ".", "." ], [ "'", "''" ] ], "values": [ "Graphics", "Graphics." ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(16) T(2) A(0) C(15) T(2) Filter(2) A(0) C(14) T(1) V(0)" }, { "db_id": "phone_1", "query": "SELECT Company_name , count(*) FROM phone GROUP BY Company_name ORDER BY count(*) ASC LIMIT 1;", "query_toks": [ "SELECT", "Company_name", ",", "count", "(", "*", ")", "FROM", "phone", "GROUP", "BY", "Company_name", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "company_name", ",", "count", "(", "*", ")", "from", "phone", "group", "by", "company_name", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ], "question": "Find the name of the company that has the least number of phone models. List the company name and the number of phone model produced by that company.", "question_toks": [ "find", "name", "of", "company", "that", "ha", "least", "number", "of", "phone", "model", ".", "list", "company", "name", "and", "number", "of", "phone", "model", "produced", "by", "that", "company", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "company", "that", "has", "the", "least", "number", "of", "phone", "models", ".", "List", "the", "company", "name", "and", "the", "number", "of", "phone", "model", "produced", "by", "that", "company", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "company" ], [ "that" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "phone" ], [ "model" ], [ "." ], [ "list" ], [ "company", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "phone" ], [ "model" ], [ "produced" ], [ "by" ], [ "that" ], [ "company" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "that", "WDT" ], [ "ha", "VBD" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "model", "NN" ], [ ".", "." ], [ "list", "NN" ], [ "company", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "model", "NN" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "that", "DT" ], [ "company", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(15) T(2) A(3) C(0) T(2) Sup(1) A(3) C(0) T(2)" }, { "db_id": "phone_1", "query": "SELECT Company_name FROM phone GROUP BY Company_name HAVING count(*) > 1;", "query_toks": [ "SELECT", "Company_name", "FROM", "phone", "GROUP", "BY", "Company_name", "HAVING", "count", "(", "*", ")", ">", "1", ";" ], "query_toks_no_value": [ "select", "company_name", "from", "phone", "group", "by", "company_name", "having", "count", "(", "*", ")", ">", "value" ], "question": "List the name of the company that produced more than one phone model.", "question_toks": [ "list", "name", "of", "company", "that", "produced", "more", "than", "one", "phone", "model", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 15, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "the", "name", "of", "the", "company", "that", "produced", "more", "than", "one", "phone", "model", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "company" ], [ "that" ], [ "produced" ], [ "more" ], [ "than" ], [ "one" ], [ "phone" ], [ "model" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "company", "NN" ], [ "that", "WDT" ], [ "produced", "VBD" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "phone", "NN" ], [ "model", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(15) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "phone_1", "query": "SELECT max(used_kb) , min(used_kb) , avg(used_kb) FROM screen_mode;", "query_toks": [ "SELECT", "max", "(", "used_kb", ")", ",", "min", "(", "used_kb", ")", ",", "avg", "(", "used_kb", ")", "FROM", "screen_mode", ";" ], "query_toks_no_value": [ "select", "max", "(", "used_kb", ")", ",", "min", "(", "used_kb", ")", ",", "avg", "(", "used_kb", ")", "from", "screen_mode" ], "question": "List the maximum, minimum and average number of used kb in screen mode.", "question_toks": [ "list", "maximum", ",", "minimum", "and", "average", "number", "of", "used", "kb", "in", "screen", "mode", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 12, false ], null ] ], [ 2, [ 0, [ 0, 12, false ], null ] ], [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "the", "maximum", ",", "minimum", "and", "average", "number", "of", "used", "kb", "in", "screen", "mode", "." ], "question_arg": [ [ "list" ], [ "maximum" ], [ "," ], [ "minimum" ], [ "and" ], [ "average" ], [ "number" ], [ "of" ], [ "used", "kb" ], [ "in" ], [ "screen", "mode" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "maximum", "NN" ], [ ",", "," ], [ "minimum", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "used", "JJ" ], [ "kb", "NN" ], [ "in", "IN" ], [ "screen", "JJ" ], [ "mode", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(12) T(1) A(2) C(12) T(1) A(5) C(12) T(1)" }, { "db_id": "phone_1", "query": "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T1.Launch_year = 2002 ORDER BY T1.RAM_MiB DESC LIMIT 1;", "query_toks": [ "SELECT", "T2.Hardware_Model_name", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Model_name", "=", "T2.chip_model", "WHERE", "T1.Launch_year", "=", "2002", "ORDER", "BY", "T1.RAM_MiB", "DESC", "LIMIT", "1", ";" ], "query_toks_no_value": [ "select", "t2", ".", "hardware_model_name", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t1", ".", "launch_year", "=", "value", "order", "by", "t1", ".", "ram_mib", "desc", "limit", "value" ], "question": "List the name of the phone model launched in year 2002 and with the highest RAM size.", "question_toks": [ "list", "name", "of", "phone", "model", "launched", "in", "year", "year", "and", "with", "highest", "ram", "size", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], 2002.0, null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "the", "name", "of", "the", "phone", "model", "launched", "in", "year", "2002", "and", "with", "the", "highest", "RAM", "size", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "phone" ], [ "model" ], [ "launched" ], [ "in" ], [ "year" ], [ "year" ], [ "and" ], [ "with" ], [ "highest" ], [ "ram" ], [ "size" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "model", "NN" ], [ "launched", "VBN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2002", "CD" ], [ "and", "CC" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "ram", "NN" ], [ "size", "NN" ], [ ".", "." ] ], "values": [ "2002" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(16) T(2) Sup(0) A(0) C(3) T(0) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "phone_1", "query": "SELECT T1.WiFi , T3.Type FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T2.Hardware_Model_name = \"LG-P760\";", "query_toks": [ "SELECT", "T1.WiFi", ",", "T3.Type", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Model_name", "=", "T2.chip_model", "JOIN", "screen_mode", "AS", "T3", "ON", "T2.screen_mode", "=", "T3.Graphics_mode", "WHERE", "T2.Hardware_Model_name", "=", "``", "LG-P760", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "wifi", ",", "t3", ".", "type", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "join", "screen_mode", "as", "t3", "on", "t2", ".", "screen_mode", "=", "t3", ".", "graphics_mode", "where", "t2", ".", "hardware_model_name", "=", "value" ], "question": "What are the wifi and screen mode type of the hardware model named \"LG-P760\"?", "question_toks": [ "what", "are", "wifi", "and", "screen", "mode", "type", "of", "hardware", "model", "named", "'", "lg-p760", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"LG-P760\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "What", "are", "the", "wifi", "and", "screen", "mode", "type", "of", "the", "hardware", "model", "named", "``", "LG-P760", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "wifi" ], [ "and" ], [ "screen", "mode" ], [ "type" ], [ "of" ], [ "hardware", "model", "name" ], [ "named" ], [ "'" ], [ "lg-p760" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "wifi", "JJ" ], [ "and", "CC" ], [ "screen", "JJ" ], [ "mode", "NN" ], [ "type", "NN" ], [ "of", "IN" ], [ "hardware", "NN" ], [ "model", "NN" ], [ "named", "VBN" ], [ "'", "POS" ], [ "lg-p760", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "LG-P760" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(6) T(0) A(0) C(14) T(1) Filter(2) A(0) C(16) T(2) V(0)" }, { "db_id": "phone_1", "query": "SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T3.Type = \"Text\" OR T1.RAM_MiB > 32;", "query_toks": [ "SELECT", "T2.Hardware_Model_name", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Model_name", "=", "T2.chip_model", "JOIN", "screen_mode", "AS", "T3", "ON", "T2.screen_mode", "=", "T3.Graphics_mode", "WHERE", "T3.Type", "=", "``", "Text", "''", "OR", "T1.RAM_MiB", ">", "32", ";" ], "query_toks_no_value": [ "select", "t2", ".", "hardware_model_name", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "join", "screen_mode", "as", "t3", "on", "t2", ".", "screen_mode", "=", "t3", ".", "graphics_mode", "where", "t3", ".", "type", "=", "value", "or", "t1", ".", "ram_mib", ">", "value" ], "question": "List the hardware model name for the phones that have screen mode type \"Text\" or RAM size greater than 32.", "question_toks": [ "list", "hardware", "model", "name", "for", "phone", "that", "have", "screen", "mode", "type", "'", "text", "'", "or", "ram", "size", "greater", "than", "32", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 14, false ], null ], "\"Text\"", null ], "or", [ false, 3, [ 0, [ 0, 3, false ], null ], 32.0, null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "the", "hardware", "model", "name", "for", "the", "phones", "that", "have", "screen", "mode", "type", "``", "Text", "''", "or", "RAM", "size", "greater", "than", "32", "." ], "question_arg": [ [ "list" ], [ "hardware", "model", "name" ], [ "for" ], [ "phone" ], [ "that" ], [ "have" ], [ "screen", "mode" ], [ "type" ], [ "'" ], [ "text" ], [ "'" ], [ "or" ], [ "ram" ], [ "size" ], [ "greater" ], [ "than" ], [ "32" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "hardware", "NN" ], [ "model", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "phone", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "screen", "VBN" ], [ "mode", "JJ" ], [ "type", "NN" ], [ "'", "''" ], [ "text", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "ram", "VB" ], [ "size", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "32", "CD" ], [ ".", "." ] ], "values": [ "Text", "32" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(16) T(2) Filter(1) Filter(2) A(0) C(14) T(1) V(0) Filter(5) A(0) C(3) T(0) V(1)" }, { "db_id": "phone_1", "query": "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = \"Graphics\" OR t2.Company_name = \"Nokia Corporation\"", "query_toks": [ "SELECT", "DISTINCT", "T2.Hardware_Model_name", "FROM", "screen_mode", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Graphics_mode", "=", "T2.screen_mode", "WHERE", "T1.Type", "=", "``", "Graphics", "''", "OR", "t2.Company_name", "=", "``", "Nokia", "Corporation", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "hardware_model_name", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t1", ".", "type", "=", "value", "or", "t2", ".", "company_name", "=", "value" ], "question": "List the hardware model name for the phones that were produced by \"Nokia Corporation\" or whose screen mode type is \"Graphics.\"", "question_toks": [ "list", "hardware", "model", "name", "for", "phone", "that", "were", "produced", "by", "'", "nokia", "corporation", "'", "or", "whose", "screen", "mode", "type", "is", "'", "graphic", ".", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Graphics\"", null ], "or", [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Nokia Corporation\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "the", "hardware", "model", "name", "for", "the", "phones", "that", "were", "produced", "by", "``", "Nokia", "Corporation", "''", "or", "whose", "screen", "mode", "type", "is", "``", "Graphics", ".", "''" ], "question_arg": [ [ "list" ], [ "hardware", "model", "name" ], [ "for" ], [ "phone" ], [ "that" ], [ "were" ], [ "produced" ], [ "by" ], [ "'" ], [ "nokia" ], [ "corporation" ], [ "'" ], [ "or" ], [ "whose" ], [ "screen", "mode" ], [ "type" ], [ "is" ], [ "'" ], [ "graphic" ], [ "." ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "hardware", "NN" ], [ "model", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "phone", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "nokia", "JJ" ], [ "corporation", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "whose", "WP$" ], [ "screen", "JJ" ], [ "mode", "NN" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "graphic", "JJ" ], [ ".", "." ], [ "'", "''" ] ], "values": [ "Graphics", "Graphics.", "Nokia Corporation" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(16) T(2) Filter(1) Filter(2) A(0) C(14) T(1) V(0) Filter(2) A(0) C(15) T(2) V(2)" }, { "db_id": "phone_1", "query": "SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = \"Nokia Corporation\" AND T1.Type != \"Text\";", "query_toks": [ "SELECT", "DISTINCT", "T2.Hardware_Model_name", "FROM", "screen_mode", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Graphics_mode", "=", "T2.screen_mode", "WHERE", "t2.Company_name", "=", "``", "Nokia", "Corporation", "''", "AND", "T1.Type", "!", "=", "``", "Text", "''", ";" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "hardware_model_name", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t2", ".", "company_name", "=", "value", "and", "t1", ".", "type", "!", "=", "value" ], "question": "List the hardware model name for the phons that were produced by \"Nokia Corporation\" but whose screen mode type is not Text.", "question_toks": [ "list", "hardware", "model", "name", "for", "phon", "that", "were", "produced", "by", "'", "nokia", "corporation", "'", "but", "whose", "screen", "mode", "type", "is", "not", "text", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], "\"Nokia Corporation\"", null ], "and", [ false, 7, [ 0, [ 0, 14, false ], null ], "\"Text\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "the", "hardware", "model", "name", "for", "the", "phons", "that", "were", "produced", "by", "``", "Nokia", "Corporation", "''", "but", "whose", "screen", "mode", "type", "is", "not", "Text", "." ], "question_arg": [ [ "list" ], [ "hardware", "model", "name" ], [ "for" ], [ "phon" ], [ "that" ], [ "were" ], [ "produced" ], [ "by" ], [ "'" ], [ "nokia" ], [ "corporation" ], [ "'" ], [ "but" ], [ "whose" ], [ "screen", "mode" ], [ "type" ], [ "is" ], [ "not" ], [ "text" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "hardware", "NN" ], [ "model", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "phon", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "produced", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "nokia", "JJ" ], [ "corporation", "NN" ], [ "'", "POS" ], [ "but", "CC" ], [ "whose", "WP$" ], [ "screen", "JJ" ], [ "mode", "NN" ], [ "type", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "text", "JJ" ], [ ".", "." ] ], "values": [ "Nokia Corporation", "Text" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(16) T(2) Filter(0) Filter(2) A(0) C(15) T(2) V(0) Filter(3) A(0) C(14) T(1) V(1)" }, { "db_id": "phone_1", "query": "SELECT DISTINCT T2.Hardware_Model_name , T2.Company_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.used_kb BETWEEN 10 AND 15;", "query_toks": [ "SELECT", "DISTINCT", "T2.Hardware_Model_name", ",", "T2.Company_name", "FROM", "screen_mode", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Graphics_mode", "=", "T2.screen_mode", "WHERE", "T1.used_kb", "BETWEEN", "10", "AND", "15", ";" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "hardware_model_name", ",", "t2", ".", "company_name", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t1", ".", "used_kb", "between", "value", "and", "value" ], "question": "List the phone hardware model and company name for the phones whose screen usage in kb is between 10 and 15.", "question_toks": [ "list", "phone", "hardware", "model", "and", "company", "name", "for", "phone", "whose", "screen", "usage", "in", "kb", "is", "between", "10", "and", "15", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 12, false ], null ], 10.0, 15.0 ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "the", "phone", "hardware", "model", "and", "company", "name", "for", "the", "phones", "whose", "screen", "usage", "in", "kb", "is", "between", "10", "and", "15", "." ], "question_arg": [ [ "list" ], [ "phone" ], [ "hardware", "model", "name" ], [ "and" ], [ "company", "name" ], [ "for" ], [ "phone" ], [ "whose" ], [ "screen" ], [ "usage" ], [ "in" ], [ "kb" ], [ "is" ], [ "between" ], [ "10" ], [ "and" ], [ "15" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "phone", "NN" ], [ "hardware", "NN" ], [ "model", "NN" ], [ "and", "CC" ], [ "company", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "phone", "NN" ], [ "whose", "WP$" ], [ "screen", "JJ" ], [ "usage", "NN" ], [ "in", "IN" ], [ "kb", "NN" ], [ "is", "VBZ" ], [ "between", "IN" ], [ "10", "CD" ], [ "and", "CC" ], [ "15", "CD" ], [ ".", "." ] ], "values": [ "15", "10" ], "rule_label": "Root1(3) Root(3) Sel(1) N(1) A(0) C(16) T(2) A(0) C(15) T(2) Filter(8) A(0) C(12) T(1) V(1) V(0)" }, { "db_id": "phone_1", "query": "SELECT Accreditation_type , count(*) FROM phone GROUP BY Accreditation_type", "query_toks": [ "SELECT", "Accreditation_type", ",", "count", "(", "*", ")", "FROM", "phone", "GROUP", "BY", "Accreditation_type" ], "query_toks_no_value": [ "select", "accreditation_type", ",", "count", "(", "*", ")", "from", "phone", "group", "by", "accreditation_type" ], "question": "Find the number of phones for each accreditation type.", "question_toks": [ "find", "number", "of", "phone", "for", "each", "accreditation", "type", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Find", "the", "number", "of", "phones", "for", "each", "accreditation", "type", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "phone" ], [ "for" ], [ "each" ], [ "accreditation", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "phone", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "accreditation", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(17) T(2) A(3) C(0) T(2)" }, { "db_id": "phone_1", "query": "SELECT Accreditation_type , count(*) FROM phone GROUP BY Accreditation_type", "query_toks": [ "SELECT", "Accreditation_type", ",", "count", "(", "*", ")", "FROM", "phone", "GROUP", "BY", "Accreditation_type" ], "query_toks_no_value": [ "select", "accreditation_type", ",", "count", "(", "*", ")", "from", "phone", "group", "by", "accreditation_type" ], "question": "How many phones belongs to each accreditation type?", "question_toks": [ "how", "many", "phone", "belongs", "to", "each", "accreditation", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 17, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "How", "many", "phones", "belongs", "to", "each", "accreditation", "type", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "phone" ], [ "belongs" ], [ "to" ], [ "each" ], [ "accreditation", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "phone", "NN" ], [ "belongs", "NNS" ], [ "to", "TO" ], [ "each", "DT" ], [ "accreditation", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(17) T(2) A(3) C(0) T(2)" }, { "db_id": "phone_1", "query": "SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING count(*) > 3", "query_toks": [ "SELECT", "Accreditation_level", "FROM", "phone", "GROUP", "BY", "Accreditation_level", "HAVING", "count", "(", "*", ")", ">", "3" ], "query_toks_no_value": [ "select", "accreditation_level", "from", "phone", "group", "by", "accreditation_level", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the accreditation level that more than 3 phones use.", "question_toks": [ "find", "accreditation", "level", "that", "more", "than", "3", "phone", "use", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Find", "the", "accreditation", "level", "that", "more", "than", "3", "phones", "use", "." ], "question_arg": [ [ "find" ], [ "accreditation", "level" ], [ "that" ], [ "more" ], [ "than" ], [ "3" ], [ "phone" ], [ "use" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "accreditation", "NN" ], [ "level", "NN" ], [ "that", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "phone", "NN" ], [ "use", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(18) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "phone_1", "query": "SELECT * FROM chip_model", "query_toks": [ "SELECT", "*", "FROM", "chip_model" ], "query_toks_no_value": [ "select", "*", "from", "chip_model" ], "question": "Find the details for all chip models.", "question_toks": [ "find", "detail", "for", "all", "chip", "model", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Find", "the", "details", "for", "all", "chip", "models", "." ], "question_arg": [ [ "find" ], [ "detail" ], [ "for" ], [ "all" ], [ "chip", "model" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "detail", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "chip", "NN" ], [ "model", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(0) T(0)" }, { "db_id": "phone_1", "query": "SELECT count(*) FROM chip_model WHERE wifi = 'No'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "chip_model", "WHERE", "wifi", "=", "'No", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "chip_model", "where", "wifi", "=", "value" ], "question": "How many models do not have the wifi function?", "question_toks": [ "how", "many", "model", "do", "not", "have", "wifi", "function", "?" ], "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, 6, false ], null ], "\"No\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "How", "many", "models", "do", "not", "have", "the", "wifi", "function", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "model" ], [ "do" ], [ "not" ], [ "have" ], [ "wifi" ], [ "function" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "model", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "wifi", "VBN" ], [ "function", "NN" ], [ "?", "." ] ], "values": [ "No" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "phone_1", "query": "SELECT count(*) FROM chip_model WHERE wifi = 'No'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "chip_model", "WHERE", "wifi", "=", "'No", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "chip_model", "where", "wifi", "=", "value" ], "question": "Count the number of chip model that do not have wifi.", "question_toks": [ "count", "number", "of", "chip", "model", "that", "do", "not", "have", "wifi", "." ], "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, 6, false ], null ], "\"No\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Count", "the", "number", "of", "chip", "model", "that", "do", "not", "have", "wifi", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "chip", "model" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "wifi" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "chip", "NN" ], [ "model", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "wifi", "NN" ], [ ".", "." ] ], "values": [ "No" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "phone_1", "query": "SELECT model_name FROM chip_model ORDER BY launch_year", "query_toks": [ "SELECT", "model_name", "FROM", "chip_model", "ORDER", "BY", "launch_year" ], "query_toks_no_value": [ "select", "model_name", "from", "chip_model", "order", "by", "launch_year" ], "question": "List all the model names sorted by their launch year.", "question_toks": [ "list", "all", "model", "name", "sorted", "by", "their", "launch", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "all", "the", "model", "names", "sorted", "by", "their", "launch", "year", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "model", "name" ], [ "sorted" ], [ "by" ], [ "their" ], [ "launch", "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "model", "NN" ], [ "name", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "launch", "JJ" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(1) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "phone_1", "query": "SELECT avg(RAM_MiB) FROM chip_model WHERE model_name NOT IN (SELECT chip_model FROM phone)", "query_toks": [ "SELECT", "avg", "(", "RAM_MiB", ")", "FROM", "chip_model", "WHERE", "model_name", "NOT", "IN", "(", "SELECT", "chip_model", "FROM", "phone", ")" ], "query_toks_no_value": [ "select", "avg", "(", "ram_mib", ")", "from", "chip_model", "where", "model_name", "not", "in", "(", "select", "chip_model", "from", "phone", ")" ], "question": "Find the average ram mib size of the chip models that are never used by any phone.", "question_toks": [ "find", "average", "ram", "mib", "size", "of", "chip", "model", "that", "are", "never", "used", "by", "any", "phone", "." ], "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": [ [ 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, 20, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Find", "the", "average", "ram", "mib", "size", "of", "the", "chip", "models", "that", "are", "never", "used", "by", "any", "phone", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "ram", "mib" ], [ "size" ], [ "of" ], [ "chip", "model" ], [ "that" ], [ "are" ], [ "never" ], [ "used" ], [ "by" ], [ "any" ], [ "phone" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "ram", "JJ" ], [ "mib", "NN" ], [ "size", "NN" ], [ "of", "IN" ], [ "chip", "NN" ], [ "model", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "never", "RB" ], [ "used", "VBN" ], [ "by", "IN" ], [ "any", "DT" ], [ "phone", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(3) T(0) Filter(19) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(20) T(2)" }, { "db_id": "phone_1", "query": "SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type = 'Full'", "query_toks": [ "SELECT", "model_name", "FROM", "chip_model", "EXCEPT", "SELECT", "chip_model", "FROM", "phone", "WHERE", "Accreditation_type", "=", "'Full", "'" ], "query_toks_no_value": [ "select", "model_name", "from", "chip_model", "except", "select", "chip_model", "from", "phone", "where", "accreditation_type", "=", "value" ], "question": "Find the names of the chip models that are not used by any phone with full accreditation type.", "question_toks": [ "find", "name", "of", "chip", "model", "that", "are", "not", "used", "by", "any", "phone", "with", "full", "accreditation", "type", "." ], "sql": { "except": { "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, 17, false ], null ], "\"Full\"", 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": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "chip", "models", "that", "are", "not", "used", "by", "any", "phone", "with", "full", "accreditation", "type", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "chip", "model" ], [ "that" ], [ "are" ], [ "not" ], [ "used" ], [ "by" ], [ "any" ], [ "phone" ], [ "with" ], [ "full" ], [ "accreditation", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "chip", "NN" ], [ "model", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "used", "VBN" ], [ "by", "IN" ], [ "any", "DT" ], [ "phone", "NN" ], [ "with", "IN" ], [ "full", "JJ" ], [ "accreditation", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "Full" ], "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(20) T(2) Filter(2) A(0) C(17) T(2) V(0)" }, { "db_id": "phone_1", "query": "SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Provisional' INTERSECT SELECT t1.pixels FROM screen_mode AS t1 JOIN phone AS t2 ON t1.Graphics_mode = t2.screen_mode WHERE t2.Accreditation_type = 'Full'", "query_toks": [ "SELECT", "t1.pixels", "FROM", "screen_mode", "AS", "t1", "JOIN", "phone", "AS", "t2", "ON", "t1.Graphics_mode", "=", "t2.screen_mode", "WHERE", "t2.Accreditation_type", "=", "'Provisional", "'", "INTERSECT", "SELECT", "t1.pixels", "FROM", "screen_mode", "AS", "t1", "JOIN", "phone", "AS", "t2", "ON", "t1.Graphics_mode", "=", "t2.screen_mode", "WHERE", "t2.Accreditation_type", "=", "'Full", "'" ], "query_toks_no_value": [ "select", "t1", ".", "pixels", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t2", ".", "accreditation_type", "=", "value", "intersect", "select", "t1", ".", "pixels", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t2", ".", "accreditation_type", "=", "value" ], "question": "Find the pixels of the screen modes that are used by both phones with full accreditation types and phones with Provisional accreditation types.", "question_toks": [ "find", "pixel", "of", "screen", "mode", "that", "are", "used", "by", "both", "phone", "with", "full", "accreditation", "type", "and", "phone", "with", "provisional", "accreditation", "type", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 17, false ], null ], "\"Full\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Provisional\"", null ] ] }, "names": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "table_names": [ "chip model", "screen mode", "phone" ], "col_set": [ "*", "model name", "launch year", "ram mib", "rom mib", "slots", "wifi", "bluetooth", "graphics mode", "char cells", "pixels", "hardware colours", "used kb", "map", "type", "company name", "hardware model name", "accreditation type", "accreditation level", "date", "chip model", "screen mode" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2 ], "keys": { "20": 1, "1": 1, "21": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Find", "the", "pixels", "of", "the", "screen", "modes", "that", "are", "used", "by", "both", "phones", "with", "full", "accreditation", "types", "and", "phones", "with", "Provisional", "accreditation", "types", "." ], "question_arg": [ [ "find" ], [ "pixel" ], [ "of" ], [ "screen", "mode" ], [ "that" ], [ "are" ], [ "used" ], [ "by" ], [ "both" ], [ "phone" ], [ "with" ], [ "full" ], [ "accreditation", "type" ], [ "and" ], [ "phone" ], [ "with" ], [ "provisional" ], [ "accreditation", "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "pixel", "NN" ], [ "of", "IN" ], [ "screen", "JJ" ], [ "mode", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "by", "IN" ], [ "both", "DT" ], [ "phone", "NN" ], [ "with", "IN" ], [ "full", "JJ" ], [ "accreditation", "NN" ], [ "type", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "with", "IN" ], [ "provisional", "JJ" ], [ "accreditation", "NN" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "Provisional", "Full" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(17) T(2) V(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(17) T(2) V(1)" }, { "db_id": "match_season", "query": "SELECT count(*) FROM country", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "country" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country" ], "question": "How many countries are there in total?", "question_toks": [ "how", "many", "country", "are", "there", "in", "total", "?" ], "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": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "How", "many", "countries", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "country" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "country", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "total", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "match_season", "query": "SELECT count(*) FROM country", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "country" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country" ], "question": "Count the number of countries.", "question_toks": [ "count", "number", "of", "country", "." ], "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": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Count", "the", "number", "of", "countries", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "country" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "match_season", "query": "SELECT Country_name , Capital FROM country", "query_toks": [ "SELECT", "Country_name", ",", "Capital", "FROM", "country" ], "query_toks_no_value": [ "select", "country_name", ",", "capital", "from", "country" ], "question": "Show the country name and capital of all countries.", "question_toks": [ "show", "country", "name", "and", "capital", "of", "all", "country", "." ], "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": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "country", "name", "and", "capital", "of", "all", "countries", "." ], "question_arg": [ [ "show" ], [ "country", "name" ], [ "and" ], [ "capital" ], [ "of" ], [ "all" ], [ "country" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "country", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "capital", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "country", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0)" }, { "db_id": "match_season", "query": "SELECT Country_name , Capital FROM country", "query_toks": [ "SELECT", "Country_name", ",", "Capital", "FROM", "country" ], "query_toks_no_value": [ "select", "country_name", ",", "capital", "from", "country" ], "question": "What are the names and capitals of each country?", "question_toks": [ "what", "are", "name", "and", "capital", "of", "each", "country", "?" ], "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": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "capitals", "of", "each", "country", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "capital" ], [ "of" ], [ "each" ], [ "country" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "capital", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0)" }, { "db_id": "match_season", "query": "SELECT Official_native_language FROM country WHERE Official_native_language LIKE \"%English%\"", "query_toks": [ "SELECT", "Official_native_language", "FROM", "country", "WHERE", "Official_native_language", "LIKE", "``", "%", "English", "%", "''" ], "query_toks_no_value": [ "select", "official_native_language", "from", "country", "where", "official_native_language", "like", "value" ], "question": "Show all official native languages that contain the word \"English\".", "question_toks": [ "show", "all", "official", "native", "language", "that", "contain", "word", "'", "english", "'", "." ], "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, 9, [ 0, [ 0, 4, false ], null ], "\"%English%\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "all", "official", "native", "languages", "that", "contain", "the", "word", "``", "English", "''", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "official", "native", "language" ], [ "that" ], [ "contain" ], [ "word" ], [ "'" ], [ "english" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "official", "JJ" ], [ "native", "JJ" ], [ "language", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "word", "NN" ], [ "'", "''" ], [ "english", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "English" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(9) A(0) C(4) T(0) V(0)" }, { "db_id": "match_season", "query": "SELECT Official_native_language FROM country WHERE Official_native_language LIKE \"%English%\"", "query_toks": [ "SELECT", "Official_native_language", "FROM", "country", "WHERE", "Official_native_language", "LIKE", "``", "%", "English", "%", "''" ], "query_toks_no_value": [ "select", "official_native_language", "from", "country", "where", "official_native_language", "like", "value" ], "question": "What are the official native languages that contain the string \"English\".", "question_toks": [ "what", "are", "official", "native", "language", "that", "contain", "string", "'", "english", "'", "." ], "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, 9, [ 0, [ 0, 4, false ], null ], "\"%English%\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "official", "native", "languages", "that", "contain", "the", "string", "``", "English", "''", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "official", "native", "language" ], [ "that" ], [ "contain" ], [ "string" ], [ "'" ], [ "english" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "official", "JJ" ], [ "native", "JJ" ], [ "language", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "string", "VBG" ], [ "'", "''" ], [ "english", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "English" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(9) A(0) C(4) T(0) V(0)" }, { "db_id": "match_season", "query": "SELECT DISTINCT POSITION FROM match_season", "query_toks": [ "SELECT", "DISTINCT", "POSITION", "FROM", "match_season" ], "query_toks_no_value": [ "select", "distinct", "position", "from", "match_season" ], "question": "Show all distinct positions of matches.", "question_toks": [ "show", "all", "distinct", "position", "of", "match", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "all", "distinct", "positions", "of", "matches", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "position" ], [ "of" ], [ "match" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "position", "NN" ], [ "of", "IN" ], [ "match", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(9) T(2)" }, { "db_id": "match_season", "query": "SELECT DISTINCT POSITION FROM match_season", "query_toks": [ "SELECT", "DISTINCT", "POSITION", "FROM", "match_season" ], "query_toks_no_value": [ "select", "distinct", "position", "from", "match_season" ], "question": "What are the different positions for match season?", "question_toks": [ "what", "are", "different", "position", "for", "match", "season", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "different", "positions", "for", "match", "season", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "position" ], [ "for" ], [ "match", "season" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "position", "NN" ], [ "for", "IN" ], [ "match", "NN" ], [ "season", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(9) T(2)" }, { "db_id": "match_season", "query": "SELECT Player FROM match_season WHERE College = \"UCLA\"", "query_toks": [ "SELECT", "Player", "FROM", "match_season", "WHERE", "College", "=", "``", "UCLA", "''" ], "query_toks_no_value": [ "select", "player", "from", "match_season", "where", "college", "=", "value" ], "question": "Show the players from college UCLA.", "question_toks": [ "show", "player", "from", "college", "ucla", "." ], "sql": { "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": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"UCLA\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "players", "from", "college", "UCLA", "." ], "question_arg": [ [ "show" ], [ "player" ], [ "from" ], [ "college" ], [ "ucla" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "player", "NN" ], [ "from", "IN" ], [ "college", "NN" ], [ "ucla", "NN" ], [ ".", "." ] ], "values": [ "UCLA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(14) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT Player FROM match_season WHERE College = \"UCLA\"", "query_toks": [ "SELECT", "Player", "FROM", "match_season", "WHERE", "College", "=", "``", "UCLA", "''" ], "query_toks_no_value": [ "select", "player", "from", "match_season", "where", "college", "=", "value" ], "question": "Who are the players from UCLA?", "question_toks": [ "who", "are", "player", "from", "ucla", "?" ], "sql": { "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": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"UCLA\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Who", "are", "the", "players", "from", "UCLA", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "player" ], [ "from" ], [ "ucla" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "player", "NN" ], [ "from", "IN" ], [ "ucla", "NN" ], [ "?", "." ] ], "values": [ "UCLA" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(14) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT DISTINCT POSITION FROM match_season WHERE College = \"UCLA\" OR College = \"Duke\"", "query_toks": [ "SELECT", "DISTINCT", "POSITION", "FROM", "match_season", "WHERE", "College", "=", "``", "UCLA", "''", "OR", "College", "=", "``", "Duke", "''" ], "query_toks_no_value": [ "select", "distinct", "position", "from", "match_season", "where", "college", "=", "value", "or", "college", "=", "value" ], "question": "Show the distinct position of players from college UCLA or Duke.", "question_toks": [ "show", "distinct", "position", "of", "player", "from", "college", "ucla", "or", "duke", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"UCLA\"", null ], "or", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Duke\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "distinct", "position", "of", "players", "from", "college", "UCLA", "or", "Duke", "." ], "question_arg": [ [ "show" ], [ "distinct" ], [ "position" ], [ "of" ], [ "player" ], [ "from" ], [ "college" ], [ "ucla" ], [ "or" ], [ "duke" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "distinct", "JJ" ], [ "position", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "from", "IN" ], [ "college", "NN" ], [ "ucla", "NN" ], [ "or", "CC" ], [ "duke", "NN" ], [ ".", "." ] ], "values": [ "UCLA", "Duke" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(9) T(2) Filter(1) Filter(2) A(0) C(14) T(2) V(0) Filter(2) A(0) C(14) T(2) V(1)" }, { "db_id": "match_season", "query": "SELECT DISTINCT POSITION FROM match_season WHERE College = \"UCLA\" OR College = \"Duke\"", "query_toks": [ "SELECT", "DISTINCT", "POSITION", "FROM", "match_season", "WHERE", "College", "=", "``", "UCLA", "''", "OR", "College", "=", "``", "Duke", "''" ], "query_toks_no_value": [ "select", "distinct", "position", "from", "match_season", "where", "college", "=", "value", "or", "college", "=", "value" ], "question": "What are the different positions of players from UCLA or Duke colleges?", "question_toks": [ "what", "are", "different", "position", "of", "player", "from", "ucla", "or", "duke", "college", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"UCLA\"", null ], "or", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Duke\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "different", "positions", "of", "players", "from", "UCLA", "or", "Duke", "colleges", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "position" ], [ "of" ], [ "player" ], [ "from" ], [ "ucla" ], [ "or" ], [ "duke" ], [ "college" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "position", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "from", "IN" ], [ "ucla", "JJ" ], [ "or", "CC" ], [ "duke", "JJ" ], [ "college", "NN" ], [ "?", "." ] ], "values": [ "UCLA", "Duke" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(9) T(2) Filter(1) Filter(2) A(0) C(14) T(2) V(0) Filter(2) A(0) C(14) T(2) V(1)" }, { "db_id": "match_season", "query": "SELECT Draft_Pick_Number , Draft_Class FROM match_season WHERE POSITION = \"Defender\"", "query_toks": [ "SELECT", "Draft_Pick_Number", ",", "Draft_Class", "FROM", "match_season", "WHERE", "POSITION", "=", "``", "Defender", "''" ], "query_toks_no_value": [ "select", "draft_pick_number", ",", "draft_class", "from", "match_season", "where", "position", "=", "value" ], "question": "Show the draft pick numbers and draft classes of players whose positions are defenders.", "question_toks": [ "show", "draft", "pick", "number", "and", "draft", "class", "of", "player", "whose", "position", "are", "defender", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Defender\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "draft", "pick", "numbers", "and", "draft", "classes", "of", "players", "whose", "positions", "are", "defenders", "." ], "question_arg": [ [ "show" ], [ "draft", "pick", "number" ], [ "and" ], [ "draft", "class" ], [ "of" ], [ "player" ], [ "whose" ], [ "position" ], [ "are" ], [ "defender" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "draft", "NN" ], [ "pick", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "draft", "JJ" ], [ "class", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "position", "NN" ], [ "are", "VBP" ], [ "defender", "NN" ], [ ".", "." ] ], "values": [ "Defender" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(2) A(0) C(13) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT Draft_Pick_Number , Draft_Class FROM match_season WHERE POSITION = \"Defender\"", "query_toks": [ "SELECT", "Draft_Pick_Number", ",", "Draft_Class", "FROM", "match_season", "WHERE", "POSITION", "=", "``", "Defender", "''" ], "query_toks_no_value": [ "select", "draft_pick_number", ",", "draft_class", "from", "match_season", "where", "position", "=", "value" ], "question": "What are the draft pick numbers and draft classes for players who play the Defender position?", "question_toks": [ "what", "are", "draft", "pick", "number", "and", "draft", "class", "for", "player", "who", "play", "defender", "position", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Defender\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "draft", "pick", "numbers", "and", "draft", "classes", "for", "players", "who", "play", "the", "Defender", "position", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "draft", "pick", "number" ], [ "and" ], [ "draft", "class" ], [ "for" ], [ "player" ], [ "who" ], [ "play" ], [ "defender" ], [ "position" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "draft", "JJ" ], [ "pick", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "draft", "NN" ], [ "class", "NN" ], [ "for", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "play", "VBZ" ], [ "defender", "JJR" ], [ "position", "NN" ], [ "?", "." ] ], "values": [ "Defender" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(12) T(2) A(0) C(13) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT count(DISTINCT Team) FROM match_season", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Team", ")", "FROM", "match_season" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "team", ")", "from", "match_season" ], "question": "How many distinct teams are involved in match seasons?", "question_toks": [ "how", "many", "distinct", "team", "are", "involved", "in", "match", "season", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 11, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "How", "many", "distinct", "teams", "are", "involved", "in", "match", "seasons", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "team" ], [ "are" ], [ "involved" ], [ "in" ], [ "match", "season" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "team", "NN" ], [ "are", "VBP" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "match", "NN" ], [ "season", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(11) T(2)" }, { "db_id": "match_season", "query": "SELECT count(DISTINCT Team) FROM match_season", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Team", ")", "FROM", "match_season" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "team", ")", "from", "match_season" ], "question": "Count the number of different teams involved in match season.", "question_toks": [ "count", "number", "of", "different", "team", "involved", "in", "match", "season", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 11, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "teams", "involved", "in", "match", "season", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "team" ], [ "involved" ], [ "in" ], [ "match", "season" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "team", "NN" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "match", "NN" ], [ "season", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(11) T(2)" }, { "db_id": "match_season", "query": "SELECT Player , Years_Played FROM player", "query_toks": [ "SELECT", "Player", ",", "Years_Played", "FROM", "player" ], "query_toks_no_value": [ "select", "player", ",", "years_played", "from", "player" ], "question": "Show the players and the years played.", "question_toks": [ "show", "player", "and", "year", "played", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "players", "and", "the", "years", "played", "." ], "question_arg": [ [ "show" ], [ "player" ], [ "and" ], [ "year", "played" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "player", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "played", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(3) A(0) C(16) T(3)" }, { "db_id": "match_season", "query": "SELECT Player , Years_Played FROM player", "query_toks": [ "SELECT", "Player", ",", "Years_Played", "FROM", "player" ], "query_toks_no_value": [ "select", "player", ",", "years_played", "from", "player" ], "question": "Who are the different players and how many years has each played?", "question_toks": [ "who", "are", "different", "player", "and", "how", "many", "year", "ha", "each", "played", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Who", "are", "the", "different", "players", "and", "how", "many", "years", "has", "each", "played", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "different" ], [ "player" ], [ "and" ], [ "how" ], [ "many" ], [ "year" ], [ "ha" ], [ "each" ], [ "played" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "player", "NN" ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "year", "NN" ], [ "ha", "RB" ], [ "each", "DT" ], [ "played", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(3) A(0) C(16) T(3)" }, { "db_id": "match_season", "query": "SELECT Name FROM Team", "query_toks": [ "SELECT", "Name", "FROM", "Team" ], "query_toks_no_value": [ "select", "name", "from", "team" ], "question": "Show all team names.", "question_toks": [ "show", "all", "team", "name", "." ], "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": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "all", "team", "names", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "team" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "team", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(6) T(1)" }, { "db_id": "match_season", "query": "SELECT Name FROM Team", "query_toks": [ "SELECT", "Name", "FROM", "Team" ], "query_toks_no_value": [ "select", "name", "from", "team" ], "question": "What are the names of all teams?", "question_toks": [ "what", "are", "name", "of", "all", "team", "?" ], "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": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "teams", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "team" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "team", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(6) T(1)" }, { "db_id": "match_season", "query": "SELECT T2.Season , T2.Player , T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country", "query_toks": [ "SELECT", "T2.Season", ",", "T2.Player", ",", "T1.Country_name", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country" ], "query_toks_no_value": [ "select", "t2", ".", "season", ",", "t2", ".", "player", ",", "t1", ".", "country_name", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country" ], "question": "Show the season, the player, and the name of the country that player belongs to.", "question_toks": [ "show", "season", ",", "player", ",", "and", "name", "of", "country", "that", "player", "belongs", "to", "." ], "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, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "season", ",", "the", "player", ",", "and", "the", "name", "of", "the", "country", "that", "player", "belongs", "to", "." ], "question_arg": [ [ "show" ], [ "season" ], [ "," ], [ "player" ], [ "," ], [ "and" ], [ "name" ], [ "of" ], [ "country" ], [ "that" ], [ "player" ], [ "belongs" ], [ "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "season", "NN" ], [ ",", "," ], [ "player", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "player", "NN" ], [ "belongs", "VBZ" ], [ "to", "TO" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(7) T(2) A(0) C(8) T(2) A(0) C(2) T(0)" }, { "db_id": "match_season", "query": "SELECT T2.Season , T2.Player , T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country", "query_toks": [ "SELECT", "T2.Season", ",", "T2.Player", ",", "T1.Country_name", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country" ], "query_toks_no_value": [ "select", "t2", ".", "season", ",", "t2", ".", "player", ",", "t1", ".", "country_name", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country" ], "question": "For each player, what are their name, season, and country that they belong to?", "question_toks": [ "for", "each", "player", ",", "what", "are", "their", "name", ",", "season", ",", "and", "country", "that", "they", "belong", "to", "?" ], "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, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "For", "each", "player", ",", "what", "are", "their", "name", ",", "season", ",", "and", "country", "that", "they", "belong", "to", "?" ], "question_arg": [ [ "for" ], [ "each" ], [ "player" ], [ "," ], [ "what" ], [ "are" ], [ "their" ], [ "name" ], [ "," ], [ "season" ], [ "," ], [ "and" ], [ "country" ], [ "that" ], [ "they" ], [ "belong" ], [ "to" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "player", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "are", "VBP" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ",", "," ], [ "season", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "country", "NN" ], [ "that", "IN" ], [ "they", "PRP" ], [ "belong", "VBP" ], [ "to", "TO" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(7) T(2) A(0) C(8) T(2) A(0) C(2) T(0)" }, { "db_id": "match_season", "query": "SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = \"Indonesia\"", "query_toks": [ "SELECT", "T2.Player", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "WHERE", "T1.Country_name", "=", "``", "Indonesia", "''" ], "query_toks_no_value": [ "select", "t2", ".", "player", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "where", "t1", ".", "country_name", "=", "value" ], "question": "Which players are from Indonesia?", "question_toks": [ "which", "player", "are", "from", "indonesia", "?" ], "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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Indonesia\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Which", "players", "are", "from", "Indonesia", "?" ], "question_arg": [ [ "which" ], [ "player" ], [ "are" ], [ "from" ], [ "indonesia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "player", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "indonesia", "NN" ], [ "?", "." ] ], "values": [ "Indonesia" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "match_season", "query": "SELECT T2.Player FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Country_name = \"Indonesia\"", "query_toks": [ "SELECT", "T2.Player", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "WHERE", "T1.Country_name", "=", "``", "Indonesia", "''" ], "query_toks_no_value": [ "select", "t2", ".", "player", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "where", "t1", ".", "country_name", "=", "value" ], "question": "Who are the players from Indonesia?", "question_toks": [ "who", "are", "player", "from", "indonesia", "?" ], "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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Indonesia\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Who", "are", "the", "players", "from", "Indonesia", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "player" ], [ "from" ], [ "indonesia" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "player", "NN" ], [ "from", "IN" ], [ "indonesia", "NN" ], [ "?", "." ] ], "values": [ "Indonesia" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "match_season", "query": "SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = \"Dublin\"", "query_toks": [ "SELECT", "DISTINCT", "T2.Position", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "WHERE", "T1.Capital", "=", "``", "Dublin", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "position", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "where", "t1", ".", "capital", "=", "value" ], "question": "What are the distinct positions of the players from a country whose capital is Dublin?", "question_toks": [ "what", "are", "distinct", "position", "of", "player", "from", "a", "country", "whose", "capital", "is", "dublin", "?" ], "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": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Dublin\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "distinct", "positions", "of", "the", "players", "from", "a", "country", "whose", "capital", "is", "Dublin", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "position" ], [ "of" ], [ "player" ], [ "from" ], [ "a" ], [ "country" ], [ "whose" ], [ "capital" ], [ "is" ], [ "dublin" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "position", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "from", "IN" ], [ "a", "DT" ], [ "country", "NN" ], [ "whose", "WP$" ], [ "capital", "NN" ], [ "is", "VBZ" ], [ "dublin", "VBN" ], [ "?", "." ] ], "values": [ "Dublin" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(9) T(2) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "match_season", "query": "SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = \"Dublin\"", "query_toks": [ "SELECT", "DISTINCT", "T2.Position", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "WHERE", "T1.Capital", "=", "``", "Dublin", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "position", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "where", "t1", ".", "capital", "=", "value" ], "question": "Give the different positions of players who play for the country with the capital Dublin.", "question_toks": [ "give", "different", "position", "of", "player", "who", "play", "for", "country", "with", "capital", "dublin", "." ], "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": [ true, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Dublin\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Give", "the", "different", "positions", "of", "players", "who", "play", "for", "the", "country", "with", "the", "capital", "Dublin", "." ], "question_arg": [ [ "give" ], [ "different" ], [ "position" ], [ "of" ], [ "player" ], [ "who" ], [ "play" ], [ "for" ], [ "country" ], [ "with" ], [ "capital" ], [ "dublin" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "different", "JJ" ], [ "position", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "play", "VBP" ], [ "for", "IN" ], [ "country", "NN" ], [ "with", "IN" ], [ "capital", "NN" ], [ "dublin", "NN" ], [ ".", "." ] ], "values": [ "Dublin" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(9) T(2) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "match_season", "query": "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = \"Maryland\" OR T2.College = \"Duke\"", "query_toks": [ "SELECT", "T1.Official_native_language", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "WHERE", "T2.College", "=", "``", "Maryland", "''", "OR", "T2.College", "=", "``", "Duke", "''" ], "query_toks_no_value": [ "select", "t1", ".", "official_native_language", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "where", "t2", ".", "college", "=", "value", "or", "t2", ".", "college", "=", "value" ], "question": "What are the official languages of the countries of players from Maryland or Duke college?", "question_toks": [ "what", "are", "official", "language", "of", "country", "of", "player", "from", "maryland", "or", "duke", "college", "?" ], "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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Maryland\"", null ], "or", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Duke\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "official", "languages", "of", "the", "countries", "of", "players", "from", "Maryland", "or", "Duke", "college", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "official", "native", "language" ], [ "of" ], [ "country" ], [ "of" ], [ "player" ], [ "from" ], [ "maryland" ], [ "or" ], [ "duke" ], [ "college" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "official", "JJ" ], [ "language", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "from", "IN" ], [ "maryland", "NN" ], [ "or", "CC" ], [ "duke", "VB" ], [ "college", "NN" ], [ "?", "." ] ], "values": [ "Maryland", "Duke" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(1) Filter(2) A(0) C(14) T(2) V(0) Filter(2) A(0) C(14) T(2) V(1)" }, { "db_id": "match_season", "query": "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = \"Maryland\" OR T2.College = \"Duke\"", "query_toks": [ "SELECT", "T1.Official_native_language", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "WHERE", "T2.College", "=", "``", "Maryland", "''", "OR", "T2.College", "=", "``", "Duke", "''" ], "query_toks_no_value": [ "select", "t1", ".", "official_native_language", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "where", "t2", ".", "college", "=", "value", "or", "t2", ".", "college", "=", "value" ], "question": "Return the official native languages of countries who have players from Maryland or Duke colleges.", "question_toks": [ "return", "official", "native", "language", "of", "country", "who", "have", "player", "from", "maryland", "or", "duke", "college", "." ], "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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Maryland\"", null ], "or", [ false, 2, [ 0, [ 0, 14, false ], null ], "\"Duke\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Return", "the", "official", "native", "languages", "of", "countries", "who", "have", "players", "from", "Maryland", "or", "Duke", "colleges", "." ], "question_arg": [ [ "return" ], [ "official", "native", "language" ], [ "of" ], [ "country" ], [ "who" ], [ "have" ], [ "player" ], [ "from" ], [ "maryland" ], [ "or" ], [ "duke" ], [ "college" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "official", "JJ" ], [ "native", "JJ" ], [ "language", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "player", "NN" ], [ "from", "IN" ], [ "maryland", "NN" ], [ "or", "CC" ], [ "duke", "JJ" ], [ "college", "NN" ], [ ".", "." ] ], "values": [ "Maryland", "Duke" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(1) Filter(2) A(0) C(14) T(2) V(0) Filter(2) A(0) C(14) T(2) V(1)" }, { "db_id": "match_season", "query": "SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Defender\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T1.Official_native_language", ")", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "WHERE", "T2.Position", "=", "``", "Defender", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "official_native_language", ")", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "where", "t2", ".", "position", "=", "value" ], "question": "How many distinct official languages are there among countries of players whose positions are defenders.", "question_toks": [ "how", "many", "distinct", "official", "language", "are", "there", "among", "country", "of", "player", "whose", "position", "are", "defender", "." ], "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, [ [ 3, [ 0, [ 0, 4, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Defender\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "How", "many", "distinct", "official", "languages", "are", "there", "among", "countries", "of", "players", "whose", "positions", "are", "defenders", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "official", "native", "language" ], [ "are" ], [ "there" ], [ "among" ], [ "country" ], [ "of" ], [ "player" ], [ "whose" ], [ "position" ], [ "are" ], [ "defender" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "official", "JJ" ], [ "language", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "among", "IN" ], [ "country", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "position", "NN" ], [ "are", "VBP" ], [ "defender", "NN" ], [ ".", "." ] ], "values": [ "Defender" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(4) T(0) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT count(DISTINCT T1.Official_native_language) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Defender\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T1.Official_native_language", ")", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "WHERE", "T2.Position", "=", "``", "Defender", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "official_native_language", ")", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "where", "t2", ".", "position", "=", "value" ], "question": "Count the number of different official languages corresponding to countries that players who play Defender are from.", "question_toks": [ "count", "number", "of", "different", "official", "language", "corresponding", "to", "country", "that", "player", "who", "play", "defender", "are", "from", "." ], "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, [ [ 3, [ 0, [ 0, 4, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Defender\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "official", "languages", "corresponding", "to", "countries", "that", "players", "who", "play", "Defender", "are", "from", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "official", "native", "language" ], [ "corresponding" ], [ "to" ], [ "country" ], [ "that" ], [ "player" ], [ "who" ], [ "play" ], [ "defender" ], [ "are" ], [ "from" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "official", "JJ" ], [ "language", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "country", "NN" ], [ "that", "WDT" ], [ "player", "NN" ], [ "who", "WP" ], [ "play", "VBP" ], [ "defender", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ ".", "." ] ], "values": [ "Defender" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(4) T(0) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT T1.Season , T1.Player , T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id", "query_toks": [ "SELECT", "T1.Season", ",", "T1.Player", ",", "T2.Name", "FROM", "match_season", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.Team", "=", "T2.Team_id" ], "query_toks_no_value": [ "select", "t1", ".", "season", ",", "t1", ".", "player", ",", "t2", ".", "name", "from", "match_season", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team", "=", "t2", ".", "team_id" ], "question": "Show the season, the player, and the name of the team that players belong to.", "question_toks": [ "show", "season", ",", "player", ",", "and", "name", "of", "team", "that", "player", "belong", "to", "." ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "season", ",", "the", "player", ",", "and", "the", "name", "of", "the", "team", "that", "players", "belong", "to", "." ], "question_arg": [ [ "show" ], [ "season" ], [ "," ], [ "player" ], [ "," ], [ "and" ], [ "name" ], [ "of" ], [ "team" ], [ "that" ], [ "player" ], [ "belong" ], [ "to" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "season", "NN" ], [ ",", "," ], [ "player", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "that", "IN" ], [ "player", "NN" ], [ "belong", "NN" ], [ "to", "TO" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(7) T(2) A(0) C(8) T(2) A(0) C(6) T(1)" }, { "db_id": "match_season", "query": "SELECT T1.Season , T1.Player , T2.Name FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id", "query_toks": [ "SELECT", "T1.Season", ",", "T1.Player", ",", "T2.Name", "FROM", "match_season", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.Team", "=", "T2.Team_id" ], "query_toks_no_value": [ "select", "t1", ".", "season", ",", "t1", ".", "player", ",", "t2", ".", "name", "from", "match_season", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team", "=", "t2", ".", "team_id" ], "question": "Who are the different players, what season do they play in, and what is the name of the team they are on?", "question_toks": [ "who", "are", "different", "player", ",", "what", "season", "do", "they", "play", "in", ",", "and", "what", "is", "name", "of", "team", "they", "are", "on", "?" ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Who", "are", "the", "different", "players", ",", "what", "season", "do", "they", "play", "in", ",", "and", "what", "is", "the", "name", "of", "the", "team", "they", "are", "on", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "different" ], [ "player" ], [ "," ], [ "what" ], [ "season" ], [ "do" ], [ "they" ], [ "play" ], [ "in" ], [ "," ], [ "and" ], [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "team" ], [ "they" ], [ "are" ], [ "on" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "player", "NN" ], [ ",", "," ], [ "what", "WP" ], [ "season", "NN" ], [ "do", "VBP" ], [ "they", "PRP" ], [ "play", "VB" ], [ "in", "IN" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "on", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(7) T(2) A(0) C(8) T(2) A(0) C(6) T(1)" }, { "db_id": "match_season", "query": "SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Ryley Goldner\"", "query_toks": [ "SELECT", "T1.Position", "FROM", "match_season", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.Team", "=", "T2.Team_id", "WHERE", "T2.Name", "=", "``", "Ryley", "Goldner", "''" ], "query_toks_no_value": [ "select", "t1", ".", "position", "from", "match_season", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team", "=", "t2", ".", "team_id", "where", "t2", ".", "name", "=", "value" ], "question": "Show the positions of the players from the team with name \"Ryley Goldner\".", "question_toks": [ "show", "position", "of", "player", "from", "team", "with", "name", "'", "ryley", "goldner", "'", "." ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Ryley Goldner\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "positions", "of", "the", "players", "from", "the", "team", "with", "name", "``", "Ryley", "Goldner", "''", "." ], "question_arg": [ [ "show" ], [ "position" ], [ "of" ], [ "player" ], [ "from" ], [ "team" ], [ "with" ], [ "name" ], [ "'" ], [ "ryley" ], [ "goldner" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "position", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "from", "IN" ], [ "team", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "ryley", "NN" ], [ "goldner", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Ryley Goldner" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "match_season", "query": "SELECT T1.Position FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Ryley Goldner\"", "query_toks": [ "SELECT", "T1.Position", "FROM", "match_season", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.Team", "=", "T2.Team_id", "WHERE", "T2.Name", "=", "``", "Ryley", "Goldner", "''" ], "query_toks_no_value": [ "select", "t1", ".", "position", "from", "match_season", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team", "=", "t2", ".", "team_id", "where", "t2", ".", "name", "=", "value" ], "question": "Return the positions of players on the team Ryley Goldner.", "question_toks": [ "return", "position", "of", "player", "on", "team", "ryley", "goldner", "." ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Ryley Goldner\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Return", "the", "positions", "of", "players", "on", "the", "team", "Ryley", "Goldner", "." ], "question_arg": [ [ "return" ], [ "position" ], [ "of" ], [ "player" ], [ "on" ], [ "team" ], [ "ryley" ], [ "goldner" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "position", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "on", "IN" ], [ "team", "NN" ], [ "ryley", "NN" ], [ "goldner", "NN" ], [ ".", "." ] ], "values": [ "Ryley Goldner" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "match_season", "query": "SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Columbus Crew\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T1.College", ")", "FROM", "match_season", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.Team", "=", "T2.Team_id", "WHERE", "T2.Name", "=", "``", "Columbus", "Crew", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "college", ")", "from", "match_season", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team", "=", "t2", ".", "team_id", "where", "t2", ".", "name", "=", "value" ], "question": "How many distinct colleges are associated with players from the team with name \"Columbus Crew\".", "question_toks": [ "how", "many", "distinct", "college", "are", "associated", "with", "player", "from", "team", "with", "name", "'", "columbus", "crew", "'", "." ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 14, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Columbus Crew\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "How", "many", "distinct", "colleges", "are", "associated", "with", "players", "from", "the", "team", "with", "name", "``", "Columbus", "Crew", "''", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "college" ], [ "are" ], [ "associated" ], [ "with" ], [ "player" ], [ "from" ], [ "team" ], [ "with" ], [ "name" ], [ "'" ], [ "columbus" ], [ "crew" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "capital" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "college", "NN" ], [ "are", "VBP" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "player", "NN" ], [ "from", "IN" ], [ "team", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "'", "''" ], [ "columbus", "NN" ], [ "crew", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Columbus Crew" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(14) T(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "match_season", "query": "SELECT count(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Columbus Crew\"", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T1.College", ")", "FROM", "match_season", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.Team", "=", "T2.Team_id", "WHERE", "T2.Name", "=", "``", "Columbus", "Crew", "''" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "college", ")", "from", "match_season", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team", "=", "t2", ".", "team_id", "where", "t2", ".", "name", "=", "value" ], "question": "Count the number of different colleges that players who play for Columbus Crew are from.", "question_toks": [ "count", "number", "of", "different", "college", "that", "player", "who", "play", "for", "columbus", "crew", "are", "from", "." ], "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": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 14, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Columbus Crew\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "colleges", "that", "players", "who", "play", "for", "Columbus", "Crew", "are", "from", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "college" ], [ "that" ], [ "player" ], [ "who" ], [ "play" ], [ "for" ], [ "columbus" ], [ "crew" ], [ "are" ], [ "from" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "capital" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "college", "NN" ], [ "that", "WDT" ], [ "player", "NN" ], [ "who", "WP" ], [ "play", "VBP" ], [ "for", "IN" ], [ "columbus", "NN" ], [ "crew", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ ".", "." ] ], "values": [ "Columbus Crew" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(14) T(2) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "match_season", "query": "SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Columbus Crew\"", "query_toks": [ "SELECT", "T1.Player", ",", "T1.Years_Played", "FROM", "player", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.Team", "=", "T2.Team_id", "WHERE", "T2.Name", "=", "``", "Columbus", "Crew", "''" ], "query_toks_no_value": [ "select", "t1", ".", "player", ",", "t1", ".", "years_played", "from", "player", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team", "=", "t2", ".", "team_id", "where", "t2", ".", "name", "=", "value" ], "question": "Show the players and years played for players from team \"Columbus Crew\".", "question_toks": [ "show", "player", "and", "year", "played", "for", "player", "from", "team", "'", "columbus", "crew", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Columbus Crew\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "players", "and", "years", "played", "for", "players", "from", "team", "``", "Columbus", "Crew", "''", "." ], "question_arg": [ [ "show" ], [ "player" ], [ "and" ], [ "year", "played" ], [ "for" ], [ "player" ], [ "from" ], [ "team" ], [ "'" ], [ "columbus" ], [ "crew" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "capital" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "player", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "played", "NN" ], [ "for", "IN" ], [ "player", "NN" ], [ "from", "IN" ], [ "team", "NN" ], [ "'", "POS" ], [ "columbus", "NN" ], [ "crew", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Columbus Crew" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(3) A(0) C(16) T(3) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "match_season", "query": "SELECT T1.Player , T1.Years_Played FROM player AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Columbus Crew\"", "query_toks": [ "SELECT", "T1.Player", ",", "T1.Years_Played", "FROM", "player", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.Team", "=", "T2.Team_id", "WHERE", "T2.Name", "=", "``", "Columbus", "Crew", "''" ], "query_toks_no_value": [ "select", "t1", ".", "player", ",", "t1", ".", "years_played", "from", "player", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team", "=", "t2", ".", "team_id", "where", "t2", ".", "name", "=", "value" ], "question": "What are the players who played for Columbus Crew, and how many years did each play for?", "question_toks": [ "what", "are", "player", "who", "played", "for", "columbus", "crew", ",", "and", "how", "many", "year", "did", "each", "play", "for", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Columbus Crew\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "players", "who", "played", "for", "Columbus", "Crew", ",", "and", "how", "many", "years", "did", "each", "play", "for", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "player" ], [ "who" ], [ "played" ], [ "for" ], [ "columbus" ], [ "crew" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "year" ], [ "did" ], [ "each" ], [ "play" ], [ "for" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "capital" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "player", "NN" ], [ "who", "WP" ], [ "played", "VBD" ], [ "for", "IN" ], [ "columbus", "NN" ], [ "crew", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "year", "NN" ], [ "did", "VBD" ], [ "each", "DT" ], [ "play", "NN" ], [ "for", "IN" ], [ "?", "." ] ], "values": [ "Columbus Crew" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(3) A(0) C(16) T(3) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "match_season", "query": "SELECT POSITION , COUNT(*) FROM match_season GROUP BY POSITION", "query_toks": [ "SELECT", "POSITION", ",", "COUNT", "(", "*", ")", "FROM", "match_season", "GROUP", "BY", "POSITION" ], "query_toks_no_value": [ "select", "position", ",", "count", "(", "*", ")", "from", "match_season", "group", "by", "position" ], "question": "Show the position of players and the corresponding number of players.", "question_toks": [ "show", "position", "of", "player", "and", "corresponding", "number", "of", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "position", "of", "players", "and", "the", "corresponding", "number", "of", "players", "." ], "question_arg": [ [ "show" ], [ "position" ], [ "of" ], [ "player" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "position", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(2) A(3) C(0) T(2)" }, { "db_id": "match_season", "query": "SELECT POSITION , COUNT(*) FROM match_season GROUP BY POSITION", "query_toks": [ "SELECT", "POSITION", ",", "COUNT", "(", "*", ")", "FROM", "match_season", "GROUP", "BY", "POSITION" ], "query_toks_no_value": [ "select", "position", ",", "count", "(", "*", ")", "from", "match_season", "group", "by", "position" ], "question": "How many players played each position?", "question_toks": [ "how", "many", "player", "played", "each", "position", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "How", "many", "players", "played", "each", "position", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "player" ], [ "played" ], [ "each" ], [ "position" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "player", "NN" ], [ "played", "VBD" ], [ "each", "DT" ], [ "position", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(9) T(2) A(3) C(0) T(2)" }, { "db_id": "match_season", "query": "SELECT Country_name , COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name", "query_toks": [ "SELECT", "Country_name", ",", "COUNT", "(", "*", ")", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "GROUP", "BY", "T1.Country_name" ], "query_toks_no_value": [ "select", "country_name", ",", "count", "(", "*", ")", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "group", "by", "t1", ".", "country_name" ], "question": "Show the country names and the corresponding number of players.", "question_toks": [ "show", "country", "name", "and", "corresponding", "number", "of", "player", "." ], "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": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "country", "names", "and", "the", "corresponding", "number", "of", "players", "." ], "question_arg": [ [ "show" ], [ "country", "name" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "country", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(2)" }, { "db_id": "match_season", "query": "SELECT Country_name , COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name", "query_toks": [ "SELECT", "Country_name", ",", "COUNT", "(", "*", ")", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "GROUP", "BY", "T1.Country_name" ], "query_toks_no_value": [ "select", "country_name", ",", "count", "(", "*", ")", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "group", "by", "t1", ".", "country_name" ], "question": "How many players are from each country?", "question_toks": [ "how", "many", "player", "are", "from", "each", "country", "?" ], "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": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "How", "many", "players", "are", "from", "each", "country", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "player" ], [ "are" ], [ "from" ], [ "each" ], [ "country" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "player", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(2)" }, { "db_id": "match_season", "query": "SELECT player FROM match_season ORDER BY College ASC", "query_toks": [ "SELECT", "player", "FROM", "match_season", "ORDER", "BY", "College", "ASC" ], "query_toks_no_value": [ "select", "player", "from", "match_season", "order", "by", "college", "asc" ], "question": "Return all players sorted by college in ascending alphabetical order.", "question_toks": [ "return", "all", "player", "sorted", "by", "college", "in", "ascending", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Return", "all", "players", "sorted", "by", "college", "in", "ascending", "alphabetical", "order", "." ], "question_arg": [ [ "return" ], [ "all" ], [ "player" ], [ "sorted" ], [ "by" ], [ "college" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "all", "DT" ], [ "player", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "college", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(2) Order(1) A(0) C(14) T(2)" }, { "db_id": "match_season", "query": "SELECT player FROM match_season ORDER BY College ASC", "query_toks": [ "SELECT", "player", "FROM", "match_season", "ORDER", "BY", "College", "ASC" ], "query_toks_no_value": [ "select", "player", "from", "match_season", "order", "by", "college", "asc" ], "question": "What are all the players who played in match season, sorted by college in ascending alphabetical order?", "question_toks": [ "what", "are", "all", "player", "who", "played", "in", "match", "season", ",", "sorted", "by", "college", "in", "ascending", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "all", "the", "players", "who", "played", "in", "match", "season", ",", "sorted", "by", "college", "in", "ascending", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "player" ], [ "who" ], [ "played" ], [ "in" ], [ "match", "season" ], [ "," ], [ "sorted" ], [ "by" ], [ "college" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "player", "NN" ], [ "who", "WP" ], [ "played", "VBD" ], [ "in", "IN" ], [ "match", "NN" ], [ "season", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "college", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(2) Order(1) A(0) C(14) T(2)" }, { "db_id": "match_season", "query": "SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "POSITION", "FROM", "match_season", "GROUP", "BY", "POSITION", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "position", "from", "match_season", "group", "by", "position", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most common position of players in match seasons.", "question_toks": [ "show", "most", "common", "position", "of", "player", "in", "match", "season", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "most", "common", "position", "of", "players", "in", "match", "seasons", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "common" ], [ "position" ], [ "of" ], [ "player" ], [ "in" ], [ "match", "season" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "position", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "in", "IN" ], [ "match", "NN" ], [ "season", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "match_season", "query": "SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "POSITION", "FROM", "match_season", "GROUP", "BY", "POSITION", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "position", "from", "match_season", "group", "by", "position", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the position that is most common among players in match seasons?", "question_toks": [ "what", "is", "position", "that", "is", "most", "common", "among", "player", "in", "match", "season", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "is", "the", "position", "that", "is", "most", "common", "among", "players", "in", "match", "seasons", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "position" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "among" ], [ "player" ], [ "in" ], [ "match", "season" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "position", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "among", "IN" ], [ "player", "NN" ], [ "in", "IN" ], [ "match", "NN" ], [ "season", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "match_season", "query": "SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "College", "FROM", "match_season", "GROUP", "BY", "College", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "college", "from", "match_season", "group", "by", "college", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the top 3 most common colleges of players in match seasons.", "question_toks": [ "show", "top", "3", "most", "common", "college", "of", "player", "in", "match", "season", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "top", "3", "most", "common", "colleges", "of", "players", "in", "match", "seasons", "." ], "question_arg": [ [ "show" ], [ "top" ], [ "3" ], [ "most" ], [ "common" ], [ "college" ], [ "of" ], [ "player" ], [ "in" ], [ "match", "season" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "most", "JJS" ], [ "common", "JJ" ], [ "college", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "in", "IN" ], [ "match", "NN" ], [ "season", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(14) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "match_season", "query": "SELECT College FROM match_season GROUP BY College ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "College", "FROM", "match_season", "GROUP", "BY", "College", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "college", "from", "match_season", "group", "by", "college", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the three colleges from which the most players are from?", "question_toks": [ "what", "are", "three", "college", "from", "which", "most", "player", "are", "from", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "three", "colleges", "from", "which", "the", "most", "players", "are", "from", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "three" ], [ "college" ], [ "from" ], [ "which" ], [ "most" ], [ "player" ], [ "are" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "three", "CD" ], [ "college", "NN" ], [ "from", "IN" ], [ "which", "WDT" ], [ "most", "JJS" ], [ "player", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(14) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "match_season", "query": "SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2", "query_toks": [ "SELECT", "College", "FROM", "match_season", "GROUP", "BY", "College", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "college", "from", "match_season", "group", "by", "college", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the name of colleges that have at least two players.", "question_toks": [ "show", "name", "of", "college", "that", "have", "at", "least", "two", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "name", "of", "colleges", "that", "have", "at", "least", "two", "players", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "college" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "player", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2", "query_toks": [ "SELECT", "College", "FROM", "match_season", "GROUP", "BY", "College", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "college", "from", "match_season", "group", "by", "college", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the names of all colleges that have two or more players?", "question_toks": [ "what", "are", "name", "of", "all", "college", "that", "have", "two", "or", "more", "player", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "colleges", "that", "have", "two", "or", "more", "players", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "college" ], [ "that" ], [ "have" ], [ "two" ], [ "or" ], [ "more" ], [ "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "college", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "player", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2 ORDER BY College DESC", "query_toks": [ "SELECT", "College", "FROM", "match_season", "GROUP", "BY", "College", "HAVING", "count", "(", "*", ")", ">", "=", "2", "ORDER", "BY", "College", "DESC" ], "query_toks_no_value": [ "select", "college", "from", "match_season", "group", "by", "college", "having", "count", "(", "*", ")", ">", "=", "value", "order", "by", "college", "desc" ], "question": "Show the name of colleges that have at least two players in descending alphabetical order.", "question_toks": [ "show", "name", "of", "college", "that", "have", "at", "least", "two", "player", "in", "descending", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Show", "the", "name", "of", "colleges", "that", "have", "at", "least", "two", "players", "in", "descending", "alphabetical", "order", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "college" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "player" ], [ "in" ], [ "descending" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "player", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT College FROM match_season GROUP BY College HAVING count(*) >= 2 ORDER BY College DESC", "query_toks": [ "SELECT", "College", "FROM", "match_season", "GROUP", "BY", "College", "HAVING", "count", "(", "*", ")", ">", "=", "2", "ORDER", "BY", "College", "DESC" ], "query_toks_no_value": [ "select", "college", "from", "match_season", "group", "by", "college", "having", "count", "(", "*", ")", ">", "=", "value", "order", "by", "college", "desc" ], "question": "What are the names of colleges that have two or more players, listed in descending alphabetical order?", "question_toks": [ "what", "are", "name", "of", "college", "that", "have", "two", "or", "more", "player", ",", "listed", "in", "descending", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "colleges", "that", "have", "two", "or", "more", "players", ",", "listed", "in", "descending", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "college" ], [ "that" ], [ "have" ], [ "two" ], [ "or" ], [ "more" ], [ "player" ], [ "," ], [ "listed" ], [ "in" ], [ "descending" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "college", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "player", "NN" ], [ ",", "," ], [ "listed", "VBN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season)", "query_toks": [ "SELECT", "Name", "FROM", "team", "WHERE", "Team_id", "NOT", "IN", "(", "SELECT", "Team", "FROM", "match_season", ")" ], "query_toks_no_value": [ "select", "name", "from", "team", "where", "team_id", "not", "in", "(", "select", "team", "from", "match_season", ")" ], "question": "What are the names of teams that do no have match season record?", "question_toks": [ "what", "are", "name", "of", "team", "that", "do", "no", "have", "match", "season", "record", "?" ], "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": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "teams", "that", "do", "no", "have", "match", "season", "record", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "team" ], [ "that" ], [ "do" ], [ "no" ], [ "have" ], [ "match", "season" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "no", "DT" ], [ "have", "VB" ], [ "match", "NN" ], [ "season", "NN" ], [ "record", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(19) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(11) T(2)" }, { "db_id": "match_season", "query": "SELECT Name FROM team WHERE Team_id NOT IN (SELECT Team FROM match_season)", "query_toks": [ "SELECT", "Name", "FROM", "team", "WHERE", "Team_id", "NOT", "IN", "(", "SELECT", "Team", "FROM", "match_season", ")" ], "query_toks_no_value": [ "select", "name", "from", "team", "where", "team_id", "not", "in", "(", "select", "team", "from", "match_season", ")" ], "question": "Return the names of teams that have no match season record.", "question_toks": [ "return", "name", "of", "team", "that", "have", "no", "match", "season", "record", "." ], "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": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Return", "the", "names", "of", "teams", "that", "have", "no", "match", "season", "record", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "team" ], [ "that" ], [ "have" ], [ "no" ], [ "match", "season" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "team", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "no", "DT" ], [ "match", "NN" ], [ "season", "NN" ], [ "record", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(19) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(0) C(11) T(2)" }, { "db_id": "match_season", "query": "SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Forward\" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Defender\"", "query_toks": [ "SELECT", "T1.Country_name", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "WHERE", "T2.Position", "=", "``", "Forward", "''", "INTERSECT", "SELECT", "T1.Country_name", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "WHERE", "T2.Position", "=", "``", "Defender", "''" ], "query_toks_no_value": [ "select", "t1", ".", "country_name", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "where", "t2", ".", "position", "=", "value", "intersect", "select", "t1", ".", "country_name", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "where", "t2", ".", "position", "=", "value" ], "question": "What are the names of countries that have both players with position forward and players with position defender?", "question_toks": [ "what", "are", "name", "of", "country", "that", "have", "both", "player", "with", "position", "forward", "and", "player", "with", "position", "defender", "?" ], "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, 9, false ], null ], "\"Defender\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Forward\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "countries", "that", "have", "both", "players", "with", "position", "forward", "and", "players", "with", "position", "defender", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "country" ], [ "that" ], [ "have" ], [ "both" ], [ "player" ], [ "with" ], [ "position" ], [ "forward" ], [ "and" ], [ "player" ], [ "with" ], [ "position" ], [ "defender" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "player", "NN" ], [ "with", "IN" ], [ "position", "NN" ], [ "forward", "NN" ], [ "and", "CC" ], [ "player", "NN" ], [ "with", "IN" ], [ "position", "NN" ], [ "defender", "NN" ], [ "?", "." ] ], "values": [ "Defender", "Forward" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(9) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Forward\" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Defender\"", "query_toks": [ "SELECT", "T1.Country_name", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "WHERE", "T2.Position", "=", "``", "Forward", "''", "INTERSECT", "SELECT", "T1.Country_name", "FROM", "country", "AS", "T1", "JOIN", "match_season", "AS", "T2", "ON", "T1.Country_id", "=", "T2.Country", "WHERE", "T2.Position", "=", "``", "Defender", "''" ], "query_toks_no_value": [ "select", "t1", ".", "country_name", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "where", "t2", ".", "position", "=", "value", "intersect", "select", "t1", ".", "country_name", "from", "country", "as", "t1", "join", "match_season", "as", "t2", "on", "t1", ".", "country_id", "=", "t2", ".", "country", "where", "t2", ".", "position", "=", "value" ], "question": "Return the names of countries that have players that play the Forward position, as well as players who play the Defender position.", "question_toks": [ "return", "name", "of", "country", "that", "have", "player", "that", "play", "forward", "position", ",", "a", "well", "a", "player", "who", "play", "defender", "position", "." ], "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, 9, false ], null ], "\"Defender\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Forward\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Return", "the", "names", "of", "countries", "that", "have", "players", "that", "play", "the", "Forward", "position", ",", "as", "well", "as", "players", "who", "play", "the", "Defender", "position", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "country" ], [ "that" ], [ "have" ], [ "player" ], [ "that" ], [ "play" ], [ "forward" ], [ "position" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "player" ], [ "who" ], [ "play" ], [ "defender" ], [ "position" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "position" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "player", "NN" ], [ "that", "WDT" ], [ "play", "VBZ" ], [ "forward", "RB" ], [ "position", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "NN" ], [ "a", "DT" ], [ "player", "NN" ], [ "who", "WP" ], [ "play", "VBZ" ], [ "defender", "JJR" ], [ "position", "NN" ], [ ".", "." ] ], "values": [ "Defender", "Forward" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(9) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT College FROM match_season WHERE POSITION = \"Midfielder\" INTERSECT SELECT College FROM match_season WHERE POSITION = \"Defender\"", "query_toks": [ "SELECT", "College", "FROM", "match_season", "WHERE", "POSITION", "=", "``", "Midfielder", "''", "INTERSECT", "SELECT", "College", "FROM", "match_season", "WHERE", "POSITION", "=", "``", "Defender", "''" ], "query_toks_no_value": [ "select", "college", "from", "match_season", "where", "position", "=", "value", "intersect", "select", "college", "from", "match_season", "where", "position", "=", "value" ], "question": "Which college have both players with position midfielder and players with position defender?", "question_toks": [ "which", "college", "have", "both", "player", "with", "position", "midfielder", "and", "player", "with", "position", "defender", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Defender\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Midfielder\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Which", "college", "have", "both", "players", "with", "position", "midfielder", "and", "players", "with", "position", "defender", "?" ], "question_arg": [ [ "which" ], [ "college" ], [ "have" ], [ "both" ], [ "player" ], [ "with" ], [ "position" ], [ "midfielder" ], [ "and" ], [ "player" ], [ "with" ], [ "position" ], [ "defender" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "college", "NN" ], [ "have", "VBP" ], [ "both", "DT" ], [ "player", "NN" ], [ "with", "IN" ], [ "position", "NN" ], [ "midfielder", "NN" ], [ "and", "CC" ], [ "player", "NN" ], [ "with", "IN" ], [ "position", "NN" ], [ "defender", "NN" ], [ "?", "." ] ], "values": [ "Defender", "Midfielder" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(2) A(0) C(9) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "match_season", "query": "SELECT College FROM match_season WHERE POSITION = \"Midfielder\" INTERSECT SELECT College FROM match_season WHERE POSITION = \"Defender\"", "query_toks": [ "SELECT", "College", "FROM", "match_season", "WHERE", "POSITION", "=", "``", "Midfielder", "''", "INTERSECT", "SELECT", "College", "FROM", "match_season", "WHERE", "POSITION", "=", "``", "Defender", "''" ], "query_toks_no_value": [ "select", "college", "from", "match_season", "where", "position", "=", "value", "intersect", "select", "college", "from", "match_season", "where", "position", "=", "value" ], "question": "Return the colleges that have players who play the Midfielder position, as well as players who play the Defender position.", "question_toks": [ "return", "college", "that", "have", "player", "who", "play", "midfielder", "position", ",", "a", "well", "a", "player", "who", "play", "defender", "position", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Defender\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Midfielder\"", null ] ] }, "names": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "player", "years played", "total wl", "singles wl", "doubles wl", "team" ], "table_names": [ "country", "team", "match season", "player" ], "col_set": [ "*", "country id", "country name", "capital", "official native language", "team id", "name", "season", "player", "position", "country", "team", "draft pick number", "draft class", "college", "player id", "years played", "total wl", "singles wl", "doubles wl" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3 ], "keys": { "11": 5, "5": 5, "10": 1, "1": 1, "21": 5, "7": 7, "15": 15 }, "origin_question_toks": [ "Return", "the", "colleges", "that", "have", "players", "who", "play", "the", "Midfielder", "position", ",", "as", "well", "as", "players", "who", "play", "the", "Defender", "position", "." ], "question_arg": [ [ "return" ], [ "college" ], [ "that" ], [ "have" ], [ "player" ], [ "who" ], [ "play" ], [ "midfielder" ], [ "position" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "player" ], [ "who" ], [ "play" ], [ "defender" ], [ "position" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "college", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "player", "NN" ], [ "who", "WP" ], [ "play", "VBZ" ], [ "midfielder", "JJR" ], [ "position", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "NN" ], [ "a", "DT" ], [ "player", "NN" ], [ "who", "WP" ], [ "play", "VBZ" ], [ "defender", "JJR" ], [ "position", "NN" ], [ ".", "." ] ], "values": [ "Defender", "Midfielder" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(2) A(0) C(9) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(2) A(0) C(9) T(2) V(0)" }, { "db_id": "climbing", "query": "SELECT count(*) FROM climber", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "climber" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "climber" ], "question": "How many climbers are there?", "question_toks": [ "how", "many", "climber", "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": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "How", "many", "climbers", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "climber" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "climber", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "climbing", "query": "SELECT count(*) FROM climber", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "climber" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "climber" ], "question": "Count the number of climbers.", "question_toks": [ "count", "number", "of", "climber", "." ], "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": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Count", "the", "number", "of", "climbers", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "climber" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "climber", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "climbing", "query": "SELECT Name FROM climber ORDER BY Points DESC", "query_toks": [ "SELECT", "Name", "FROM", "climber", "ORDER", "BY", "Points", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "climber", "order", "by", "points", "desc" ], "question": "List the names of climbers in descending order of points.", "question_toks": [ "list", "name", "of", "climber", "in", "descending", "order", "of", "point", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "List", "the", "names", "of", "climbers", "in", "descending", "order", "of", "points", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "climber" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "point" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "climber", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "point", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(0) A(0) C(9) T(1)" }, { "db_id": "climbing", "query": "SELECT Name FROM climber ORDER BY Points DESC", "query_toks": [ "SELECT", "Name", "FROM", "climber", "ORDER", "BY", "Points", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "climber", "order", "by", "points", "desc" ], "question": "What are the names of the climbers, ordered by points descending?", "question_toks": [ "what", "are", "name", "of", "climber", ",", "ordered", "by", "point", "descending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "climbers", ",", "ordered", "by", "points", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "climber" ], [ "," ], [ "ordered" ], [ "by" ], [ "point" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "climber", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "point", "NN" ], [ "descending", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(0) A(0) C(9) T(1)" }, { "db_id": "climbing", "query": "SELECT Name FROM climber WHERE Country != \"Switzerland\"", "query_toks": [ "SELECT", "Name", "FROM", "climber", "WHERE", "Country", "!", "=", "``", "Switzerland", "''" ], "query_toks_no_value": [ "select", "name", "from", "climber", "where", "country", "!", "=", "value" ], "question": "List the names of climbers whose country is not Switzerland.", "question_toks": [ "list", "name", "of", "climber", "whose", "country", "is", "not", "switzerland", "." ], "sql": { "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, 7, [ 0, [ 0, 9, false ], null ], "\"Switzerland\"", null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "List", "the", "names", "of", "climbers", "whose", "country", "is", "not", "Switzerland", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "climber" ], [ "whose" ], [ "country" ], [ "is" ], [ "not" ], [ "switzerland" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "climber", "NN" ], [ "whose", "WP$" ], [ "country", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "switzerland", "JJ" ], [ ".", "." ] ], "values": [ "Switzerland" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(3) A(0) C(6) T(1) V(0)" }, { "db_id": "climbing", "query": "SELECT Name FROM climber WHERE Country != \"Switzerland\"", "query_toks": [ "SELECT", "Name", "FROM", "climber", "WHERE", "Country", "!", "=", "``", "Switzerland", "''" ], "query_toks_no_value": [ "select", "name", "from", "climber", "where", "country", "!", "=", "value" ], "question": "What are the names of climbers who are not from the country of Switzerland?", "question_toks": [ "what", "are", "name", "of", "climber", "who", "are", "not", "from", "country", "of", "switzerland", "?" ], "sql": { "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, 7, [ 0, [ 0, 9, false ], null ], "\"Switzerland\"", null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "climbers", "who", "are", "not", "from", "the", "country", "of", "Switzerland", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "climber" ], [ "who" ], [ "are" ], [ "not" ], [ "from" ], [ "country" ], [ "of" ], [ "switzerland" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "climber", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "from", "IN" ], [ "country", "NN" ], [ "of", "IN" ], [ "switzerland", "NN" ], [ "?", "." ] ], "values": [ "Switzerland" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(3) A(0) C(6) T(1) V(0)" }, { "db_id": "climbing", "query": "SELECT max(Points) FROM climber WHERE Country = \"United Kingdom\"", "query_toks": [ "SELECT", "max", "(", "Points", ")", "FROM", "climber", "WHERE", "Country", "=", "``", "United", "Kingdom", "''" ], "query_toks_no_value": [ "select", "max", "(", "points", ")", "from", "climber", "where", "country", "=", "value" ], "question": "What is the maximum point for climbers whose country is United Kingdom?", "question_toks": [ "what", "is", "maximum", "point", "for", "climber", "whose", "country", "is", "united", "kingdom", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"United Kingdom\"", null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "maximum", "point", "for", "climbers", "whose", "country", "is", "United", "Kingdom", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "point" ], [ "for" ], [ "climber" ], [ "whose" ], [ "country" ], [ "is" ], [ "united" ], [ "kingdom" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "point", "NN" ], [ "for", "IN" ], [ "climber", "NN" ], [ "whose", "WP$" ], [ "country", "NN" ], [ "is", "VBZ" ], [ "united", "JJ" ], [ "kingdom", "NN" ], [ "?", "." ] ], "values": [ "United Kingdom" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(9) T(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "climbing", "query": "SELECT max(Points) FROM climber WHERE Country = \"United Kingdom\"", "query_toks": [ "SELECT", "max", "(", "Points", ")", "FROM", "climber", "WHERE", "Country", "=", "``", "United", "Kingdom", "''" ], "query_toks_no_value": [ "select", "max", "(", "points", ")", "from", "climber", "where", "country", "=", "value" ], "question": "Return the maximum number of points for climbers from the United Kingdom.", "question_toks": [ "return", "maximum", "number", "of", "point", "for", "climber", "from", "united", "kingdom", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"United Kingdom\"", null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Return", "the", "maximum", "number", "of", "points", "for", "climbers", "from", "the", "United", "Kingdom", "." ], "question_arg": [ [ "return" ], [ "maximum" ], [ "number" ], [ "of" ], [ "point" ], [ "for" ], [ "climber" ], [ "from" ], [ "united" ], [ "kingdom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "maximum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "point", "NN" ], [ "for", "IN" ], [ "climber", "NN" ], [ "from", "IN" ], [ "united", "JJ" ], [ "kingdom", "NN" ], [ ".", "." ] ], "values": [ "United Kingdom" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(1) C(9) T(1) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "climbing", "query": "SELECT COUNT(DISTINCT Country) FROM climber", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Country", ")", "FROM", "climber" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "country", ")", "from", "climber" ], "question": "How many distinct countries are the climbers from?", "question_toks": [ "how", "many", "distinct", "country", "are", "climber", "from", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 9, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "How", "many", "distinct", "countries", "are", "the", "climbers", "from", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "country" ], [ "are" ], [ "climber" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "country", "NN" ], [ "are", "VBP" ], [ "climber", "VBN" ], [ "from", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(6) T(1)" }, { "db_id": "climbing", "query": "SELECT COUNT(DISTINCT Country) FROM climber", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "Country", ")", "FROM", "climber" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "country", ")", "from", "climber" ], "question": "Count the number of different countries that climbers are from.", "question_toks": [ "count", "number", "of", "different", "country", "that", "climber", "are", "from", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 9, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "countries", "that", "climbers", "are", "from", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "country" ], [ "that" ], [ "climber" ], [ "are" ], [ "from" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "country", "NN" ], [ "that", "IN" ], [ "climber", "NNS" ], [ "are", "VBP" ], [ "from", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(6) T(1)" }, { "db_id": "climbing", "query": "SELECT Name FROM mountain ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", "FROM", "mountain", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "mountain", "order", "by", "name", "asc" ], "question": "What are the names of mountains in ascending alphabetical order?", "question_toks": [ "what", "are", "name", "of", "mountain", "in", "ascending", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "mountains", "in", "ascending", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "mountain" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "climbing", "query": "SELECT Name FROM mountain ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", "FROM", "mountain", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "mountain", "order", "by", "name", "asc" ], "question": "Give the names of mountains in alphabetical order.", "question_toks": [ "give", "name", "of", "mountain", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Give", "the", "names", "of", "mountains", "in", "alphabetical", "order", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "mountain" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "climbing", "query": "SELECT Country FROM mountain WHERE Height > 5000", "query_toks": [ "SELECT", "Country", "FROM", "mountain", "WHERE", "Height", ">", "5000" ], "query_toks_no_value": [ "select", "country", "from", "mountain", "where", "height", ">", "value" ], "question": "What are the countries of mountains with height bigger than 5000?", "question_toks": [ "what", "are", "country", "of", "mountain", "with", "height", "bigger", "than", "5000", "?" ], "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, 3, [ 0, [ 0, 3, false ], null ], 5000.0, null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "countries", "of", "mountains", "with", "height", "bigger", "than", "5000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "of" ], [ "mountain" ], [ "with" ], [ "height" ], [ "bigger" ], [ "than" ], [ "5000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "with", "IN" ], [ "height", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ "?", "." ] ], "values": [ "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "climbing", "query": "SELECT Country FROM mountain WHERE Height > 5000", "query_toks": [ "SELECT", "Country", "FROM", "mountain", "WHERE", "Height", ">", "5000" ], "query_toks_no_value": [ "select", "country", "from", "mountain", "where", "height", ">", "value" ], "question": "Return the countries of the mountains that have a height larger than 5000.", "question_toks": [ "return", "country", "of", "mountain", "that", "have", "a", "height", "larger", "than", "5000", "." ], "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, 3, [ 0, [ 0, 3, false ], null ], 5000.0, null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Return", "the", "countries", "of", "the", "mountains", "that", "have", "a", "height", "larger", "than", "5000", "." ], "question_arg": [ [ "return" ], [ "country" ], [ "of" ], [ "mountain" ], [ "that" ], [ "have" ], [ "a" ], [ "height" ], [ "larger" ], [ "than" ], [ "5000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "JJ" ], [ "country", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "height", "NN" ], [ "larger", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ ".", "." ] ], "values": [ "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "climbing", "query": "SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "mountain", "ORDER", "BY", "Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "mountain", "order", "by", "height", "desc", "limit", "value" ], "question": "What is the name of the highest mountain?", "question_toks": [ "what", "is", "name", "of", "highest", "mountain", "?" ], "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, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "highest", "mountain", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "highest" ], [ "mountain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "highest", "JJS" ], [ "mountain", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(3) T(0)" }, { "db_id": "climbing", "query": "SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "mountain", "ORDER", "BY", "Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "mountain", "order", "by", "height", "desc", "limit", "value" ], "question": "Return the name of the mountain with the greatest height.", "question_toks": [ "return", "name", "of", "mountain", "with", "greatest", "height", "." ], "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, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "mountain", "with", "the", "greatest", "height", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "mountain" ], [ "with" ], [ "greatest" ], [ "height" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "height", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(0) A(0) C(3) T(0)" }, { "db_id": "climbing", "query": "SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3", "query_toks": [ "SELECT", "DISTINCT", "Range", "FROM", "mountain", "ORDER", "BY", "Prominence", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "distinct", "range", "from", "mountain", "order", "by", "prominence", "desc", "limit", "value" ], "question": "List the distinct ranges of the mountains with the top 3 prominence.", "question_toks": [ "list", "distinct", "range", "of", "mountain", "with", "top", "3", "prominence", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "List", "the", "distinct", "ranges", "of", "the", "mountains", "with", "the", "top", "3", "prominence", "." ], "question_arg": [ [ "list" ], [ "distinct" ], [ "range" ], [ "of" ], [ "mountain" ], [ "with" ], [ "top" ], [ "3" ], [ "prominence" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "distinct", "JJ" ], [ "range", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "with", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "prominence", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(1) N(0) A(0) C(5) T(0) Sup(0) A(0) C(4) T(0)" }, { "db_id": "climbing", "query": "SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3", "query_toks": [ "SELECT", "DISTINCT", "Range", "FROM", "mountain", "ORDER", "BY", "Prominence", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "distinct", "range", "from", "mountain", "order", "by", "prominence", "desc", "limit", "value" ], "question": "What are the different ranges of the 3 mountains with the highest prominence?", "question_toks": [ "what", "are", "different", "range", "of", "3", "mountain", "with", "highest", "prominence", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "different", "ranges", "of", "the", "3", "mountains", "with", "the", "highest", "prominence", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "range" ], [ "of" ], [ "3" ], [ "mountain" ], [ "with" ], [ "highest" ], [ "prominence" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "range", "NN" ], [ "of", "IN" ], [ "3", "CD" ], [ "mountain", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "prominence", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(1) N(0) A(0) C(5) T(0) Sup(0) A(0) C(4) T(0)" }, { "db_id": "climbing", "query": "SELECT T1.Name , T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Name", "FROM", "climber", "AS", "T1", "JOIN", "mountain", "AS", "T2", "ON", "T1.Mountain_ID", "=", "T2.Mountain_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "name", "from", "climber", "as", "t1", "join", "mountain", "as", "t2", "on", "t1", ".", "mountain_id", "=", "t2", ".", "mountain_id" ], "question": "Show names of climbers and the names of mountains they climb.", "question_toks": [ "show", "name", "of", "climber", "and", "name", "of", "mountain", "they", "climb", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, 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, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Show", "names", "of", "climbers", "and", "the", "names", "of", "mountains", "they", "climb", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "climber" ], [ "and" ], [ "name" ], [ "of" ], [ "mountain" ], [ "they" ], [ "climb" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "climber", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "they", "PRP" ], [ "climb", "VBP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(2) T(0)" }, { "db_id": "climbing", "query": "SELECT T1.Name , T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Name", "FROM", "climber", "AS", "T1", "JOIN", "mountain", "AS", "T2", "ON", "T1.Mountain_ID", "=", "T2.Mountain_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "name", "from", "climber", "as", "t1", "join", "mountain", "as", "t2", "on", "t1", ".", "mountain_id", "=", "t2", ".", "mountain_id" ], "question": "What are the names of climbers and the corresponding names of mountains that they climb?", "question_toks": [ "what", "are", "name", "of", "climber", "and", "corresponding", "name", "of", "mountain", "that", "they", "climb", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, 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, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "climbers", "and", "the", "corresponding", "names", "of", "mountains", "that", "they", "climb", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "climber" ], [ "and" ], [ "corresponding" ], [ "name" ], [ "of" ], [ "mountain" ], [ "that" ], [ "they" ], [ "climb" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "climber", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "name", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "that", "IN" ], [ "they", "PRP" ], [ "climb", "VBP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(2) T(0)" }, { "db_id": "climbing", "query": "SELECT T1.Name , T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Height", "FROM", "climber", "AS", "T1", "JOIN", "mountain", "AS", "T2", "ON", "T1.Mountain_ID", "=", "T2.Mountain_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "height", "from", "climber", "as", "t1", "join", "mountain", "as", "t2", "on", "t1", ".", "mountain_id", "=", "t2", ".", "mountain_id" ], "question": "Show the names of climbers and the heights of mountains they climb.", "question_toks": [ "show", "name", "of", "climber", "and", "height", "of", "mountain", "they", "climb", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, 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, 8, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Show", "the", "names", "of", "climbers", "and", "the", "heights", "of", "mountains", "they", "climb", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "climber" ], [ "and" ], [ "height" ], [ "of" ], [ "mountain" ], [ "they" ], [ "climb" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "climber", "NN" ], [ "and", "CC" ], [ "height", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "they", "PRP" ], [ "climb", "VBP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(3) T(0)" }, { "db_id": "climbing", "query": "SELECT T1.Name , T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID", "query_toks": [ "SELECT", "T1.Name", ",", "T2.Height", "FROM", "climber", "AS", "T1", "JOIN", "mountain", "AS", "T2", "ON", "T1.Mountain_ID", "=", "T2.Mountain_ID" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "height", "from", "climber", "as", "t1", "join", "mountain", "as", "t2", "on", "t1", ".", "mountain_id", "=", "t2", ".", "mountain_id" ], "question": "What are the names of climbers and the corresponding heights of the mountains that they climb?", "question_toks": [ "what", "are", "name", "of", "climber", "and", "corresponding", "height", "of", "mountain", "that", "they", "climb", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, 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, 8, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "climbers", "and", "the", "corresponding", "heights", "of", "the", "mountains", "that", "they", "climb", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "climber" ], [ "and" ], [ "corresponding" ], [ "height" ], [ "of" ], [ "mountain" ], [ "that" ], [ "they" ], [ "climb" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "climber", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "height", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "that", "IN" ], [ "they", "PRP" ], [ "climb", "VBP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(1) A(0) C(3) T(0)" }, { "db_id": "climbing", "query": "SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Height", "FROM", "climber", "AS", "T1", "JOIN", "mountain", "AS", "T2", "ON", "T1.Mountain_ID", "=", "T2.Mountain_ID", "ORDER", "BY", "T1.Points", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "height", "from", "climber", "as", "t1", "join", "mountain", "as", "t2", "on", "t1", ".", "mountain_id", "=", "t2", ".", "mountain_id", "order", "by", "t1", ".", "points", "desc", "limit", "value" ], "question": "Show the height of the mountain climbed by the climber with the maximum points.", "question_toks": [ "show", "height", "of", "mountain", "climbed", "by", "climber", "with", "maximum", "point", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 1, 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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Show", "the", "height", "of", "the", "mountain", "climbed", "by", "the", "climber", "with", "the", "maximum", "points", "." ], "question_arg": [ [ "show" ], [ "height" ], [ "of" ], [ "mountain" ], [ "climbed" ], [ "by" ], [ "climber" ], [ "with" ], [ "maximum" ], [ "point" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "height", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "climbed", "VBN" ], [ "by", "IN" ], [ "climber", "NN" ], [ "with", "IN" ], [ "maximum", "JJ" ], [ "point", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(0) A(0) C(9) T(1)" }, { "db_id": "climbing", "query": "SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Height", "FROM", "climber", "AS", "T1", "JOIN", "mountain", "AS", "T2", "ON", "T1.Mountain_ID", "=", "T2.Mountain_ID", "ORDER", "BY", "T1.Points", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "height", "from", "climber", "as", "t1", "join", "mountain", "as", "t2", "on", "t1", ".", "mountain_id", "=", "t2", ".", "mountain_id", "order", "by", "t1", ".", "points", "desc", "limit", "value" ], "question": "What is the height of the mountain climbined by the climbing who had the most points?", "question_toks": [ "what", "is", "height", "of", "mountain", "climbined", "by", "climbing", "who", "had", "most", "point", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 1, 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, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "height", "of", "the", "mountain", "climbined", "by", "the", "climbing", "who", "had", "the", "most", "points", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "height" ], [ "of" ], [ "mountain" ], [ "climbined" ], [ "by" ], [ "climbing" ], [ "who" ], [ "had" ], [ "most" ], [ "point" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "height", "VBN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "climbined", "VBN" ], [ "by", "IN" ], [ "climbing", "VBG" ], [ "who", "WP" ], [ "had", "VBD" ], [ "most", "RBS" ], [ "point", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(0) A(0) C(9) T(1)" }, { "db_id": "climbing", "query": "SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T1.Country = \"West Germany\"", "query_toks": [ "SELECT", "DISTINCT", "T2.Name", "FROM", "climber", "AS", "T1", "JOIN", "mountain", "AS", "T2", "ON", "T1.Mountain_ID", "=", "T2.Mountain_ID", "WHERE", "T1.Country", "=", "``", "West", "Germany", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "climber", "as", "t1", "join", "mountain", "as", "t2", "on", "t1", ".", "mountain_id", "=", "t2", ".", "mountain_id", "where", "t1", ".", "country", "=", "value" ], "question": "Show the distinct names of mountains climbed by climbers from country \"West Germany\".", "question_toks": [ "show", "distinct", "name", "of", "mountain", "climbed", "by", "climber", "from", "country", "'", "west", "germany", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, false ], null ], "\"West Germany\"", null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Show", "the", "distinct", "names", "of", "mountains", "climbed", "by", "climbers", "from", "country", "``", "West", "Germany", "''", "." ], "question_arg": [ [ "show" ], [ "distinct" ], [ "name" ], [ "of" ], [ "mountain" ], [ "climbed" ], [ "by" ], [ "climber" ], [ "from" ], [ "country" ], [ "'" ], [ "west" ], [ "germany" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "country" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "climbed", "VBN" ], [ "by", "IN" ], [ "climber", "NN" ], [ "from", "IN" ], [ "country", "NN" ], [ "'", "POS" ], [ "west", "JJS" ], [ "germany", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "West Germany" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "climbing", "query": "SELECT DISTINCT T2.Name FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T1.Country = \"West Germany\"", "query_toks": [ "SELECT", "DISTINCT", "T2.Name", "FROM", "climber", "AS", "T1", "JOIN", "mountain", "AS", "T2", "ON", "T1.Mountain_ID", "=", "T2.Mountain_ID", "WHERE", "T1.Country", "=", "``", "West", "Germany", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "name", "from", "climber", "as", "t1", "join", "mountain", "as", "t2", "on", "t1", ".", "mountain_id", "=", "t2", ".", "mountain_id", "where", "t1", ".", "country", "=", "value" ], "question": "What are the different names of mountains ascended by climbers from the country of West Germany?", "question_toks": [ "what", "are", "different", "name", "of", "mountain", "ascended", "by", "climber", "from", "country", "of", "west", "germany", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "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, 9, false ], null ], "\"West Germany\"", null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "different", "names", "of", "mountains", "ascended", "by", "climbers", "from", "the", "country", "of", "West", "Germany", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "name" ], [ "of" ], [ "mountain" ], [ "ascended" ], [ "by" ], [ "climber" ], [ "from" ], [ "country" ], [ "of" ], [ "west" ], [ "germany" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "ascended", "VBN" ], [ "by", "IN" ], [ "climber", "NN" ], [ "from", "IN" ], [ "country", "NN" ], [ "of", "IN" ], [ "west", "JJS" ], [ "germany", "NN" ], [ "?", "." ] ], "values": [ "West Germany" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(1) V(0)" }, { "db_id": "climbing", "query": "SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = \"Uganda\"", "query_toks": [ "SELECT", "T1.Time", "FROM", "climber", "AS", "T1", "JOIN", "mountain", "AS", "T2", "ON", "T1.Mountain_ID", "=", "T2.Mountain_ID", "WHERE", "T2.Country", "=", "``", "Uganda", "''" ], "query_toks_no_value": [ "select", "t1", ".", "time", "from", "climber", "as", "t1", "join", "mountain", "as", "t2", "on", "t1", ".", "mountain_id", "=", "t2", ".", "mountain_id", "where", "t2", ".", "country", "=", "value" ], "question": "Show the times used by climbers to climb mountains in Country Uganda.", "question_toks": [ "show", "time", "used", "by", "climber", "to", "climb", "mountain", "in", "country", "uganda", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, 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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Uganda\"", null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Show", "the", "times", "used", "by", "climbers", "to", "climb", "mountains", "in", "Country", "Uganda", "." ], "question_arg": [ [ "show" ], [ "time" ], [ "used" ], [ "by" ], [ "climber" ], [ "to" ], [ "climb" ], [ "mountain" ], [ "in" ], [ "country" ], [ "uganda" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "time", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "climber", "NN" ], [ "to", "TO" ], [ "climb", "VB" ], [ "mountain", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "uganda", "NN" ], [ ".", "." ] ], "values": [ "Uganda" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "climbing", "query": "SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = \"Uganda\"", "query_toks": [ "SELECT", "T1.Time", "FROM", "climber", "AS", "T1", "JOIN", "mountain", "AS", "T2", "ON", "T1.Mountain_ID", "=", "T2.Mountain_ID", "WHERE", "T2.Country", "=", "``", "Uganda", "''" ], "query_toks_no_value": [ "select", "t1", ".", "time", "from", "climber", "as", "t1", "join", "mountain", "as", "t2", "on", "t1", ".", "mountain_id", "=", "t2", ".", "mountain_id", "where", "t2", ".", "country", "=", "value" ], "question": "What are the times used by climbers who climbed mountains in the country of Uganda?", "question_toks": [ "what", "are", "time", "used", "by", "climber", "who", "climbed", "mountain", "in", "country", "of", "uganda", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, 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, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Uganda\"", null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "times", "used", "by", "climbers", "who", "climbed", "mountains", "in", "the", "country", "of", "Uganda", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "time" ], [ "used" ], [ "by" ], [ "climber" ], [ "who" ], [ "climbed" ], [ "mountain" ], [ "in" ], [ "country" ], [ "of" ], [ "uganda" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "country" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "time", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "climber", "NN" ], [ "who", "WP" ], [ "climbed", "VBD" ], [ "mountain", "NN" ], [ "in", "IN" ], [ "country", "NN" ], [ "of", "IN" ], [ "uganda", "NN" ], [ "?", "." ] ], "values": [ "Uganda" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "climbing", "query": "SELECT Country , COUNT(*) FROM climber GROUP BY Country", "query_toks": [ "SELECT", "Country", ",", "COUNT", "(", "*", ")", "FROM", "climber", "GROUP", "BY", "Country" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "climber", "group", "by", "country" ], "question": "Please show the countries and the number of climbers from each country.", "question_toks": [ "please", "show", "country", "and", "number", "of", "climber", "from", "each", "country", "." ], "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": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Please", "show", "the", "countries", "and", "the", "number", "of", "climbers", "from", "each", "country", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "country" ], [ "and" ], [ "number" ], [ "of" ], [ "climber" ], [ "from" ], [ "each" ], [ "country" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "JJ" ], [ "country", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "climber", "NN" ], [ "from", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(1) A(3) C(0) T(1)" }, { "db_id": "climbing", "query": "SELECT Country , COUNT(*) FROM climber GROUP BY Country", "query_toks": [ "SELECT", "Country", ",", "COUNT", "(", "*", ")", "FROM", "climber", "GROUP", "BY", "Country" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "climber", "group", "by", "country" ], "question": "How many climbers are from each country?", "question_toks": [ "how", "many", "climber", "are", "from", "each", "country", "?" ], "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": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "How", "many", "climbers", "are", "from", "each", "country", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "climber" ], [ "are" ], [ "from" ], [ "each" ], [ "country" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "climber", "NNS" ], [ "are", "VBP" ], [ "from", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(1) A(3) C(0) T(1)" }, { "db_id": "climbing", "query": "SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Country", "FROM", "mountain", "GROUP", "BY", "Country", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "country", "from", "mountain", "group", "by", "country", "having", "count", "(", "*", ")", ">", "value" ], "question": "List the countries that have more than one mountain.", "question_toks": [ "list", "country", "that", "have", "more", "than", "one", "mountain", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "List", "the", "countries", "that", "have", "more", "than", "one", "mountain", "." ], "question_arg": [ [ "list" ], [ "country" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "mountain" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "mountain", "NN" ], [ ".", "." ] ], "values": [ "1" ], "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": "climbing", "query": "SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*) > 1", "query_toks": [ "SELECT", "Country", "FROM", "mountain", "GROUP", "BY", "Country", "HAVING", "COUNT", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "country", "from", "mountain", "group", "by", "country", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which countries have more than one mountain?", "question_toks": [ "which", "country", "have", "more", "than", "one", "mountain", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 6, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Which", "countries", "have", "more", "than", "one", "mountain", "?" ], "question_arg": [ [ "which" ], [ "country" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "mountain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "country", "NN" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "mountain", "NN" ], [ "?", "." ] ], "values": [ "1" ], "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": "climbing", "query": "SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber)", "query_toks": [ "SELECT", "Name", "FROM", "mountain", "WHERE", "Mountain_ID", "NOT", "IN", "(", "SELECT", "Mountain_ID", "FROM", "climber", ")" ], "query_toks_no_value": [ "select", "name", "from", "mountain", "where", "mountain_id", "not", "in", "(", "select", "mountain_id", "from", "climber", ")" ], "question": "List the names of mountains that do not have any climber.", "question_toks": [ "list", "name", "of", "mountain", "that", "do", "not", "have", "any", "climber", "." ], "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, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "List", "the", "names", "of", "mountains", "that", "do", "not", "have", "any", "climber", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "mountain" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "climber" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "climber", "NN" ], [ ".", "." ] ], "values": [], "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": "climbing", "query": "SELECT Name FROM mountain WHERE Mountain_ID NOT IN (SELECT Mountain_ID FROM climber)", "query_toks": [ "SELECT", "Name", "FROM", "mountain", "WHERE", "Mountain_ID", "NOT", "IN", "(", "SELECT", "Mountain_ID", "FROM", "climber", ")" ], "query_toks_no_value": [ "select", "name", "from", "mountain", "where", "mountain_id", "not", "in", "(", "select", "mountain_id", "from", "climber", ")" ], "question": "What are the names of countains that no climber has climbed?", "question_toks": [ "what", "are", "name", "of", "countains", "that", "no", "climber", "ha", "climbed", "?" ], "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, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "countains", "that", "no", "climber", "has", "climbed", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "countains" ], [ "that" ], [ "no" ], [ "climber" ], [ "ha" ], [ "climbed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "countains", "NNS" ], [ "that", "IN" ], [ "no", "DT" ], [ "climber", "NN" ], [ "ha", "NN" ], [ "climbed", "VBD" ], [ "?", "." ] ], "values": [], "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": "climbing", "query": "SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200", "query_toks": [ "SELECT", "Country", "FROM", "mountain", "WHERE", "Height", ">", "5600", "INTERSECT", "SELECT", "Country", "FROM", "mountain", "WHERE", "Height", "<", "5200" ], "query_toks_no_value": [ "select", "country", "from", "mountain", "where", "height", ">", "value", "intersect", "select", "country", "from", "mountain", "where", "height", "<", "value" ], "question": "Show the countries that have mountains with height more than 5600 stories and mountains with height less than 5200.", "question_toks": [ "show", "country", "that", "have", "mountain", "with", "height", "more", "than", "5600", "story", "and", "mountain", "with", "height", "le", "than", "5200", "." ], "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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 5200.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 5600.0, null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Show", "the", "countries", "that", "have", "mountains", "with", "height", "more", "than", "5600", "stories", "and", "mountains", "with", "height", "less", "than", "5200", "." ], "question_arg": [ [ "show" ], [ "country" ], [ "that" ], [ "have" ], [ "mountain" ], [ "with" ], [ "height" ], [ "more" ], [ "than" ], [ "5600" ], [ "story" ], [ "and" ], [ "mountain" ], [ "with" ], [ "height" ], [ "le" ], [ "than" ], [ "5200" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "mountain", "VBN" ], [ "with", "IN" ], [ "height", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5600", "CD" ], [ "story", "NN" ], [ "and", "CC" ], [ "mountain", "NN" ], [ "with", "IN" ], [ "height", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "5200", "CD" ], [ ".", "." ] ], "values": [ "5200", "5600" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(5) A(0) C(3) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(4) A(0) C(3) T(0) V(0)" }, { "db_id": "climbing", "query": "SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200", "query_toks": [ "SELECT", "Country", "FROM", "mountain", "WHERE", "Height", ">", "5600", "INTERSECT", "SELECT", "Country", "FROM", "mountain", "WHERE", "Height", "<", "5200" ], "query_toks_no_value": [ "select", "country", "from", "mountain", "where", "height", ">", "value", "intersect", "select", "country", "from", "mountain", "where", "height", "<", "value" ], "question": "What are the countries that have both mountains that are higher than 5600 and lower than 5200?", "question_toks": [ "what", "are", "country", "that", "have", "both", "mountain", "that", "are", "higher", "than", "5600", "and", "lower", "than", "5200", "?" ], "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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 3, false ], null ], 5200.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 5600.0, null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "countries", "that", "have", "both", "mountains", "that", "are", "higher", "than", "5600", "and", "lower", "than", "5200", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "country" ], [ "that" ], [ "have" ], [ "both" ], [ "mountain" ], [ "that" ], [ "are" ], [ "higher" ], [ "than" ], [ "5600" ], [ "and" ], [ "lower" ], [ "than" ], [ "5200" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "country", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "mountain", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "5600", "CD" ], [ "and", "CC" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "5200", "CD" ], [ "?", "." ] ], "values": [ "5200", "5600" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(5) A(0) C(3) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(6) T(0) Filter(4) A(0) C(3) T(0) V(0)" }, { "db_id": "climbing", "query": "SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Range", "FROM", "mountain", "GROUP", "BY", "Range", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "range", "from", "mountain", "group", "by", "range", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the range that has the most number of mountains.", "question_toks": [ "show", "range", "that", "ha", "most", "number", "of", "mountain", "." ], "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": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Show", "the", "range", "that", "has", "the", "most", "number", "of", "mountains", "." ], "question_arg": [ [ "show" ], [ "range" ], [ "that" ], [ "ha" ], [ "most" ], [ "number" ], [ "of" ], [ "mountain" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "range", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "number", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ ".", "." ] ], "values": [], "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": "climbing", "query": "SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Range", "FROM", "mountain", "GROUP", "BY", "Range", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "range", "from", "mountain", "group", "by", "range", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which range contains the most mountains?", "question_toks": [ "which", "range", "contains", "most", "mountain", "?" ], "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": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Which", "range", "contains", "the", "most", "mountains", "?" ], "question_arg": [ [ "which" ], [ "range" ], [ "contains" ], [ "most" ], [ "mountain" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "range", "VBP" ], [ "contains", "VBZ" ], [ "most", "JJS" ], [ "mountain", "NN" ], [ "?", "." ] ], "values": [], "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": "climbing", "query": "SELECT Name FROM mountain WHERE Height > 5000 OR Prominence > 1000", "query_toks": [ "SELECT", "Name", "FROM", "mountain", "WHERE", "Height", ">", "5000", "OR", "Prominence", ">", "1000" ], "query_toks_no_value": [ "select", "name", "from", "mountain", "where", "height", ">", "value", "or", "prominence", ">", "value" ], "question": "Show the names of mountains with height more than 5000 or prominence more than 1000.", "question_toks": [ "show", "name", "of", "mountain", "with", "height", "more", "than", "5000", "or", "prominence", "more", "than", "1000", "." ], "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 ], 5000.0, null ], "or", [ false, 3, [ 0, [ 0, 4, false ], null ], 1000.0, null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Show", "the", "names", "of", "mountains", "with", "height", "more", "than", "5000", "or", "prominence", "more", "than", "1000", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "mountain" ], [ "with" ], [ "height" ], [ "more" ], [ "than" ], [ "5000" ], [ "or" ], [ "prominence" ], [ "more" ], [ "than" ], [ "1000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "with", "IN" ], [ "height", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "5000", "CD" ], [ "or", "CC" ], [ "prominence", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1000", "CD" ], [ ".", "." ] ], "values": [ "1000", "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(5) A(0) C(3) T(0) V(1) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "climbing", "query": "SELECT Name FROM mountain WHERE Height > 5000 OR Prominence > 1000", "query_toks": [ "SELECT", "Name", "FROM", "mountain", "WHERE", "Height", ">", "5000", "OR", "Prominence", ">", "1000" ], "query_toks_no_value": [ "select", "name", "from", "mountain", "where", "height", ">", "value", "or", "prominence", ">", "value" ], "question": "What are the names of mountains that have a height of over 5000 or a prominence of over 1000?", "question_toks": [ "what", "are", "name", "of", "mountain", "that", "have", "a", "height", "of", "over", "5000", "or", "a", "prominence", "of", "over", "1000", "?" ], "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 ], 5000.0, null ], "or", [ false, 3, [ 0, [ 0, 4, false ], null ], 1000.0, null ] ] }, "names": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "name", "country", "time", "points", "mountain id" ], "table_names": [ "mountain", "climber" ], "col_set": [ "*", "mountain id", "name", "height", "prominence", "range", "country", "climber id", "time", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "12": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "mountains", "that", "have", "a", "height", "of", "over", "5000", "or", "a", "prominence", "of", "over", "1000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "mountain" ], [ "that" ], [ "have" ], [ "a" ], [ "height" ], [ "of" ], [ "over" ], [ "5000" ], [ "or" ], [ "a" ], [ "prominence" ], [ "of" ], [ "over" ], [ "1000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "mountain", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "height", "NN" ], [ "of", "IN" ], [ "over", "IN" ], [ "5000", "CD" ], [ "or", "CC" ], [ "a", "DT" ], [ "prominence", "NN" ], [ "of", "IN" ], [ "over", "IN" ], [ "1000", "CD" ], [ "?", "." ] ], "values": [ "1000", "5000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(5) A(0) C(3) T(0) V(1) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "body_builder", "query": "SELECT count(*) FROM body_builder", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "body_builder" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "body_builder" ], "question": "How many body builders are there?", "question_toks": [ "how", "many", "body", "builder", "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": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "body", "builders", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "body", "builder" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "body", "NN" ], [ "builder", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "body_builder", "query": "SELECT Total FROM body_builder ORDER BY Total ASC", "query_toks": [ "SELECT", "Total", "FROM", "body_builder", "ORDER", "BY", "Total", "ASC" ], "query_toks_no_value": [ "select", "total", "from", "body_builder", "order", "by", "total", "asc" ], "question": "List the total scores of body builders in ascending order.", "question_toks": [ "list", "total", "score", "of", "body", "builder", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "total", "scores", "of", "body", "builders", "in", "ascending", "order", "." ], "question_arg": [ [ "list" ], [ "total" ], [ "score" ], [ "of" ], [ "body", "builder" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "total", "JJ" ], [ "score", "NN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(5) T(0) Order(1) A(0) C(5) T(0)" }, { "db_id": "body_builder", "query": "SELECT Snatch , Clean_Jerk FROM body_builder ORDER BY Snatch ASC", "query_toks": [ "SELECT", "Snatch", ",", "Clean_Jerk", "FROM", "body_builder", "ORDER", "BY", "Snatch", "ASC" ], "query_toks_no_value": [ "select", "snatch", ",", "clean_jerk", "from", "body_builder", "order", "by", "snatch", "asc" ], "question": "List the snatch score and clean jerk score of body builders in ascending order of snatch score.", "question_toks": [ "list", "snatch", "score", "and", "clean", "jerk", "score", "of", "body", "builder", "in", "ascending", "order", "of", "snatch", "score", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "snatch", "score", "and", "clean", "jerk", "score", "of", "body", "builders", "in", "ascending", "order", "of", "snatch", "score", "." ], "question_arg": [ [ "list" ], [ "snatch" ], [ "score" ], [ "and" ], [ "clean", "jerk" ], [ "score" ], [ "of" ], [ "body", "builder" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "snatch" ], [ "score" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "snatch", "NN" ], [ "score", "NN" ], [ "and", "CC" ], [ "clean", "JJ" ], [ "jerk", "NN" ], [ "score", "NN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "snatch", "NN" ], [ "score", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(3) T(0) A(0) C(4) T(0) Order(1) A(0) C(3) T(0)" }, { "db_id": "body_builder", "query": "SELECT avg(Snatch) FROM body_builder", "query_toks": [ "SELECT", "avg", "(", "Snatch", ")", "FROM", "body_builder" ], "query_toks_no_value": [ "select", "avg", "(", "snatch", ")", "from", "body_builder" ], "question": "What is the average snatch score of body builders?", "question_toks": [ "what", "is", "average", "snatch", "score", "of", "body", "builder", "?" ], "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": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "snatch", "score", "of", "body", "builders", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "snatch" ], [ "score" ], [ "of" ], [ "body", "builder" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "snatch", "JJ" ], [ "score", "NN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(3) T(0)" }, { "db_id": "body_builder", "query": "SELECT Clean_Jerk FROM body_builder ORDER BY Total DESC LIMIT 1", "query_toks": [ "SELECT", "Clean_Jerk", "FROM", "body_builder", "ORDER", "BY", "Total", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "clean_jerk", "from", "body_builder", "order", "by", "total", "desc", "limit", "value" ], "question": "What are the clean and jerk score of the body builder with the highest total score?", "question_toks": [ "what", "are", "clean", "and", "jerk", "score", "of", "body", "builder", "with", "highest", "total", "score", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "clean", "and", "jerk", "score", "of", "the", "body", "builder", "with", "the", "highest", "total", "score", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "clean" ], [ "and" ], [ "jerk" ], [ "score" ], [ "of" ], [ "body", "builder" ], [ "with" ], [ "highest" ], [ "total" ], [ "score" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "clean", "JJ" ], [ "and", "CC" ], [ "jerk", "JJ" ], [ "score", "NN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "total", "JJ" ], [ "score", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(0) Sup(0) A(0) C(5) T(0)" }, { "db_id": "body_builder", "query": "SELECT Birth_Date FROM People ORDER BY Height ASC", "query_toks": [ "SELECT", "Birth_Date", "FROM", "People", "ORDER", "BY", "Height", "ASC" ], "query_toks_no_value": [ "select", "birth_date", "from", "people", "order", "by", "height", "asc" ], "question": "What are the birthdays of people in ascending order of height?", "question_toks": [ "what", "are", "birthday", "of", "people", "in", "ascending", "order", "of", "height", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "birthdays", "of", "people", "in", "ascending", "order", "of", "height", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "birthday" ], [ "of" ], [ "people" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "height" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "birthday", "JJ" ], [ "of", "IN" ], [ "people", "NNS" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "height", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(9) T(1) Order(1) A(0) C(7) T(1)" }, { "db_id": "body_builder", "query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID", "query_toks": [ "SELECT", "T2.Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id" ], "question": "What are the names of body builders?", "question_toks": [ "what", "are", "name", "of", "body", "builder", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, 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": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "body", "builders", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "body", "builder" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "body_builder", "query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total > 300", "query_toks": [ "SELECT", "T2.Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Total", ">", "300" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total", ">", "value" ], "question": "What are the names of body builders whose total score is higher than 300?", "question_toks": [ "what", "are", "name", "of", "body", "builder", "whose", "total", "score", "is", "higher", "than", "300", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 300.0, null ] ] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "body", "builders", "whose", "total", "score", "is", "higher", "than", "300", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "body", "builder" ], [ "whose" ], [ "total" ], [ "score" ], [ "is" ], [ "higher" ], [ "than" ], [ "300" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "whose", "WP$" ], [ "total", "JJ" ], [ "score", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "300", "CD" ], [ "?", "." ] ], "values": [ "300" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(1) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "body_builder", "query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Weight", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "weight", "desc", "limit", "value" ], "question": "What is the name of the body builder with the greatest body weight?", "question_toks": [ "what", "is", "name", "of", "body", "builder", "with", "greatest", "body", "weight", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, 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": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "body", "builder", "with", "the", "greatest", "body", "weight", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "body", "builder" ], [ "with" ], [ "greatest" ], [ "body" ], [ "weight" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "body", "NN" ], [ "weight", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(6) T(1) Sup(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": "body_builder", "query": "SELECT T2.Birth_Date , T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Birth_Date", ",", "T2.Birth_Place", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "birth_date", ",", "t2", ".", "birth_place", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total", "desc", "limit", "value" ], "question": "What are the birth date and birth place of the body builder with the highest total points?", "question_toks": [ "what", "are", "birth", "date", "and", "birth", "place", "of", "body", "builder", "with", "highest", "total", "point", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "birth", "date", "and", "birth", "place", "of", "the", "body", "builder", "with", "the", "highest", "total", "points", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "birth", "date" ], [ "and" ], [ "birth", "place" ], [ "of" ], [ "body", "builder" ], [ "with" ], [ "highest" ], [ "total" ], [ "point" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "birth", "JJ" ], [ "date", "NN" ], [ "and", "CC" ], [ "birth", "JJ" ], [ "place", "NN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "total", "JJ" ], [ "point", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(9) T(1) A(0) C(10) T(1) Sup(0) A(0) C(5) T(0)" }, { "db_id": "body_builder", "query": "SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315", "query_toks": [ "SELECT", "T2.Height", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Total", "<", "315" ], "query_toks_no_value": [ "select", "t2", ".", "height", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total", "<", "value" ], "question": "What are the heights of body builders with total score smaller than 315?", "question_toks": [ "what", "are", "height", "of", "body", "builder", "with", "total", "score", "smaller", "than", "315", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 315.0, null ] ] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "heights", "of", "body", "builders", "with", "total", "score", "smaller", "than", "315", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "height" ], [ "of" ], [ "body", "builder" ], [ "with" ], [ "total" ], [ "score" ], [ "smaller" ], [ "than" ], [ "315" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "height", "VBN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "with", "IN" ], [ "total", "JJ" ], [ "score", "NN" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "315", "CD" ], [ "?", "." ] ], "values": [ "315" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(4) A(0) C(5) T(0) V(0)" }, { "db_id": "body_builder", "query": "SELECT avg(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 200", "query_toks": [ "SELECT", "avg", "(", "T1.Total", ")", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Height", ">", "200" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "total", ")", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "height", ">", "value" ], "question": "What is the average total score of body builders with height bigger than 200?", "question_toks": [ "what", "is", "average", "total", "score", "of", "body", "builder", "with", "height", "bigger", "than", "200", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 200.0, null ] ] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "total", "score", "of", "body", "builders", "with", "height", "bigger", "than", "200", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "total" ], [ "score" ], [ "of" ], [ "body", "builder" ], [ "with" ], [ "height" ], [ "bigger" ], [ "than" ], [ "200" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "total", "JJ" ], [ "score", "NN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "with", "IN" ], [ "height", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ "?", "." ] ], "values": [ "200" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(5) T(0) Filter(5) A(0) C(7) T(1) V(0)" }, { "db_id": "body_builder", "query": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC", "query_toks": [ "SELECT", "T2.Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total", "desc" ], "question": "What are the names of body builders in descending order of total scores?", "question_toks": [ "what", "are", "name", "of", "body", "builder", "in", "descending", "order", "of", "total", "score", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "body", "builders", "in", "descending", "order", "of", "total", "scores", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "body", "builder" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "total" ], [ "score" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "score", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(6) T(1) Order(0) A(0) C(5) T(0)" }, { "db_id": "body_builder", "query": "SELECT Birth_Place , COUNT(*) FROM people GROUP BY Birth_Place", "query_toks": [ "SELECT", "Birth_Place", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Birth_Place" ], "query_toks_no_value": [ "select", "birth_place", ",", "count", "(", "*", ")", "from", "people", "group", "by", "birth_place" ], "question": "List each birth place along with the number of people from there.", "question_toks": [ "list", "each", "birth", "place", "along", "with", "number", "of", "people", "from", "there", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "each", "birth", "place", "along", "with", "the", "number", "of", "people", "from", "there", "." ], "question_arg": [ [ "list" ], [ "each" ], [ "birth", "place" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "people" ], [ "from" ], [ "there" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "each", "DT" ], [ "birth", "NN" ], [ "place", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "from", "IN" ], [ "there", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(1) A(3) C(0) T(1)" }, { "db_id": "body_builder", "query": "SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Birth_Place", "FROM", "people", "GROUP", "BY", "Birth_Place", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "birth_place", "from", "people", "group", "by", "birth_place", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common birth place of people?", "question_toks": [ "what", "is", "most", "common", "birth", "place", "of", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "birth", "place", "of", "people", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "birth", "place" ], [ "of" ], [ "people" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "birth", "JJ" ], [ "place", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "body_builder", "query": "SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Birth_Place", "FROM", "people", "GROUP", "BY", "Birth_Place", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "birth_place", "from", "people", "group", "by", "birth_place", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the birth places that are shared by at least two people?", "question_toks": [ "what", "are", "birth", "place", "that", "are", "shared", "by", "at", "least", "two", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "birth", "places", "that", "are", "shared", "by", "at", "least", "two", "people", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "birth", "place" ], [ "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" ], [ "birth", "JJ" ], [ "place", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "people", "NNS" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "body_builder", "query": "SELECT Height , Weight FROM people ORDER BY Height DESC", "query_toks": [ "SELECT", "Height", ",", "Weight", "FROM", "people", "ORDER", "BY", "Height", "DESC" ], "query_toks_no_value": [ "select", "height", ",", "weight", "from", "people", "order", "by", "height", "desc" ], "question": "List the height and weight of people in descending order of height.", "question_toks": [ "list", "height", "and", "weight", "of", "people", "in", "descending", "order", "of", "height", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "height", "and", "weight", "of", "people", "in", "descending", "order", "of", "height", "." ], "question_arg": [ [ "list" ], [ "height" ], [ "and" ], [ "weight" ], [ "of" ], [ "people" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "height" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "height", "NN" ], [ "and", "CC" ], [ "weight", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "height", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(7) T(1) A(0) C(8) T(1) Order(0) A(0) C(7) T(1)" }, { "db_id": "body_builder", "query": "SELECT * FROM body_builder", "query_toks": [ "SELECT", "*", "FROM", "body_builder" ], "query_toks_no_value": [ "select", "*", "from", "body_builder" ], "question": "Show all information about each body builder.", "question_toks": [ "show", "all", "information", "about", "each", "body", "builder", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "Show", "all", "information", "about", "each", "body", "builder", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "information" ], [ "about" ], [ "each" ], [ "body", "builder" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "about", "IN" ], [ "each", "DT" ], [ "body", "NN" ], [ "builder", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(0) T(0)" }, { "db_id": "body_builder", "query": "SELECT Name , birth_place FROM people EXCEPT SELECT T1.Name , T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id", "query_toks": [ "SELECT", "Name", ",", "birth_place", "FROM", "people", "EXCEPT", "SELECT", "T1.Name", ",", "T1.birth_place", "FROM", "people", "AS", "T1", "JOIN", "body_builder", "AS", "T2", "ON", "T1.people_id", "=", "T2.people_id" ], "query_toks_no_value": [ "select", "name", ",", "birth_place", "from", "people", "except", "select", "t1", ".", "name", ",", "t1", ".", "birth_place", "from", "people", "as", "t1", "join", "body_builder", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id" ], "question": "List the names and origins of people who are not body builders.", "question_toks": [ "list", "name", "and", "origin", "of", "people", "who", "are", "not", "body", "builder", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 2, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, 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 ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "and", "origins", "of", "people", "who", "are", "not", "body", "builders", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "origin" ], [ "of" ], [ "people" ], [ "who" ], [ "are" ], [ "not" ], [ "body", "builder" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "origin", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "body", "JJ" ], [ "builder", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(1) A(0) C(6) T(1) A(0) C(10) T(1) Root(3) Sel(0) N(1) A(0) C(6) T(1) A(0) C(10) T(1) Filter(18) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "body_builder", "query": "SELECT count(DISTINCT Birth_Place) FROM people", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Birth_Place", ")", "FROM", "people" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "birth_place", ")", "from", "people" ], "question": "How many distinct birth places are there?", "question_toks": [ "how", "many", "distinct", "birth", "place", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 11, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "distinct", "birth", "places", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "birth", "place" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "birth", "NN" ], [ "place", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(1)" }, { "db_id": "body_builder", "query": "SELECT count(*) FROM people WHERE people_id NOT IN (SELECT People_ID FROM body_builder)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "people", "WHERE", "people_id", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "body_builder", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "body_builder", ")" ], "question": "How many persons are not body builders?", "question_toks": [ "how", "many", "person", "are", "not", "body", "builder", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "How", "many", "persons", "are", "not", "body", "builders", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "person" ], [ "are" ], [ "not" ], [ "body", "builder" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "person", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "body", "JJ" ], [ "builder", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(2) T(1) Root(5) Sel(0) N(0) A(0) C(2) T(0)" }, { "db_id": "body_builder", "query": "SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T1.snatch > 140 OR T2.height > 200;", "query_toks": [ "SELECT", "T2.weight", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.people_id", "=", "T2.people_id", "WHERE", "T1.snatch", ">", "140", "OR", "T2.height", ">", "200", ";" ], "query_toks_no_value": [ "select", "t2", ".", "weight", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "snatch", ">", "value", "or", "t2", ".", "height", ">", "value" ], "question": "List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200.", "question_toks": [ "list", "weight", "of", "body", "builder", "who", "have", "snatch", "score", "higher", "than", "140", "or", "have", "height", "greater", "than", "200", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 140.0, null ], "or", [ false, 3, [ 0, [ 0, 8, false ], null ], 200.0, null ] ] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "List", "the", "weight", "of", "the", "body", "builders", "who", "have", "snatch", "score", "higher", "than", "140", "or", "have", "the", "height", "greater", "than", "200", "." ], "question_arg": [ [ "list" ], [ "weight" ], [ "of" ], [ "body", "builder" ], [ "who" ], [ "have" ], [ "snatch" ], [ "score" ], [ "higher" ], [ "than" ], [ "140" ], [ "or" ], [ "have" ], [ "height" ], [ "greater" ], [ "than" ], [ "200" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "weight", "NN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "snatch", "VBN" ], [ "score", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "140", "CD" ], [ "or", "CC" ], [ "have", "VB" ], [ "height", "VBN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ ".", "." ] ], "values": [ "140", "200" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(1) Filter(5) A(0) C(3) T(0) V(0) Filter(5) A(0) C(7) T(1) V(1)" }, { "db_id": "body_builder", "query": "SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.Birth_Date LIKE \"%January%\";", "query_toks": [ "SELECT", "T1.total", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.people_id", "=", "T2.people_id", "WHERE", "T2.Birth_Date", "LIKE", "``", "%", "January", "%", "''", ";" ], "query_toks_no_value": [ "select", "t1", ".", "total", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "birth_date", "like", "value" ], "question": "What are the total scores of the body builders whose birthday contains the string \"January\" ?", "question_toks": [ "what", "are", "total", "score", "of", "body", "builder", "whose", "birthday", "contains", "string", "'", "january", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 10, false ], null ], "\"%January%\"", null ] ] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "total", "scores", "of", "the", "body", "builders", "whose", "birthday", "contains", "the", "string", "``", "January", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "score" ], [ "of" ], [ "body", "builder" ], [ "whose" ], [ "birthday" ], [ "contains" ], [ "string" ], [ "'" ], [ "january" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "score", "NN" ], [ "of", "IN" ], [ "body", "NN" ], [ "builder", "NN" ], [ "whose", "WP$" ], [ "birthday", "NN" ], [ "contains", "VBZ" ], [ "string", "VBG" ], [ "'", "''" ], [ "january", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "1/", "January" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(9) A(0) C(9) T(1) V(1)" }, { "db_id": "body_builder", "query": "SELECT min(snatch) FROM body_builder", "query_toks": [ "SELECT", "min", "(", "snatch", ")", "FROM", "body_builder" ], "query_toks_no_value": [ "select", "min", "(", "snatch", ")", "from", "body_builder" ], "question": "What is the minimum snatch score?", "question_toks": [ "what", "is", "minimum", "snatch", "score", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "people id", "name", "height", "weight", "birth date", "birth place" ], "table_names": [ "body builder", "people" ], "col_set": [ "*", "body builder id", "people id", "snatch", "clean jerk", "total", "name", "height", "weight", "birth date", "birth place" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "2": 6, "6": 6, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "minimum", "snatch", "score", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "minimum" ], [ "snatch" ], [ "score" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "minimum", "JJ" ], [ "snatch", "NN" ], [ "score", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(2) C(3) T(0)" }, { "db_id": "election_representative", "query": "SELECT count(*) FROM election", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "election" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "election" ], "question": "How many elections are there?", "question_toks": [ "how", "many", "election", "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": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "How", "many", "elections", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "election" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "election", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "election_representative", "query": "SELECT Votes FROM election ORDER BY Votes DESC", "query_toks": [ "SELECT", "Votes", "FROM", "election", "ORDER", "BY", "Votes", "DESC" ], "query_toks_no_value": [ "select", "votes", "from", "election", "order", "by", "votes", "desc" ], "question": "List the votes of elections in descending order.", "question_toks": [ "list", "vote", "of", "election", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "List", "the", "votes", "of", "elections", "in", "descending", "order", "." ], "question_arg": [ [ "list" ], [ "vote" ], [ "of" ], [ "election" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "JJ" ], [ "vote", "NN" ], [ "of", "IN" ], [ "election", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(4) T(0) Order(0) A(0) C(4) T(0)" }, { "db_id": "election_representative", "query": "SELECT Date , Vote_Percent FROM election", "query_toks": [ "SELECT", "Date", ",", "Vote_Percent", "FROM", "election" ], "query_toks_no_value": [ "select", "date", ",", "vote_percent", "from", "election" ], "question": "List the dates and vote percents of elections.", "question_toks": [ "list", "date", "and", "vote", "percent", "of", "election", "." ], "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": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "List", "the", "dates", "and", "vote", "percents", "of", "elections", "." ], "question_arg": [ [ "list" ], [ "date" ], [ "and" ], [ "vote", "percent" ], [ "of" ], [ "election" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "vote", "NN" ], [ "percent", "NN" ], [ "of", "IN" ], [ "election", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(0) C(5) T(0)" }, { "db_id": "election_representative", "query": "SELECT min(Vote_Percent) , max(Vote_Percent) FROM election", "query_toks": [ "SELECT", "min", "(", "Vote_Percent", ")", ",", "max", "(", "Vote_Percent", ")", "FROM", "election" ], "query_toks_no_value": [ "select", "min", "(", "vote_percent", ")", ",", "max", "(", "vote_percent", ")", "from", "election" ], "question": "What are the minimum and maximum vote percents of elections?", "question_toks": [ "what", "are", "minimum", "and", "maximum", "vote", "percent", "of", "election", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 5, false ], null ] ], [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "minimum", "and", "maximum", "vote", "percents", "of", "elections", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "minimum" ], [ "and" ], [ "maximum" ], [ "vote", "percent" ], [ "of" ], [ "election" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "vote", "NN" ], [ "percent", "NN" ], [ "of", "IN" ], [ "election", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(5) T(0) A(1) C(5) T(0)" }, { "db_id": "election_representative", "query": "SELECT Name , Party FROM representative", "query_toks": [ "SELECT", "Name", ",", "Party", "FROM", "representative" ], "query_toks_no_value": [ "select", "name", ",", "party", "from", "representative" ], "question": "What are the names and parties of representatives?", "question_toks": [ "what", "are", "name", "and", "party", "of", "representative", "?" ], "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, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "parties", "of", "representatives", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "party" ], [ "of" ], [ "representative" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "party", "NN" ], [ "of", "IN" ], [ "representative", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(1) A(0) C(10) T(1)" }, { "db_id": "election_representative", "query": "SELECT Name FROM Representative WHERE Party != \"Republican\"", "query_toks": [ "SELECT", "Name", "FROM", "Representative", "WHERE", "Party", "!", "=", "``", "Republican", "''" ], "query_toks_no_value": [ "select", "name", "from", "representative", "where", "party", "!", "=", "value" ], "question": "What are the names of representatives whose party is not \"Republican\"?", "question_toks": [ "what", "are", "name", "of", "representative", "whose", "party", "is", "not", "'", "republican", "'", "?" ], "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, 11, false ], null ], "\"Republican\"", null ] ] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "representatives", "whose", "party", "is", "not", "``", "Republican", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "representative" ], [ "whose" ], [ "party" ], [ "is" ], [ "not" ], [ "'" ], [ "republican" ], [ "'" ], [ "?" ] ], "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" ], [ "representative", "NN" ], [ "whose", "WP$" ], [ "party", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "JJ" ], [ "republican", "NNS" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Republican" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(3) A(0) C(10) T(1) V(0)" }, { "db_id": "election_representative", "query": "SELECT Lifespan FROM representative WHERE State = \"New York\" OR State = \"Indiana\"", "query_toks": [ "SELECT", "Lifespan", "FROM", "representative", "WHERE", "State", "=", "``", "New", "York", "''", "OR", "State", "=", "``", "Indiana", "''" ], "query_toks_no_value": [ "select", "lifespan", "from", "representative", "where", "state", "=", "value", "or", "state", "=", "value" ], "question": "What are the life spans of representatives from New York state or Indiana state?", "question_toks": [ "what", "are", "life", "span", "of", "representative", "from", "new", "york", "state", "or", "indiana", "state", "?" ], "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, 10, false ], null ], "\"New York\"", null ], "or", [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Indiana\"", null ] ] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "life", "spans", "of", "representatives", "from", "New", "York", "state", "or", "Indiana", "state", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "life" ], [ "span" ], [ "of" ], [ "representative" ], [ "from" ], [ "new" ], [ "york" ], [ "state" ], [ "or" ], [ "indiana" ], [ "state" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "place" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "state" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "life", "NN" ], [ "span", "NN" ], [ "of", "IN" ], [ "representative", "NN" ], [ "from", "IN" ], [ "new", "JJ" ], [ "york", "NN" ], [ "state", "NN" ], [ "or", "CC" ], [ "indiana", "NN" ], [ "state", "NN" ], [ "?", "." ] ], "values": [ "Indiana", "New York" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(11) T(1) Filter(1) Filter(2) A(0) C(9) T(1) V(1) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "election_representative", "query": "SELECT T2.Name , T1.Date FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID", "query_toks": [ "SELECT", "T2.Name", ",", "T1.Date", "FROM", "election", "AS", "T1", "JOIN", "representative", "AS", "T2", "ON", "T1.Representative_ID", "=", "T2.Representative_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "date", "from", "election", "as", "t1", "join", "representative", "as", "t2", "on", "t1", ".", "representative_id", "=", "t2", ".", "representative_id" ], "question": "What are the names of representatives and the dates of elections they participated in.", "question_toks": [ "what", "are", "name", "of", "representative", "and", "date", "of", "election", "they", "participated", "in", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, 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, 9, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "representatives", "and", "the", "dates", "of", "elections", "they", "participated", "in", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "representative" ], [ "and" ], [ "date" ], [ "of" ], [ "election" ], [ "they" ], [ "participated" ], [ "in" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "representative", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "election", "NN" ], [ "they", "PRP" ], [ "participated", "VBD" ], [ "in", "IN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(1) A(0) C(3) T(0)" }, { "db_id": "election_representative", "query": "SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE Votes > 10000", "query_toks": [ "SELECT", "T2.Name", "FROM", "election", "AS", "T1", "JOIN", "representative", "AS", "T2", "ON", "T1.Representative_ID", "=", "T2.Representative_ID", "WHERE", "Votes", ">", "10000" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "election", "as", "t1", "join", "representative", "as", "t2", "on", "t1", ".", "representative_id", "=", "t2", ".", "representative_id", "where", "votes", ">", "value" ], "question": "What are the names of representatives with more than 10000 votes in election?", "question_toks": [ "what", "are", "name", "of", "representative", "with", "more", "than", "10000", "vote", "in", "election", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, 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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], 10000.0, null ] ] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "representatives", "with", "more", "than", "10000", "votes", "in", "election", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "representative" ], [ "with" ], [ "more" ], [ "than" ], [ "10000" ], [ "vote" ], [ "in" ], [ "election" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "representative", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "10000", "CD" ], [ "vote", "NN" ], [ "in", "IN" ], [ "election", "NN" ], [ "?", "." ] ], "values": [ "10000" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "election_representative", "query": "SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC", "query_toks": [ "SELECT", "T2.Name", "FROM", "election", "AS", "T1", "JOIN", "representative", "AS", "T2", "ON", "T1.Representative_ID", "=", "T2.Representative_ID", "ORDER", "BY", "votes", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "election", "as", "t1", "join", "representative", "as", "t2", "on", "t1", ".", "representative_id", "=", "t2", ".", "representative_id", "order", "by", "votes", "desc" ], "question": "What are the names of representatives in descending order of votes?", "question_toks": [ "what", "are", "name", "of", "representative", "in", "descending", "order", "of", "vote", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "representatives", "in", "descending", "order", "of", "votes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "representative" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "vote" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "representative", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "vote", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(1) Order(0) A(0) C(4) T(0)" }, { "db_id": "election_representative", "query": "SELECT T2.Party FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes ASC LIMIT 1", "query_toks": [ "SELECT", "T2.Party", "FROM", "election", "AS", "T1", "JOIN", "representative", "AS", "T2", "ON", "T1.Representative_ID", "=", "T2.Representative_ID", "ORDER", "BY", "votes", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "party", "from", "election", "as", "t1", "join", "representative", "as", "t2", "on", "t1", ".", "representative_id", "=", "t2", ".", "representative_id", "order", "by", "votes", "asc", "limit", "value" ], "question": "What is the party of the representative that has the smallest number of votes.", "question_toks": [ "what", "is", "party", "of", "representative", "that", "ha", "smallest", "number", "of", "vote", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "party", "of", "the", "representative", "that", "has", "the", "smallest", "number", "of", "votes", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "party" ], [ "of" ], [ "representative" ], [ "that" ], [ "ha" ], [ "smallest" ], [ "number" ], [ "of" ], [ "vote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "party", "NN" ], [ "of", "IN" ], [ "representative", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "smallest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "vote", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(1) A(0) C(4) T(0)" }, { "db_id": "election_representative", "query": "SELECT T2.Lifespan FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY Vote_Percent DESC", "query_toks": [ "SELECT", "T2.Lifespan", "FROM", "election", "AS", "T1", "JOIN", "representative", "AS", "T2", "ON", "T1.Representative_ID", "=", "T2.Representative_ID", "ORDER", "BY", "Vote_Percent", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "lifespan", "from", "election", "as", "t1", "join", "representative", "as", "t2", "on", "t1", ".", "representative_id", "=", "t2", ".", "representative_id", "order", "by", "vote_percent", "desc" ], "question": "What are the lifespans of representatives in descending order of vote percent?", "question_toks": [ "what", "are", "lifespan", "of", "representative", "in", "descending", "order", "of", "vote", "percent", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "lifespans", "of", "representatives", "in", "descending", "order", "of", "vote", "percent", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "lifespan" ], [ "of" ], [ "representative" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "vote", "percent" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "lifespan", "JJ" ], [ "of", "IN" ], [ "representative", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "vote", "NN" ], [ "percent", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(11) T(1) Order(0) A(0) C(5) T(0)" }, { "db_id": "election_representative", "query": "SELECT avg(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID WHERE T2.Party = \"Republican\"", "query_toks": [ "SELECT", "avg", "(", "T1.Votes", ")", "FROM", "election", "AS", "T1", "JOIN", "representative", "AS", "T2", "ON", "T1.Representative_ID", "=", "T2.Representative_ID", "WHERE", "T2.Party", "=", "``", "Republican", "''" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "votes", ")", "from", "election", "as", "t1", "join", "representative", "as", "t2", "on", "t1", ".", "representative_id", "=", "t2", ".", "representative_id", "where", "t2", ".", "party", "=", "value" ], "question": "What is the average number of votes of representatives from party \"Republican\"?", "question_toks": [ "what", "is", "average", "number", "of", "vote", "of", "representative", "from", "party", "'", "republican", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Republican\"", null ] ] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "votes", "of", "representatives", "from", "party", "``", "Republican", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "vote" ], [ "of" ], [ "representative" ], [ "from" ], [ "party" ], [ "'" ], [ "republican" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "vote", "NN" ], [ "of", "IN" ], [ "representative", "NN" ], [ "from", "IN" ], [ "party", "NN" ], [ "'", "''" ], [ "republican", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Republican" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(4) T(0) Filter(2) A(0) C(10) T(1) V(0)" }, { "db_id": "election_representative", "query": "SELECT Party , COUNT(*) FROM representative GROUP BY Party", "query_toks": [ "SELECT", "Party", ",", "COUNT", "(", "*", ")", "FROM", "representative", "GROUP", "BY", "Party" ], "query_toks_no_value": [ "select", "party", ",", "count", "(", "*", ")", "from", "representative", "group", "by", "party" ], "question": "What are the different parties of representative? Show the party name and the number of representatives in each party.", "question_toks": [ "what", "are", "different", "party", "of", "representative", "?", "show", "party", "name", "and", "number", "of", "representative", "in", "each", "party", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "different", "parties", "of", "representative", "?", "Show", "the", "party", "name", "and", "the", "number", "of", "representatives", "in", "each", "party", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "party" ], [ "of" ], [ "representative" ], [ "?" ], [ "show" ], [ "party" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "representative" ], [ "in" ], [ "each" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "party", "NN" ], [ "of", "IN" ], [ "representative", "NN" ], [ "?", "." ], [ "show", "NN" ], [ "party", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "representative", "JJ" ], [ "in", "IN" ], [ "each", "DT" ], [ "party", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(1) A(3) C(0) T(1)" }, { "db_id": "election_representative", "query": "SELECT Party , COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Party", ",", "COUNT", "(", "*", ")", "FROM", "representative", "GROUP", "BY", "Party", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "party", ",", "count", "(", "*", ")", "from", "representative", "group", "by", "party", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the party that has the largest number of representatives?", "question_toks": [ "what", "is", "party", "that", "ha", "largest", "number", "of", "representative", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "party", "that", "has", "the", "largest", "number", "of", "representatives", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "party" ], [ "that" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "representative" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "party", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "representative", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(10) T(1) A(3) C(0) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "election_representative", "query": "SELECT Party FROM representative GROUP BY Party HAVING COUNT(*) >= 3", "query_toks": [ "SELECT", "Party", "FROM", "representative", "GROUP", "BY", "Party", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3" ], "query_toks_no_value": [ "select", "party", "from", "representative", "group", "by", "party", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What parties have at least three representatives?", "question_toks": [ "what", "party", "have", "at", "least", "three", "representative", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 3.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "parties", "have", "at", "least", "three", "representatives", "?" ], "question_arg": [ [ "what" ], [ "party" ], [ "have" ], [ "at" ], [ "least" ], [ "three" ], [ "representative" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "party", "NN" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "three", "CD" ], [ "representative", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "election_representative", "query": "SELECT State FROM representative GROUP BY State HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "State", "FROM", "representative", "GROUP", "BY", "State", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "state", "from", "representative", "group", "by", "state", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What states have at least two representatives?", "question_toks": [ "what", "state", "have", "at", "least", "two", "representative", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "What", "states", "have", "at", "least", "two", "representatives", "?" ], "question_arg": [ [ "what" ], [ "state" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "representative" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "state", "NN" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "representative", "JJ" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "election_representative", "query": "SELECT Name FROM representative WHERE Representative_ID NOT IN (SELECT Representative_ID FROM election)", "query_toks": [ "SELECT", "Name", "FROM", "representative", "WHERE", "Representative_ID", "NOT", "IN", "(", "SELECT", "Representative_ID", "FROM", "election", ")" ], "query_toks_no_value": [ "select", "name", "from", "representative", "where", "representative_id", "not", "in", "(", "select", "representative_id", "from", "election", ")" ], "question": "List the names of representatives that have not participated in elections listed here.", "question_toks": [ "list", "name", "of", "representative", "that", "have", "not", "participated", "in", "election", "listed", "here", "." ], "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, 8, 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": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "representatives", "that", "have", "not", "participated", "in", "elections", "listed", "here", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "representative" ], [ "that" ], [ "have" ], [ "not" ], [ "participated" ], [ "in" ], [ "election" ], [ "listed" ], [ "here" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "representative", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "not", "RB" ], [ "participated", "VBN" ], [ "in", "IN" ], [ "election", "NN" ], [ "listed", "VBN" ], [ "here", "RB" ], [ ".", "." ] ], "values": [], "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": "election_representative", "query": "SELECT Party FROM representative WHERE State = \"New York\" INTERSECT SELECT Party FROM representative WHERE State = \"Pennsylvania\"", "query_toks": [ "SELECT", "Party", "FROM", "representative", "WHERE", "State", "=", "``", "New", "York", "''", "INTERSECT", "SELECT", "Party", "FROM", "representative", "WHERE", "State", "=", "``", "Pennsylvania", "''" ], "query_toks_no_value": [ "select", "party", "from", "representative", "where", "state", "=", "value", "intersect", "select", "party", "from", "representative", "where", "state", "=", "value" ], "question": "Show the parties that have both representatives in New York state and representatives in Pennsylvania state.", "question_toks": [ "show", "party", "that", "have", "both", "representative", "in", "new", "york", "state", "and", "representative", "in", "pennsylvania", "state", "." ], "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, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Pennsylvania\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"New York\"", null ] ] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "Show", "the", "parties", "that", "have", "both", "representatives", "in", "New", "York", "state", "and", "representatives", "in", "Pennsylvania", "state", "." ], "question_arg": [ [ "show" ], [ "party" ], [ "that" ], [ "have" ], [ "both" ], [ "representative" ], [ "in" ], [ "new" ], [ "york" ], [ "state" ], [ "and" ], [ "representative" ], [ "in" ], [ "pennsylvania" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "place" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "state" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "party", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "representative", "VBP" ], [ "in", "IN" ], [ "new", "JJ" ], [ "york", "NN" ], [ "state", "NN" ], [ "and", "CC" ], [ "representative", "NN" ], [ "in", "IN" ], [ "pennsylvania", "NN" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "New York", "Pennsylvania" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(9) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(9) T(1) V(1)" }, { "db_id": "election_representative", "query": "SELECT count(DISTINCT Party) FROM representative", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Party", ")", "FROM", "representative" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "party", ")", "from", "representative" ], "question": "How many distinct parties are there for representatives?", "question_toks": [ "how", "many", "distinct", "party", "are", "there", "for", "representative", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 11, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "representative id", "name", "state", "party", "lifespan" ], "table_names": [ "election", "representative" ], "col_set": [ "*", "election id", "representative id", "date", "votes", "vote percent", "seats", "place", "name", "state", "party", "lifespan" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "2": 8, "8": 8, "1": 1 }, "origin_question_toks": [ "How", "many", "distinct", "parties", "are", "there", "for", "representatives", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "party" ], [ "are" ], [ "there" ], [ "for" ], [ "representative" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "party", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "representative", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(10) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT count(*) FROM Apartment_Bookings", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Apartment_Bookings" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "apartment_bookings" ], "question": "How many apartment bookings are there in total?", "question_toks": [ "how", "many", "apartment", "booking", "are", "there", "in", "total", "?" ], "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": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "How", "many", "apartment", "bookings", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "apartment", "booking" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "apartment", "NN" ], [ "booking", "VBG" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "total", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(4)" }, { "db_id": "apartment_rentals", "query": "SELECT count(*) FROM Apartment_Bookings", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Apartment_Bookings" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "apartment_bookings" ], "question": "Count the total number of apartment bookings.", "question_toks": [ "count", "total", "number", "of", "apartment", "booking", "." ], "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": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Count", "the", "total", "number", "of", "apartment", "bookings", "." ], "question_arg": [ [ "count" ], [ "total" ], [ "number" ], [ "of" ], [ "apartment", "booking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "booking", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(4)" }, { "db_id": "apartment_rentals", "query": "SELECT booking_start_date , booking_end_date FROM Apartment_Bookings", "query_toks": [ "SELECT", "booking_start_date", ",", "booking_end_date", "FROM", "Apartment_Bookings" ], "query_toks_no_value": [ "select", "booking_start_date", ",", "booking_end_date", "from", "apartment_bookings" ], "question": "Show the start dates and end dates of all the apartment bookings.", "question_toks": [ "show", "start", "date", "and", "end", "date", "of", "all", "apartment", "booking", "." ], "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 ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "start", "dates", "and", "end", "dates", "of", "all", "the", "apartment", "bookings", "." ], "question_arg": [ [ "show" ], [ "booking", "start", "date" ], [ "and" ], [ "booking", "end", "date" ], [ "of" ], [ "all" ], [ "apartment", "booking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "start", "JJ" ], [ "date", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "apartment", "NN" ], [ "booking", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(22) T(4) A(0) C(23) T(4)" }, { "db_id": "apartment_rentals", "query": "SELECT booking_start_date , booking_end_date FROM Apartment_Bookings", "query_toks": [ "SELECT", "booking_start_date", ",", "booking_end_date", "FROM", "Apartment_Bookings" ], "query_toks_no_value": [ "select", "booking_start_date", ",", "booking_end_date", "from", "apartment_bookings" ], "question": "What are the start date and end date of each apartment booking?", "question_toks": [ "what", "are", "start", "date", "and", "end", "date", "of", "each", "apartment", "booking", "?" ], "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 ] ], [ 0, [ 0, [ 0, 27, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "start", "date", "and", "end", "date", "of", "each", "apartment", "booking", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "booking", "start", "date" ], [ "and" ], [ "booking", "end", "date" ], [ "of" ], [ "each" ], [ "apartment", "booking" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "start", "JJ" ], [ "date", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "apartment", "NN" ], [ "booking", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(22) T(4) A(0) C(23) T(4)" }, { "db_id": "apartment_rentals", "query": "SELECT DISTINCT building_description FROM Apartment_Buildings", "query_toks": [ "SELECT", "DISTINCT", "building_description", "FROM", "Apartment_Buildings" ], "query_toks_no_value": [ "select", "distinct", "building_description", "from", "apartment_buildings" ], "question": "Show all distinct building descriptions.", "question_toks": [ "show", "all", "distinct", "building", "description", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "all", "distinct", "building", "descriptions", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "distinct" ], [ "building", "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "building", "NN" ], [ "description", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(4) T(0)" }, { "db_id": "apartment_rentals", "query": "SELECT DISTINCT building_description FROM Apartment_Buildings", "query_toks": [ "SELECT", "DISTINCT", "building_description", "FROM", "Apartment_Buildings" ], "query_toks_no_value": [ "select", "distinct", "building_description", "from", "apartment_buildings" ], "question": "Give me a list of all the distinct building descriptions.", "question_toks": [ "give", "me", "a", "list", "of", "all", "distinct", "building", "description", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Give", "me", "a", "list", "of", "all", "the", "distinct", "building", "descriptions", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "a" ], [ "list" ], [ "of" ], [ "all" ], [ "distinct" ], [ "building", "description" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "a", "DT" ], [ "list", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "building", "NN" ], [ "description", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(4) T(0)" }, { "db_id": "apartment_rentals", "query": "SELECT building_short_name FROM Apartment_Buildings WHERE building_manager = \"Emma\"", "query_toks": [ "SELECT", "building_short_name", "FROM", "Apartment_Buildings", "WHERE", "building_manager", "=", "``", "Emma", "''" ], "query_toks_no_value": [ "select", "building_short_name", "from", "apartment_buildings", "where", "building_manager", "=", "value" ], "question": "Show the short names of the buildings managed by \"Emma\".", "question_toks": [ "show", "short", "name", "of", "building", "managed", "by", "'", "emma", "'", "." ], "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, 6, false ], null ], "\"Emma\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "short", "names", "of", "the", "buildings", "managed", "by", "``", "Emma", "''", "." ], "question_arg": [ [ "show" ], [ "building", "short", "name" ], [ "of" ], [ "building" ], [ "managed" ], [ "by" ], [ "'" ], [ "emma" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "short", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "VBG" ], [ "managed", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "emma", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Emma" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT building_short_name FROM Apartment_Buildings WHERE building_manager = \"Emma\"", "query_toks": [ "SELECT", "building_short_name", "FROM", "Apartment_Buildings", "WHERE", "building_manager", "=", "``", "Emma", "''" ], "query_toks_no_value": [ "select", "building_short_name", "from", "apartment_buildings", "where", "building_manager", "=", "value" ], "question": "Which buildings does \"Emma\" manage? Give me the short names of the buildings.", "question_toks": [ "which", "building", "doe", "'", "emma", "'", "manage", "?", "give", "me", "short", "name", "of", "building", "." ], "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, 6, false ], null ], "\"Emma\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Which", "buildings", "does", "``", "Emma", "''", "manage", "?", "Give", "me", "the", "short", "names", "of", "the", "buildings", "." ], "question_arg": [ [ "which" ], [ "building" ], [ "doe" ], [ "'" ], [ "emma" ], [ "'" ], [ "manage" ], [ "?" ], [ "give" ], [ "me" ], [ "building", "short", "name" ], [ "of" ], [ "building" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "building", "VBG" ], [ "doe", "NN" ], [ "'", "''" ], [ "emma", "NN" ], [ "'", "''" ], [ "manage", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "short", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ ".", "." ] ], "values": [ "Emma" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT building_address , building_phone FROM Apartment_Buildings WHERE building_manager = \"Brenden\"", "query_toks": [ "SELECT", "building_address", ",", "building_phone", "FROM", "Apartment_Buildings", "WHERE", "building_manager", "=", "``", "Brenden", "''" ], "query_toks_no_value": [ "select", "building_address", ",", "building_phone", "from", "apartment_buildings", "where", "building_manager", "=", "value" ], "question": "Show the addresses and phones of all the buildings managed by \"Brenden\".", "question_toks": [ "show", "address", "and", "phone", "of", "all", "building", "managed", "by", "'", "brenden", "'", "." ], "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 ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Brenden\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "addresses", "and", "phones", "of", "all", "the", "buildings", "managed", "by", "``", "Brenden", "''", "." ], "question_arg": [ [ "show" ], [ "address" ], [ "and" ], [ "phone" ], [ "of" ], [ "all" ], [ "building" ], [ "managed" ], [ "by" ], [ "'" ], [ "brenden" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "address", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "building", "NN" ], [ "managed", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "brenden", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Brenden" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(0) A(0) C(7) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT building_address , building_phone FROM Apartment_Buildings WHERE building_manager = \"Brenden\"", "query_toks": [ "SELECT", "building_address", ",", "building_phone", "FROM", "Apartment_Buildings", "WHERE", "building_manager", "=", "``", "Brenden", "''" ], "query_toks_no_value": [ "select", "building_address", ",", "building_phone", "from", "apartment_buildings", "where", "building_manager", "=", "value" ], "question": "What are the address and phone number of the buildings managed by \"Brenden\"?", "question_toks": [ "what", "are", "address", "and", "phone", "number", "of", "building", "managed", "by", "'", "brenden", "'", "?" ], "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 ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Brenden\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "address", "and", "phone", "number", "of", "the", "buildings", "managed", "by", "``", "Brenden", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "address" ], [ "and" ], [ "phone" ], [ "number" ], [ "of" ], [ "building" ], [ "managed" ], [ "by" ], [ "'" ], [ "brenden" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "address", "JJ" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "building", "VBG" ], [ "managed", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "brenden", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Brenden" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(5) T(0) A(0) C(7) T(0) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE \"%court%\"", "query_toks": [ "SELECT", "building_full_name", "FROM", "Apartment_Buildings", "WHERE", "building_full_name", "LIKE", "``", "%", "court", "%", "''" ], "query_toks_no_value": [ "select", "building_full_name", "from", "apartment_buildings", "where", "building_full_name", "like", "value" ], "question": "What are the building full names that contain the word \"court\"?", "question_toks": [ "what", "are", "building", "full", "name", "that", "contain", "word", "'", "court", "'", "?" ], "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, 9, [ 0, [ 0, 3, false ], null ], "\"%court%\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "building", "full", "names", "that", "contain", "the", "word", "``", "court", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "building", "full", "name" ], [ "that" ], [ "contain" ], [ "word" ], [ "'" ], [ "court" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "building", "VBG" ], [ "full", "JJ" ], [ "name", "NN" ], [ "that", "WDT" ], [ "contain", "VBP" ], [ "word", "NN" ], [ "'", "''" ], [ "court", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "court" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(9) A(0) C(3) T(0) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE \"%court%\"", "query_toks": [ "SELECT", "building_full_name", "FROM", "Apartment_Buildings", "WHERE", "building_full_name", "LIKE", "``", "%", "court", "%", "''" ], "query_toks_no_value": [ "select", "building_full_name", "from", "apartment_buildings", "where", "building_full_name", "like", "value" ], "question": "Find all the building full names containing the word \"court\".", "question_toks": [ "find", "all", "building", "full", "name", "containing", "word", "'", "court", "'", "." ], "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, 9, [ 0, [ 0, 3, false ], null ], "\"%court%\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Find", "all", "the", "building", "full", "names", "containing", "the", "word", "``", "court", "''", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "building", "full", "name" ], [ "containing" ], [ "word" ], [ "'" ], [ "court" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "building", "NN" ], [ "full", "JJ" ], [ "name", "NN" ], [ "containing", "VBG" ], [ "word", "NN" ], [ "'", "''" ], [ "court", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "court" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(9) A(0) C(3) T(0) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT min(bathroom_count) , max(bathroom_count) FROM Apartments", "query_toks": [ "SELECT", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "FROM", "Apartments" ], "query_toks_no_value": [ "select", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "from", "apartments" ], "question": "What is the minimum and maximum number of bathrooms of all the apartments?", "question_toks": [ "what", "is", "minimum", "and", "maximum", "number", "of", "bathroom", "of", "all", "apartment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 12, false ], null ] ], [ 1, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "is", "the", "minimum", "and", "maximum", "number", "of", "bathrooms", "of", "all", "the", "apartments", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "minimum" ], [ "and" ], [ "maximum" ], [ "number" ], [ "of" ], [ "bathroom" ], [ "of" ], [ "all" ], [ "apartment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "bathroom", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "apartment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(11) T(1) A(1) C(11) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT min(bathroom_count) , max(bathroom_count) FROM Apartments", "query_toks": [ "SELECT", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "FROM", "Apartments" ], "query_toks_no_value": [ "select", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "from", "apartments" ], "question": "Give me the minimum and maximum bathroom count among all the apartments.", "question_toks": [ "give", "me", "minimum", "and", "maximum", "bathroom", "count", "among", "all", "apartment", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 12, false ], null ] ], [ 1, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Give", "me", "the", "minimum", "and", "maximum", "bathroom", "count", "among", "all", "the", "apartments", "." ], "question_arg": [ [ "give" ], [ "me" ], [ "minimum" ], [ "and" ], [ "maximum" ], [ "bathroom", "count" ], [ "among" ], [ "all" ], [ "apartment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "bathroom", "NN" ], [ "count", "NN" ], [ "among", "IN" ], [ "all", "DT" ], [ "apartment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(2) C(11) T(1) A(1) C(11) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT avg(bedroom_count) FROM Apartments", "query_toks": [ "SELECT", "avg", "(", "bedroom_count", ")", "FROM", "Apartments" ], "query_toks_no_value": [ "select", "avg", "(", "bedroom_count", ")", "from", "apartments" ], "question": "What is the average number of bedrooms of all apartments?", "question_toks": [ "what", "is", "average", "number", "of", "bedroom", "of", "all", "apartment", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "bedrooms", "of", "all", "apartments", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "bedroom" ], [ "of" ], [ "all" ], [ "apartment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "bedroom", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "apartment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(12) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT avg(bedroom_count) FROM Apartments", "query_toks": [ "SELECT", "avg", "(", "bedroom_count", ")", "FROM", "Apartments" ], "query_toks_no_value": [ "select", "avg", "(", "bedroom_count", ")", "from", "apartments" ], "question": "Find the average number of bedrooms of all the apartments.", "question_toks": [ "find", "average", "number", "of", "bedroom", "of", "all", "apartment", "." ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Find", "the", "average", "number", "of", "bedrooms", "of", "all", "the", "apartments", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "number" ], [ "of" ], [ "bedroom" ], [ "of" ], [ "all" ], [ "apartment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "bedroom", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "apartment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(12) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_number , room_count FROM Apartments", "query_toks": [ "SELECT", "apt_number", ",", "room_count", "FROM", "Apartments" ], "query_toks_no_value": [ "select", "apt_number", ",", "room_count", "from", "apartments" ], "question": "Return the apartment number and the number of rooms for each apartment.", "question_toks": [ "return", "apartment", "number", "and", "number", "of", "room", "for", "each", "apartment", "." ], "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 ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Return", "the", "apartment", "number", "and", "the", "number", "of", "rooms", "for", "each", "apartment", "." ], "question_arg": [ [ "return" ], [ "apartment", "number" ], [ "and" ], [ "number" ], [ "of" ], [ "room" ], [ "for" ], [ "each" ], [ "apartment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "apartment", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "apartment", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(1) A(0) C(13) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_number , room_count FROM Apartments", "query_toks": [ "SELECT", "apt_number", ",", "room_count", "FROM", "Apartments" ], "query_toks_no_value": [ "select", "apt_number", ",", "room_count", "from", "apartments" ], "question": "What are the apartment number and the room count of each apartment?", "question_toks": [ "what", "are", "apartment", "number", "and", "room", "count", "of", "each", "apartment", "?" ], "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 ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "apartment", "number", "and", "the", "room", "count", "of", "each", "apartment", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "apartment", "number" ], [ "and" ], [ "room", "count" ], [ "of" ], [ "each" ], [ "apartment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "apartment", "JJ" ], [ "number", "NN" ], [ "and", "CC" ], [ "room", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "apartment", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(1) A(0) C(13) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT avg(room_count) FROM Apartments WHERE apt_type_code = \"Studio\"", "query_toks": [ "SELECT", "avg", "(", "room_count", ")", "FROM", "Apartments", "WHERE", "apt_type_code", "=", "``", "Studio", "''" ], "query_toks_no_value": [ "select", "avg", "(", "room_count", ")", "from", "apartments", "where", "apt_type_code", "=", "value" ], "question": "What is the average number of rooms of apartments with type code \"Studio\"?", "question_toks": [ "what", "is", "average", "number", "of", "room", "of", "apartment", "with", "type", "code", "'", "studio", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Studio\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "rooms", "of", "apartments", "with", "type", "code", "``", "Studio", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "room" ], [ "of" ], [ "apartment" ], [ "with" ], [ "apartment", "type", "code" ], [ "'" ], [ "studio" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "'", "''" ], [ "studio", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Studio", "Bode" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(13) T(1) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT avg(room_count) FROM Apartments WHERE apt_type_code = \"Studio\"", "query_toks": [ "SELECT", "avg", "(", "room_count", ")", "FROM", "Apartments", "WHERE", "apt_type_code", "=", "``", "Studio", "''" ], "query_toks_no_value": [ "select", "avg", "(", "room_count", ")", "from", "apartments", "where", "apt_type_code", "=", "value" ], "question": "Find the average room count of the apartments that have the \"Studio\" type code.", "question_toks": [ "find", "average", "room", "count", "of", "apartment", "that", "have", "'", "studio", "'", "type", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Studio\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Find", "the", "average", "room", "count", "of", "the", "apartments", "that", "have", "the", "``", "Studio", "''", "type", "code", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "room", "count" ], [ "of" ], [ "apartment" ], [ "that" ], [ "have" ], [ "'" ], [ "studio" ], [ "'" ], [ "apartment", "type", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "room", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "'", "''" ], [ "studio", "NN" ], [ "'", "''" ], [ "type", "JJ" ], [ "code", "NN" ], [ ".", "." ] ], "values": [ "Studio", "Bode" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(13) T(1) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_number FROM Apartments WHERE apt_type_code = \"Flat\"", "query_toks": [ "SELECT", "apt_number", "FROM", "Apartments", "WHERE", "apt_type_code", "=", "``", "Flat", "''" ], "query_toks_no_value": [ "select", "apt_number", "from", "apartments", "where", "apt_type_code", "=", "value" ], "question": "Return the apartment numbers of the apartments with type code \"Flat\".", "question_toks": [ "return", "apartment", "number", "of", "apartment", "with", "type", "code", "'", "flat", "'", "." ], "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, 2, [ 0, [ 0, 10, false ], null ], "\"Flat\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Return", "the", "apartment", "numbers", "of", "the", "apartments", "with", "type", "code", "``", "Flat", "''", "." ], "question_arg": [ [ "return" ], [ "apartment", "number" ], [ "of" ], [ "apartment" ], [ "with" ], [ "apartment", "type", "code" ], [ "'" ], [ "flat" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "apartment", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "'", "''" ], [ "flat", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Flat", "Bode" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_number FROM Apartments WHERE apt_type_code = \"Flat\"", "query_toks": [ "SELECT", "apt_number", "FROM", "Apartments", "WHERE", "apt_type_code", "=", "``", "Flat", "''" ], "query_toks_no_value": [ "select", "apt_number", "from", "apartments", "where", "apt_type_code", "=", "value" ], "question": "Which apartments have type code \"Flat\"? Give me their apartment numbers.", "question_toks": [ "which", "apartment", "have", "type", "code", "'", "flat", "'", "?", "give", "me", "their", "apartment", "number", "." ], "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, 2, [ 0, [ 0, 10, false ], null ], "\"Flat\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Which", "apartments", "have", "type", "code", "``", "Flat", "''", "?", "Give", "me", "their", "apartment", "numbers", "." ], "question_arg": [ [ "which" ], [ "apartment" ], [ "have" ], [ "apartment", "type", "code" ], [ "'" ], [ "flat" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "their" ], [ "apartment", "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "apartment", "NN" ], [ "have", "VBP" ], [ "type", "VBN" ], [ "code", "NN" ], [ "'", "''" ], [ "flat", "JJ" ], [ "'", "POS" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "their", "PRP$" ], [ "apartment", "NN" ], [ "number", "NN" ], [ ".", "." ] ], "values": [ "Flat", "Bode" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(9) T(1) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT guest_first_name , guest_last_name FROM Guests", "query_toks": [ "SELECT", "guest_first_name", ",", "guest_last_name", "FROM", "Guests" ], "query_toks_no_value": [ "select", "guest_first_name", ",", "guest_last_name", "from", "guests" ], "question": "Return the first names and last names of all guests", "question_toks": [ "return", "first", "name", "and", "last", "name", "of", "all", "guest" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Return", "the", "first", "names", "and", "last", "names", "of", "all", "guests" ], "question_arg": [ [ "return" ], [ "guest", "first", "name" ], [ "and" ], [ "guest", "last", "name" ], [ "of" ], [ "all" ], [ "guest" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "return", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "guest", "NN" ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(17) T(3) A(0) C(18) T(3)" }, { "db_id": "apartment_rentals", "query": "SELECT guest_first_name , guest_last_name FROM Guests", "query_toks": [ "SELECT", "guest_first_name", ",", "guest_last_name", "FROM", "Guests" ], "query_toks_no_value": [ "select", "guest_first_name", ",", "guest_last_name", "from", "guests" ], "question": "What are the first names and last names of all the guests?", "question_toks": [ "what", "are", "first", "name", "and", "last", "name", "of", "all", "guest", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "last", "names", "of", "all", "the", "guests", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "guest", "first", "name" ], [ "and" ], [ "guest", "last", "name" ], [ "of" ], [ "all" ], [ "guest" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "guest", "JJS" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(17) T(3) A(0) C(18) T(3)" }, { "db_id": "apartment_rentals", "query": "SELECT date_of_birth FROM Guests WHERE gender_code = \"Male\"", "query_toks": [ "SELECT", "date_of_birth", "FROM", "Guests", "WHERE", "gender_code", "=", "``", "Male", "''" ], "query_toks_no_value": [ "select", "date_of_birth", "from", "guests", "where", "gender_code", "=", "value" ], "question": "Return the date of birth for all the guests with gender code \"Male\".", "question_toks": [ "return", "date", "of", "birth", "for", "all", "guest", "with", "gender", "code", "'", "male", "'", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Male\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Return", "the", "date", "of", "birth", "for", "all", "the", "guests", "with", "gender", "code", "``", "Male", "''", "." ], "question_arg": [ [ "return" ], [ "date", "of", "birth" ], [ "for" ], [ "all" ], [ "guest" ], [ "with" ], [ "gender", "code" ], [ "'" ], [ "male" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "guest", "JJS" ], [ "with", "IN" ], [ "gender", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "male", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Bode", "Male" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(3) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT date_of_birth FROM Guests WHERE gender_code = \"Male\"", "query_toks": [ "SELECT", "date_of_birth", "FROM", "Guests", "WHERE", "gender_code", "=", "``", "Male", "''" ], "query_toks_no_value": [ "select", "date_of_birth", "from", "guests", "where", "gender_code", "=", "value" ], "question": "What are dates of birth of all the guests whose gender is \"Male\"?", "question_toks": [ "what", "are", "date", "of", "birth", "of", "all", "guest", "whose", "gender", "is", "'", "male", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Male\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "dates", "of", "birth", "of", "all", "the", "guests", "whose", "gender", "is", "``", "Male", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date", "of", "birth" ], [ "of" ], [ "all" ], [ "guest" ], [ "whose" ], [ "gender" ], [ "is" ], [ "'" ], [ "male" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "of", "IN" ], [ "birth", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "guest", "JJS" ], [ "whose", "WP$" ], [ "gender", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "male", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "Male" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(3) Filter(2) A(0) C(16) T(3) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT T2.apt_number , T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id", "query_toks": [ "SELECT", "T2.apt_number", ",", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id" ], "query_toks_no_value": [ "select", "t2", ".", "apt_number", ",", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id" ], "question": "Show the apartment numbers, start dates, and end dates of all the apartment bookings.", "question_toks": [ "show", "apartment", "number", ",", "start", "date", ",", "and", "end", "date", "of", "all", "apartment", "booking", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "apartment", "numbers", ",", "start", "dates", ",", "and", "end", "dates", "of", "all", "the", "apartment", "bookings", "." ], "question_arg": [ [ "show" ], [ "apartment", "number" ], [ "," ], [ "booking", "start", "date" ], [ "," ], [ "and" ], [ "booking", "end", "date" ], [ "of" ], [ "all" ], [ "apartment", "booking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "apartment", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "start", "JJ" ], [ "date", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "end", "VB" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "apartment", "NN" ], [ "booking", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(10) T(1) A(0) C(22) T(4) A(0) C(22) T(4)" }, { "db_id": "apartment_rentals", "query": "SELECT T2.apt_number , T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id", "query_toks": [ "SELECT", "T2.apt_number", ",", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id" ], "query_toks_no_value": [ "select", "t2", ".", "apt_number", ",", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id" ], "question": "What are the apartment number, start date, and end date of each apartment booking?", "question_toks": [ "what", "are", "apartment", "number", ",", "start", "date", ",", "and", "end", "date", "of", "each", "apartment", "booking", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "apartment", "number", ",", "start", "date", ",", "and", "end", "date", "of", "each", "apartment", "booking", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "apartment", "number" ], [ "," ], [ "booking", "start", "date" ], [ "," ], [ "and" ], [ "booking", "end", "date" ], [ "of" ], [ "each" ], [ "apartment", "booking" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "apartment", "JJ" ], [ "number", "NN" ], [ ",", "," ], [ "start", "JJ" ], [ "date", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "end", "VB" ], [ "date", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "apartment", "NN" ], [ "booking", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(10) T(1) A(0) C(22) T(4) A(0) C(22) T(4)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = \"Duplex\"", "query_toks": [ "SELECT", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.apt_type_code", "=", "``", "Duplex", "''" ], "query_toks_no_value": [ "select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "apt_type_code", "=", "value" ], "question": "What are the booking start and end dates of the apartments with type code \"Duplex\"?", "question_toks": [ "what", "are", "booking", "start", "and", "end", "date", "of", "apartment", "with", "type", "code", "'", "duplex", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Duplex\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "booking", "start", "and", "end", "dates", "of", "the", "apartments", "with", "type", "code", "``", "Duplex", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "booking", "start", "date" ], [ "and" ], [ "booking", "end", "date" ], [ "of" ], [ "apartment" ], [ "with" ], [ "apartment", "type", "code" ], [ "'" ], [ "duplex" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "booking", "VBG" ], [ "start", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "'", "''" ], [ "duplex", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Bode", "Duplex" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(22) T(4) A(0) C(22) T(4) Filter(2) A(0) C(9) T(1) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = \"Duplex\"", "query_toks": [ "SELECT", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.apt_type_code", "=", "``", "Duplex", "''" ], "query_toks_no_value": [ "select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "apt_type_code", "=", "value" ], "question": "Return the booking start date and end date for the apartments that have type code \"Duplex\".", "question_toks": [ "return", "booking", "start", "date", "and", "end", "date", "for", "apartment", "that", "have", "type", "code", "'", "duplex", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 10, false ], null ], "\"Duplex\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Return", "the", "booking", "start", "date", "and", "end", "date", "for", "the", "apartments", "that", "have", "type", "code", "``", "Duplex", "''", "." ], "question_arg": [ [ "return" ], [ "booking", "start", "date" ], [ "and" ], [ "booking", "end", "date" ], [ "for" ], [ "apartment" ], [ "that" ], [ "have" ], [ "apartment", "type", "code" ], [ "'" ], [ "duplex" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "booking", "VBG" ], [ "start", "JJ" ], [ "date", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "apartment", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "type", "VBN" ], [ "code", "NN" ], [ "'", "''" ], [ "duplex", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Bode", "Duplex" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(22) T(4) A(0) C(22) T(4) Filter(2) A(0) C(9) T(1) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 2", "query_toks": [ "SELECT", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.bedroom_count", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "bedroom_count", ">", "value" ], "question": "What are the booking start and end dates of the apartments with more than 2 bedrooms?", "question_toks": [ "what", "are", "booking", "start", "and", "end", "date", "of", "apartment", "with", "more", "than", "2", "bedroom", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 2.0, null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "booking", "start", "and", "end", "dates", "of", "the", "apartments", "with", "more", "than", "2", "bedrooms", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "booking", "start", "date" ], [ "and" ], [ "booking", "end", "date" ], [ "of" ], [ "apartment" ], [ "with" ], [ "more" ], [ "than" ], [ "2" ], [ "bedroom" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "booking", "VBG" ], [ "start", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "bedroom", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(22) T(4) A(0) C(22) T(4) Filter(5) A(0) C(12) T(1) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 2", "query_toks": [ "SELECT", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.bedroom_count", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "bedroom_count", ">", "value" ], "question": "Find the booking start date and end date for the apartments that have more than two bedrooms.", "question_toks": [ "find", "booking", "start", "date", "and", "end", "date", "for", "apartment", "that", "have", "more", "than", "two", "bedroom", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 2.0, null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Find", "the", "booking", "start", "date", "and", "end", "date", "for", "the", "apartments", "that", "have", "more", "than", "two", "bedrooms", "." ], "question_arg": [ [ "find" ], [ "booking", "start", "date" ], [ "and" ], [ "booking", "end", "date" ], [ "for" ], [ "apartment" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "two" ], [ "bedroom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "booking", "JJ" ], [ "start", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "apartment", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "bedroom", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(22) T(4) A(0) C(22) T(4) Filter(5) A(0) C(12) T(1) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = \"Suite 634\"", "query_toks": [ "SELECT", "T1.booking_status_code", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.apt_number", "=", "``", "Suite", "634", "''" ], "query_toks_no_value": [ "select", "t1", ".", "booking_status_code", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "apt_number", "=", "value" ], "question": "What is the booking status code of the apartment with apartment number \"Suite 634\"?", "question_toks": [ "what", "is", "booking", "status", "code", "of", "apartment", "with", "apartment", "number", "'", "suite", "634", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Suite 634\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "is", "the", "booking", "status", "code", "of", "the", "apartment", "with", "apartment", "number", "``", "Suite", "634", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "booking", "status", "code" ], [ "of" ], [ "apartment" ], [ "with" ], [ "apartment", "number" ], [ "'" ], [ "suite" ], [ "634" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "booking", "VBG" ], [ "status", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "apartment", "JJ" ], [ "number", "NN" ], [ "'", "POS" ], [ "suite", "JJ" ], [ "634", "CD" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "634", "Bode", "Suite 645", "Suite 634", "Suite 693" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(4) Filter(2) A(0) C(10) T(1) V(3)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = \"Suite 634\"", "query_toks": [ "SELECT", "T1.booking_status_code", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.apt_number", "=", "``", "Suite", "634", "''" ], "query_toks_no_value": [ "select", "t1", ".", "booking_status_code", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "apt_number", "=", "value" ], "question": "Tell me the booking status code for the apartment with number \"Suite 634\".", "question_toks": [ "tell", "me", "booking", "status", "code", "for", "apartment", "with", "number", "'", "suite", "634", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 11, false ], null ], "\"Suite 634\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Tell", "me", "the", "booking", "status", "code", "for", "the", "apartment", "with", "number", "``", "Suite", "634", "''", "." ], "question_arg": [ [ "tell" ], [ "me" ], [ "booking", "status", "code" ], [ "for" ], [ "apartment" ], [ "with" ], [ "number" ], [ "'" ], [ "suite" ], [ "634" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "tell", "VB" ], [ "me", "PRP" ], [ "booking", "VBG" ], [ "status", "NN" ], [ "code", "NN" ], [ "for", "IN" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "'", "''" ], [ "suite", "JJ" ], [ "634", "CD" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "634", "Bode", "Suite 645", "Suite 634", "Suite 693" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(21) T(4) Filter(2) A(0) C(10) T(1) V(3)" }, { "db_id": "apartment_rentals", "query": "SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Confirmed\"", "query_toks": [ "SELECT", "DISTINCT", "T2.apt_number", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.booking_status_code", "=", "``", "Confirmed", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "apt_number", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "booking_status_code", "=", "value" ], "question": "Show the distinct apartment numbers of the apartments that have bookings with status code \"Confirmed\".", "question_toks": [ "show", "distinct", "apartment", "number", "of", "apartment", "that", "have", "booking", "with", "status", "code", "'", "confirmed", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Confirmed\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "distinct", "apartment", "numbers", "of", "the", "apartments", "that", "have", "bookings", "with", "status", "code", "``", "Confirmed", "''", "." ], "question_arg": [ [ "show" ], [ "distinct" ], [ "apartment", "number" ], [ "of" ], [ "apartment" ], [ "that" ], [ "have" ], [ "booking" ], [ "with" ], [ "booking", "status", "code" ], [ "'" ], [ "confirmed" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "distinct", "JJ" ], [ "apartment", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "booking", "VBG" ], [ "with", "IN" ], [ "status", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "confirmed", "VBN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Bode", "Confirmed" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(10) T(1) Filter(2) A(0) C(21) T(4) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Confirmed\"", "query_toks": [ "SELECT", "DISTINCT", "T2.apt_number", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.booking_status_code", "=", "``", "Confirmed", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "apt_number", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "booking_status_code", "=", "value" ], "question": "Which apartments have bookings with status code \"Confirmed\"? Return their apartment numbers.", "question_toks": [ "which", "apartment", "have", "booking", "with", "status", "code", "'", "confirmed", "'", "?", "return", "their", "apartment", "number", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Confirmed\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Which", "apartments", "have", "bookings", "with", "status", "code", "``", "Confirmed", "''", "?", "Return", "their", "apartment", "numbers", "." ], "question_arg": [ [ "which" ], [ "apartment" ], [ "have" ], [ "booking" ], [ "with" ], [ "booking", "status", "code" ], [ "'" ], [ "confirmed" ], [ "'" ], [ "?" ], [ "return" ], [ "their" ], [ "apartment", "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "apartment", "NN" ], [ "have", "VBP" ], [ "booking", "VBG" ], [ "with", "IN" ], [ "status", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "confirmed", "VBN" ], [ "'", "POS" ], [ "?", "." ], [ "return", "VBP" ], [ "their", "PRP$" ], [ "apartment", "NN" ], [ "number", "NN" ], [ ".", "." ] ], "values": [ "Bode", "Confirmed" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(10) T(1) Filter(2) A(0) C(21) T(4) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Provisional\"", "query_toks": [ "SELECT", "avg", "(", "room_count", ")", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.booking_status_code", "=", "``", "Provisional", "''" ], "query_toks_no_value": [ "select", "avg", "(", "room_count", ")", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "booking_status_code", "=", "value" ], "question": "Show the average room count of the apartments that have booking status code \"Provisional\".", "question_toks": [ "show", "average", "room", "count", "of", "apartment", "that", "have", "booking", "status", "code", "'", "provisional", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Provisional\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "average", "room", "count", "of", "the", "apartments", "that", "have", "booking", "status", "code", "``", "Provisional", "''", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "room", "count" ], [ "of" ], [ "apartment" ], [ "that" ], [ "have" ], [ "booking", "status", "code" ], [ "'" ], [ "provisional" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "JJ" ], [ "room", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "booking", "VBG" ], [ "status", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "provisional", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Provisional", "Bode" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(13) T(1) Filter(2) A(0) C(21) T(4) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Provisional\"", "query_toks": [ "SELECT", "avg", "(", "room_count", ")", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.booking_status_code", "=", "``", "Provisional", "''" ], "query_toks_no_value": [ "select", "avg", "(", "room_count", ")", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "booking_status_code", "=", "value" ], "question": "What is the average room count of the apartments whose booking status code is \"Provisional\"?", "question_toks": [ "what", "is", "average", "room", "count", "of", "apartment", "whose", "booking", "status", "code", "is", "'", "provisional", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Provisional\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "is", "the", "average", "room", "count", "of", "the", "apartments", "whose", "booking", "status", "code", "is", "``", "Provisional", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "room", "count" ], [ "of" ], [ "apartment" ], [ "whose" ], [ "booking", "status", "code" ], [ "is" ], [ "'" ], [ "provisional" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "room", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "whose", "WP$" ], [ "booking", "NN" ], [ "status", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "provisional", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Provisional", "Bode" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(13) T(1) Filter(2) A(0) C(21) T(4) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT T2.guest_first_name , T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id", "query_toks": [ "SELECT", "T2.guest_first_name", ",", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Guests", "AS", "T2", "ON", "T1.guest_id", "=", "T2.guest_id" ], "query_toks_no_value": [ "select", "t2", ".", "guest_first_name", ",", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "guests", "as", "t2", "on", "t1", ".", "guest_id", "=", "t2", ".", "guest_id" ], "question": "Show the guest first names, start dates, and end dates of all the apartment bookings.", "question_toks": [ "show", "guest", "first", "name", ",", "start", "date", ",", "and", "end", "date", "of", "all", "apartment", "booking", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "guest", "first", "names", ",", "start", "dates", ",", "and", "end", "dates", "of", "all", "the", "apartment", "bookings", "." ], "question_arg": [ [ "show" ], [ "guest", "first", "name" ], [ "," ], [ "booking", "start", "date" ], [ "," ], [ "and" ], [ "booking", "end", "date" ], [ "of" ], [ "all" ], [ "apartment", "booking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "guest", "JJS" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "start", "NN" ], [ "date", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "end", "VB" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "apartment", "NN" ], [ "booking", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(17) T(3) A(0) C(22) T(4) A(0) C(22) T(4)" }, { "db_id": "apartment_rentals", "query": "SELECT T2.guest_first_name , T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id", "query_toks": [ "SELECT", "T2.guest_first_name", ",", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Guests", "AS", "T2", "ON", "T1.guest_id", "=", "T2.guest_id" ], "query_toks_no_value": [ "select", "t2", ".", "guest_first_name", ",", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "guests", "as", "t2", "on", "t1", ".", "guest_id", "=", "t2", ".", "guest_id" ], "question": "What are the guest first name, start date, and end date of each apartment booking?", "question_toks": [ "what", "are", "guest", "first", "name", ",", "start", "date", ",", "and", "end", "date", "of", "each", "apartment", "booking", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "guest", "first", "name", ",", "start", "date", ",", "and", "end", "date", "of", "each", "apartment", "booking", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "guest", "first", "name" ], [ "," ], [ "booking", "start", "date" ], [ "," ], [ "and" ], [ "booking", "end", "date" ], [ "of" ], [ "each" ], [ "apartment", "booking" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "guest", "JJS" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "start", "NN" ], [ "date", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "end", "VB" ], [ "date", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "apartment", "NN" ], [ "booking", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(17) T(3) A(0) C(22) T(4) A(0) C(22) T(4)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = \"Female\"", "query_toks": [ "SELECT", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Guests", "AS", "T2", "ON", "T1.guest_id", "=", "T2.guest_id", "WHERE", "T2.gender_code", "=", "``", "Female", "''" ], "query_toks_no_value": [ "select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "guests", "as", "t2", "on", "t1", ".", "guest_id", "=", "t2", ".", "guest_id", "where", "t2", ".", "gender_code", "=", "value" ], "question": "Show the start dates and end dates of all the apartment bookings made by guests with gender code \"Female\".", "question_toks": [ "show", "start", "date", "and", "end", "date", "of", "all", "apartment", "booking", "made", "by", "guest", "with", "gender", "code", "'", "female", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Female\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "start", "dates", "and", "end", "dates", "of", "all", "the", "apartment", "bookings", "made", "by", "guests", "with", "gender", "code", "``", "Female", "''", "." ], "question_arg": [ [ "show" ], [ "booking", "start", "date" ], [ "and" ], [ "booking", "end", "date" ], [ "of" ], [ "all" ], [ "apartment", "booking" ], [ "made" ], [ "by" ], [ "guest" ], [ "with" ], [ "gender", "code" ], [ "'" ], [ "female" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "start", "JJ" ], [ "date", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "apartment", "NN" ], [ "booking", "VBG" ], [ "made", "VBN" ], [ "by", "IN" ], [ "guest", "NN" ], [ "with", "IN" ], [ "gender", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "female", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Bode", "Female" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(22) T(4) A(0) C(22) T(4) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.booking_start_date , T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = \"Female\"", "query_toks": [ "SELECT", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Guests", "AS", "T2", "ON", "T1.guest_id", "=", "T2.guest_id", "WHERE", "T2.gender_code", "=", "``", "Female", "''" ], "query_toks_no_value": [ "select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "guests", "as", "t2", "on", "t1", ".", "guest_id", "=", "t2", ".", "guest_id", "where", "t2", ".", "gender_code", "=", "value" ], "question": "What are the start date and end date of the apartment bookings made by female guests (gender code \"Female\")?", "question_toks": [ "what", "are", "start", "date", "and", "end", "date", "of", "apartment", "booking", "made", "by", "female", "guest", "(", "gender", "code", "'", "female", "'", ")", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 26, false ], null ] ], [ 0, [ 0, [ 0, 26, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Female\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "start", "date", "and", "end", "date", "of", "the", "apartment", "bookings", "made", "by", "female", "guests", "(", "gender", "code", "``", "Female", "''", ")", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "booking", "start", "date" ], [ "and" ], [ "booking", "end", "date" ], [ "of" ], [ "apartment", "booking" ], [ "made" ], [ "by" ], [ "female" ], [ "guest" ], [ "(" ], [ "gender", "code" ], [ "'" ], [ "female" ], [ "'" ], [ ")" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "start", "JJ" ], [ "date", "NN" ], [ "and", "CC" ], [ "end", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "booking", "VBG" ], [ "made", "VBN" ], [ "by", "IN" ], [ "female", "JJ" ], [ "guest", "NN" ], [ "(", "(" ], [ "gender", "VB" ], [ "code", "NN" ], [ "'", "''" ], [ "female", "JJ" ], [ "'", "POS" ], [ ")", ")" ], [ "?", "." ] ], "values": [ "Bode", "Female" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(22) T(4) A(0) C(22) T(4) Filter(2) A(0) C(16) T(3) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT T2.guest_first_name , T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = \"Confirmed\"", "query_toks": [ "SELECT", "T2.guest_first_name", ",", "T2.guest_last_name", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Guests", "AS", "T2", "ON", "T1.guest_id", "=", "T2.guest_id", "WHERE", "T1.booking_status_code", "=", "``", "Confirmed", "''" ], "query_toks_no_value": [ "select", "t2", ".", "guest_first_name", ",", "t2", ".", "guest_last_name", "from", "apartment_bookings", "as", "t1", "join", "guests", "as", "t2", "on", "t1", ".", "guest_id", "=", "t2", ".", "guest_id", "where", "t1", ".", "booking_status_code", "=", "value" ], "question": "Show the first names and last names of all the guests that have apartment bookings with status code \"Confirmed\".", "question_toks": [ "show", "first", "name", "and", "last", "name", "of", "all", "guest", "that", "have", "apartment", "booking", "with", "status", "code", "'", "confirmed", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Confirmed\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "first", "names", "and", "last", "names", "of", "all", "the", "guests", "that", "have", "apartment", "bookings", "with", "status", "code", "``", "Confirmed", "''", "." ], "question_arg": [ [ "show" ], [ "guest", "first", "name" ], [ "and" ], [ "guest", "last", "name" ], [ "of" ], [ "all" ], [ "guest" ], [ "that" ], [ "have" ], [ "apartment", "booking" ], [ "with" ], [ "booking", "status", "code" ], [ "'" ], [ "confirmed" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "guest", "JJS" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "apartment", "VBN" ], [ "booking", "VBG" ], [ "with", "IN" ], [ "status", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "confirmed", "VBN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Bode", "1", "Confirmed" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(17) T(3) A(0) C(18) T(3) Filter(2) A(0) C(21) T(4) V(2)" }, { "db_id": "apartment_rentals", "query": "SELECT T2.guest_first_name , T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = \"Confirmed\"", "query_toks": [ "SELECT", "T2.guest_first_name", ",", "T2.guest_last_name", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Guests", "AS", "T2", "ON", "T1.guest_id", "=", "T2.guest_id", "WHERE", "T1.booking_status_code", "=", "``", "Confirmed", "''" ], "query_toks_no_value": [ "select", "t2", ".", "guest_first_name", ",", "t2", ".", "guest_last_name", "from", "apartment_bookings", "as", "t1", "join", "guests", "as", "t2", "on", "t1", ".", "guest_id", "=", "t2", ".", "guest_id", "where", "t1", ".", "booking_status_code", "=", "value" ], "question": "Which guests have apartment bookings with status code \"Confirmed\"? Return their first names and last names.", "question_toks": [ "which", "guest", "have", "apartment", "booking", "with", "status", "code", "'", "confirmed", "'", "?", "return", "their", "first", "name", "and", "last", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 24, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Confirmed\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Which", "guests", "have", "apartment", "bookings", "with", "status", "code", "``", "Confirmed", "''", "?", "Return", "their", "first", "names", "and", "last", "names", "." ], "question_arg": [ [ "which" ], [ "guest" ], [ "have" ], [ "apartment", "booking" ], [ "with" ], [ "booking", "status", "code" ], [ "'" ], [ "confirmed" ], [ "'" ], [ "?" ], [ "return" ], [ "their" ], [ "guest", "first", "name" ], [ "and" ], [ "guest", "last", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "guest", "JJS" ], [ "have", "VBP" ], [ "apartment", "NN" ], [ "booking", "VBG" ], [ "with", "IN" ], [ "status", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "confirmed", "VBN" ], [ "'", "POS" ], [ "?", "." ], [ "return", "VB" ], [ "their", "PRP$" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Bode", "1", "Confirmed" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(17) T(3) A(0) C(18) T(3) Filter(2) A(0) C(21) T(4) V(2)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4", "query_toks": [ "SELECT", "T1.facility_code", "FROM", "Apartment_Facilities", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.bedroom_count", ">", "4" ], "query_toks_no_value": [ "select", "t1", ".", "facility_code", "from", "apartment_facilities", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "bedroom_count", ">", "value" ], "question": "Show the facility codes of apartments with more than 4 bedrooms.", "question_toks": [ "show", "facility", "code", "of", "apartment", "with", "more", "than", "4", "bedroom", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, 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, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 4.0, null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "facility", "codes", "of", "apartments", "with", "more", "than", "4", "bedrooms", "." ], "question_arg": [ [ "show" ], [ "facility", "code" ], [ "of" ], [ "apartment" ], [ "with" ], [ "more" ], [ "than" ], [ "4" ], [ "bedroom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "facility", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "4", "CD" ], [ "bedroom", "NN" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(5) A(0) C(12) T(1) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4", "query_toks": [ "SELECT", "T1.facility_code", "FROM", "Apartment_Facilities", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.bedroom_count", ">", "4" ], "query_toks_no_value": [ "select", "t1", ".", "facility_code", "from", "apartment_facilities", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "bedroom_count", ">", "value" ], "question": "What are the facility codes of the apartments with more than four bedrooms?", "question_toks": [ "what", "are", "facility", "code", "of", "apartment", "with", "more", "than", "four", "bedroom", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, 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, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 4.0, null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "facility", "codes", "of", "the", "apartments", "with", "more", "than", "four", "bedrooms", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "facility", "code" ], [ "of" ], [ "apartment" ], [ "with" ], [ "more" ], [ "than" ], [ "four" ], [ "bedroom" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "facility", "NN" ], [ "code", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "four", "CD" ], [ "bedroom", "NN" ], [ "?", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(14) T(2) Filter(5) A(0) C(12) T(1) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = \"Gym\"", "query_toks": [ "SELECT", "sum", "(", "T2.room_count", ")", "FROM", "Apartment_Facilities", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.facility_code", "=", "``", "Gym", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_facilities", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "facility_code", "=", "value" ], "question": "Show the total number of rooms of all apartments with facility code \"Gym\".", "question_toks": [ "show", "total", "number", "of", "room", "of", "all", "apartment", "with", "facility", "code", "'", "gym", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Gym\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "total", "number", "of", "rooms", "of", "all", "apartments", "with", "facility", "code", "``", "Gym", "''", "." ], "question_arg": [ [ "show" ], [ "total" ], [ "number" ], [ "of" ], [ "room" ], [ "of" ], [ "all" ], [ "apartment" ], [ "with" ], [ "facility", "code" ], [ "'" ], [ "gym" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "facility", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "gym", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Bode", "Gym" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(13) T(1) Filter(2) A(0) C(14) T(2) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = \"Gym\"", "query_toks": [ "SELECT", "sum", "(", "T2.room_count", ")", "FROM", "Apartment_Facilities", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.facility_code", "=", "``", "Gym", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_facilities", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "facility_code", "=", "value" ], "question": "Find the total number of rooms in the apartments that have facility code \"Gym\".", "question_toks": [ "find", "total", "number", "of", "room", "in", "apartment", "that", "have", "facility", "code", "'", "gym", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 16, false ], null ], "\"Gym\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "rooms", "in", "the", "apartments", "that", "have", "facility", "code", "``", "Gym", "''", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "room" ], [ "in" ], [ "apartment" ], [ "that" ], [ "have" ], [ "facility", "code" ], [ "'" ], [ "gym" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "in", "IN" ], [ "apartment", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "facility", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "gym", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Bode", "Gym" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(13) T(1) Filter(2) A(0) C(14) T(2) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = \"Columbus Square\"", "query_toks": [ "SELECT", "sum", "(", "T2.room_count", ")", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T1.building_short_name", "=", "``", "Columbus", "Square", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t1", ".", "building_short_name", "=", "value" ], "question": "Show the total number of rooms of the apartments in the building with short name \"Columbus Square\".", "question_toks": [ "show", "total", "number", "of", "room", "of", "apartment", "in", "building", "with", "short", "name", "'", "columbus", "square", "'", "." ], "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, [ [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Columbus Square\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "total", "number", "of", "rooms", "of", "the", "apartments", "in", "the", "building", "with", "short", "name", "``", "Columbus", "Square", "''", "." ], "question_arg": [ [ "show" ], [ "total" ], [ "number" ], [ "of" ], [ "room" ], [ "of" ], [ "apartment" ], [ "in" ], [ "building" ], [ "with" ], [ "building", "short", "name" ], [ "'" ], [ "columbus" ], [ "square" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "in", "IN" ], [ "building", "NN" ], [ "with", "IN" ], [ "short", "JJ" ], [ "name", "NN" ], [ "'", "POS" ], [ "columbus", "NN" ], [ "square", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Columbus Square" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(13) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = \"Columbus Square\"", "query_toks": [ "SELECT", "sum", "(", "T2.room_count", ")", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T1.building_short_name", "=", "``", "Columbus", "Square", "''" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t1", ".", "building_short_name", "=", "value" ], "question": "How many rooms in total are there in the apartments in the building with short name \"Columbus Square\"?", "question_toks": [ "how", "many", "room", "in", "total", "are", "there", "in", "apartment", "in", "building", "with", "short", "name", "'", "columbus", "square", "'", "?" ], "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, [ [ 4, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Columbus Square\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "How", "many", "rooms", "in", "total", "are", "there", "in", "the", "apartments", "in", "the", "building", "with", "short", "name", "``", "Columbus", "Square", "''", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "room" ], [ "in" ], [ "total" ], [ "are" ], [ "there" ], [ "in" ], [ "apartment" ], [ "in" ], [ "building" ], [ "with" ], [ "building", "short", "name" ], [ "'" ], [ "columbus" ], [ "square" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "room", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "apartment", "NN" ], [ "in", "IN" ], [ "building", "NN" ], [ "with", "IN" ], [ "short", "JJ" ], [ "name", "NN" ], [ "'", "POS" ], [ "columbus", "NN" ], [ "square", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Columbus Square" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(13) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T2.bathroom_count > 2", "query_toks": [ "SELECT", "T1.building_address", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T2.bathroom_count", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "building_address", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t2", ".", "bathroom_count", ">", "value" ], "question": "Show the addresses of the buildings that have apartments with more than 2 bathrooms.", "question_toks": [ "show", "address", "of", "building", "that", "have", "apartment", "with", "more", "than", "2", "bathroom", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], 2.0, null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "addresses", "of", "the", "buildings", "that", "have", "apartments", "with", "more", "than", "2", "bathrooms", "." ], "question_arg": [ [ "show" ], [ "address" ], [ "of" ], [ "building" ], [ "that" ], [ "have" ], [ "apartment" ], [ "with" ], [ "more" ], [ "than" ], [ "2" ], [ "bathroom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "address", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "bathroom", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T2.bathroom_count > 2", "query_toks": [ "SELECT", "T1.building_address", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T2.bathroom_count", ">", "2" ], "query_toks_no_value": [ "select", "t1", ".", "building_address", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t2", ".", "bathroom_count", ">", "value" ], "question": "Which buildings have apartments that have more than two bathrooms? Give me the addresses of the buildings.", "question_toks": [ "which", "building", "have", "apartment", "that", "have", "more", "than", "two", "bathroom", "?", "give", "me", "address", "of", "building", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], 2.0, null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Which", "buildings", "have", "apartments", "that", "have", "more", "than", "two", "bathrooms", "?", "Give", "me", "the", "addresses", "of", "the", "buildings", "." ], "question_arg": [ [ "which" ], [ "building" ], [ "have" ], [ "apartment" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "two" ], [ "bathroom" ], [ "?" ], [ "give" ], [ "me" ], [ "address" ], [ "of" ], [ "building" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "building", "NN" ], [ "have", "VBP" ], [ "apartment", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "bathroom", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "address", "NN" ], [ "of", "IN" ], [ "building", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(5) A(0) C(11) T(1) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT T2.apt_type_code , T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = \"Kyle\"", "query_toks": [ "SELECT", "T2.apt_type_code", ",", "T2.apt_number", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T1.building_manager", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "t2", ".", "apt_type_code", ",", "t2", ".", "apt_number", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t1", ".", "building_manager", "=", "value" ], "question": "Show the apartment type codes and apartment numbers in the buildings managed by \"Kyle\".", "question_toks": [ "show", "apartment", "type", "code", "and", "apartment", "number", "in", "building", "managed", "by", "'", "kyle", "'", "." ], "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 ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Kyle\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "apartment", "type", "codes", "and", "apartment", "numbers", "in", "the", "buildings", "managed", "by", "``", "Kyle", "''", "." ], "question_arg": [ [ "show" ], [ "apartment", "type", "code" ], [ "and" ], [ "apartment", "number" ], [ "in" ], [ "building" ], [ "managed" ], [ "by" ], [ "'" ], [ "kyle" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "apartment", "NN" ], [ "number", "NN" ], [ "in", "IN" ], [ "building", "VBG" ], [ "managed", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "kyle", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Kyle" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(10) T(1) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT T2.apt_type_code , T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = \"Kyle\"", "query_toks": [ "SELECT", "T2.apt_type_code", ",", "T2.apt_number", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T1.building_manager", "=", "``", "Kyle", "''" ], "query_toks_no_value": [ "select", "t2", ".", "apt_type_code", ",", "t2", ".", "apt_number", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t1", ".", "building_manager", "=", "value" ], "question": "What apartment type codes and apartment numbers do the buildings managed by \"Kyle\" have?", "question_toks": [ "what", "apartment", "type", "code", "and", "apartment", "number", "do", "building", "managed", "by", "'", "kyle", "'", "have", "?" ], "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 ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], "\"Kyle\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "apartment", "type", "codes", "and", "apartment", "numbers", "do", "the", "buildings", "managed", "by", "``", "Kyle", "''", "have", "?" ], "question_arg": [ [ "what" ], [ "apartment", "type", "code" ], [ "and" ], [ "apartment", "number" ], [ "do" ], [ "building" ], [ "managed" ], [ "by" ], [ "'" ], [ "kyle" ], [ "'" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "apartment", "NN" ], [ "number", "NN" ], [ "do", "VBP" ], [ "building", "VBG" ], [ "managed", "VBN" ], [ "by", "IN" ], [ "'", "''" ], [ "kyle", "NN" ], [ "'", "''" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "Kyle" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(9) T(1) A(0) C(10) T(1) Filter(2) A(0) C(6) T(0) V(0)" }, { "db_id": "apartment_rentals", "query": "SELECT booking_status_code , COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code", "query_toks": [ "SELECT", "booking_status_code", ",", "COUNT", "(", "*", ")", "FROM", "Apartment_Bookings", "GROUP", "BY", "booking_status_code" ], "query_toks_no_value": [ "select", "booking_status_code", ",", "count", "(", "*", ")", "from", "apartment_bookings", "group", "by", "booking_status_code" ], "question": "Show the booking status code and the corresponding number of bookings.", "question_toks": [ "show", "booking", "status", "code", "and", "corresponding", "number", "of", "booking", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "booking", "status", "code", "and", "the", "corresponding", "number", "of", "bookings", "." ], "question_arg": [ [ "show" ], [ "booking", "status", "code" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "booking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "booking", "VBG" ], [ "status", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "booking", "NN" ], [ ".", "." ] ], "values": [ "Bode" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(21) T(4) A(3) C(0) T(4)" }, { "db_id": "apartment_rentals", "query": "SELECT booking_status_code , COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code", "query_toks": [ "SELECT", "booking_status_code", ",", "COUNT", "(", "*", ")", "FROM", "Apartment_Bookings", "GROUP", "BY", "booking_status_code" ], "query_toks_no_value": [ "select", "booking_status_code", ",", "count", "(", "*", ")", "from", "apartment_bookings", "group", "by", "booking_status_code" ], "question": "How many bookings does each booking status have? List the booking status code and the number of corresponding bookings.", "question_toks": [ "how", "many", "booking", "doe", "each", "booking", "status", "have", "?", "list", "booking", "status", "code", "and", "number", "of", "corresponding", "booking", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 25, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 25, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "How", "many", "bookings", "does", "each", "booking", "status", "have", "?", "List", "the", "booking", "status", "code", "and", "the", "number", "of", "corresponding", "bookings", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "booking" ], [ "doe" ], [ "each" ], [ "booking", "status", "code" ], [ "have" ], [ "?" ], [ "list" ], [ "booking", "status", "code" ], [ "and" ], [ "number" ], [ "of" ], [ "corresponding" ], [ "booking" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "booking", "VBG" ], [ "doe", "JJ" ], [ "each", "DT" ], [ "booking", "NN" ], [ "status", "NN" ], [ "have", "VB" ], [ "?", "." ], [ "list", "NN" ], [ "booking", "VBG" ], [ "status", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "corresponding", "VBG" ], [ "booking", "NN" ], [ ".", "." ] ], "values": [ "Bode" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(21) T(4) A(3) C(0) T(4)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_number FROM Apartments ORDER BY room_count ASC", "query_toks": [ "SELECT", "apt_number", "FROM", "Apartments", "ORDER", "BY", "room_count", "ASC" ], "query_toks_no_value": [ "select", "apt_number", "from", "apartments", "order", "by", "room_count", "asc" ], "question": "Return all the apartment numbers sorted by the room count in ascending order.", "question_toks": [ "return", "all", "apartment", "number", "sorted", "by", "room", "count", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Return", "all", "the", "apartment", "numbers", "sorted", "by", "the", "room", "count", "in", "ascending", "order", "." ], "question_arg": [ [ "return" ], [ "all" ], [ "apartment", "number" ], [ "sorted" ], [ "by" ], [ "room", "count" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "all", "DT" ], [ "apartment", "NN" ], [ "number", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "room", "NN" ], [ "count", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(10) T(1) Order(1) A(0) C(13) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_number FROM Apartments ORDER BY room_count ASC", "query_toks": [ "SELECT", "apt_number", "FROM", "Apartments", "ORDER", "BY", "room_count", "ASC" ], "query_toks_no_value": [ "select", "apt_number", "from", "apartments", "order", "by", "room_count", "asc" ], "question": "Sort the apartment numbers in ascending order of room count.", "question_toks": [ "sort", "apartment", "number", "in", "ascending", "order", "of", "room", "count", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Sort", "the", "apartment", "numbers", "in", "ascending", "order", "of", "room", "count", "." ], "question_arg": [ [ "sort" ], [ "apartment", "number" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "room", "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "apartment", "NN" ], [ "number", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(10) T(1) Order(1) A(0) C(13) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1", "query_toks": [ "SELECT", "apt_number", "FROM", "Apartments", "ORDER", "BY", "bedroom_count", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "apt_number", "from", "apartments", "order", "by", "bedroom_count", "desc", "limit", "value" ], "question": "Return the apartment number with the largest number of bedrooms.", "question_toks": [ "return", "apartment", "number", "with", "largest", "number", "of", "bedroom", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Return", "the", "apartment", "number", "with", "the", "largest", "number", "of", "bedrooms", "." ], "question_arg": [ [ "return" ], [ "apartment", "number" ], [ "with" ], [ "largest" ], [ "number" ], [ "of" ], [ "bedroom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "apartment", "NN" ], [ "number", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "bedroom", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(0) C(12) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1", "query_toks": [ "SELECT", "apt_number", "FROM", "Apartments", "ORDER", "BY", "bedroom_count", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "apt_number", "from", "apartments", "order", "by", "bedroom_count", "desc", "limit", "value" ], "question": "What is the apartment number of the apartment with the most beds?", "question_toks": [ "what", "is", "apartment", "number", "of", "apartment", "with", "most", "bed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 13, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "is", "the", "apartment", "number", "of", "the", "apartment", "with", "the", "most", "beds", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "apartment", "number" ], [ "of" ], [ "apartment" ], [ "with" ], [ "most" ], [ "bed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "apartment", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "bed", "NNS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(0) C(12) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_type_code , COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) ASC", "query_toks": [ "SELECT", "apt_type_code", ",", "COUNT", "(", "*", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC" ], "query_toks_no_value": [ "select", "apt_type_code", ",", "count", "(", "*", ")", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "count", "(", "*", ")", "asc" ], "question": "Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.", "question_toks": [ "show", "apartment", "type", "code", "and", "corresponding", "number", "of", "apartment", "sorted", "by", "number", "of", "apartment", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "apartment", "type", "codes", "and", "the", "corresponding", "number", "of", "apartments", "sorted", "by", "the", "number", "of", "apartments", "in", "ascending", "order", "." ], "question_arg": [ [ "show" ], [ "apartment", "type", "code" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "apartment" ], [ "sorted" ], [ "by" ], [ "number" ], [ "of" ], [ "apartment" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(1) Order(1) A(3) C(0) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_type_code , COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) ASC", "query_toks": [ "SELECT", "apt_type_code", ",", "COUNT", "(", "*", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC" ], "query_toks_no_value": [ "select", "apt_type_code", ",", "count", "(", "*", ")", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "count", "(", "*", ")", "asc" ], "question": "Return each apartment type code with the number of apartments having that apartment type, in ascending order of the number of apartments.", "question_toks": [ "return", "each", "apartment", "type", "code", "with", "number", "of", "apartment", "having", "that", "apartment", "type", ",", "in", "ascending", "order", "of", "number", "of", "apartment", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Return", "each", "apartment", "type", "code", "with", "the", "number", "of", "apartments", "having", "that", "apartment", "type", ",", "in", "ascending", "order", "of", "the", "number", "of", "apartments", "." ], "question_arg": [ [ "return" ], [ "each" ], [ "apartment", "type", "code" ], [ "with" ], [ "number" ], [ "of" ], [ "apartment" ], [ "having" ], [ "that" ], [ "apartment" ], [ "type" ], [ "," ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "number" ], [ "of" ], [ "apartment" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "each", "DT" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "having", "VBG" ], [ "that", "IN" ], [ "apartment", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ ".", "." ] ], "values": [ "Bode" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(9) T(1) A(3) C(0) T(1) Order(1) A(3) C(0) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 3", "query_toks": [ "SELECT", "apt_type_code", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "avg", "(", "room_count", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "apt_type_code", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "avg", "(", "room_count", ")", "desc", "limit", "value" ], "question": "Show the top 3 apartment type codes sorted by the average number of rooms in descending order.", "question_toks": [ "show", "top", "3", "apartment", "type", "code", "sorted", "by", "average", "number", "of", "room", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 5, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "top", "3", "apartment", "type", "codes", "sorted", "by", "the", "average", "number", "of", "rooms", "in", "descending", "order", "." ], "question_arg": [ [ "show" ], [ "top" ], [ "3" ], [ "apartment", "type", "code" ], [ "sorted" ], [ "by" ], [ "average" ], [ "number" ], [ "of" ], [ "room" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(5) C(13) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 3", "query_toks": [ "SELECT", "apt_type_code", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "avg", "(", "room_count", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "apt_type_code", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "avg", "(", "room_count", ")", "desc", "limit", "value" ], "question": "What are the top three apartment types in terms of the average room count? Give me the", "question_toks": [ "what", "are", "top", "three", "apartment", "type", "in", "term", "of", "average", "room", "count", "?", "give", "me" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 5, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "What", "are", "the", "top", "three", "apartment", "types", "in", "terms", "of", "the", "average", "room", "count", "?", "Give", "me", "the" ], "question_arg": [ [ "what" ], [ "are" ], [ "top" ], [ "three" ], [ "apartment" ], [ "type" ], [ "in" ], [ "term" ], [ "of" ], [ "average" ], [ "room", "count" ], [ "?" ], [ "give" ], [ "me" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "top", "JJ" ], [ "three", "CD" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "in", "IN" ], [ "term", "NN" ], [ "of", "IN" ], [ "average", "JJ" ], [ "room", "NN" ], [ "count", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(5) C(13) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_type_code , bathroom_count , bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC LIMIT 1", "query_toks": [ "SELECT", "apt_type_code", ",", "bathroom_count", ",", "bedroom_count", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "sum", "(", "room_count", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "apt_type_code", ",", "bathroom_count", ",", "bedroom_count", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "sum", "(", "room_count", ")", "desc", "limit", "value" ], "question": "Show the apartment type code that has the largest number of total rooms, together with the number of bathrooms and number of bedrooms.", "question_toks": [ "show", "apartment", "type", "code", "that", "ha", "largest", "number", "of", "total", "room", ",", "together", "with", "number", "of", "bathroom", "and", "number", "of", "bedroom", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "apartment", "type", "code", "that", "has", "the", "largest", "number", "of", "total", "rooms", ",", "together", "with", "the", "number", "of", "bathrooms", "and", "number", "of", "bedrooms", "." ], "question_arg": [ [ "show" ], [ "apartment", "type", "code" ], [ "that" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "total" ], [ "room" ], [ "," ], [ "together" ], [ "with" ], [ "number" ], [ "of" ], [ "bathroom" ], [ "and" ], [ "number" ], [ "of" ], [ "bedroom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "that", "IN" ], [ "ha", "VBZ" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "room", "NN" ], [ ",", "," ], [ "together", "RB" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "bathroom", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "bedroom", "NN" ], [ ".", "." ] ], "values": [ "Bode" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(9) T(1) A(0) C(11) T(1) A(0) C(12) T(1) Sup(0) A(4) C(13) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_type_code , bathroom_count , bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC LIMIT 1", "query_toks": [ "SELECT", "apt_type_code", ",", "bathroom_count", ",", "bedroom_count", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "sum", "(", "room_count", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "apt_type_code", ",", "bathroom_count", ",", "bedroom_count", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "sum", "(", "room_count", ")", "desc", "limit", "value" ], "question": "Which apartment type has the largest number of total rooms? Return the apartment type code, its number of bathrooms and number of bedrooms.", "question_toks": [ "which", "apartment", "type", "ha", "largest", "number", "of", "total", "room", "?", "return", "apartment", "type", "code", ",", "it", "number", "of", "bathroom", "and", "number", "of", "bedroom", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Which", "apartment", "type", "has", "the", "largest", "number", "of", "total", "rooms", "?", "Return", "the", "apartment", "type", "code", ",", "its", "number", "of", "bathrooms", "and", "number", "of", "bedrooms", "." ], "question_arg": [ [ "which" ], [ "apartment" ], [ "type" ], [ "ha" ], [ "largest" ], [ "number" ], [ "of" ], [ "total" ], [ "room" ], [ "?" ], [ "return" ], [ "apartment", "type", "code" ], [ "," ], [ "it" ], [ "number" ], [ "of" ], [ "bathroom" ], [ "and" ], [ "number" ], [ "of" ], [ "bedroom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "ha", "NN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "room", "NN" ], [ "?", "." ], [ "return", "VB" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "it", "PRP" ], [ "number", "NN" ], [ "of", "IN" ], [ "bathroom", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "bedroom", "NN" ], [ ".", "." ] ], "values": [ "Bode" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(9) T(1) A(0) C(11) T(1) A(0) C(12) T(1) Sup(0) A(4) C(13) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "apt_type_code", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "apt_type_code", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most common apartment type code.", "question_toks": [ "show", "most", "common", "apartment", "type", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "most", "common", "apartment", "type", "code", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "common" ], [ "apartment", "type", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [ "Bode" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "apt_type_code", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "apt_type_code", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which apartment type code appears the most often?", "question_toks": [ "which", "apartment", "type", "code", "appears", "most", "often", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Which", "apartment", "type", "code", "appears", "the", "most", "often", "?" ], "question_arg": [ [ "which" ], [ "apartment", "type", "code" ], [ "appears" ], [ "most" ], [ "often" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "appears", "VBZ" ], [ "most", "RBS" ], [ "often", "RB" ], [ "?", "." ] ], "values": [ "Bode" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(3) C(0) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_type_code FROM Apartments WHERE bathroom_count > 1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "apt_type_code", "FROM", "Apartments", "WHERE", "bathroom_count", ">", "1", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "apt_type_code", "from", "apartments", "where", "bathroom_count", ">", "value", "group", "by", "apt_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most common apartment type code among apartments with more than 1 bathroom.", "question_toks": [ "show", "most", "common", "apartment", "type", "code", "among", "apartment", "with", "more", "than", "1", "bathroom", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], 1.0, null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "most", "common", "apartment", "type", "code", "among", "apartments", "with", "more", "than", "1", "bathroom", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "common" ], [ "apartment", "type", "code" ], [ "among" ], [ "apartment" ], [ "with" ], [ "more" ], [ "than" ], [ "1" ], [ "bathroom" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "apartment", "NN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "among", "IN" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "1", "CD" ], [ "bathroom", "NN" ], [ ".", "." ] ], "values": [ "Bode", "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(3) C(0) T(1) Filter(5) A(0) C(11) T(1) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_type_code FROM Apartments WHERE bathroom_count > 1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "apt_type_code", "FROM", "Apartments", "WHERE", "bathroom_count", ">", "1", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "apt_type_code", "from", "apartments", "where", "bathroom_count", ">", "value", "group", "by", "apt_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which apartment type code is the most common among apartments with more than one bathroom?", "question_toks": [ "which", "apartment", "type", "code", "is", "most", "common", "among", "apartment", "with", "more", "than", "one", "bathroom", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "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 ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 12, false ], null ], 1.0, null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Which", "apartment", "type", "code", "is", "the", "most", "common", "among", "apartments", "with", "more", "than", "one", "bathroom", "?" ], "question_arg": [ [ "which" ], [ "apartment", "type", "code" ], [ "is" ], [ "most" ], [ "common" ], [ "among" ], [ "apartment" ], [ "with" ], [ "more" ], [ "than" ], [ "one" ], [ "bathroom" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "among", "IN" ], [ "apartment", "JJ" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "bathroom", "NN" ], [ "?", "." ] ], "values": [ "Bode", "1" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(9) T(1) Sup(0) A(3) C(0) T(1) Filter(5) A(0) C(11) T(1) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_type_code , max(room_count) , min(room_count) FROM Apartments GROUP BY apt_type_code", "query_toks": [ "SELECT", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code" ], "query_toks_no_value": [ "select", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "from", "apartments", "group", "by", "apt_type_code" ], "question": "Show each apartment type code, and the maximum and minimum number of rooms for each type.", "question_toks": [ "show", "each", "apartment", "type", "code", ",", "and", "maximum", "and", "minimum", "number", "of", "room", "for", "each", "type", "." ], "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 ] ], [ 1, [ 0, [ 0, 14, false ], null ] ], [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "each", "apartment", "type", "code", ",", "and", "the", "maximum", "and", "minimum", "number", "of", "rooms", "for", "each", "type", "." ], "question_arg": [ [ "show" ], [ "each" ], [ "apartment", "type", "code" ], [ "," ], [ "and" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "number" ], [ "of" ], [ "room" ], [ "for" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "each", "DT" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "maximum", "NN" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "Bode" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(9) T(1) A(1) C(13) T(1) A(2) C(13) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT apt_type_code , max(room_count) , min(room_count) FROM Apartments GROUP BY apt_type_code", "query_toks": [ "SELECT", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code" ], "query_toks_no_value": [ "select", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "from", "apartments", "group", "by", "apt_type_code" ], "question": "Return each apartment type code along with the maximum and minimum number of rooms among each type.", "question_toks": [ "return", "each", "apartment", "type", "code", "along", "with", "maximum", "and", "minimum", "number", "of", "room", "among", "each", "type", "." ], "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 ] ], [ 1, [ 0, [ 0, 14, false ], null ] ], [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Return", "each", "apartment", "type", "code", "along", "with", "the", "maximum", "and", "minimum", "number", "of", "rooms", "among", "each", "type", "." ], "question_arg": [ [ "return" ], [ "each" ], [ "apartment", "type", "code" ], [ "along" ], [ "with" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "number" ], [ "of" ], [ "room" ], [ "among" ], [ "each" ], [ "type" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "each", "DT" ], [ "apartment", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "maximum", "NN" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "among", "IN" ], [ "each", "DT" ], [ "type", "NN" ], [ ".", "." ] ], "values": [ "Bode" ], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(9) T(1) A(1) C(13) T(1) A(2) C(13) T(1)" }, { "db_id": "apartment_rentals", "query": "SELECT gender_code , COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "gender_code", ",", "COUNT", "(", "*", ")", "FROM", "Guests", "GROUP", "BY", "gender_code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "gender_code", ",", "count", "(", "*", ")", "from", "guests", "group", "by", "gender_code", "order", "by", "count", "(", "*", ")", "desc" ], "question": "Show each gender code and the corresponding count of guests sorted by the count in descending order.", "question_toks": [ "show", "each", "gender", "code", "and", "corresponding", "count", "of", "guest", "sorted", "by", "count", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "each", "gender", "code", "and", "the", "corresponding", "count", "of", "guests", "sorted", "by", "the", "count", "in", "descending", "order", "." ], "question_arg": [ [ "show" ], [ "each" ], [ "gender", "code" ], [ "and" ], [ "corresponding" ], [ "count" ], [ "of" ], [ "guest" ], [ "sorted" ], [ "by" ], [ "count" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "each", "DT" ], [ "gender", "NN" ], [ "code", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "count", "NN" ], [ "of", "IN" ], [ "guest", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "count", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "Bode" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(16) T(3) A(3) C(0) T(3) Order(0) A(3) C(0) T(3)" }, { "db_id": "apartment_rentals", "query": "SELECT gender_code , COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC", "query_toks": [ "SELECT", "gender_code", ",", "COUNT", "(", "*", ")", "FROM", "Guests", "GROUP", "BY", "gender_code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC" ], "query_toks_no_value": [ "select", "gender_code", ",", "count", "(", "*", ")", "from", "guests", "group", "by", "gender_code", "order", "by", "count", "(", "*", ")", "desc" ], "question": "Sort the gender codes in descending order of their corresponding number of guests. Return both the gender codes and counts.", "question_toks": [ "sort", "gender", "code", "in", "descending", "order", "of", "their", "corresponding", "number", "of", "guest", ".", "return", "both", "gender", "code", "and", "count", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Sort", "the", "gender", "codes", "in", "descending", "order", "of", "their", "corresponding", "number", "of", "guests", ".", "Return", "both", "the", "gender", "codes", "and", "counts", "." ], "question_arg": [ [ "sort" ], [ "gender", "code" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "their" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "guest" ], [ "." ], [ "return" ], [ "both" ], [ "gender", "code" ], [ "and" ], [ "count" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "gender", "NN" ], [ "code", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "corresponding", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "guest", "NN" ], [ ".", "." ], [ "return", "VB" ], [ "both", "DT" ], [ "gender", "FW" ], [ "code", "NN" ], [ "and", "CC" ], [ "count", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(16) T(3) A(3) C(0) T(3) Order(0) A(3) C(0) T(3)" }, { "db_id": "apartment_rentals", "query": "SELECT count(*) FROM Apartments WHERE apt_id NOT IN (SELECT apt_id FROM Apartment_Facilities)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Apartments", "WHERE", "apt_id", "NOT", "IN", "(", "SELECT", "apt_id", "FROM", "Apartment_Facilities", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "apartments", "where", "apt_id", "not", "in", "(", "select", "apt_id", "from", "apartment_facilities", ")" ], "question": "How many apartments do not have any facility?", "question_toks": [ "how", "many", "apartment", "do", "not", "have", "any", "facility", "?" ], "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, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "How", "many", "apartments", "do", "not", "have", "any", "facility", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "apartment" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "facility" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "apartment", "NN" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "facility", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(2)" }, { "db_id": "apartment_rentals", "query": "SELECT count(*) FROM Apartments WHERE apt_id NOT IN (SELECT apt_id FROM Apartment_Facilities)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Apartments", "WHERE", "apt_id", "NOT", "IN", "(", "SELECT", "apt_id", "FROM", "Apartment_Facilities", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "apartments", "where", "apt_id", "not", "in", "(", "select", "apt_id", "from", "apartment_facilities", ")" ], "question": "Find the number of apartments that have no facility.", "question_toks": [ "find", "number", "of", "apartment", "that", "have", "no", "facility", "." ], "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, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Find", "the", "number", "of", "apartments", "that", "have", "no", "facility", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "apartment" ], [ "that" ], [ "have" ], [ "no" ], [ "facility" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "no", "DT" ], [ "facility", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(8) T(1) Root(5) Sel(0) N(0) A(0) C(8) T(2)" }, { "db_id": "apartment_rentals", "query": "SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Confirmed\" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Provisional\"", "query_toks": [ "SELECT", "T2.apt_number", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.booking_status_code", "=", "``", "Confirmed", "''", "INTERSECT", "SELECT", "T2.apt_number", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.booking_status_code", "=", "``", "Provisional", "''" ], "query_toks_no_value": [ "select", "t2", ".", "apt_number", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "booking_status_code", "=", "value", "intersect", "select", "t2", ".", "apt_number", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "booking_status_code", "=", "value" ], "question": "Show the apartment numbers of apartments with bookings that have status code both \"Provisional\" and \"Confirmed\"", "question_toks": [ "show", "apartment", "number", "of", "apartment", "with", "booking", "that", "have", "status", "code", "both", "'", "provisional", "'", "and", "'", "confirmed", "'" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 25, false ], null ], "\"Provisional\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Confirmed\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "apartment", "numbers", "of", "apartments", "with", "bookings", "that", "have", "status", "code", "both", "``", "Provisional", "''", "and", "``", "Confirmed", "''" ], "question_arg": [ [ "show" ], [ "apartment", "number" ], [ "of" ], [ "apartment" ], [ "with" ], [ "booking" ], [ "that" ], [ "have" ], [ "booking", "status", "code" ], [ "both" ], [ "'" ], [ "provisional" ], [ "'" ], [ "and" ], [ "'" ], [ "confirmed" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "apartment", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "booking", "VBG" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "status", "NN" ], [ "code", "NN" ], [ "both", "DT" ], [ "'", "POS" ], [ "provisional", "JJ" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "confirmed", "VBN" ], [ "'", "''" ] ], "values": [ "Confirmed", "Provisional", "Bode" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(21) T(4) V(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(21) T(4) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Confirmed\" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = \"Provisional\"", "query_toks": [ "SELECT", "T2.apt_number", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.booking_status_code", "=", "``", "Confirmed", "''", "INTERSECT", "SELECT", "T2.apt_number", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.booking_status_code", "=", "``", "Provisional", "''" ], "query_toks_no_value": [ "select", "t2", ".", "apt_number", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "booking_status_code", "=", "value", "intersect", "select", "t2", ".", "apt_number", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "booking_status_code", "=", "value" ], "question": "Which apartments have bookings with both status codes \"Provisional\" and \"Confirmed\"? Give me the apartment numbers.", "question_toks": [ "which", "apartment", "have", "booking", "with", "both", "status", "code", "'", "provisional", "'", "and", "'", "confirmed", "'", "?", "give", "me", "apartment", "number", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 23, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 25, false ], null ], "\"Provisional\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Confirmed\"", null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Which", "apartments", "have", "bookings", "with", "both", "status", "codes", "``", "Provisional", "''", "and", "``", "Confirmed", "''", "?", "Give", "me", "the", "apartment", "numbers", "." ], "question_arg": [ [ "which" ], [ "apartment" ], [ "have" ], [ "booking" ], [ "with" ], [ "both" ], [ "booking", "status", "code" ], [ "'" ], [ "provisional" ], [ "'" ], [ "and" ], [ "'" ], [ "confirmed" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "apartment", "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "apartment", "NN" ], [ "have", "VBP" ], [ "booking", "VBG" ], [ "with", "IN" ], [ "both", "DT" ], [ "status", "NN" ], [ "code", "NN" ], [ "'", "''" ], [ "provisional", "JJ" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "confirmed", "VBN" ], [ "'", "POS" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "apartment", "JJ" ], [ "number", "NN" ], [ ".", "." ] ], "values": [ "Confirmed", "Provisional" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(21) T(4) V(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(21) T(4) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 0 INTERSECT SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 1", "query_toks": [ "SELECT", "T1.apt_number", "FROM", "Apartments", "AS", "T1", "JOIN", "View_Unit_Status", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.available_yn", "=", "0", "INTERSECT", "SELECT", "T1.apt_number", "FROM", "Apartments", "AS", "T1", "JOIN", "View_Unit_Status", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.available_yn", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "apt_number", "from", "apartments", "as", "t1", "join", "view_unit_status", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "available_yn", "=", "value", "intersect", "select", "t1", ".", "apt_number", "from", "apartments", "as", "t1", "join", "view_unit_status", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "available_yn", "=", "value" ], "question": "Show the apartment numbers of apartments with unit status availability of both 0 and 1.", "question_toks": [ "show", "apartment", "number", "of", "apartment", "with", "unit", "status", "availability", "of", "both", "0", "and", "1", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], 1.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], 0.0, null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Show", "the", "apartment", "numbers", "of", "apartments", "with", "unit", "status", "availability", "of", "both", "0", "and", "1", "." ], "question_arg": [ [ "show" ], [ "apartment", "number" ], [ "of" ], [ "apartment" ], [ "with" ], [ "unit" ], [ "status" ], [ "availability" ], [ "of" ], [ "both" ], [ "0" ], [ "and" ], [ "1" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "apartment", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "apartment", "NN" ], [ "with", "IN" ], [ "unit", "NN" ], [ "status", "NN" ], [ "availability", "NN" ], [ "of", "IN" ], [ "both", "DT" ], [ "0", "CD" ], [ "and", "CC" ], [ "1", "CD" ], [ ".", "." ] ], "values": [ "0", "1" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(25) T(5) V(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(25) T(5) V(1)" }, { "db_id": "apartment_rentals", "query": "SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 0 INTERSECT SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 1", "query_toks": [ "SELECT", "T1.apt_number", "FROM", "Apartments", "AS", "T1", "JOIN", "View_Unit_Status", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.available_yn", "=", "0", "INTERSECT", "SELECT", "T1.apt_number", "FROM", "Apartments", "AS", "T1", "JOIN", "View_Unit_Status", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.available_yn", "=", "1" ], "query_toks_no_value": [ "select", "t1", ".", "apt_number", "from", "apartments", "as", "t1", "join", "view_unit_status", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "available_yn", "=", "value", "intersect", "select", "t1", ".", "apt_number", "from", "apartments", "as", "t1", "join", "view_unit_status", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "available_yn", "=", "value" ], "question": "Which apartments have unit status availability of both 0 and 1? Return their apartment numbers.", "question_toks": [ "which", "apartment", "have", "unit", "status", "availability", "of", "both", "0", "and", "1", "?", "return", "their", "apartment", "number", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], 1.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 31, false ], null ], 0.0, null ] ] }, "names": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "building id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "apartment id", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "apartment id", "guest id", "booking status code", "booking start date", "booking end date", "apartment id", "apartment booking id", "status date", "available yes or no" ], "table_names": [ "apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status" ], "col_set": [ "*", "building id", "building short name", "building full name", "building description", "building address", "building manager", "building phone", "apartment id", "apartment type code", "apartment number", "bathroom count", "bedroom count", "room count", "facility code", "guest id", "gender code", "guest first name", "guest last name", "date of birth", "apartment booking id", "booking status code", "booking start date", "booking end date", "status date", "available yes or no" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5 ], "keys": { "9": 1, "1": 1, "15": 15, "8": 8, "24": 17, "17": 17, "23": 8, "29": 22, "22": 22, "28": 8, "30": 30 }, "origin_question_toks": [ "Which", "apartments", "have", "unit", "status", "availability", "of", "both", "0", "and", "1", "?", "Return", "their", "apartment", "numbers", "." ], "question_arg": [ [ "which" ], [ "apartment" ], [ "have" ], [ "unit" ], [ "status" ], [ "availability" ], [ "of" ], [ "both" ], [ "0" ], [ "and" ], [ "1" ], [ "?" ], [ "return" ], [ "their" ], [ "apartment", "number" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "apartment", "NN" ], [ "have", "VBP" ], [ "unit", "NN" ], [ "status", "NN" ], [ "availability", "NN" ], [ "of", "IN" ], [ "both", "DT" ], [ "0", "CD" ], [ "and", "CC" ], [ "1", "CD" ], [ "?", "." ], [ "return", "VB" ], [ "their", "PRP$" ], [ "apartment", "NN" ], [ "number", "NN" ], [ ".", "." ] ], "values": [ "0", "1" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(25) T(5) V(0) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(25) T(5) V(1)" }, { "db_id": "game_injury", "query": "SELECT count(*) FROM game WHERE season > 2007", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "game", "WHERE", "season", ">", "2007" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "game", "where", "season", ">", "value" ], "question": "How many games are held after season 2007?", "question_toks": [ "how", "many", "game", "are", "held", "after", "season", "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, 3, [ 0, [ 0, 9, false ], null ], 2007.0, null ] ] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "How", "many", "games", "are", "held", "after", "season", "2007", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "game" ], [ "are" ], [ "held" ], [ "after" ], [ "season" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "game", "NN" ], [ "are", "VBP" ], [ "held", "VBN" ], [ "after", "IN" ], [ "season", "NN" ], [ "2007", "CD" ], [ "?", "." ] ], "values": [ "2007" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(5) A(0) C(8) T(1) V(0)" }, { "db_id": "game_injury", "query": "SELECT Date FROM game ORDER BY home_team DESC", "query_toks": [ "SELECT", "Date", "FROM", "game", "ORDER", "BY", "home_team", "DESC" ], "query_toks_no_value": [ "select", "date", "from", "game", "order", "by", "home_team", "desc" ], "question": "List the dates of games by the home team name in descending order.", "question_toks": [ "list", "date", "of", "game", "by", "home", "team", "name", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "the", "dates", "of", "games", "by", "the", "home", "team", "name", "in", "descending", "order", "." ], "question_arg": [ [ "list" ], [ "date" ], [ "of" ], [ "game" ], [ "by" ], [ "home", "team" ], [ "name" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "by", "IN" ], [ "home", "NN" ], [ "team", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(9) T(1) Order(0) A(0) C(10) T(1)" }, { "db_id": "game_injury", "query": "SELECT season , home_team , away_team FROM game", "query_toks": [ "SELECT", "season", ",", "home_team", ",", "away_team", "FROM", "game" ], "query_toks_no_value": [ "select", "season", ",", "home_team", ",", "away_team", "from", "game" ], "question": "List the season, home team, away team of all the games.", "question_toks": [ "list", "season", ",", "home", "team", ",", "away", "team", "of", "all", "game", "." ], "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, 11, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "the", "season", ",", "home", "team", ",", "away", "team", "of", "all", "the", "games", "." ], "question_arg": [ [ "list" ], [ "season" ], [ "," ], [ "home", "team" ], [ "," ], [ "away", "team" ], [ "of" ], [ "all" ], [ "game" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "season", "NN" ], [ ",", "," ], [ "home", "NN" ], [ "team", "NN" ], [ ",", "," ], [ "away", "RB" ], [ "team", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "game", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(8) T(1) A(0) C(10) T(1) A(0) C(11) T(1)" }, { "db_id": "game_injury", "query": "SELECT max(home_games) , min(home_games) , avg(home_games) FROM stadium", "query_toks": [ "SELECT", "max", "(", "home_games", ")", ",", "min", "(", "home_games", ")", ",", "avg", "(", "home_games", ")", "FROM", "stadium" ], "query_toks_no_value": [ "select", "max", "(", "home_games", ")", ",", "min", "(", "home_games", ")", ",", "avg", "(", "home_games", ")", "from", "stadium" ], "question": "What are the maximum, minimum and average home games each stadium held?", "question_toks": [ "what", "are", "maximum", ",", "minimum", "and", "average", "home", "game", "each", "stadium", "held", "?" ], "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 ] ], [ 2, [ 0, [ 0, 3, false ], null ] ], [ 5, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "What", "are", "the", "maximum", ",", "minimum", "and", "average", "home", "games", "each", "stadium", "held", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "maximum" ], [ "," ], [ "minimum" ], [ "and" ], [ "average" ], [ "home", "game" ], [ "each" ], [ "stadium" ], [ "held" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "maximum", "JJ" ], [ ",", "," ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "home", "NN" ], [ "game", "NN" ], [ "each", "DT" ], [ "stadium", "NN" ], [ "held", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(3) T(0) A(2) C(3) T(0) A(5) C(3) T(0)" }, { "db_id": "game_injury", "query": "SELECT average_attendance FROM stadium WHERE capacity_percentage > 100", "query_toks": [ "SELECT", "average_attendance", "FROM", "stadium", "WHERE", "capacity_percentage", ">", "100" ], "query_toks_no_value": [ "select", "average_attendance", "from", "stadium", "where", "capacity_percentage", ">", "value" ], "question": "What is the average attendance of stadiums with capacity percentage higher than 100%?", "question_toks": [ "what", "is", "average", "attendance", "of", "stadium", "with", "capacity", "percentage", "higher", "than", "100", "%", "?" ], "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, 3, [ 0, [ 0, 6, false ], null ], 100.0, null ] ] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "What", "is", "the", "average", "attendance", "of", "stadiums", "with", "capacity", "percentage", "higher", "than", "100", "%", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average", "attendance" ], [ "of" ], [ "stadium" ], [ "with" ], [ "capacity", "percentage" ], [ "higher" ], [ "than" ], [ "100" ], [ "%" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "attendance", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "with", "IN" ], [ "capacity", "NN" ], [ "percentage", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "%", "NN" ], [ "?", "." ] ], "values": [ "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(0) Filter(5) A(0) C(6) T(0) V(0)" }, { "db_id": "game_injury", "query": "SELECT player , number_of_matches , SOURCE FROM injury_accident WHERE injury != 'Knee problem'", "query_toks": [ "SELECT", "player", ",", "number_of_matches", ",", "SOURCE", "FROM", "injury_accident", "WHERE", "injury", "!", "=", "'Knee", "problem", "'" ], "query_toks_no_value": [ "select", "player", ",", "number_of_matches", ",", "source", "from", "injury_accident", "where", "injury", "!", "=", "value" ], "question": "What are the player name, number of matches, and information source for players who do not suffer from injury of 'Knee problem'?", "question_toks": [ "what", "are", "player", "name", ",", "number", "of", "match", ",", "and", "information", "source", "for", "player", "who", "do", "not", "suffer", "from", "injury", "of", "'", "knee", "problem", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 18, false ], null ], "\"Knee problem\"", null ] ] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "What", "are", "the", "player", "name", ",", "number", "of", "matches", ",", "and", "information", "source", "for", "players", "who", "do", "not", "suffer", "from", "injury", "of", "'Knee", "problem", "'", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "player" ], [ "name" ], [ "," ], [ "number", "of", "match" ], [ "," ], [ "and" ], [ "information" ], [ "source" ], [ "for" ], [ "player" ], [ "who" ], [ "do" ], [ "not" ], [ "suffer" ], [ "from" ], [ "injury" ], [ "of" ], [ "'" ], [ "knee" ], [ "problem" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "player", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "number", "NN" ], [ "of", "IN" ], [ "match", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "information", "NN" ], [ "source", "NN" ], [ "for", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "suffer", "VB" ], [ "from", "IN" ], [ "injury", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "knee", "NN" ], [ "problem", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Knee problem", "Ankle problem" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(15) T(2) A(0) C(17) T(2) A(0) C(18) T(2) Filter(3) A(0) C(16) T(2) V(0)" }, { "db_id": "game_injury", "query": "SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id WHERE T2.player = 'Walter Samuel'", "query_toks": [ "SELECT", "T1.season", "FROM", "game", "AS", "T1", "JOIN", "injury_accident", "AS", "T2", "ON", "T1.id", "=", "T2.game_id", "WHERE", "T2.player", "=", "'Walter", "Samuel", "'" ], "query_toks_no_value": [ "select", "t1", ".", "season", "from", "game", "as", "t1", "join", "injury_accident", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "game_id", "where", "t2", ".", "player", "=", "value" ], "question": "What is the season of the game which causes the player 'Walter Samuel' to get injured?", "question_toks": [ "what", "is", "season", "of", "game", "which", "cause", "player", "'", "walter", "samuel", "'", "to", "get", "injured", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 15, 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 ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Walter Samuel\"", null ] ] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "What", "is", "the", "season", "of", "the", "game", "which", "causes", "the", "player", "'Walter", "Samuel", "'", "to", "get", "injured", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "season" ], [ "of" ], [ "game" ], [ "which" ], [ "cause" ], [ "player" ], [ "'" ], [ "walter" ], [ "samuel" ], [ "'" ], [ "to" ], [ "get" ], [ "injured" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "season", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "which", "WDT" ], [ "cause", "VBP" ], [ "player", "NN" ], [ "'", "''" ], [ "walter", "NN" ], [ "samuel", "NN" ], [ "'", "''" ], [ "to", "TO" ], [ "get", "VB" ], [ "injured", "VBN" ], [ "?", "." ] ], "values": [ "Walter Samuel" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(2) A(0) C(15) T(2) V(0)" }, { "db_id": "game_injury", "query": "SELECT T1.id , T1.score , T1.date FROM game AS T1 JOIN injury_accident AS T2 ON T2.game_id = T1.id GROUP BY T1.id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.id", ",", "T1.score", ",", "T1.date", "FROM", "game", "AS", "T1", "JOIN", "injury_accident", "AS", "T2", "ON", "T2.game_id", "=", "T1.id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "score", ",", "t1", ".", "date", "from", "game", "as", "t1", "join", "injury_accident", "as", "t2", "on", "t2", ".", "game_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the ids, scores, and dates of the games which caused at least two injury accidents?", "question_toks": [ "what", "are", "id", ",", "score", ",", "and", "date", "of", "game", "which", "caused", "at", "least", "two", "injury", "accident", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "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 ] ], [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 15, 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", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "What", "are", "the", "ids", ",", "scores", ",", "and", "dates", "of", "the", "games", "which", "caused", "at", "least", "two", "injury", "accidents", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "," ], [ "score" ], [ "," ], [ "and" ], [ "date" ], [ "of" ], [ "game" ], [ "which" ], [ "caused" ], [ "at" ], [ "least" ], [ "two" ], [ "injury", "accident" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ ",", "," ], [ "score", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "which", "WDT" ], [ "caused", "VBD" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "injury", "NN" ], [ "accident", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(1) T(1) A(0) C(12) T(1) A(0) C(9) T(1) Filter(0) Filter(18) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(14) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "game_injury", "query": "SELECT T1.id , T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id JOIN injury_accident AS T3 ON T2.id = T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", "FROM", "stadium", "AS", "T1", "JOIN", "game", "AS", "T2", "ON", "T1.id", "=", "T2.stadium_id", "JOIN", "injury_accident", "AS", "T3", "ON", "T2.id", "=", "T3.game_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "stadium", "as", "t1", "join", "game", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "stadium_id", "join", "injury_accident", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "game_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the id and name of the stadium where the most injury accidents happened?", "question_toks": [ "what", "are", "id", "and", "name", "of", "stadium", "where", "most", "injury", "accident", "happened", "?" ], "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": [], "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 ] ] ] ], "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", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "What", "are", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "most", "injury", "accidents", "happened", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "stadium" ], [ "where" ], [ "most" ], [ "injury", "accident" ], [ "happened" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "where", "WRB" ], [ "most", "RBS" ], [ "injury", "JJ" ], [ "accident", "NN" ], [ "happened", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(1) T(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(7) T(1)" }, { "db_id": "game_injury", "query": "SELECT T1.id , T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id JOIN injury_accident AS T3 ON T2.id = T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", "FROM", "stadium", "AS", "T1", "JOIN", "game", "AS", "T2", "ON", "T1.id", "=", "T2.stadium_id", "JOIN", "injury_accident", "AS", "T3", "ON", "T2.id", "=", "T3.game_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "stadium", "as", "t1", "join", "game", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "stadium_id", "join", "injury_accident", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "game_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the id and name of the stadium where the largest number of injury accidents occurred.", "question_toks": [ "find", "id", "and", "name", "of", "stadium", "where", "largest", "number", "of", "injury", "accident", "occurred", "." ], "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": [], "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 ] ] ] ], "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", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Find", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "largest", "number", "of", "injury", "accidents", "occurred", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "stadium" ], [ "where" ], [ "largest" ], [ "number", "of", "match" ], [ "injury", "accident" ], [ "occurred" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "where", "WRB" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "injury", "JJ" ], [ "accident", "NN" ], [ "occurred", "VBD" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(1) T(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(7) T(1)" }, { "db_id": "game_injury", "query": "SELECT T1.season , T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.injury = 'Foot injury' OR T3.injury = 'Knee problem'", "query_toks": [ "SELECT", "T1.season", ",", "T2.name", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1.id", "=", "T3.game_id", "WHERE", "T3.injury", "=", "'Foot", "injury", "'", "OR", "T3.injury", "=", "'Knee", "problem", "'" ], "query_toks_no_value": [ "select", "t1", ".", "season", ",", "t2", ".", "name", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id", "where", "t3", ".", "injury", "=", "value", "or", "t3", ".", "injury", "=", "value" ], "question": "In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?", "question_toks": [ "in", "which", "season", "and", "which", "stadium", "did", "any", "player", "have", "an", "injury", "of", "'", "foot", "injury", "'", "or", "'", "knee", "problem", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, 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, 9, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Foot injury\"", null ], "or", [ false, 2, [ 0, [ 0, 18, false ], null ], "\"Knee problem\"", null ] ] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "In", "which", "season", "and", "which", "stadium", "did", "any", "player", "have", "an", "injury", "of", "'Foot", "injury", "'", "or", "'Knee", "problem", "'", "?" ], "question_arg": [ [ "in" ], [ "which" ], [ "season" ], [ "and" ], [ "which" ], [ "stadium" ], [ "did" ], [ "any" ], [ "player" ], [ "have" ], [ "an" ], [ "injury" ], [ "of" ], [ "'" ], [ "foot" ], [ "injury" ], [ "'" ], [ "or" ], [ "'" ], [ "knee" ], [ "problem" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "in", "IN" ], [ "which", "WDT" ], [ "season", "NN" ], [ "and", "CC" ], [ "which", "WDT" ], [ "stadium", "NN" ], [ "did", "VBD" ], [ "any", "DT" ], [ "player", "NN" ], [ "have", "VBP" ], [ "an", "DT" ], [ "injury", "NN" ], [ "of", "IN" ], [ "'", "''" ], [ "foot", "JJ" ], [ "injury", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "knee", "NN" ], [ "problem", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Foot injury", "Knee problem", "Ankle problem" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(16) T(2) V(0) Filter(2) A(0) C(16) T(2) V(1)" }, { "db_id": "game_injury", "query": "SELECT count(DISTINCT SOURCE) FROM injury_accident", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "SOURCE", ")", "FROM", "injury_accident" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "source", ")", "from", "injury_accident" ], "question": "How many different kinds of information sources are there for injury accidents?", "question_toks": [ "how", "many", "different", "kind", "of", "information", "source", "are", "there", "for", "injury", "accident", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 20, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "How", "many", "different", "kinds", "of", "information", "sources", "are", "there", "for", "injury", "accidents", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "kind" ], [ "of" ], [ "information" ], [ "source" ], [ "are" ], [ "there" ], [ "for" ], [ "injury", "accident" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "kind", "NN" ], [ "of", "IN" ], [ "information", "NN" ], [ "source", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "for", "IN" ], [ "injury", "NN" ], [ "accident", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(18) T(2)" }, { "db_id": "game_injury", "query": "SELECT count(*) FROM game WHERE id NOT IN ( SELECT game_id FROM injury_accident )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "game", "WHERE", "id", "NOT", "IN", "(", "SELECT", "game_id", "FROM", "injury_accident", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "game", "where", "id", "not", "in", "(", "select", "game_id", "from", "injury_accident", ")" ], "question": "How many games are free of injury accidents?", "question_toks": [ "how", "many", "game", "are", "free", "of", "injury", "accident", "?" ], "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, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "How", "many", "games", "are", "free", "of", "injury", "accidents", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "game" ], [ "are" ], [ "free" ], [ "of" ], [ "injury", "accident" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "game", "NN" ], [ "are", "VBP" ], [ "free", "JJ" ], [ "of", "IN" ], [ "injury", "NN" ], [ "accident", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(19) A(0) C(1) T(1) Root(5) Sel(0) N(0) A(0) C(14) T(2)" }, { "db_id": "game_injury", "query": "SELECT count(DISTINCT T1.injury) FROM injury_accident AS T1 JOIN game AS T2 ON T1.game_id = T2.id WHERE T2.season > 2010", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T1.injury", ")", "FROM", "injury_accident", "AS", "T1", "JOIN", "game", "AS", "T2", "ON", "T1.game_id", "=", "T2.id", "WHERE", "T2.season", ">", "2010" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t1", ".", "injury", ")", "from", "injury_accident", "as", "t1", "join", "game", "as", "t2", "on", "t1", ".", "game_id", "=", "t2", ".", "id", "where", "t2", ".", "season", ">", "value" ], "question": "How many distinct kinds of injuries happened after season 2010?", "question_toks": [ "how", "many", "distinct", "kind", "of", "injury", "happened", "after", "season", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 15, false ], null ], [ 0, 8, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 18, true ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 2010.0, null ] ] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "How", "many", "distinct", "kinds", "of", "injuries", "happened", "after", "season", "2010", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "kind" ], [ "of" ], [ "injury" ], [ "happened" ], [ "after" ], [ "season" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "kind", "NN" ], [ "of", "IN" ], [ "injury", "NN" ], [ "happened", "VBD" ], [ "after", "IN" ], [ "season", "NN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "2010" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(16) T(2) Filter(5) A(0) C(8) T(1) V(0)" }, { "db_id": "game_injury", "query": "SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Walter Samuel' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Thiago Motta'", "query_toks": [ "SELECT", "T2.name", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1.id", "=", "T3.game_id", "WHERE", "T3.player", "=", "'Walter", "Samuel", "'", "INTERSECT", "SELECT", "T2.name", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1.id", "=", "T3.game_id", "WHERE", "T3.player", "=", "'Thiago", "Motta", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id", "where", "t3", ".", "player", "=", "value", "intersect", "select", "t2", ".", "name", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id", "where", "t3", ".", "player", "=", "value" ], "question": "List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured.", "question_toks": [ "list", "name", "of", "stadium", "where", "both", "player", "'", "walter", "samuel", "'", "and", "player", "'", "thiago", "motta", "'", "got", "injured", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, 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", 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, 7, 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, 17, false ], null ], "\"Thiago Motta\"", 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", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Walter Samuel\"", null ] ] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "List", "the", "name", "of", "the", "stadium", "where", "both", "the", "player", "'Walter", "Samuel", "'", "and", "the", "player", "'Thiago", "Motta", "'", "got", "injured", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "stadium" ], [ "where" ], [ "both" ], [ "player" ], [ "'" ], [ "walter" ], [ "samuel" ], [ "'" ], [ "and" ], [ "player" ], [ "'" ], [ "thiago" ], [ "motta" ], [ "'" ], [ "got" ], [ "injured" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "stadium", "NN" ], [ "where", "WRB" ], [ "both", "DT" ], [ "player", "NN" ], [ "'", "POS" ], [ "walter", "NN" ], [ "samuel", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "player", "NN" ], [ "'", "''" ], [ "thiago", "RB" ], [ "motta", "NN" ], [ "'", "''" ], [ "got", "VBD" ], [ "injured", "VBN" ], [ ".", "." ] ], "values": [ "Walter Samuel", "Thiago Motta", "Thiago Motta (2)" ], "rule_label": "Root1(0) 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(7) T(1) Filter(2) A(0) C(15) T(2) V(0) 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(7) T(1) Filter(2) A(0) C(15) T(2) V(1)" }, { "db_id": "game_injury", "query": "SELECT name , average_attendance , total_attendance FROM stadium EXCEPT SELECT T2.name , T2.average_attendance , T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id", "query_toks": [ "SELECT", "name", ",", "average_attendance", ",", "total_attendance", "FROM", "stadium", "EXCEPT", "SELECT", "T2.name", ",", "T2.average_attendance", ",", "T2.total_attendance", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1.id", "=", "T3.game_id" ], "query_toks_no_value": [ "select", "name", ",", "average_attendance", ",", "total_attendance", "from", "stadium", "except", "select", "t2", ".", "name", ",", "t2", ".", "average_attendance", ",", "t2", ".", "total_attendance", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id" ], "question": "Show the name, average attendance, total attendance for stadiums where no accidents happened.", "question_toks": [ "show", "name", ",", "average", "attendance", ",", "total", "attendance", "for", "stadium", "where", "no", "accident", "happened", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, 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 ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, 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 ] ] }, "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, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Show", "the", "name", ",", "average", "attendance", ",", "total", "attendance", "for", "stadiums", "where", "no", "accidents", "happened", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "average", "attendance" ], [ "," ], [ "total", "attendance" ], [ "for" ], [ "stadium" ], [ "where" ], [ "no" ], [ "accident" ], [ "happened" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "average", "JJ" ], [ "attendance", "NN" ], [ ",", "," ], [ "total", "JJ" ], [ "attendance", "NN" ], [ "for", "IN" ], [ "stadium", "NN" ], [ "where", "WRB" ], [ "no", "DT" ], [ "accident", "NN" ], [ "happened", "VBD" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(2) A(0) C(2) T(0) A(0) C(4) T(0) A(0) C(5) T(0) Root(3) Sel(0) N(2) A(0) C(2) T(0) A(0) C(4) T(0) A(0) C(5) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(1)" }, { "db_id": "game_injury", "query": "SELECT name FROM stadium WHERE name LIKE \"%Bank%\"", "query_toks": [ "SELECT", "name", "FROM", "stadium", "WHERE", "name", "LIKE", "``", "%", "Bank", "%", "''" ], "query_toks_no_value": [ "select", "name", "from", "stadium", "where", "name", "like", "value" ], "question": "Which stadium name contains the substring \"Bank\"?", "question_toks": [ "which", "stadium", "name", "contains", "substring", "'", "bank", "'", "?" ], "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, 9, [ 0, [ 0, 2, false ], null ], "\"%Bank%\"", null ] ] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "Which", "stadium", "name", "contains", "the", "substring", "``", "Bank", "''", "?" ], "question_arg": [ [ "which" ], [ "stadium" ], [ "name" ], [ "contains" ], [ "substring" ], [ "'" ], [ "bank" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "stadium", "NN" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "substring", "VBG" ], [ "'", "''" ], [ "bank", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Bank" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "game_injury", "query": "SELECT T1.id , count(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id", "query_toks": [ "SELECT", "T1.id", ",", "count", "(", "*", ")", "FROM", "stadium", "AS", "T1", "JOIN", "game", "AS", "T2", "ON", "T1.id", "=", "T2.stadium_id", "GROUP", "BY", "T1.id" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "count", "(", "*", ")", "from", "stadium", "as", "t1", "join", "game", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "stadium_id", "group", "by", "t1", ".", "id" ], "question": "How many games has each stadium held?", "question_toks": [ "how", "many", "game", "ha", "each", "stadium", "held", "?" ], "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": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "How", "many", "games", "has", "each", "stadium", "held", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "game" ], [ "ha" ], [ "each" ], [ "stadium" ], [ "held" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "game", "NN" ], [ "ha", "JJ" ], [ "each", "DT" ], [ "stadium", "NN" ], [ "held", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(1) T(0) A(3) C(0) T(1)" }, { "db_id": "game_injury", "query": "SELECT T1.date , T2.player FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id ORDER BY T1.season DESC", "query_toks": [ "SELECT", "T1.date", ",", "T2.player", "FROM", "game", "AS", "T1", "JOIN", "injury_accident", "AS", "T2", "ON", "T1.id", "=", "T2.game_id", "ORDER", "BY", "T1.season", "DESC" ], "query_toks_no_value": [ "select", "t1", ".", "date", ",", "t2", ".", "player", "from", "game", "as", "t1", "join", "injury_accident", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "game_id", "order", "by", "t1", ".", "season", "desc" ], "question": "For each injury accident, find the date of the game and the name of the injured player in the game, and sort the results in descending order of game season.", "question_toks": [ "for", "each", "injury", "accident", ",", "find", "date", "of", "game", "and", "name", "of", "injured", "player", "in", "game", ",", "and", "sort", "result", "in", "descending", "order", "of", "game", "season", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "id", "season", "date", "home team", "away team", "score", "competition", "game id", "id", "player", "injury", "number of matches", "source" ], "table_names": [ "stadium", "game", "injury accident" ], "col_set": [ "*", "id", "name", "home games", "average attendance", "total attendance", "capacity percentage", "stadium id", "season", "date", "home team", "away team", "score", "competition", "game id", "player", "injury", "number of matches", "source" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2 ], "keys": { "7": 1, "1": 1, "15": 8, "8": 8, "16": 16 }, "origin_question_toks": [ "For", "each", "injury", "accident", ",", "find", "the", "date", "of", "the", "game", "and", "the", "name", "of", "the", "injured", "player", "in", "the", "game", ",", "and", "sort", "the", "results", "in", "descending", "order", "of", "game", "season", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "injury", "accident" ], [ "," ], [ "find" ], [ "date" ], [ "of" ], [ "game" ], [ "and" ], [ "name" ], [ "of" ], [ "injured" ], [ "player" ], [ "in" ], [ "game" ], [ "," ], [ "and" ], [ "sort" ], [ "result" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "game" ], [ "season" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "injury", "NN" ], [ "accident", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "date", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "injured", "JJ" ], [ "player", "NN" ], [ "in", "IN" ], [ "game", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "NN" ], [ "result", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "game", "NN" ], [ "season", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(9) T(1) A(0) C(15) T(2) Order(0) A(0) C(8) T(1)" }, { "db_id": "soccer_1", "query": "SELECT T1.name , T2.name FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id", "query_toks": [ "SELECT", "T1.name", ",", "T2.name", "FROM", "Country", "AS", "T1", "JOIN", "League", "AS", "T2", "ON", "T1.id", "=", "T2.country_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "name", "from", "country", "as", "t1", "join", "league", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "country_id" ], "question": "List all country and league names.", "question_toks": [ "list", "all", "country", "and", "league", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 55, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 56, false ], null ] ], [ 0, [ 0, [ 0, 54, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "List", "all", "country", "and", "league", "names", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "country" ], [ "and" ], [ "league" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "country", "NN" ], [ "and", "CC" ], [ "league", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Country", "League" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(43) T(4) A(0) C(43) T(3)" }, { "db_id": "soccer_1", "query": "SELECT count(*) FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id WHERE T1.name = \"England\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Country", "AS", "T1", "JOIN", "League", "AS", "T2", "ON", "T1.id", "=", "T2.country_id", "WHERE", "T1.name", "=", "``", "England", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "country", "as", "t1", "join", "league", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "country_id", "where", "t1", ".", "name", "=", "value" ], "question": "How many leagues are there in England?", "question_toks": [ "how", "many", "league", "are", "there", "in", "england", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 55, false ], null ], [ 0, 53, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "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, 56, false ], null ], "\"England\"", null ] ] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "How", "many", "leagues", "are", "there", "in", "England", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "league" ], [ "are" ], [ "there" ], [ "in" ], [ "england" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "league", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "england", "NN" ], [ "?", "." ] ], "values": [ "England", "League" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(3) Filter(2) A(0) C(43) T(4) V(0)" }, { "db_id": "soccer_1", "query": "SELECT avg(weight) FROM Player", "query_toks": [ "SELECT", "avg", "(", "weight", ")", "FROM", "Player" ], "query_toks_no_value": [ "select", "avg", "(", "weight", ")", "from", "player" ], "question": "What is the average weight of all players?", "question_toks": [ "what", "is", "average", "weight", "of", "all", "player", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 51, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "What", "is", "the", "average", "weight", "of", "all", "players", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "weight" ], [ "of" ], [ "all" ], [ "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "weight", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ "?", "." ] ], "values": [ "Player" ], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(48) T(2)" }, { "db_id": "soccer_1", "query": "SELECT max(weight) , min(weight) FROM Player", "query_toks": [ "SELECT", "max", "(", "weight", ")", ",", "min", "(", "weight", ")", "FROM", "Player" ], "query_toks_no_value": [ "select", "max", "(", "weight", ")", ",", "min", "(", "weight", ")", "from", "player" ], "question": "What is the maximum and minimum height of all players?", "question_toks": [ "what", "is", "maximum", "and", "minimum", "height", "of", "all", "player", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 51, false ], null ] ], [ 2, [ 0, [ 0, 51, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "What", "is", "the", "maximum", "and", "minimum", "height", "of", "all", "players", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "and" ], [ "minimum" ], [ "height" ], [ "of" ], [ "all" ], [ "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "height", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ "?", "." ] ], "values": [ "Player" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(1) C(48) T(2) A(2) C(48) T(2)" }, { "db_id": "soccer_1", "query": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating > ( SELECT avg(overall_rating) FROM Player_Attributes )", "query_toks": [ "SELECT", "DISTINCT", "T1.player_name", "FROM", "Player", "AS", "T1", "JOIN", "Player_Attributes", "AS", "T2", "ON", "T1.player_api_id", "=", "T2.player_api_id", "WHERE", "T2.overall_rating", ">", "(", "SELECT", "avg", "(", "overall_rating", ")", "FROM", "Player_Attributes", ")" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "player_name", "from", "player", "as", "t1", "join", "player_attributes", "as", "t2", "on", "t1", ".", "player_api_id", "=", "t2", ".", "player_api_id", "where", "t2", ".", "overall_rating", ">", "(", "select", "avg", "(", "overall_rating", ")", "from", "player_attributes", ")" ], "question": "List all player names who have an overall rating higher than the average.", "question_toks": [ "list", "all", "player", "name", "who", "have", "an", "overall", "rating", "higher", "than", "average", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 47, 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", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "List", "all", "player", "names", "who", "have", "an", "overall", "rating", "higher", "than", "the", "average", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "player", "name" ], [ "who" ], [ "have" ], [ "an" ], [ "overall", "rating" ], [ "higher" ], [ "than" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "player", "NN" ], [ "name", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "an", "DT" ], [ "overall", "JJ" ], [ "rating", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [ "Player" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(45) T(2) Filter(13) A(0) C(5) T(0) Root(5) Sel(0) N(0) A(5) C(5) T(0)" }, { "db_id": "soccer_1", "query": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.dribbling = ( SELECT max(overall_rating) FROM Player_Attributes)", "query_toks": [ "SELECT", "DISTINCT", "T1.player_name", "FROM", "Player", "AS", "T1", "JOIN", "Player_Attributes", "AS", "T2", "ON", "T1.player_api_id", "=", "T2.player_api_id", "WHERE", "T2.dribbling", "=", "(", "SELECT", "max", "(", "overall_rating", ")", "FROM", "Player_Attributes", ")" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "player_name", "from", "player", "as", "t1", "join", "player_attributes", "as", "t2", "on", "t1", ".", "player_api_id", "=", "t2", ".", "player_api_id", "where", "t2", ".", "dribbling", "=", "(", "select", "max", "(", "overall_rating", ")", "from", "player_attributes", ")" ], "question": "What are the names of players who have the best dribbling?", "question_toks": [ "what", "are", "name", "of", "player", "who", "have", "best", "dribbling", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 15, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "players", "who", "have", "the", "best", "dribbling", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "player" ], [ "who" ], [ "have" ], [ "best" ], [ "dribbling" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "best", "JJS" ], [ "dribbling", "NN" ], [ "?", "." ] ], "values": [ "Player" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(45) T(2) Filter(11) A(0) C(15) T(0) Root(5) Sel(0) N(0) A(1) C(5) T(0)" }, { "db_id": "soccer_1", "query": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = \"right\"", "query_toks": [ "SELECT", "DISTINCT", "T1.player_name", "FROM", "Player", "AS", "T1", "JOIN", "Player_Attributes", "AS", "T2", "ON", "T1.player_api_id", "=", "T2.player_api_id", "WHERE", "T2.crossing", ">", "90", "AND", "T2.preferred_foot", "=", "``", "right", "''" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "player_name", "from", "player", "as", "t1", "join", "player_attributes", "as", "t2", "on", "t1", ".", "player_api_id", "=", "t2", ".", "player_api_id", "where", "t2", ".", "crossing", ">", "value", "and", "t2", ".", "preferred_foot", "=", "value" ], "question": "List the names of all players who have a crossing score higher than 90 and prefer their right foot.", "question_toks": [ "list", "name", "of", "all", "player", "who", "have", "a", "crossing", "score", "higher", "than", "90", "and", "prefer", "their", "right", "foot", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], 90.0, null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"right\"", null ] ] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "players", "who", "have", "a", "crossing", "score", "higher", "than", "90", "and", "prefer", "their", "right", "foot", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "player" ], [ "who" ], [ "have" ], [ "a" ], [ "crossing" ], [ "score" ], [ "higher" ], [ "than" ], [ "90" ], [ "and" ], [ "prefer" ], [ "their" ], [ "right" ], [ "foot" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "crossing", "NN" ], [ "score", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "90", "CD" ], [ "and", "CC" ], [ "prefer", "VBP" ], [ "their", "PRP$" ], [ "right", "JJ" ], [ "foot", "NN" ], [ ".", "." ] ], "values": [ "90", "Player", "right" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(45) T(2) Filter(0) Filter(5) A(0) C(10) T(0) V(0) Filter(2) A(0) C(7) T(0) V(2)" }, { "db_id": "soccer_1", "query": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = \"left\" AND T2.overall_rating >= 85 AND T2.overall_rating <= 90", "query_toks": [ "SELECT", "DISTINCT", "T1.player_name", "FROM", "Player", "AS", "T1", "JOIN", "Player_Attributes", "AS", "T2", "ON", "T1.player_api_id", "=", "T2.player_api_id", "WHERE", "T2.preferred_foot", "=", "``", "left", "''", "AND", "T2.overall_rating", ">", "=", "85", "AND", "T2.overall_rating", "<", "=", "90" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "player_name", "from", "player", "as", "t1", "join", "player_attributes", "as", "t2", "on", "t1", ".", "player_api_id", "=", "t2", ".", "player_api_id", "where", "t2", ".", "preferred_foot", "=", "value", "and", "t2", ".", "overall_rating", ">", "=", "value", "and", "t2", ".", "overall_rating", "<", "=", "value" ], "question": "List the names of all left-footed players who have overall rating between 85 and 90.", "question_toks": [ "list", "name", "of", "all", "left-footed", "player", "who", "have", "overall", "rating", "between", "85", "and", "90", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"left\"", null ], "and", [ false, 5, [ 0, [ 0, 5, false ], null ], 85.0, null ], "and", [ false, 6, [ 0, [ 0, 5, false ], null ], 90.0, null ] ] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "left-footed", "players", "who", "have", "overall", "rating", "between", "85", "and", "90", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "left-footed" ], [ "player" ], [ "who" ], [ "have" ], [ "overall", "rating" ], [ "between" ], [ "85" ], [ "and" ], [ "90" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "left-footed", "JJ" ], [ "player", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "overall", "JJ" ], [ "rating", "NN" ], [ "between", "IN" ], [ "85", "CD" ], [ "and", "CC" ], [ "90", "CD" ], [ ".", "." ] ], "values": [ "Player", "90", "85", "left" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(45) T(2) Filter(0) Filter(2) A(0) C(7) T(0) V(3) Filter(0) Filter(7) A(0) C(5) T(0) V(2) Filter(6) A(0) C(5) T(0) V(1)" }, { "db_id": "soccer_1", "query": "SELECT preferred_foot , avg(overall_rating) FROM Player_Attributes GROUP BY preferred_foot", "query_toks": [ "SELECT", "preferred_foot", ",", "avg", "(", "overall_rating", ")", "FROM", "Player_Attributes", "GROUP", "BY", "preferred_foot" ], "query_toks_no_value": [ "select", "preferred_foot", ",", "avg", "(", "overall_rating", ")", "from", "player_attributes", "group", "by", "preferred_foot" ], "question": "What is the average rating for right-footed players and left-footed players?", "question_toks": [ "what", "is", "average", "rating", "for", "right-footed", "player", "and", "left-footed", "player", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "What", "is", "the", "average", "rating", "for", "right-footed", "players", "and", "left-footed", "players", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "rating" ], [ "for" ], [ "right-footed" ], [ "player" ], [ "and" ], [ "left-footed" ], [ "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "for", "IN" ], [ "right-footed", "JJ" ], [ "player", "NN" ], [ "and", "CC" ], [ "left-footed", "JJ" ], [ "player", "NN" ], [ "?", "." ] ], "values": [ "Player" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(0) A(5) C(5) T(0)" }, { "db_id": "soccer_1", "query": "SELECT preferred_foot , count(*) FROM Player_Attributes WHERE overall_rating > 80 GROUP BY preferred_foot", "query_toks": [ "SELECT", "preferred_foot", ",", "count", "(", "*", ")", "FROM", "Player_Attributes", "WHERE", "overall_rating", ">", "80", "GROUP", "BY", "preferred_foot" ], "query_toks_no_value": [ "select", "preferred_foot", ",", "count", "(", "*", ")", "from", "player_attributes", "where", "overall_rating", ">", "value", "group", "by", "preferred_foot" ], "question": "Of all players with an overall rating greater than 80, how many are right-footed and left-footed?", "question_toks": [ "of", "all", "player", "with", "an", "overall", "rating", "greater", "than", "80", ",", "how", "many", "are", "right-footed", "and", "left-footed", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 80.0, null ] ] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "Of", "all", "players", "with", "an", "overall", "rating", "greater", "than", "80", ",", "how", "many", "are", "right-footed", "and", "left-footed", "?" ], "question_arg": [ [ "of" ], [ "all" ], [ "player" ], [ "with" ], [ "an" ], [ "overall", "rating" ], [ "greater" ], [ "than" ], [ "80" ], [ "," ], [ "how" ], [ "many" ], [ "are" ], [ "right-footed" ], [ "and" ], [ "left-footed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "of", "IN" ], [ "all", "DT" ], [ "player", "NN" ], [ "with", "IN" ], [ "an", "DT" ], [ "overall", "JJ" ], [ "rating", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "80", "CD" ], [ ",", "," ], [ "how", "WRB" ], [ "many", "JJ" ], [ "are", "VBP" ], [ "right-footed", "JJ" ], [ "and", "CC" ], [ "left-footed", "JJ" ], [ "?", "." ] ], "values": [ "Manu", "80", "Mano", "Player", "Mane" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(0) A(3) C(0) T(0) Filter(5) A(0) C(5) T(0) V(1)" }, { "db_id": "soccer_1", "query": "SELECT player_api_id FROM Player WHERE height >= 180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating > 85", "query_toks": [ "SELECT", "player_api_id", "FROM", "Player", "WHERE", "height", ">", "=", "180", "INTERSECT", "SELECT", "player_api_id", "FROM", "Player_Attributes", "WHERE", "overall_rating", ">", "85" ], "query_toks_no_value": [ "select", "player_api_id", "from", "player", "where", "height", ">", "=", "value", "intersect", "select", "player_api_id", "from", "player_attributes", "where", "overall_rating", ">", "value" ], "question": "List all of the player ids with a height of at least 180cm and an overall rating higher than 85.", "question_toks": [ "list", "all", "of", "player", "id", "with", "a", "height", "of", "at", "least", "180cm", "and", "an", "overall", "rating", "higher", "than", "85", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "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, 3, [ 0, [ 0, 5, false ], null ], 85.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 50, false ], null ], 180.0, null ] ] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "List", "all", "of", "the", "player", "ids", "with", "a", "height", "of", "at", "least", "180cm", "and", "an", "overall", "rating", "higher", "than", "85", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "of" ], [ "player" ], [ "id" ], [ "with" ], [ "a" ], [ "height" ], [ "of" ], [ "at" ], [ "least" ], [ "180cm" ], [ "and" ], [ "an" ], [ "overall", "rating" ], [ "higher" ], [ "than" ], [ "85" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "of", "IN" ], [ "player", "NN" ], [ "id", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "height", "NN" ], [ "of", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "180cm", "CD" ], [ "and", "CC" ], [ "an", "DT" ], [ "overall", "JJ" ], [ "rating", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "85", "CD" ], [ ".", "." ] ], "values": [ "Player", "85", "180" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) T(2) Filter(7) A(0) C(47) T(2) V(2) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(0) C(5) T(0) V(1)" }, { "db_id": "soccer_1", "query": "SELECT player_api_id FROM Player WHERE height >= 180 AND height <= 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = \"left\"", "query_toks": [ "SELECT", "player_api_id", "FROM", "Player", "WHERE", "height", ">", "=", "180", "AND", "height", "<", "=", "190", "INTERSECT", "SELECT", "player_api_id", "FROM", "Player_Attributes", "WHERE", "preferred_foot", "=", "``", "left", "''" ], "query_toks_no_value": [ "select", "player_api_id", "from", "player", "where", "height", ">", "=", "value", "and", "height", "<", "=", "value", "intersect", "select", "player_api_id", "from", "player_attributes", "where", "preferred_foot", "=", "value" ], "question": "List all of the ids for left-footed players with a height between 180cm and 190cm.", "question_toks": [ "list", "all", "of", "id", "for", "left-footed", "player", "with", "a", "height", "between", "180cm", "and", "190cm", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "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, 7, false ], null ], "\"left\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 5, [ 0, [ 0, 50, false ], null ], 180.0, null ], "and", [ false, 6, [ 0, [ 0, 50, false ], null ], 190.0, null ] ] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "List", "all", "of", "the", "ids", "for", "left-footed", "players", "with", "a", "height", "between", "180cm", "and", "190cm", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "of" ], [ "id" ], [ "for" ], [ "left-footed" ], [ "player" ], [ "with" ], [ "a" ], [ "height" ], [ "between" ], [ "180cm" ], [ "and" ], [ "190cm" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "of", "IN" ], [ "id", "NN" ], [ "for", "IN" ], [ "left-footed", "JJ" ], [ "player", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "height", "NN" ], [ "between", "IN" ], [ "180cm", "CD" ], [ "and", "CC" ], [ "190cm", "CD" ], [ ".", "." ] ], "values": [ "180", "Player", "190", "left" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) T(2) Filter(0) Filter(7) A(0) C(47) T(2) V(0) Filter(6) A(0) C(47) T(2) V(2) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(2) A(0) C(7) T(0) V(3)" }, { "db_id": "soccer_1", "query": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY overall_rating DESC LIMIT 3", "query_toks": [ "SELECT", "DISTINCT", "T1.player_name", "FROM", "Player", "AS", "T1", "JOIN", "Player_Attributes", "AS", "T2", "ON", "T1.player_api_id", "=", "T2.player_api_id", "ORDER", "BY", "overall_rating", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "player_name", "from", "player", "as", "t1", "join", "player_attributes", "as", "t2", "on", "t1", ".", "player_api_id", "=", "t2", ".", "player_api_id", "order", "by", "overall_rating", "desc", "limit", "value" ], "question": "Who are the top 3 players in terms of overall rating?", "question_toks": [ "who", "are", "top", "3", "player", "in", "term", "of", "overall", "rating", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 5, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 47, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "Who", "are", "the", "top", "3", "players", "in", "terms", "of", "overall", "rating", "?" ], "question_arg": [ [ "who" ], [ "are" ], [ "top" ], [ "3" ], [ "player" ], [ "in" ], [ "term" ], [ "of" ], [ "overall", "rating" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "are", "VBP" ], [ "top", "JJ" ], [ "3", "CD" ], [ "player", "NN" ], [ "in", "IN" ], [ "term", "NN" ], [ "of", "IN" ], [ "overall", "JJ" ], [ "rating", "NN" ], [ "?", "." ] ], "values": [ "Player", "3" ], "rule_label": "Root1(3) Root(2) Sel(1) N(0) A(0) C(45) T(2) Sup(0) A(0) C(5) T(0)" }, { "db_id": "soccer_1", "query": "SELECT DISTINCT T1.player_name , T1.birthday FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY potential DESC LIMIT 5", "query_toks": [ "SELECT", "DISTINCT", "T1.player_name", ",", "T1.birthday", "FROM", "Player", "AS", "T1", "JOIN", "Player_Attributes", "AS", "T2", "ON", "T1.player_api_id", "=", "T2.player_api_id", "ORDER", "BY", "potential", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "player_name", ",", "t1", ".", "birthday", "from", "player", "as", "t1", "join", "player_attributes", "as", "t2", "on", "t1", ".", "player_api_id", "=", "t2", ".", "player_api_id", "order", "by", "potential", "desc", "limit", "value" ], "question": "List the names and birthdays of the top five players in terms of potential.", "question_toks": [ "list", "name", "and", "birthday", "of", "top", "five", "player", "in", "term", "of", "potential", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 47, false ], null ] ], [ 0, [ 0, [ 0, 49, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "id", "player api id", "player name", "player fifa api id", "birthday", "height", "weight", "id", "country id", "name", "id", "name", "id", "team api id", "team fifa api id", "team long name", "team short name", "id", "team fifa api id", "team api id", "date", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "table_names": [ "player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes" ], "col_set": [ "*", "id", "player fifa api id", "player api id", "date", "overall rating", "potential", "preferred foot", "attacking work rate", "defensive work rate", "crossing", "finishing", "heading accuracy", "short passing", "volleys", "dribbling", "curve", "free kick accuracy", "long passing", "ball control", "acceleration", "sprint speed", "agility", "reactions", "balance", "shot power", "jumping", "stamina", "strength", "long shots", "aggression", "interceptions", "positioning", "vision", "penalties", "marking", "standing tackle", "sliding tackle", "gk diving", "gk handling", "gk kicking", "gk positioning", "gk reflexes", "name", "seq", "player name", "birthday", "height", "weight", "country id", "team api id", "team fifa api id", "team long name", "team short name", "buildup play speed", "buildup play speed class", "buildup play dribbling", "buildup play dribbling class", "buildup play passing", "buildup play passing class", "buildup play positioning class", "chance creation passing", "chance creation passing class", "chance creation crossing", "chance creation crossing class", "chance creation shooting", "chance creation shooting class", "chance creation positioning class", "defence pressure", "defence pressure class", "defence aggression", "defence aggression class", "defence team width", "defence team width class", "defence defender line class" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 ], "keys": { "3": 46, "46": 3, "2": 48, "48": 2, "53": 55, "55": 55, "64": 58, "58": 64, "63": 59, "59": 63, "1": 1, "45": 45, "52": 52, "57": 57, "62": 62 }, "origin_question_toks": [ "List", "the", "names", "and", "birthdays", "of", "the", "top", "five", "players", "in", "terms", "of", "potential", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "birthday" ], [ "of" ], [ "top" ], [ "five" ], [ "player" ], [ "in" ], [ "term" ], [ "of" ], [ "potential" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "birthday", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "five", "CD" ], [ "player", "NN" ], [ "in", "IN" ], [ "term", "NN" ], [ "of", "IN" ], [ "potential", "JJ" ], [ ".", "." ] ], "values": [ "Player", "5" ], "rule_label": "Root1(3) Root(2) Sel(1) N(1) A(0) C(45) T(2) A(0) C(46) T(2) Sup(0) A(0) C(6) T(0)" }, { "db_id": "performance_attendance", "query": "SELECT count(*) FROM performance", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "performance" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "performance" ], "question": "How many performances are there?", "question_toks": [ "how", "many", "performance", "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": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "How", "many", "performances", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "performance" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "performance", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "performance_attendance", "query": "SELECT HOST FROM performance ORDER BY Attendance ASC", "query_toks": [ "SELECT", "HOST", "FROM", "performance", "ORDER", "BY", "Attendance", "ASC" ], "query_toks_no_value": [ "select", "host", "from", "performance", "order", "by", "attendance", "asc" ], "question": "List the hosts of performances in ascending order of attendance.", "question_toks": [ "list", "host", "of", "performance", "in", "ascending", "order", "of", "attendance", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "List", "the", "hosts", "of", "performances", "in", "ascending", "order", "of", "attendance", "." ], "question_arg": [ [ "list" ], [ "host" ], [ "of" ], [ "performance" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "attendance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "host", "NN" ], [ "of", "IN" ], [ "performance", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "attendance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(1) Order(1) A(0) C(9) T(1)" }, { "db_id": "performance_attendance", "query": "SELECT Date , LOCATION FROM performance", "query_toks": [ "SELECT", "Date", ",", "LOCATION", "FROM", "performance" ], "query_toks_no_value": [ "select", "date", ",", "location", "from", "performance" ], "question": "What are the dates and locations of performances?", "question_toks": [ "what", "are", "date", "and", "location", "of", "performance", "?" ], "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, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "dates", "and", "locations", "of", "performances", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date" ], [ "and" ], [ "location" ], [ "of" ], [ "performance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "performance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(1) A(0) C(8) T(1)" }, { "db_id": "performance_attendance", "query": "SELECT Attendance FROM performance WHERE LOCATION = \"TD Garden\" OR LOCATION = \"Bell Centre\"", "query_toks": [ "SELECT", "Attendance", "FROM", "performance", "WHERE", "LOCATION", "=", "``", "TD", "Garden", "''", "OR", "LOCATION", "=", "``", "Bell", "Centre", "''" ], "query_toks_no_value": [ "select", "attendance", "from", "performance", "where", "location", "=", "value", "or", "location", "=", "value" ], "question": "Show the attendances of the performances at location \"TD Garden\" or \"Bell Centre\"", "question_toks": [ "show", "attendance", "of", "performance", "at", "location", "'", "td", "garden", "'", "or", "'", "bell", "centre", "'" ], "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, 2, [ 0, [ 0, 8, false ], null ], "\"TD Garden\"", null ], "or", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Bell Centre\"", null ] ] }, "names": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "attendances", "of", "the", "performances", "at", "location", "``", "TD", "Garden", "''", "or", "``", "Bell", "Centre", "''" ], "question_arg": [ [ "show" ], [ "attendance" ], [ "of" ], [ "performance" ], [ "at" ], [ "location" ], [ "'" ], [ "td" ], [ "garden" ], [ "'" ], [ "or" ], [ "'" ], [ "bell" ], [ "centre" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "attendance", "NN" ], [ "of", "IN" ], [ "performance", "NN" ], [ "at", "IN" ], [ "location", "NN" ], [ "'", "POS" ], [ "td", "JJ" ], [ "garden", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "bell", "NN" ], [ "centre", "NNS" ], [ "'", "POS" ] ], "values": [ "TD Garden", "Bell Centre" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(1) Filter(1) Filter(2) A(0) C(8) T(1) V(0) Filter(2) A(0) C(8) T(1) V(1)" }, { "db_id": "performance_attendance", "query": "SELECT avg(Attendance) FROM performance", "query_toks": [ "SELECT", "avg", "(", "Attendance", ")", "FROM", "performance" ], "query_toks_no_value": [ "select", "avg", "(", "attendance", ")", "from", "performance" ], "question": "What is the average number of attendees for performances?", "question_toks": [ "what", "is", "average", "number", "of", "attendee", "for", "performance", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "average", "number", "of", "attendees", "for", "performances", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "number" ], [ "of" ], [ "attendee" ], [ "for" ], [ "performance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "attendee", "NN" ], [ "for", "IN" ], [ "performance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(9) T(1)" }, { "db_id": "performance_attendance", "query": "SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1", "query_toks": [ "SELECT", "Date", "FROM", "performance", "ORDER", "BY", "Attendance", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "date", "from", "performance", "order", "by", "attendance", "desc", "limit", "value" ], "question": "What is the date of the performance with the highest number of attendees?", "question_toks": [ "what", "is", "date", "of", "performance", "with", "highest", "number", "of", "attendee", "?" ], "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, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "date", "of", "the", "performance", "with", "the", "highest", "number", "of", "attendees", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "date" ], [ "of" ], [ "performance" ], [ "with" ], [ "highest" ], [ "number" ], [ "of" ], [ "attendee" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "date", "NN" ], [ "of", "IN" ], [ "performance", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "attendee", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(1) Sup(0) A(0) C(9) T(1)" }, { "db_id": "performance_attendance", "query": "SELECT LOCATION , COUNT(*) FROM performance GROUP BY LOCATION", "query_toks": [ "SELECT", "LOCATION", ",", "COUNT", "(", "*", ")", "FROM", "performance", "GROUP", "BY", "LOCATION" ], "query_toks_no_value": [ "select", "location", ",", "count", "(", "*", ")", "from", "performance", "group", "by", "location" ], "question": "Show different locations and the number of performances at each location.", "question_toks": [ "show", "different", "location", "and", "number", "of", "performance", "at", "each", "location", "." ], "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": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "different", "locations", "and", "the", "number", "of", "performances", "at", "each", "location", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "location" ], [ "and" ], [ "number" ], [ "of" ], [ "performance" ], [ "at" ], [ "each" ], [ "location" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "different", "JJ" ], [ "location", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "performance", "NN" ], [ "at", "IN" ], [ "each", "DT" ], [ "location", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(1) A(3) C(0) T(1)" }, { "db_id": "performance_attendance", "query": "SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "LOCATION", "FROM", "performance", "GROUP", "BY", "LOCATION", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "location", "from", "performance", "group", "by", "location", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the most common location of performances.", "question_toks": [ "show", "most", "common", "location", "of", "performance", "." ], "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": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "most", "common", "location", "of", "performances", "." ], "question_arg": [ [ "show" ], [ "most" ], [ "common" ], [ "location" ], [ "of" ], [ "performance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "location", "NN" ], [ "of", "IN" ], [ "performance", "NN" ], [ ".", "." ] ], "values": [], "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": "performance_attendance", "query": "SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "LOCATION", "FROM", "performance", "GROUP", "BY", "LOCATION", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "location", "from", "performance", "group", "by", "location", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the locations that have at least two performances.", "question_toks": [ "show", "location", "that", "have", "at", "least", "two", "performance", "." ], "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": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "locations", "that", "have", "at", "least", "two", "performances", "." ], "question_arg": [ [ "show" ], [ "location" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "performance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "performance", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "performance_attendance", "query": "SELECT LOCATION FROM performance WHERE Attendance > 2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance < 1000", "query_toks": [ "SELECT", "LOCATION", "FROM", "performance", "WHERE", "Attendance", ">", "2000", "INTERSECT", "SELECT", "LOCATION", "FROM", "performance", "WHERE", "Attendance", "<", "1000" ], "query_toks_no_value": [ "select", "location", "from", "performance", "where", "attendance", ">", "value", "intersect", "select", "location", "from", "performance", "where", "attendance", "<", "value" ], "question": "Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees.", "question_toks": [ "show", "location", "that", "have", "both", "performance", "with", "more", "than", "year", "attendee", "and", "performance", "with", "le", "than", "1000", "attendee", "." ], "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, 4, [ 0, [ 0, 9, false ], null ], 1000.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 9, false ], null ], 2000.0, null ] ] }, "names": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "locations", "that", "have", "both", "performances", "with", "more", "than", "2000", "attendees", "and", "performances", "with", "less", "than", "1000", "attendees", "." ], "question_arg": [ [ "show" ], [ "location" ], [ "that" ], [ "have" ], [ "both" ], [ "performance" ], [ "with" ], [ "more" ], [ "than" ], [ "year" ], [ "attendee" ], [ "and" ], [ "performance" ], [ "with" ], [ "le" ], [ "than" ], [ "1000" ], [ "attendee" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "location", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "performance", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2000", "CD" ], [ "attendee", "NN" ], [ "and", "CC" ], [ "performance", "NN" ], [ "with", "IN" ], [ "le", "NN" ], [ "than", "IN" ], [ "1000", "CD" ], [ "attendee", "NN" ], [ ".", "." ] ], "values": [ "2000", "1000" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(0) C(9) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(4) A(0) C(9) T(1) V(1)" }, { "db_id": "performance_attendance", "query": "SELECT T2.Name , T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID", "query_toks": [ "SELECT", "T2.Name", ",", "T3.Location", "FROM", "member_attendance", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.Member_ID", "=", "T2.Member_ID", "JOIN", "performance", "AS", "T3", "ON", "T1.Performance_ID", "=", "T3.Performance_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t3", ".", "location", "from", "member_attendance", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id", "join", "performance", "as", "t3", "on", "t1", ".", "performance_id", "=", "t3", ".", "performance_id" ], "question": "Show the names of members and the location of the performances they attended.", "question_toks": [ "show", "name", "of", "member", "and", "location", "of", "performance", "they", "attended", "." ], "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, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 8, 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": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "members", "and", "the", "location", "of", "the", "performances", "they", "attended", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "member" ], [ "and" ], [ "location" ], [ "of" ], [ "performance" ], [ "they" ], [ "attended" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "performance", "NN" ], [ "they", "PRP" ], [ "attended", "VBD" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(8) T(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2)" }, { "db_id": "performance_attendance", "query": "SELECT T2.Name , T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T2.Name ASC", "query_toks": [ "SELECT", "T2.Name", ",", "T3.Location", "FROM", "member_attendance", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.Member_ID", "=", "T2.Member_ID", "JOIN", "performance", "AS", "T3", "ON", "T1.Performance_ID", "=", "T3.Performance_ID", "ORDER", "BY", "T2.Name", "ASC" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t3", ".", "location", "from", "member_attendance", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id", "join", "performance", "as", "t3", "on", "t1", ".", "performance_id", "=", "t3", ".", "performance_id", "order", "by", "t2", ".", "name", "asc" ], "question": "Show the names of members and the location of performances they attended in ascending alphabetical order of their names.", "question_toks": [ "show", "name", "of", "member", "and", "location", "of", "performance", "they", "attended", "in", "ascending", "alphabetical", "order", "of", "their", "name", "." ], "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": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 8, 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": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "members", "and", "the", "location", "of", "performances", "they", "attended", "in", "ascending", "alphabetical", "order", "of", "their", "names", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "member" ], [ "and" ], [ "location" ], [ "of" ], [ "performance" ], [ "they" ], [ "attended" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "their" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "performance", "NN" ], [ "they", "PRP" ], [ "attended", "VBD" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(0) A(0) C(8) T(1) 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(2) T(0)" }, { "db_id": "performance_attendance", "query": "SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID WHERE T2.Role = \"Violin\"", "query_toks": [ "SELECT", "T3.Date", "FROM", "member_attendance", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.Member_ID", "=", "T2.Member_ID", "JOIN", "performance", "AS", "T3", "ON", "T1.Performance_ID", "=", "T3.Performance_ID", "WHERE", "T2.Role", "=", "``", "Violin", "''" ], "query_toks_no_value": [ "select", "t3", ".", "date", "from", "member_attendance", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id", "join", "performance", "as", "t3", "on", "t1", ".", "performance_id", "=", "t3", ".", "performance_id", "where", "t2", ".", "role", "=", "value" ], "question": "Show the dates of performances with attending members whose roles are \"Violin\".", "question_toks": [ "show", "date", "of", "performance", "with", "attending", "member", "whose", "role", "are", "'", "violin", "'", "." ], "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, [ [ 0, [ 0, [ 0, 6, 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 ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Violin\"", null ] ] }, "names": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "dates", "of", "performances", "with", "attending", "members", "whose", "roles", "are", "``", "Violin", "''", "." ], "question_arg": [ [ "show" ], [ "date" ], [ "of" ], [ "performance" ], [ "with" ], [ "attending" ], [ "member" ], [ "whose" ], [ "role" ], [ "are" ], [ "'" ], [ "violin" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "performance", "NN" ], [ "with", "IN" ], [ "attending", "VBG" ], [ "member", "NN" ], [ "whose", "WP$" ], [ "role", "NN" ], [ "are", "VBP" ], [ "'", "''" ], [ "violin", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Violin" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) 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(4) T(0) V(0)" }, { "db_id": "performance_attendance", "query": "SELECT T2.Name , T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T3.Attendance DESC", "query_toks": [ "SELECT", "T2.Name", ",", "T3.Date", "FROM", "member_attendance", "AS", "T1", "JOIN", "member", "AS", "T2", "ON", "T1.Member_ID", "=", "T2.Member_ID", "JOIN", "performance", "AS", "T3", "ON", "T1.Performance_ID", "=", "T3.Performance_ID", "ORDER", "BY", "T3.Attendance", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t3", ".", "date", "from", "member_attendance", "as", "t1", "join", "member", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_id", "join", "performance", "as", "t3", "on", "t1", ".", "performance_id", "=", "t3", ".", "performance_id", "order", "by", "t3", ".", "attendance", "desc" ], "question": "Show the names of members and the dates of performances they attended in descending order of attendance of the performances.", "question_toks": [ "show", "name", "of", "member", "and", "date", "of", "performance", "they", "attended", "in", "descending", "order", "of", "attendance", "of", "performance", "." ], "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": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, 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": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "Show", "the", "names", "of", "members", "and", "the", "dates", "of", "performances", "they", "attended", "in", "descending", "order", "of", "attendance", "of", "the", "performances", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "member" ], [ "and" ], [ "date" ], [ "of" ], [ "performance" ], [ "they" ], [ "attended" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "attendance" ], [ "of" ], [ "performance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "and", "CC" ], [ "date", "NN" ], [ "of", "IN" ], [ "performance", "NN" ], [ "they", "PRP" ], [ "attended", "VBD" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "attendance", "NN" ], [ "of", "IN" ], [ "performance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(2) T(0) A(0) C(6) T(1) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(2) Order(0) A(0) C(9) T(1)" }, { "db_id": "performance_attendance", "query": "SELECT Name FROM member WHERE Member_ID NOT IN (SELECT Member_ID FROM member_attendance)", "query_toks": [ "SELECT", "Name", "FROM", "member", "WHERE", "Member_ID", "NOT", "IN", "(", "SELECT", "Member_ID", "FROM", "member_attendance", ")" ], "query_toks_no_value": [ "select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "member_attendance", ")" ], "question": "List the names of members who did not attend any performance.", "question_toks": [ "list", "name", "of", "member", "who", "did", "not", "attend", "any", "performance", "." ], "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, 10, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "member id", "performance id", "num of pieces" ], "table_names": [ "member", "performance", "member attendance" ], "col_set": [ "*", "member id", "name", "nationality", "role", "performance id", "date", "host", "location", "attendance", "num of pieces" ], "col_table": [ -1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "11": 5, "5": 5, "10": 10, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "members", "who", "did", "not", "attend", "any", "performance", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "member" ], [ "who" ], [ "did" ], [ "not" ], [ "attend" ], [ "any" ], [ "performance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "member", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "attend", "VB" ], [ "any", "DT" ], [ "performance", "NN" ], [ ".", "." ] ], "values": [], "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": "college_2", "query": "SELECT DISTINCT building FROM classroom WHERE capacity > 50", "query_toks": [ "SELECT", "DISTINCT", "building", "FROM", "classroom", "WHERE", "capacity", ">", "50" ], "query_toks_no_value": [ "select", "distinct", "building", "from", "classroom", "where", "capacity", ">", "value" ], "question": "Find the buildings which have rooms with capacity more than 50.", "question_toks": [ "find", "building", "which", "have", "room", "with", "capacity", "more", "than", "50", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "buildings", "which", "have", "rooms", "with", "capacity", "more", "than", "50", "." ], "question_arg": [ [ "find" ], [ "building" ], [ "which" ], [ "have" ], [ "room" ], [ "with" ], [ "capacity" ], [ "more" ], [ "than" ], [ "50" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "building", "NN" ], [ "which", "WDT" ], [ "have", "VBP" ], [ "room", "NN" ], [ "with", "IN" ], [ "capacity", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ ".", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(0) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "college_2", "query": "SELECT DISTINCT building FROM classroom WHERE capacity > 50", "query_toks": [ "SELECT", "DISTINCT", "building", "FROM", "classroom", "WHERE", "capacity", ">", "50" ], "query_toks_no_value": [ "select", "distinct", "building", "from", "classroom", "where", "capacity", ">", "value" ], "question": "What are the distinct buildings with capacities of greater than 50?", "question_toks": [ "what", "are", "distinct", "building", "with", "capacity", "of", "greater", "than", "50", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "distinct", "buildings", "with", "capacities", "of", "greater", "than", "50", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "building" ], [ "with" ], [ "capacity" ], [ "of" ], [ "greater" ], [ "than" ], [ "50" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "building", "NN" ], [ "with", "IN" ], [ "capacity", "NN" ], [ "of", "IN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ "?", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(1) T(0) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "college_2", "query": "SELECT count(*) FROM classroom WHERE building != 'Lamberton'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "!", "=", "'Lamberton", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "classroom", "where", "building", "!", "=", "value" ], "question": "Count the number of rooms that are not in the Lamberton building.", "question_toks": [ "count", "number", "of", "room", "that", "are", "not", "in", "lamberton", "building", "." ], "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, 7, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Count", "the", "number", "of", "rooms", "that", "are", "not", "in", "the", "Lamberton", "building", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "room" ], [ "that" ], [ "are" ], [ "not" ], [ "in" ], [ "lamberton" ], [ "building" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "lamberton", "NN" ], [ "building", "NN" ], [ ".", "." ] ], "values": [ "Lamberton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(3) A(0) C(1) T(0) V(0)" }, { "db_id": "college_2", "query": "SELECT count(*) FROM classroom WHERE building != 'Lamberton'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "!", "=", "'Lamberton", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "classroom", "where", "building", "!", "=", "value" ], "question": "How many classrooms are not in Lamberton?", "question_toks": [ "how", "many", "classroom", "are", "not", "in", "lamberton", "?" ], "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, 7, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "classrooms", "are", "not", "in", "Lamberton", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "classroom" ], [ "are" ], [ "not" ], [ "in" ], [ "lamberton" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "classroom", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "in", "IN" ], [ "lamberton", "NN" ], [ "?", "." ] ], "values": [ "Lamberton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(3) A(0) C(1) T(0) V(0)" }, { "db_id": "college_2", "query": "SELECT dept_name , building FROM department WHERE budget > (SELECT avg(budget) FROM department)", "query_toks": [ "SELECT", "dept_name", ",", "building", "FROM", "department", "WHERE", "budget", ">", "(", "SELECT", "avg", "(", "budget", ")", "FROM", "department", ")" ], "query_toks_no_value": [ "select", "dept_name", ",", "building", "from", "department", "where", "budget", ">", "(", "select", "avg", "(", "budget", ")", "from", "department", ")" ], "question": "What is the name and building of the departments whose budget is more than the average budget?", "question_toks": [ "what", "is", "name", "and", "building", "of", "department", "whose", "budget", "is", "more", "than", "average", "budget", "?" ], "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, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "building", "of", "the", "departments", "whose", "budget", "is", "more", "than", "the", "average", "budget", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "building" ], [ "of" ], [ "department" ], [ "whose" ], [ "budget" ], [ "is" ], [ "more" ], [ "than" ], [ "average" ], [ "budget" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "building", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "whose", "WP$" ], [ "budget", "NN" ], [ "is", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "budget", "NN" ], [ "?", "." ] ], "values": [ "Namer", "Nam", "Jame" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(1) T(1) Filter(13) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(5) C(5) T(1)" }, { "db_id": "college_2", "query": "SELECT dept_name , building FROM department WHERE budget > (SELECT avg(budget) FROM department)", "query_toks": [ "SELECT", "dept_name", ",", "building", "FROM", "department", "WHERE", "budget", ">", "(", "SELECT", "avg", "(", "budget", ")", "FROM", "department", ")" ], "query_toks_no_value": [ "select", "dept_name", ",", "building", "from", "department", "where", "budget", ">", "(", "select", "avg", "(", "budget", ")", "from", "department", ")" ], "question": "Give the name and building of the departments with greater than average budget.", "question_toks": [ "give", "name", "and", "building", "of", "department", "with", "greater", "than", "average", "budget", "." ], "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, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Give", "the", "name", "and", "building", "of", "the", "departments", "with", "greater", "than", "average", "budget", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "and" ], [ "building" ], [ "of" ], [ "department" ], [ "with" ], [ "greater" ], [ "than" ], [ "average" ], [ "budget" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "building", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "budget", "NN" ], [ ".", "." ] ], "values": [ "Namer", "Nam", "Jame" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(1) T(1) Filter(13) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(5) C(5) T(1)" }, { "db_id": "college_2", "query": "SELECT building , room_number FROM classroom WHERE capacity BETWEEN 50 AND 100", "query_toks": [ "SELECT", "building", ",", "room_number", "FROM", "classroom", "WHERE", "capacity", "BETWEEN", "50", "AND", "100" ], "query_toks_no_value": [ "select", "building", ",", "room_number", "from", "classroom", "where", "capacity", "between", "value", "and", "value" ], "question": "Find the room number of the rooms which can sit 50 to 100 students and their buildings.", "question_toks": [ "find", "room", "number", "of", "room", "which", "can", "sit", "50", "to", "100", "student", "and", "their", "building", "." ], "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": [ [ false, 1, [ 0, [ 0, 3, false ], null ], 50.0, 100.0 ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "room", "number", "of", "the", "rooms", "which", "can", "sit", "50", "to", "100", "students", "and", "their", "buildings", "." ], "question_arg": [ [ "find" ], [ "room", "number" ], [ "of" ], [ "room" ], [ "which" ], [ "can" ], [ "sit" ], [ "50" ], [ "to" ], [ "100" ], [ "student" ], [ "and" ], [ "their" ], [ "building" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "room", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "which", "WDT" ], [ "can", "MD" ], [ "sit", "VB" ], [ "50", "CD" ], [ "to", "TO" ], [ "100", "CD" ], [ "student", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "building", "NN" ], [ ".", "." ] ], "values": [ "50", "50.000000", "Rotom", "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(8) A(0) C(3) T(0) V(0) V(3)" }, { "db_id": "college_2", "query": "SELECT building , room_number FROM classroom WHERE capacity BETWEEN 50 AND 100", "query_toks": [ "SELECT", "building", ",", "room_number", "FROM", "classroom", "WHERE", "capacity", "BETWEEN", "50", "AND", "100" ], "query_toks_no_value": [ "select", "building", ",", "room_number", "from", "classroom", "where", "capacity", "between", "value", "and", "value" ], "question": "What are the room numbers and corresponding buildings for classrooms which can seat between 50 to 100 students?", "question_toks": [ "what", "are", "room", "number", "and", "corresponding", "building", "for", "classroom", "which", "can", "seat", "between", "50", "to", "100", "student", "?" ], "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": [ [ false, 1, [ 0, [ 0, 3, false ], null ], 50.0, 100.0 ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "room", "numbers", "and", "corresponding", "buildings", "for", "classrooms", "which", "can", "seat", "between", "50", "to", "100", "students", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "room", "number" ], [ "and" ], [ "corresponding" ], [ "building" ], [ "for" ], [ "classroom" ], [ "which" ], [ "can" ], [ "seat" ], [ "between" ], [ "50" ], [ "to" ], [ "100" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "value" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "room", "NN" ], [ "number", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "building", "NN" ], [ "for", "IN" ], [ "classroom", "NN" ], [ "which", "WDT" ], [ "can", "MD" ], [ "seat", "VB" ], [ "between", "IN" ], [ "50", "CD" ], [ "to", "TO" ], [ "100", "CD" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "50", "Rotom", "100" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(8) A(0) C(3) T(0) V(0) V(2)" }, { "db_id": "college_2", "query": "SELECT dept_name , building FROM department ORDER BY budget DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", ",", "building", "FROM", "department", "ORDER", "BY", "budget", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", ",", "building", "from", "department", "order", "by", "budget", "desc", "limit", "value" ], "question": "Find the name and building of the department with the highest budget.", "question_toks": [ "find", "name", "and", "building", "of", "department", "with", "highest", "budget", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "and", "building", "of", "the", "department", "with", "the", "highest", "budget", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "building" ], [ "of" ], [ "department" ], [ "with" ], [ "highest" ], [ "budget" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "building", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "budget", "NN" ], [ ".", "." ] ], "values": [ "Namer", "Nam", "Jame" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(4) T(1) A(0) C(1) T(1) Sup(0) A(0) C(5) T(1)" }, { "db_id": "college_2", "query": "SELECT dept_name , building FROM department ORDER BY budget DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", ",", "building", "FROM", "department", "ORDER", "BY", "budget", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", ",", "building", "from", "department", "order", "by", "budget", "desc", "limit", "value" ], "question": "What is the department name and corresponding building for the department with the greatest budget?", "question_toks": [ "what", "is", "department", "name", "and", "corresponding", "building", "for", "department", "with", "greatest", "budget", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "department", "name", "and", "corresponding", "building", "for", "the", "department", "with", "the", "greatest", "budget", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "department", "name" ], [ "and" ], [ "corresponding" ], [ "building" ], [ "for" ], [ "department" ], [ "with" ], [ "greatest" ], [ "budget" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "department", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "building", "NN" ], [ "for", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "budget", "NN" ], [ "?", "." ] ], "values": [ "Namer", "Nam", "Jame" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(4) T(1) A(0) C(1) T(1) Sup(0) A(0) C(5) T(1)" }, { "db_id": "college_2", "query": "SELECT name FROM student WHERE dept_name = 'History' ORDER BY tot_cred DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "student", "WHERE", "dept_name", "=", "'History", "'", "ORDER", "BY", "tot_cred", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "student", "where", "dept_name", "=", "value", "order", "by", "tot_cred", "desc", "limit", "value" ], "question": "What is the name of the student who has the highest total credits in the History department.", "question_toks": [ "what", "is", "name", "of", "student", "who", "ha", "highest", "total", "credit", "in", "history", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "student", "who", "has", "the", "highest", "total", "credits", "in", "the", "History", "department", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "ha" ], [ "highest" ], [ "total", "credit" ], [ "in" ], [ "history" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "highest", "JJS" ], [ "total", "JJ" ], [ "credit", "NN" ], [ "in", "IN" ], [ "history", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Namer", "Nam", "History", "Jame" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(6) Sup(0) A(0) C(16) T(6) Filter(2) A(0) C(4) T(6) V(2)" }, { "db_id": "college_2", "query": "SELECT name FROM student WHERE dept_name = 'History' ORDER BY tot_cred DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "student", "WHERE", "dept_name", "=", "'History", "'", "ORDER", "BY", "tot_cred", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "student", "where", "dept_name", "=", "value", "order", "by", "tot_cred", "desc", "limit", "value" ], "question": "Give the name of the student in the History department with the most credits.", "question_toks": [ "give", "name", "of", "student", "in", "history", "department", "with", "most", "credit", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Give", "the", "name", "of", "the", "student", "in", "the", "History", "department", "with", "the", "most", "credits", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "student" ], [ "in" ], [ "history" ], [ "department" ], [ "with" ], [ "most" ], [ "credit" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "history", "NN" ], [ "department", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "credit", "NN" ], [ ".", "." ] ], "values": [ "Namer", "Nam", "History", "Jame" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(6) Sup(0) A(0) C(16) T(6) Filter(2) A(0) C(4) T(6) V(2)" }, { "db_id": "college_2", "query": "SELECT count(*) FROM classroom WHERE building = 'Lamberton'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "=", "'Lamberton", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "classroom", "where", "building", "=", "value" ], "question": "How many rooms does the Lamberton building have?", "question_toks": [ "how", "many", "room", "doe", "lamberton", "building", "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": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "rooms", "does", "the", "Lamberton", "building", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "room" ], [ "doe" ], [ "lamberton" ], [ "building" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "room", "NN" ], [ "doe", "VBP" ], [ "lamberton", "NN" ], [ "building", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "Lamberton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "college_2", "query": "SELECT count(*) FROM classroom WHERE building = 'Lamberton'", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "=", "'Lamberton", "'" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "classroom", "where", "building", "=", "value" ], "question": "Count the number of classrooms in Lamberton.", "question_toks": [ "count", "number", "of", "classroom", "in", "lamberton", "." ], "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, 1, false ], null ], "\"Lamberton\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Count", "the", "number", "of", "classrooms", "in", "Lamberton", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "classroom" ], [ "in" ], [ "lamberton" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "classroom", "NN" ], [ "in", "IN" ], [ "lamberton", "NN" ], [ ".", "." ] ], "values": [ "Lamberton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(2) A(0) C(1) T(0) V(0)" }, { "db_id": "college_2", "query": "SELECT count(DISTINCT s_id) FROM advisor", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "s_id", ")", "FROM", "advisor" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "s_id", ")", "from", "advisor" ], "question": "How many students have advisors?", "question_toks": [ "how", "many", "student", "have", "advisor", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 37, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "students", "have", "advisors", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "have" ], [ "advisor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "have", "VBP" ], [ "advisor", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(18) T(8)" }, { "db_id": "college_2", "query": "SELECT count(DISTINCT s_id) FROM advisor", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "s_id", ")", "FROM", "advisor" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "s_id", ")", "from", "advisor" ], "question": "Count the number of students who have advisors.", "question_toks": [ "count", "number", "of", "student", "who", "have", "advisor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 8 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 37, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Count", "the", "number", "of", "students", "who", "have", "advisors", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "advisor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "advisor", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(18) T(8)" }, { "db_id": "college_2", "query": "SELECT count(DISTINCT dept_name) FROM course", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "course" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_name", ")", "from", "course" ], "question": "How many departments offer courses?", "question_toks": [ "how", "many", "department", "offer", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 9, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "departments", "offer", "courses", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "department" ], [ "offer" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "department", "NN" ], [ "offer", "NN" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(2)" }, { "db_id": "college_2", "query": "SELECT count(DISTINCT dept_name) FROM course", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "course" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "dept_name", ")", "from", "course" ], "question": "Count the number of departments which offer courses.", "question_toks": [ "count", "number", "of", "department", "which", "offer", "course", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 9, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Count", "the", "number", "of", "departments", "which", "offer", "courses", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "department" ], [ "which" ], [ "offer" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "which", "WDT" ], [ "offer", "VBP" ], [ "course", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(2)" }, { "db_id": "college_2", "query": "SELECT count(DISTINCT course_id) FROM course WHERE dept_name = 'Physics'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "course_id", ")", "FROM", "course", "WHERE", "dept_name", "=", "'Physics", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "course_id", ")", "from", "course", "where", "dept_name", "=", "value" ], "question": "How many different courses offered by Physics department?", "question_toks": [ "how", "many", "different", "course", "offered", "by", "physic", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Physics\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "different", "courses", "offered", "by", "Physics", "department", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "course" ], [ "offered" ], [ "by" ], [ "physic" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "course", "NN" ], [ "offered", "VBN" ], [ "by", "IN" ], [ "physic", "JJ" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Physics" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(6) T(2) Filter(2) A(0) C(4) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT count(DISTINCT course_id) FROM course WHERE dept_name = 'Physics'", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "course_id", ")", "FROM", "course", "WHERE", "dept_name", "=", "'Physics", "'" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "course_id", ")", "from", "course", "where", "dept_name", "=", "value" ], "question": "Count the number of courses in the Physics department.", "question_toks": [ "count", "number", "of", "course", "in", "physic", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 7, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Physics\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Count", "the", "number", "of", "courses", "in", "the", "Physics", "department", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "course" ], [ "in" ], [ "physic" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "in", "IN" ], [ "physic", "JJ" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Physics" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(6) T(2) Filter(2) A(0) C(4) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) = 2", "query_toks": [ "SELECT", "T1.title", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", "=", "value" ], "question": "Find the title of courses that have two prerequisites?", "question_toks": [ "find", "title", "of", "course", "that", "have", "two", "prerequisite", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "title", "of", "courses", "that", "have", "two", "prerequisites", "?" ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "course" ], [ "that" ], [ "have" ], [ "two" ], [ "prerequisite" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "two", "CD" ], [ "prerequisite", "NNS" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(10) Filter(2) A(3) C(0) T(10) V(0)" }, { "db_id": "college_2", "query": "SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) = 2", "query_toks": [ "SELECT", "T1.title", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", "=", "value" ], "question": "What are the titles for courses with two prerequisites?", "question_toks": [ "what", "are", "title", "for", "course", "with", "two", "prerequisite", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 2, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "titles", "for", "courses", "with", "two", "prerequisites", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "for" ], [ "course" ], [ "with" ], [ "two" ], [ "prerequisite" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "for", "IN" ], [ "course", "NN" ], [ "with", "IN" ], [ "two", "CD" ], [ "prerequisite", "NNS" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(10) Filter(2) A(3) C(0) T(10) V(0)" }, { "db_id": "college_2", "query": "SELECT T1.title , T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.title", ",", "T1.credits", ",", "T1.dept_name", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t1", ".", "credits", ",", "t1", ".", "dept_name", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the title, credit, and department name of courses that have more than one prerequisites?", "question_toks": [ "find", "title", ",", "credit", ",", "and", "department", "name", "of", "course", "that", "have", "more", "than", "one", "prerequisite", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "title", ",", "credit", ",", "and", "department", "name", "of", "courses", "that", "have", "more", "than", "one", "prerequisites", "?" ], "question_arg": [ [ "find" ], [ "title" ], [ "," ], [ "credit" ], [ "," ], [ "and" ], [ "department", "name" ], [ "of" ], [ "course" ], [ "that" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "prerequisite" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ ",", "," ], [ "credit", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "department", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "prerequisite", "NN" ], [ "?", "." ] ], "values": [ "1", "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(7) T(2) A(0) C(8) T(2) A(0) C(4) T(2) Filter(0) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(10) Filter(5) A(3) C(0) T(10) V(0)" }, { "db_id": "college_2", "query": "SELECT T1.title , T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.title", ",", "T1.credits", ",", "T1.dept_name", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t1", ".", "credits", ",", "t1", ".", "dept_name", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What is the title, credit value, and department name for courses with more than one prerequisite?", "question_toks": [ "what", "is", "title", ",", "credit", "value", ",", "and", "department", "name", "for", "course", "with", "more", "than", "one", "prerequisite", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 10 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "title", ",", "credit", "value", ",", "and", "department", "name", "for", "courses", "with", "more", "than", "one", "prerequisite", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "," ], [ "credit" ], [ "value" ], [ "," ], [ "and" ], [ "department", "name" ], [ "for" ], [ "course" ], [ "with" ], [ "more" ], [ "than" ], [ "one" ], [ "prerequisite" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "NN" ], [ ",", "," ], [ "credit", "NN" ], [ "value", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "department", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "course", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "prerequisite", "NN" ], [ "?", "." ] ], "values": [ "1", "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(7) T(2) A(0) C(8) T(2) A(0) C(4) T(2) Filter(0) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(10) Filter(5) A(3) C(0) T(10) V(0)" }, { "db_id": "college_2", "query": "SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")" ], "question": "How many courses that do not have prerequisite?", "question_toks": [ "how", "many", "course", "that", "do", "not", "have", "prerequisite", "?" ], "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": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "courses", "that", "do", "not", "have", "prerequisite", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "course" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "prerequisite" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "course", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "prerequisite", "NNS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(19) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(10)" }, { "db_id": "college_2", "query": "SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")" ], "question": "Count the number of courses without prerequisites.", "question_toks": [ "count", "number", "of", "course", "without", "prerequisite", "." ], "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": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Count", "the", "number", "of", "courses", "without", "prerequisites", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "course" ], [ "without" ], [ "prerequisite" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "without", "IN" ], [ "prerequisite", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(19) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(10)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")" ], "question": "Find the name of the courses that do not have any prerequisite?", "question_toks": [ "find", "name", "of", "course", "that", "do", "not", "have", "any", "prerequisite", "?" ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "course" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "prerequisite" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "prerequisite", "NN" ], [ "?", "." ] ], "values": [ "Nam", "Jame", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(19) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(10)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")" ], "question": "What are the titles of courses without prerequisites?", "question_toks": [ "what", "are", "title", "of", "course", "without", "prerequisite", "?" ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "courses", "without", "prerequisites", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "course" ], [ "without" ], [ "prerequisite" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "course", "NN" ], [ "without", "IN" ], [ "prerequisite", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(19) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(10)" }, { "db_id": "college_2", "query": "SELECT COUNT (DISTINCT id) FROM teaches", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "id", ")", "FROM", "teaches" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "id", ")", "from", "teaches" ], "question": "How many different instructors have taught some course?", "question_toks": [ "how", "many", "different", "instructor", "have", "taught", "some", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 22, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "different", "instructors", "have", "taught", "some", "course", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "instructor" ], [ "have" ], [ "taught" ], [ "some" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "instructor", "NN" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "some", "DT" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(9) T(5)" }, { "db_id": "college_2", "query": "SELECT COUNT (DISTINCT id) FROM teaches", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "id", ")", "FROM", "teaches" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "id", ")", "from", "teaches" ], "question": "Count the number of distinct instructors who have taught a course.", "question_toks": [ "count", "number", "of", "distinct", "instructor", "who", "have", "taught", "a", "course", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 22, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Count", "the", "number", "of", "distinct", "instructors", "who", "have", "taught", "a", "course", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "distinct" ], [ "instructor" ], [ "who" ], [ "have" ], [ "taught" ], [ "a" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "a", "DT" ], [ "course", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(9) T(5)" }, { "db_id": "college_2", "query": "SELECT sum(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance'", "query_toks": [ "SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "'Marketing", "'", "OR", "dept_name", "=", "'Finance", "'" ], "query_toks_no_value": [ "select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "value", "or", "dept_name", "=", "value" ], "question": "Find the total budgets of the Marketing or Finance department.", "question_toks": [ "find", "total", "budget", "of", "marketing", "or", "finance", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Marketing\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Finance\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "total", "budgets", "of", "the", "Marketing", "or", "Finance", "department", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "budget" ], [ "of" ], [ "marketing" ], [ "or" ], [ "finance" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "budget", "NN" ], [ "of", "IN" ], [ "marketing", "NN" ], [ "or", "CC" ], [ "finance", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Finance", "Marketing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(5) T(1) Filter(1) Filter(2) A(0) C(4) T(1) V(1) Filter(2) A(0) C(4) T(1) V(0)" }, { "db_id": "college_2", "query": "SELECT sum(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance'", "query_toks": [ "SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "'Marketing", "'", "OR", "dept_name", "=", "'Finance", "'" ], "query_toks_no_value": [ "select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "value", "or", "dept_name", "=", "value" ], "question": "What is the sum of budgets of the Marketing and Finance departments?", "question_toks": [ "what", "is", "sum", "of", "budget", "of", "marketing", "and", "finance", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Marketing\"", null ], "or", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Finance\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "sum", "of", "budgets", "of", "the", "Marketing", "and", "Finance", "departments", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "sum" ], [ "of" ], [ "budget" ], [ "of" ], [ "marketing" ], [ "and" ], [ "finance" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "sum", "NN" ], [ "of", "IN" ], [ "budget", "NN" ], [ "of", "IN" ], [ "marketing", "NN" ], [ "and", "CC" ], [ "finance", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Sumi", "Finance", "Marketing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(5) T(1) Filter(1) Filter(2) A(0) C(4) T(1) V(2) Filter(2) A(0) C(4) T(1) V(1)" }, { "db_id": "college_2", "query": "SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'", "query_toks": [ "SELECT", "dept_name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "Soisalon", "%", "'" ], "query_toks_no_value": [ "select", "dept_name", "from", "instructor", "where", "name", "like", "value" ], "question": "Find the department name of the instructor whose name contains 'Soisalon'.", "question_toks": [ "find", "department", "name", "of", "instructor", "whose", "name", "contains", "'", "soisalon", "'", "." ], "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": null, "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%Soisalon%\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "department", "name", "of", "the", "instructor", "whose", "name", "contains", "'Soisalon", "'", "." ], "question_arg": [ [ "find" ], [ "department", "name" ], [ "of" ], [ "instructor" ], [ "whose" ], [ "name" ], [ "contains" ], [ "'" ], [ "soisalon" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "department", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "'", "POS" ], [ "soisalon", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Nam", "Jame", "Namer", "Soisalon" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(3) Filter(9) A(0) C(10) T(3) V(3)" }, { "db_id": "college_2", "query": "SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'", "query_toks": [ "SELECT", "dept_name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "Soisalon", "%", "'" ], "query_toks_no_value": [ "select", "dept_name", "from", "instructor", "where", "name", "like", "value" ], "question": "What is the name of the department with an instructure who has a name like 'Soisalon'?", "question_toks": [ "what", "is", "name", "of", "department", "with", "an", "instructure", "who", "ha", "a", "name", "like", "'", "soisalon", "'", "?" ], "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": null, "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%Soisalon%\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "department", "with", "an", "instructure", "who", "has", "a", "name", "like", "'Soisalon", "'", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "with" ], [ "an" ], [ "instructure" ], [ "who" ], [ "ha" ], [ "a" ], [ "name" ], [ "like" ], [ "'" ], [ "soisalon" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "an", "DT" ], [ "instructure", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "a", "DT" ], [ "name", "NN" ], [ "like", "IN" ], [ "'", "''" ], [ "soisalon", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Nam", "Jame", "Namer", "Soisalon" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(4) T(3) Filter(9) A(0) C(10) T(3) V(3)" }, { "db_id": "college_2", "query": "SELECT count(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "=", "'Lamberton", "'", "AND", "capacity", "<", "50" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "classroom", "where", "building", "=", "value", "and", "capacity", "<", "value" ], "question": "How many rooms whose capacity is less than 50 does the Lamberton building have?", "question_toks": [ "how", "many", "room", "whose", "capacity", "is", "le", "than", "50", "doe", "lamberton", "building", "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": [ [ false, 2, [ 0, [ 0, 1, false ], null ], "\"Lamberton\"", null ], "and", [ false, 4, [ 0, [ 0, 3, false ], null ], 50.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "rooms", "whose", "capacity", "is", "less", "than", "50", "does", "the", "Lamberton", "building", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "room" ], [ "whose" ], [ "capacity" ], [ "is" ], [ "le" ], [ "than" ], [ "50" ], [ "doe" ], [ "lamberton" ], [ "building" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "room", "NN" ], [ "whose", "WP$" ], [ "capacity", "NN" ], [ "is", "VBZ" ], [ "le", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ "doe", "JJ" ], [ "lamberton", "NN" ], [ "building", "NN" ], [ "have", "VB" ], [ "?", "." ] ], "values": [ "Lamberton", "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(1) T(0) V(0) Filter(4) A(0) C(3) T(0) V(1)" }, { "db_id": "college_2", "query": "SELECT count(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "=", "'Lamberton", "'", "AND", "capacity", "<", "50" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "classroom", "where", "building", "=", "value", "and", "capacity", "<", "value" ], "question": "Count the number of rooms in Lamberton with capacity lower than 50.", "question_toks": [ "count", "number", "of", "room", "in", "lamberton", "with", "capacity", "lower", "than", "50", "." ], "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, 1, false ], null ], "\"Lamberton\"", null ], "and", [ false, 4, [ 0, [ 0, 3, false ], null ], 50.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Count", "the", "number", "of", "rooms", "in", "Lamberton", "with", "capacity", "lower", "than", "50", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "room" ], [ "in" ], [ "lamberton" ], [ "with" ], [ "capacity" ], [ "lower" ], [ "than" ], [ "50" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "in", "IN" ], [ "lamberton", "NN" ], [ "with", "IN" ], [ "capacity", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ ".", "." ] ], "values": [ "Lamberton", "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(1) T(0) V(0) Filter(4) A(0) C(3) T(0) V(1)" }, { "db_id": "college_2", "query": "SELECT dept_name , budget FROM department WHERE budget > (SELECT avg(budget) FROM department)", "query_toks": [ "SELECT", "dept_name", ",", "budget", "FROM", "department", "WHERE", "budget", ">", "(", "SELECT", "avg", "(", "budget", ")", "FROM", "department", ")" ], "query_toks_no_value": [ "select", "dept_name", ",", "budget", "from", "department", "where", "budget", ">", "(", "select", "avg", "(", "budget", ")", "from", "department", ")" ], "question": "Find the name and budget of departments whose budgets are more than the average budget.", "question_toks": [ "find", "name", "and", "budget", "of", "department", "whose", "budget", "are", "more", "than", "average", "budget", "." ], "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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "and", "budget", "of", "departments", "whose", "budgets", "are", "more", "than", "the", "average", "budget", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "budget" ], [ "of" ], [ "department" ], [ "whose" ], [ "budget" ], [ "are" ], [ "more" ], [ "than" ], [ "average" ], [ "budget" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "budget", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "whose", "WP$" ], [ "budget", "NN" ], [ "are", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "budget", "NN" ], [ ".", "." ] ], "values": [ "Nam", "Jame", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1) Filter(13) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(5) C(5) T(1)" }, { "db_id": "college_2", "query": "SELECT dept_name , budget FROM department WHERE budget > (SELECT avg(budget) FROM department)", "query_toks": [ "SELECT", "dept_name", ",", "budget", "FROM", "department", "WHERE", "budget", ">", "(", "SELECT", "avg", "(", "budget", ")", "FROM", "department", ")" ], "query_toks_no_value": [ "select", "dept_name", ",", "budget", "from", "department", "where", "budget", ">", "(", "select", "avg", "(", "budget", ")", "from", "department", ")" ], "question": "What are the names and budgets of departments with budgets greater than the average?", "question_toks": [ "what", "are", "name", "and", "budget", "of", "department", "with", "budget", "greater", "than", "average", "?" ], "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, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "budgets", "of", "departments", "with", "budgets", "greater", "than", "the", "average", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "budget" ], [ "of" ], [ "department" ], [ "with" ], [ "budget" ], [ "greater" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "budget", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "budget", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [ "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(1) A(0) C(5) T(1) Filter(13) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(5) C(5) T(1)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE dept_name = 'Statistics' ORDER BY salary LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "dept_name", "=", "'Statistics", "'", "ORDER", "BY", "salary", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "dept_name", "=", "value", "order", "by", "salary", "limit", "value" ], "question": "what is the name of the instructor who is in Statistics department and earns the lowest salary?", "question_toks": [ "what", "is", "name", "of", "instructor", "who", "is", "in", "statistic", "department", "and", "earns", "lowest", "salary", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Statistics\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "what", "is", "the", "name", "of", "the", "instructor", "who", "is", "in", "Statistics", "department", "and", "earns", "the", "lowest", "salary", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "is" ], [ "in" ], [ "statistic" ], [ "department" ], [ "and" ], [ "earns" ], [ "lowest" ], [ "salary" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "in", "IN" ], [ "statistic", "JJ" ], [ "department", "NN" ], [ "and", "CC" ], [ "earns", "VBZ" ], [ "lowest", "JJS" ], [ "salary", "NN" ], [ "?", "." ] ], "values": [ "Statistics", "Biostatistics", "Nam", "Jame", "Namer" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(3) Sup(1) A(0) C(11) T(3) Filter(2) A(0) C(4) T(3) V(0)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE dept_name = 'Statistics' ORDER BY salary LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "dept_name", "=", "'Statistics", "'", "ORDER", "BY", "salary", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "dept_name", "=", "value", "order", "by", "salary", "limit", "value" ], "question": "Give the name of the lowest earning instructor in the Statistics department.", "question_toks": [ "give", "name", "of", "lowest", "earning", "instructor", "in", "statistic", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Statistics\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Give", "the", "name", "of", "the", "lowest", "earning", "instructor", "in", "the", "Statistics", "department", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "lowest" ], [ "earning" ], [ "instructor" ], [ "in" ], [ "statistic" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "lowest", "JJS" ], [ "earning", "VBG" ], [ "instructor", "NN" ], [ "in", "IN" ], [ "statistic", "JJ" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Statistics", "Biostatistics", "Nam", "Jame", "Namer" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(3) Sup(1) A(0) C(11) T(3) Filter(2) A(0) C(4) T(3) V(0)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology'", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Statistics", "'", "INTERSECT", "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Psychology", "'" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "dept_name", "=", "value", "intersect", "select", "title", "from", "course", "where", "dept_name", "=", "value" ], "question": "Find the title of course that is provided by both Statistics and Psychology departments.", "question_toks": [ "find", "title", "of", "course", "that", "is", "provided", "by", "both", "statistic", "and", "psychology", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "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": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "title", "of", "course", "that", "is", "provided", "by", "both", "Statistics", "and", "Psychology", "departments", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "course" ], [ "that" ], [ "is" ], [ "provided" ], [ "by" ], [ "both" ], [ "statistic" ], [ "and" ], [ "psychology" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "provided", "VBN" ], [ "by", "IN" ], [ "both", "DT" ], [ "statistic", "JJ" ], [ "and", "CC" ], [ "psychology", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Biostatistics", "Statistics", "Psychology" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(4) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(4) T(2) V(2)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE dept_name = 'Statistics' INTERSECT SELECT title FROM course WHERE dept_name = 'Psychology'", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Statistics", "'", "INTERSECT", "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Psychology", "'" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "dept_name", "=", "value", "intersect", "select", "title", "from", "course", "where", "dept_name", "=", "value" ], "question": "What is the title of a course that is listed in both the Statistics and Psychology departments?", "question_toks": [ "what", "is", "title", "of", "a", "course", "that", "is", "listed", "in", "both", "statistic", "and", "psychology", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "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": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "title", "of", "a", "course", "that", "is", "listed", "in", "both", "the", "Statistics", "and", "Psychology", "departments", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "of" ], [ "a" ], [ "course" ], [ "that" ], [ "is" ], [ "listed" ], [ "in" ], [ "both" ], [ "statistic" ], [ "and" ], [ "psychology" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "course", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "listed", "VBN" ], [ "in", "IN" ], [ "both", "DT" ], [ "statistic", "JJ" ], [ "and", "CC" ], [ "psychology", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Biostatistics", "Statistics", "Psychology" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(4) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(4) T(2) V(2)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology'", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Statistics", "'", "EXCEPT", "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Psychology", "'" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "dept_name", "=", "value", "except", "select", "title", "from", "course", "where", "dept_name", "=", "value" ], "question": "Find the title of course that is provided by Statistics but not Psychology departments.", "question_toks": [ "find", "title", "of", "course", "that", "is", "provided", "by", "statistic", "but", "not", "psychology", "department", "." ], "sql": { "except": { "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": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", 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, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "title", "of", "course", "that", "is", "provided", "by", "Statistics", "but", "not", "Psychology", "departments", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "course" ], [ "that" ], [ "is" ], [ "provided" ], [ "by" ], [ "statistic" ], [ "but" ], [ "not" ], [ "psychology" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "provided", "VBN" ], [ "by", "IN" ], [ "statistic", "JJ" ], [ "but", "CC" ], [ "not", "RB" ], [ "psychology", "JJ" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Biostatistics", "Statistics", "Psychology" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(4) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(4) T(2) V(2)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE dept_name = 'Statistics' EXCEPT SELECT title FROM course WHERE dept_name = 'Psychology'", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Statistics", "'", "EXCEPT", "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Psychology", "'" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "dept_name", "=", "value", "except", "select", "title", "from", "course", "where", "dept_name", "=", "value" ], "question": "What are the titles of courses that are in the Statistics department but not the Psychology department?", "question_toks": [ "what", "are", "title", "of", "course", "that", "are", "in", "statistic", "department", "but", "not", "psychology", "department", "?" ], "sql": { "except": { "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": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", 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, 2, [ 0, [ 0, 9, false ], null ], "\"Statistics\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "courses", "that", "are", "in", "the", "Statistics", "department", "but", "not", "the", "Psychology", "department", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "course" ], [ "that" ], [ "are" ], [ "in" ], [ "statistic" ], [ "department" ], [ "but" ], [ "not" ], [ "psychology" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "in", "IN" ], [ "statistic", "JJ" ], [ "department", "NN" ], [ "but", "CC" ], [ "not", "RB" ], [ "psychology", "VB" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Biostatistics", "Statistics", "Psychology" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(4) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(4) T(2) V(2)" }, { "db_id": "college_2", "query": "SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT id FROM teaches WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "EXCEPT", "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "id", "from", "teaches", "where", "semester", "=", "value", "and", "year", "=", "value", "except", "select", "id", "from", "teaches", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "Find the id of instructors who taught a class in Fall 2009 but not in Spring 2010.", "question_toks": [ "find", "id", "of", "instructor", "who", "taught", "a", "class", "in", "fall", "year", "but", "not", "in", "spring", "year", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2010.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2009.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "id", "of", "instructors", "who", "taught", "a", "class", "in", "Fall", "2009", "but", "not", "in", "Spring", "2010", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "instructor" ], [ "who" ], [ "taught" ], [ "a" ], [ "class" ], [ "in" ], [ "fall" ], [ "year" ], [ "but" ], [ "not" ], [ "in" ], [ "spring" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "taught", "VBD" ], [ "a", "DT" ], [ "class", "NN" ], [ "in", "IN" ], [ "fall", "NN" ], [ "2009", "CD" ], [ "but", "CC" ], [ "not", "RB" ], [ "in", "IN" ], [ "spring", "NN" ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "2010", "2009", "Fall", "Spring" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(9) T(5) Filter(0) Filter(2) A(0) C(13) T(5) V(2) Filter(2) A(0) C(14) T(5) V(1) Root(3) Sel(0) N(0) A(0) C(9) T(5) Filter(0) Filter(2) A(0) C(13) T(5) V(3) Filter(2) A(0) C(14) T(5) V(0)" }, { "db_id": "college_2", "query": "SELECT id FROM teaches WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT id FROM teaches WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "EXCEPT", "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "id", "from", "teaches", "where", "semester", "=", "value", "and", "year", "=", "value", "except", "select", "id", "from", "teaches", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "What are the ids of instructors who taught in the Fall of 2009 but not in the Spring of 2010?", "question_toks": [ "what", "are", "id", "of", "instructor", "who", "taught", "in", "fall", "of", "year", "but", "not", "in", "spring", "of", "year", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2010.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2009.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "instructors", "who", "taught", "in", "the", "Fall", "of", "2009", "but", "not", "in", "the", "Spring", "of", "2010", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "instructor" ], [ "who" ], [ "taught" ], [ "in" ], [ "fall" ], [ "of" ], [ "year" ], [ "but" ], [ "not" ], [ "in" ], [ "spring" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "taught", "VBD" ], [ "in", "IN" ], [ "fall", "NN" ], [ "of", "IN" ], [ "2009", "CD" ], [ "but", "CC" ], [ "not", "RB" ], [ "in", "IN" ], [ "spring", "NN" ], [ "of", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "2010", "2009", "24010", "Gall", "Wall", "21009", "20180", "Fall", "Spring", "20099" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(9) T(5) Filter(0) Filter(2) A(0) C(13) T(5) V(7) Filter(2) A(0) C(14) T(5) V(1) Root(3) Sel(0) N(0) A(0) C(9) T(5) Filter(0) Filter(2) A(0) C(13) T(5) V(8) Filter(2) A(0) C(14) T(5) V(0)" }, { "db_id": "college_2", "query": "SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.id", "=", "T2.id", "WHERE", "YEAR", "=", "2009", "OR", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "year", "=", "value", "or", "year", "=", "value" ], "question": "Find the name of students who took any class in the years of 2009 and 2010.", "question_toks": [ "find", "name", "of", "student", "who", "took", "any", "class", "in", "year", "of", "year", "and", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], 2009.0, null ], "or", [ false, 2, [ 0, [ 0, 35, false ], null ], 2010.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "students", "who", "took", "any", "class", "in", "the", "years", "of", "2009", "and", "2010", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "took" ], [ "any" ], [ "class" ], [ "in" ], [ "year" ], [ "of" ], [ "year" ], [ "and" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "any", "DT" ], [ "class", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2009", "CD" ], [ "and", "CC" ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "20180", "21009", "Jame", "2010", "Namer", "2009", "24010", "20099", "Nam" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(10) T(6) Filter(1) Filter(2) A(0) C(14) T(7) V(5) Filter(2) A(0) C(14) T(7) V(3)" }, { "db_id": "college_2", "query": "SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.id", "=", "T2.id", "WHERE", "YEAR", "=", "2009", "OR", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "year", "=", "value", "or", "year", "=", "value" ], "question": "What are the names of the students who took classes in 2009 or 2010?", "question_toks": [ "what", "are", "name", "of", "student", "who", "took", "class", "in", "year", "or", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 35, false ], null ], 2009.0, null ], "or", [ false, 2, [ 0, [ 0, 35, false ], null ], 2010.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "students", "who", "took", "classes", "in", "2009", "or", "2010", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "took" ], [ "class" ], [ "in" ], [ "year" ], [ "or" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "class", "NN" ], [ "in", "IN" ], [ "2009", "CD" ], [ "or", "CC" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "20180", "21009", "2010", "Namer", "2009", "24010", "20099" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(10) T(6) Filter(1) Filter(2) A(0) C(14) T(7) V(4) Filter(2) A(0) C(14) T(7) V(2)" }, { "db_id": "college_2", "query": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "dept_name", "from", "course", "group", "by", "dept_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the names of the top 3 departments that provide the largest amount of courses?", "question_toks": [ "find", "name", "of", "top", "3", "department", "that", "provide", "largest", "amount", "of", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "top", "3", "departments", "that", "provide", "the", "largest", "amount", "of", "courses", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "top" ], [ "3" ], [ "department" ], [ "that" ], [ "provide" ], [ "largest" ], [ "amount" ], [ "of" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "department", "NN" ], [ "that", "WDT" ], [ "provide", "RB" ], [ "largest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "3", "Namer" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "college_2", "query": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3", "query_toks": [ "SELECT", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "dept_name", "from", "course", "group", "by", "dept_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What are the names of the 3 departments with the most courses?", "question_toks": [ "what", "are", "name", "of", "3", "department", "with", "most", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "3", "departments", "with", "the", "most", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "3" ], [ "department" ], [ "with" ], [ "most" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "3", "CD" ], [ "department", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "3", "Namer" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "college_2", "query": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name", "ORDER", "BY", "sum", "(", "credits", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "course", "group", "by", "dept_name", "order", "by", "sum", "(", "credits", ")", "desc", "limit", "value" ], "question": "Find the name of the department that offers the highest total credits?", "question_toks": [ "find", "name", "of", "department", "that", "offer", "highest", "total", "credit", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "department", "that", "offers", "the", "highest", "total", "credits", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "department" ], [ "that" ], [ "offer" ], [ "highest" ], [ "total", "credit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "that", "WDT" ], [ "offer", "VBP" ], [ "highest", "JJS" ], [ "total", "JJ" ], [ "credit", "NN" ], [ "?", "." ] ], "values": [ "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(2) Sup(0) A(4) C(8) T(2)" }, { "db_id": "college_2", "query": "SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name", "ORDER", "BY", "sum", "(", "credits", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "course", "group", "by", "dept_name", "order", "by", "sum", "(", "credits", ")", "desc", "limit", "value" ], "question": "What is the name of the department with the most credits?", "question_toks": [ "what", "is", "name", "of", "department", "with", "most", "credit", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 4, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "department", "with", "the", "most", "credits", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "department" ], [ "with" ], [ "most" ], [ "credit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "credit", "NN" ], [ "?", "." ] ], "values": [ "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(2) Sup(0) A(4) C(8) T(2)" }, { "db_id": "college_2", "query": "SELECT title FROM course ORDER BY title , credits", "query_toks": [ "SELECT", "title", "FROM", "course", "ORDER", "BY", "title", ",", "credits" ], "query_toks_no_value": [ "select", "title", "from", "course", "order", "by", "title", ",", "credits" ], "question": "List the names of all courses ordered by their titles and credits.", "question_toks": [ "list", "name", "of", "all", "course", "ordered", "by", "their", "title", "and", "credit", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ], [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "courses", "ordered", "by", "their", "titles", "and", "credits", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "course" ], [ "ordered" ], [ "by" ], [ "their" ], [ "title" ], [ "and" ], [ "credit" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "course", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "title", "NN" ], [ "and", "CC" ], [ "credit", "NN" ], [ ".", "." ] ], "values": [ "Namer" ], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(2) Order(1) A(0) C(7) T(2)" }, { "db_id": "college_2", "query": "SELECT title FROM course ORDER BY title , credits", "query_toks": [ "SELECT", "title", "FROM", "course", "ORDER", "BY", "title", ",", "credits" ], "query_toks_no_value": [ "select", "title", "from", "course", "order", "by", "title", ",", "credits" ], "question": "Given the titles of all courses, in order of titles and credits.", "question_toks": [ "given", "title", "of", "all", "course", ",", "in", "order", "of", "title", "and", "credit", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ], [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Given", "the", "titles", "of", "all", "courses", ",", "in", "order", "of", "titles", "and", "credits", "." ], "question_arg": [ [ "given" ], [ "title" ], [ "of" ], [ "all" ], [ "course" ], [ "," ], [ "in" ], [ "order" ], [ "of" ], [ "title" ], [ "and" ], [ "credit" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "given", "VBN" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "course", "NN" ], [ ",", "," ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "title", "NN" ], [ "and", "CC" ], [ "credit", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(7) T(2) Order(1) A(0) C(7) T(2)" }, { "db_id": "college_2", "query": "SELECT dept_name FROM department ORDER BY budget LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "department", "ORDER", "BY", "budget", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "department", "order", "by", "budget", "limit", "value" ], "question": "Which department has the lowest budget?", "question_toks": [ "which", "department", "ha", "lowest", "budget", "?" ], "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, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Which", "department", "has", "the", "lowest", "budget", "?" ], "question_arg": [ [ "which" ], [ "department" ], [ "ha" ], [ "lowest" ], [ "budget" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "department", "NN" ], [ "ha", "NN" ], [ "lowest", "JJS" ], [ "budget", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(1) Sup(1) A(0) C(5) T(1)" }, { "db_id": "college_2", "query": "SELECT dept_name FROM department ORDER BY budget LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "department", "ORDER", "BY", "budget", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "department", "order", "by", "budget", "limit", "value" ], "question": "Give the name of the department with the lowest budget.", "question_toks": [ "give", "name", "of", "department", "with", "lowest", "budget", "." ], "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, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Give", "the", "name", "of", "the", "department", "with", "the", "lowest", "budget", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "department" ], [ "with" ], [ "lowest" ], [ "budget" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "lowest", "JJS" ], [ "budget", "NN" ], [ ".", "." ] ], "values": [ "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(1) Sup(1) A(0) C(5) T(1)" }, { "db_id": "college_2", "query": "SELECT dept_name , building FROM department ORDER BY budget DESC", "query_toks": [ "SELECT", "dept_name", ",", "building", "FROM", "department", "ORDER", "BY", "budget", "DESC" ], "query_toks_no_value": [ "select", "dept_name", ",", "building", "from", "department", "order", "by", "budget", "desc" ], "question": "List the names and buildings of all departments sorted by the budget from large to small.", "question_toks": [ "list", "name", "and", "building", "of", "all", "department", "sorted", "by", "budget", "from", "large", "to", "small", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "List", "the", "names", "and", "buildings", "of", "all", "departments", "sorted", "by", "the", "budget", "from", "large", "to", "small", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "building" ], [ "of" ], [ "all" ], [ "department" ], [ "sorted" ], [ "by" ], [ "budget" ], [ "from" ], [ "large" ], [ "to" ], [ "small" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "building", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "department", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "budget", "NN" ], [ "from", "IN" ], [ "large", "JJ" ], [ "to", "TO" ], [ "small", "JJ" ], [ ".", "." ] ], "values": [ "Namer" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(4) T(1) A(0) C(1) T(1) Order(0) A(0) C(5) T(1)" }, { "db_id": "college_2", "query": "SELECT dept_name , building FROM department ORDER BY budget DESC", "query_toks": [ "SELECT", "dept_name", ",", "building", "FROM", "department", "ORDER", "BY", "budget", "DESC" ], "query_toks_no_value": [ "select", "dept_name", ",", "building", "from", "department", "order", "by", "budget", "desc" ], "question": "What are the names and buildings of the deparments, sorted by budget descending?", "question_toks": [ "what", "are", "name", "and", "building", "of", "deparments", ",", "sorted", "by", "budget", "descending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "buildings", "of", "the", "deparments", ",", "sorted", "by", "budget", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "building" ], [ "of" ], [ "deparments" ], [ "," ], [ "sorted" ], [ "by" ], [ "budget" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "building", "NN" ], [ "of", "IN" ], [ "deparments", "NNS" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "budget", "NN" ], [ "descending", "NN" ], [ "?", "." ] ], "values": [ "Namer" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(4) T(1) A(0) C(1) T(1) Order(0) A(0) C(5) T(1)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor ORDER BY salary DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "instructor", "ORDER", "BY", "salary", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "order", "by", "salary", "desc", "limit", "value" ], "question": "Who is the instructor with the highest salary?", "question_toks": [ "who", "is", "instructor", "with", "highest", "salary", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Who", "is", "the", "instructor", "with", "the", "highest", "salary", "?" ], "question_arg": [ [ "who" ], [ "is" ], [ "instructor" ], [ "with" ], [ "highest" ], [ "salary" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "who", "WP" ], [ "is", "VBZ" ], [ "instructor", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "salary", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(3) Sup(0) A(0) C(11) T(3)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor ORDER BY salary DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "instructor", "ORDER", "BY", "salary", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "order", "by", "salary", "desc", "limit", "value" ], "question": "Give the name of the highest paid instructor.", "question_toks": [ "give", "name", "of", "highest", "paid", "instructor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Give", "the", "name", "of", "the", "highest", "paid", "instructor", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "highest" ], [ "paid" ], [ "instructor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "highest", "JJS" ], [ "paid", "VBN" ], [ "instructor", "NN" ], [ ".", "." ] ], "values": [ "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(3) Sup(0) A(0) C(11) T(3)" }, { "db_id": "college_2", "query": "SELECT * FROM instructor ORDER BY salary", "query_toks": [ "SELECT", "*", "FROM", "instructor", "ORDER", "BY", "salary" ], "query_toks_no_value": [ "select", "*", "from", "instructor", "order", "by", "salary" ], "question": "List the information of all instructors ordered by their salary in ascending order.", "question_toks": [ "list", "information", "of", "all", "instructor", "ordered", "by", "their", "salary", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "List", "the", "information", "of", "all", "instructors", "ordered", "by", "their", "salary", "in", "ascending", "order", "." ], "question_arg": [ [ "list" ], [ "information" ], [ "of" ], [ "all" ], [ "instructor" ], [ "ordered" ], [ "by" ], [ "their" ], [ "salary" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "information", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "salary", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(0) T(3) Order(1) A(0) C(11) T(3)" }, { "db_id": "college_2", "query": "SELECT * FROM instructor ORDER BY salary", "query_toks": [ "SELECT", "*", "FROM", "instructor", "ORDER", "BY", "salary" ], "query_toks_no_value": [ "select", "*", "from", "instructor", "order", "by", "salary" ], "question": "Give all information regarding instructors, in order of salary from least to greatest.", "question_toks": [ "give", "all", "information", "regarding", "instructor", ",", "in", "order", "of", "salary", "from", "least", "to", "greatest", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Give", "all", "information", "regarding", "instructors", ",", "in", "order", "of", "salary", "from", "least", "to", "greatest", "." ], "question_arg": [ [ "give" ], [ "all" ], [ "information" ], [ "regarding" ], [ "instructor" ], [ "," ], [ "in" ], [ "order" ], [ "of" ], [ "salary" ], [ "from" ], [ "least" ], [ "to" ], [ "greatest" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "all", "DT" ], [ "information", "NN" ], [ "regarding", "VBG" ], [ "instructor", "NN" ], [ ",", "," ], [ "in", "IN" ], [ "order", "NN" ], [ "of", "IN" ], [ "salary", "NN" ], [ "from", "IN" ], [ "least", "JJS" ], [ "to", "TO" ], [ "greatest", "VB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(0) T(3) Order(1) A(0) C(11) T(3)" }, { "db_id": "college_2", "query": "SELECT name , dept_name FROM student ORDER BY tot_cred", "query_toks": [ "SELECT", "name", ",", "dept_name", "FROM", "student", "ORDER", "BY", "tot_cred" ], "query_toks_no_value": [ "select", "name", ",", "dept_name", "from", "student", "order", "by", "tot_cred" ], "question": "Find the name of the students and their department names sorted by their total credits in ascending order.", "question_toks": [ "find", "name", "of", "student", "and", "their", "department", "name", "sorted", "by", "their", "total", "credit", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "students", "and", "their", "department", "names", "sorted", "by", "their", "total", "credits", "in", "ascending", "order", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "student" ], [ "and" ], [ "their" ], [ "department", "name" ], [ "sorted" ], [ "by" ], [ "their" ], [ "total", "credit" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "department", "NN" ], [ "name", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "total", "JJ" ], [ "credit", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "Jame", "Nam", "Namer" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(10) T(6) A(0) C(4) T(6) Order(1) A(0) C(16) T(6)" }, { "db_id": "college_2", "query": "SELECT name , dept_name FROM student ORDER BY tot_cred", "query_toks": [ "SELECT", "name", ",", "dept_name", "FROM", "student", "ORDER", "BY", "tot_cred" ], "query_toks_no_value": [ "select", "name", ",", "dept_name", "from", "student", "order", "by", "tot_cred" ], "question": "What are the names of students and their respective departments, ordered by number of credits from least to greatest?", "question_toks": [ "what", "are", "name", "of", "student", "and", "their", "respective", "department", ",", "ordered", "by", "number", "of", "credit", "from", "least", "to", "greatest", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "students", "and", "their", "respective", "departments", ",", "ordered", "by", "number", "of", "credits", "from", "least", "to", "greatest", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "student" ], [ "and" ], [ "their" ], [ "respective" ], [ "department" ], [ "," ], [ "ordered" ], [ "by" ], [ "number" ], [ "of" ], [ "credit" ], [ "from" ], [ "least" ], [ "to" ], [ "greatest" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "respective", "JJ" ], [ "department", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "credit", "NN" ], [ "from", "IN" ], [ "least", "JJS" ], [ "to", "TO" ], [ "greatest", "VB" ], [ "?", "." ] ], "values": [ "Namer" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(10) T(6) A(0) C(4) T(6) Order(1) A(0) C(16) T(6)" }, { "db_id": "college_2", "query": "SELECT T1.title , T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.id = T3.id WHERE YEAR = 2008 ORDER BY T1.title", "query_toks": [ "SELECT", "T1.title", ",", "T3.name", "FROM", "course", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "JOIN", "instructor", "AS", "T3", "ON", "T2.id", "=", "T3.id", "WHERE", "YEAR", "=", "2008", "ORDER", "BY", "T1.title" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t3", ".", "name", "from", "course", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "instructor", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "id", "where", "year", "=", "value", "order", "by", "t1", ".", "title" ], "question": "list in alphabetic order all course names and their instructors' names in year 2008.", "question_toks": [ "list", "in", "alphabetic", "order", "all", "course", "name", "and", "their", "instructor", "'", "name", "in", "year", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], 2008.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "list", "in", "alphabetic", "order", "all", "course", "names", "and", "their", "instructors", "'", "names", "in", "year", "2008", "." ], "question_arg": [ [ "list" ], [ "in" ], [ "alphabetic" ], [ "order" ], [ "all" ], [ "course" ], [ "name" ], [ "and" ], [ "their" ], [ "instructor" ], [ "'" ], [ "name" ], [ "in" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "in", "IN" ], [ "alphabetic", "JJ" ], [ "order", "NN" ], [ "all", "DT" ], [ "course", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "instructor", "NN" ], [ "'", "''" ], [ "name", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2008", "CD" ], [ ".", "." ] ], "values": [ "20084", "2008", "21008", "Namer" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(7) T(2) A(0) C(10) T(3) Filter(2) A(0) C(14) T(5) V(1) Order(1) A(0) C(7) T(2)" }, { "db_id": "college_2", "query": "SELECT T1.title , T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.id = T3.id WHERE YEAR = 2008 ORDER BY T1.title", "query_toks": [ "SELECT", "T1.title", ",", "T3.name", "FROM", "course", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "JOIN", "instructor", "AS", "T3", "ON", "T2.id", "=", "T3.id", "WHERE", "YEAR", "=", "2008", "ORDER", "BY", "T1.title" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t3", ".", "name", "from", "course", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "instructor", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "id", "where", "year", "=", "value", "order", "by", "t1", ".", "title" ], "question": "Show all titles and their instructors' names for courses in 2008, in alphabetical order by title.", "question_toks": [ "show", "all", "title", "and", "their", "instructor", "'", "name", "for", "course", "in", "year", ",", "in", "alphabetical", "order", "by", "title", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 23, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 26, false ], null ], 2008.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Show", "all", "titles", "and", "their", "instructors", "'", "names", "for", "courses", "in", "2008", ",", "in", "alphabetical", "order", "by", "title", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "title" ], [ "and" ], [ "their" ], [ "instructor" ], [ "'" ], [ "name" ], [ "for" ], [ "course" ], [ "in" ], [ "year" ], [ "," ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "by" ], [ "title" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "title", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "instructor", "NN" ], [ "'", "POS" ], [ "name", "NN" ], [ "for", "IN" ], [ "course", "NN" ], [ "in", "IN" ], [ "2008", "CD" ], [ ",", "," ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "by", "IN" ], [ "title", "NN" ], [ ".", "." ] ], "values": [ "20084", "2008", "21008", "Namer" ], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(7) T(2) A(0) C(10) T(3) Filter(2) A(0) C(14) T(5) V(1) Order(1) A(0) C(7) T(2)" }, { "db_id": "college_2", "query": "SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", "FROM", "instructor", "AS", "T1", "JOIN", "advisor", "AS", "T2", "ON", "T1.id", "=", "T2.i_id", "GROUP", "BY", "T2.i_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "instructor", "as", "t1", "join", "advisor", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "i_id", "group", "by", "t2", ".", "i_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the name of instructors who are advising more than one student.", "question_toks": [ "find", "name", "of", "instructor", "who", "are", "advising", "more", "than", "one", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 38, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "instructors", "who", "are", "advising", "more", "than", "one", "student", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "are" ], [ "advising" ], [ "more" ], [ "than" ], [ "one" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "advising", "VBG" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "Jame", "Nam", "1", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(19) T(8) Filter(5) A(3) C(0) T(8) V(2)" }, { "db_id": "college_2", "query": "SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id = T2.i_id GROUP BY T2.i_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", "FROM", "instructor", "AS", "T1", "JOIN", "advisor", "AS", "T2", "ON", "T1.id", "=", "T2.i_id", "GROUP", "BY", "T2.i_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "instructor", "as", "t1", "join", "advisor", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "i_id", "group", "by", "t2", ".", "i_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the names of instructors who advise more than one student?", "question_toks": [ "what", "are", "name", "of", "instructor", "who", "advise", "more", "than", "one", "student", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 38, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 38, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "instructors", "who", "advise", "more", "than", "one", "student", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "advise" ], [ "more" ], [ "than" ], [ "one" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "advise", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "1", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(19) T(8) Filter(5) A(3) C(0) T(8) V(0)" }, { "db_id": "college_2", "query": "SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "advisor", "AS", "T2", "ON", "T1.id", "=", "T2.s_id", "GROUP", "BY", "T2.s_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "student", "as", "t1", "join", "advisor", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "s_id", "group", "by", "t2", ".", "s_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the name of the students who have more than one advisor?", "question_toks": [ "find", "name", "of", "student", "who", "have", "more", "than", "one", "advisor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 27, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "students", "who", "have", "more", "than", "one", "advisor", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "advisor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "advisor", "NN" ], [ "?", "." ] ], "values": [ "Jame", "Nam", "1", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(6) Filter(0) Filter(18) A(0) C(9) T(6) Root(5) Sel(0) N(0) A(0) C(18) T(8) Filter(5) A(3) C(0) T(8) V(2)" }, { "db_id": "college_2", "query": "SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING count(*) > 1", "query_toks": [ "SELECT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "advisor", "AS", "T2", "ON", "T1.id", "=", "T2.s_id", "GROUP", "BY", "T2.s_id", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "student", "as", "t1", "join", "advisor", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "s_id", "group", "by", "t2", ".", "s_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the names of students who have more than one advisor?", "question_toks": [ "what", "are", "name", "of", "student", "who", "have", "more", "than", "one", "advisor", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 37, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 8 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 27, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "students", "who", "have", "more", "than", "one", "advisor", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "more" ], [ "than" ], [ "one" ], [ "advisor" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "advisor", "NN" ], [ "?", "." ] ], "values": [ "1", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(6) Filter(0) Filter(18) A(0) C(9) T(6) Root(5) Sel(0) N(0) A(0) C(18) T(8) Filter(5) A(3) C(0) T(8) V(0)" }, { "db_id": "college_2", "query": "SELECT count(*) , building FROM classroom WHERE capacity > 50 GROUP BY building", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "building", "FROM", "classroom", "WHERE", "capacity", ">", "50", "GROUP", "BY", "building" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "building", "from", "classroom", "where", "capacity", ">", "value", "group", "by", "building" ], "question": "Find the number of rooms with more than 50 capacity for each building.", "question_toks": [ "find", "number", "of", "room", "with", "more", "than", "50", "capacity", "for", "each", "building", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "number", "of", "rooms", "with", "more", "than", "50", "capacity", "for", "each", "building", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "room" ], [ "with" ], [ "more" ], [ "than" ], [ "50" ], [ "capacity" ], [ "for" ], [ "each" ], [ "building" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "room", "NN" ], [ "with", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "50", "CD" ], [ "capacity", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "building", "NN" ], [ ".", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(1) T(0) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "college_2", "query": "SELECT count(*) , building FROM classroom WHERE capacity > 50 GROUP BY building", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "building", "FROM", "classroom", "WHERE", "capacity", ">", "50", "GROUP", "BY", "building" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "building", "from", "classroom", "where", "capacity", ">", "value", "group", "by", "building" ], "question": "How many rooms in each building have a capacity of over 50?", "question_toks": [ "how", "many", "room", "in", "each", "building", "have", "a", "capacity", "of", "over", "50", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ [ false, 3, [ 0, [ 0, 3, false ], null ], 50.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "rooms", "in", "each", "building", "have", "a", "capacity", "of", "over", "50", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "room" ], [ "in" ], [ "each" ], [ "building" ], [ "have" ], [ "a" ], [ "capacity" ], [ "of" ], [ "over" ], [ "50" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "room", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "building", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "capacity", "NN" ], [ "of", "IN" ], [ "over", "IN" ], [ "50", "CD" ], [ "?", "." ] ], "values": [ "50" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(3) C(0) T(0) A(0) C(1) T(0) Filter(5) A(0) C(3) T(0) V(0)" }, { "db_id": "college_2", "query": "SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building", "query_toks": [ "SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building" ], "query_toks_no_value": [ "select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building" ], "question": "Find the maximum and average capacity among rooms in each building.", "question_toks": [ "find", "maximum", "and", "average", "capacity", "among", "room", "in", "each", "building", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ], [ 5, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "maximum", "and", "average", "capacity", "among", "rooms", "in", "each", "building", "." ], "question_arg": [ [ "find" ], [ "maximum" ], [ "and" ], [ "average" ], [ "capacity" ], [ "among" ], [ "room" ], [ "in" ], [ "each" ], [ "building" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "maximum", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "capacity", "NN" ], [ "among", "IN" ], [ "room", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "building", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(3) T(0) A(5) C(3) T(0) A(0) C(1) T(0)" }, { "db_id": "college_2", "query": "SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building", "query_toks": [ "SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building" ], "query_toks_no_value": [ "select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building" ], "question": "What are the greatest and average capacity for rooms in each building?", "question_toks": [ "what", "are", "greatest", "and", "average", "capacity", "for", "room", "in", "each", "building", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 3, false ], null ] ], [ 5, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "greatest", "and", "average", "capacity", "for", "rooms", "in", "each", "building", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "greatest" ], [ "and" ], [ "average" ], [ "capacity" ], [ "for" ], [ "room" ], [ "in" ], [ "each" ], [ "building" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "greatest", "JJS" ], [ "and", "CC" ], [ "average", "JJ" ], [ "capacity", "NN" ], [ "for", "IN" ], [ "room", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "building", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(3) T(0) A(5) C(3) T(0) A(0) C(1) T(0)" }, { "db_id": "college_2", "query": "SELECT title FROM course GROUP BY title HAVING count(*) > 1", "query_toks": [ "SELECT", "title", "FROM", "course", "GROUP", "BY", "title", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "title", "from", "course", "group", "by", "title", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find the title of the course that is offered by more than one department.", "question_toks": [ "find", "title", "of", "course", "that", "is", "offered", "by", "more", "than", "one", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "title", "of", "the", "course", "that", "is", "offered", "by", "more", "than", "one", "department", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "course" ], [ "that" ], [ "is" ], [ "offered" ], [ "by" ], [ "more" ], [ "than" ], [ "one" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "offered", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT title FROM course GROUP BY title HAVING count(*) > 1", "query_toks": [ "SELECT", "title", "FROM", "course", "GROUP", "BY", "title", "HAVING", "count", "(", "*", ")", ">", "1" ], "query_toks_no_value": [ "select", "title", "from", "course", "group", "by", "title", "having", "count", "(", "*", ")", ">", "value" ], "question": "What are the titles of courses that are offered in more than one department?", "question_toks": [ "what", "are", "title", "of", "course", "that", "are", "offered", "in", "more", "than", "one", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 8, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 1.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "titles", "of", "courses", "that", "are", "offered", "in", "more", "than", "one", "department", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "title" ], [ "of" ], [ "course" ], [ "that" ], [ "are" ], [ "offered" ], [ "in" ], [ "more" ], [ "than" ], [ "one" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "title", "JJ" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "offered", "VBN" ], [ "in", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "one", "CD" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT sum(credits) , dept_name FROM course GROUP BY dept_name", "query_toks": [ "SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name" ], "query_toks_no_value": [ "select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name" ], "question": "Find the total credits of courses provided by different department.", "question_toks": [ "find", "total", "credit", "of", "course", "provided", "by", "different", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "total", "credits", "of", "courses", "provided", "by", "different", "department", "." ], "question_arg": [ [ "find" ], [ "total", "credit" ], [ "of" ], [ "course" ], [ "provided" ], [ "by" ], [ "different" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "credit", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "provided", "VBN" ], [ "by", "IN" ], [ "different", "JJ" ], [ "department", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(8) T(2) A(0) C(4) T(2)" }, { "db_id": "college_2", "query": "SELECT sum(credits) , dept_name FROM course GROUP BY dept_name", "query_toks": [ "SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name" ], "query_toks_no_value": [ "select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name" ], "question": "How many total credits are offered by each department?", "question_toks": [ "how", "many", "total", "credit", "are", "offered", "by", "each", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 10, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "total", "credits", "are", "offered", "by", "each", "department", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "total", "credit" ], [ "are" ], [ "offered" ], [ "by" ], [ "each" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "total", "JJ" ], [ "credit", "NN" ], [ "are", "VBP" ], [ "offered", "VBN" ], [ "by", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(8) T(2) A(0) C(4) T(2)" }, { "db_id": "college_2", "query": "SELECT min(salary) , dept_name FROM instructor GROUP BY dept_name HAVING avg(salary) > (SELECT avg(salary) FROM instructor)", "query_toks": [ "SELECT", "min", "(", "salary", ")", ",", "dept_name", "FROM", "instructor", "GROUP", "BY", "dept_name", "HAVING", "avg", "(", "salary", ")", ">", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "instructor", ")" ], "query_toks_no_value": [ "select", "min", "(", "salary", ")", ",", "dept_name", "from", "instructor", "group", "by", "dept_name", "having", "avg", "(", "salary", ")", ">", "(", "select", "avg", "(", "salary", ")", "from", "instructor", ")" ], "question": "Find the minimum salary for the departments whose average salary is above the average payment of all instructors.", "question_toks": [ "find", "minimum", "salary", "for", "department", "whose", "average", "salary", "is", "above", "average", "payment", "of", "all", "instructor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 5, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "minimum", "salary", "for", "the", "departments", "whose", "average", "salary", "is", "above", "the", "average", "payment", "of", "all", "instructors", "." ], "question_arg": [ [ "find" ], [ "minimum" ], [ "salary" ], [ "for" ], [ "department" ], [ "whose" ], [ "average" ], [ "salary" ], [ "is" ], [ "above" ], [ "average" ], [ "payment" ], [ "of" ], [ "all" ], [ "instructor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "minimum", "JJ" ], [ "salary", "NN" ], [ "for", "IN" ], [ "department", "NN" ], [ "whose", "WP$" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "is", "VBZ" ], [ "above", "JJ" ], [ "average", "JJ" ], [ "payment", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(2) C(11) T(3) A(0) C(4) T(3) Filter(13) A(5) C(11) T(3) Root(5) Sel(0) N(0) A(5) C(11) T(3)" }, { "db_id": "college_2", "query": "SELECT min(salary) , dept_name FROM instructor GROUP BY dept_name HAVING avg(salary) > (SELECT avg(salary) FROM instructor)", "query_toks": [ "SELECT", "min", "(", "salary", ")", ",", "dept_name", "FROM", "instructor", "GROUP", "BY", "dept_name", "HAVING", "avg", "(", "salary", ")", ">", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "instructor", ")" ], "query_toks_no_value": [ "select", "min", "(", "salary", ")", ",", "dept_name", "from", "instructor", "group", "by", "dept_name", "having", "avg", "(", "salary", ")", ">", "(", "select", "avg", "(", "salary", ")", "from", "instructor", ")" ], "question": "What is the lowest salary in departments with average salary greater than the overall average.", "question_toks": [ "what", "is", "lowest", "salary", "in", "department", "with", "average", "salary", "greater", "than", "overall", "average", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 5, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "lowest", "salary", "in", "departments", "with", "average", "salary", "greater", "than", "the", "overall", "average", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "lowest" ], [ "salary" ], [ "in" ], [ "department" ], [ "with" ], [ "average" ], [ "salary" ], [ "greater" ], [ "than" ], [ "overall" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "lowest", "JJS" ], [ "salary", "JJ" ], [ "in", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "average", "JJ" ], [ "salary", "JJ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "overall", "JJ" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(2) C(11) T(3) A(0) C(4) T(3) Filter(13) A(5) C(11) T(3) Root(5) Sel(0) N(0) A(5) C(11) T(3)" }, { "db_id": "college_2", "query": "SELECT count(*) , semester , YEAR FROM SECTION GROUP BY semester , YEAR", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "semester", ",", "YEAR", "FROM", "SECTION", "GROUP", "BY", "semester", ",", "YEAR" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "semester", ",", "year", "from", "section", "group", "by", "semester", ",", "year" ], "question": "Find the number of courses provided in each semester and year.", "question_toks": [ "find", "number", "of", "course", "provided", "in", "each", "semester", "and", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 17, false ], [ 0, 18, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "number", "of", "courses", "provided", "in", "each", "semester", "and", "year", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "course" ], [ "provided" ], [ "in" ], [ "each" ], [ "semester" ], [ "and" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "provided", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "semester", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(3) C(0) T(4) A(0) C(13) T(4) A(0) C(14) T(4)" }, { "db_id": "college_2", "query": "SELECT count(*) , semester , YEAR FROM SECTION GROUP BY semester , YEAR", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "semester", ",", "YEAR", "FROM", "SECTION", "GROUP", "BY", "semester", ",", "YEAR" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "semester", ",", "year", "from", "section", "group", "by", "semester", ",", "year" ], "question": "How many courses are provided in each semester and year?", "question_toks": [ "how", "many", "course", "are", "provided", "in", "each", "semester", "and", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 17, false ], [ 0, 18, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "courses", "are", "provided", "in", "each", "semester", "and", "year", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "course" ], [ "are" ], [ "provided" ], [ "in" ], [ "each" ], [ "semester" ], [ "and" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "course", "NN" ], [ "are", "VBP" ], [ "provided", "VBN" ], [ "in", "IN" ], [ "each", "DT" ], [ "semester", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(3) C(0) T(4) A(0) C(13) T(4) A(0) C(14) T(4)" }, { "db_id": "college_2", "query": "SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "YEAR", "FROM", "SECTION", "GROUP", "BY", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "year", "from", "section", "group", "by", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the year which offers the largest number of courses.", "question_toks": [ "find", "year", "which", "offer", "largest", "number", "of", "course", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "year", "which", "offers", "the", "largest", "number", "of", "courses", "." ], "question_arg": [ [ "find" ], [ "year" ], [ "which" ], [ "offer" ], [ "largest" ], [ "number" ], [ "of" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "IN" ], [ "year", "NN" ], [ "which", "WDT" ], [ "offer", "VBP" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(14) T(4) Sup(0) A(3) C(0) T(4)" }, { "db_id": "college_2", "query": "SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "YEAR", "FROM", "SECTION", "GROUP", "BY", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "year", "from", "section", "group", "by", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which year had the greatest number of courses?", "question_toks": [ "which", "year", "had", "greatest", "number", "of", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Which", "year", "had", "the", "greatest", "number", "of", "courses", "?" ], "question_arg": [ [ "which" ], [ "year" ], [ "had" ], [ "greatest" ], [ "number" ], [ "of" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "year", "NN" ], [ "had", "VBD" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(14) T(4) Sup(0) A(3) C(0) T(4)" }, { "db_id": "college_2", "query": "SELECT semester , YEAR FROM SECTION GROUP BY semester , YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "semester", ",", "YEAR", "FROM", "SECTION", "GROUP", "BY", "semester", ",", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "semester", ",", "year", "from", "section", "group", "by", "semester", ",", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the year and semester when offers the largest number of courses.", "question_toks": [ "find", "year", "and", "semester", "when", "offer", "largest", "number", "of", "course", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 17, false ], [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "year", "and", "semester", "when", "offers", "the", "largest", "number", "of", "courses", "." ], "question_arg": [ [ "find" ], [ "year" ], [ "and" ], [ "semester" ], [ "when" ], [ "offer" ], [ "largest" ], [ "number" ], [ "of" ], [ "course" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "year", "NN" ], [ "and", "CC" ], [ "semester", "NN" ], [ "when", "WRB" ], [ "offer", "NN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(13) T(4) A(0) C(14) T(4) Sup(0) A(3) C(0) T(4)" }, { "db_id": "college_2", "query": "SELECT semester , YEAR FROM SECTION GROUP BY semester , YEAR ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "semester", ",", "YEAR", "FROM", "SECTION", "GROUP", "BY", "semester", ",", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "semester", ",", "year", "from", "section", "group", "by", "semester", ",", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the year and semester with the most courses?", "question_toks": [ "what", "is", "year", "and", "semester", "with", "most", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [ [ 0, 17, false ], [ 0, 18, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "year", "and", "semester", "with", "the", "most", "courses", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "year" ], [ "and" ], [ "semester" ], [ "with" ], [ "most" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "year", "NN" ], [ "and", "CC" ], [ "semester", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(13) T(4) A(0) C(14) T(4) Sup(0) A(3) C(0) T(4)" }, { "db_id": "college_2", "query": "SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "student", "GROUP", "BY", "dept_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "student", "group", "by", "dept_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of department has the highest amount of students?", "question_toks": [ "find", "name", "of", "department", "ha", "highest", "amount", "of", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "department", "has", "the", "highest", "amount", "of", "students", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "department" ], [ "ha" ], [ "highest" ], [ "amount" ], [ "of" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "?", "." ] ], "values": [ "Nam", "Jame", "Namer" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "college_2", "query": "SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "student", "GROUP", "BY", "dept_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "student", "group", "by", "dept_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the deparment with the highest enrollment?", "question_toks": [ "what", "is", "name", "of", "deparment", "with", "highest", "enrollment", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "deparment", "with", "the", "highest", "enrollment", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "deparment" ], [ "with" ], [ "highest" ], [ "enrollment" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "deparment", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "enrollment", "NN" ], [ "?", "." ] ], "values": [ "Nam", "Jame", "Namer" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "college_2", "query": "SELECT count(*) , dept_name FROM student GROUP BY dept_name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "dept_name", "FROM", "student", "GROUP", "BY", "dept_name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "dept_name", "from", "student", "group", "by", "dept_name" ], "question": "Find the total number of students in each department.", "question_toks": [ "find", "total", "number", "of", "student", "in", "each", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "students", "in", "each", "department", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "in" ], [ "each" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(6) A(0) C(4) T(6)" }, { "db_id": "college_2", "query": "SELECT count(*) , dept_name FROM student GROUP BY dept_name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "dept_name", "FROM", "student", "GROUP", "BY", "dept_name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "dept_name", "from", "student", "group", "by", "dept_name" ], "question": "How many students are in each department?", "question_toks": [ "how", "many", "student", "are", "in", "each", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 29, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "students", "are", "in", "each", "department", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "are" ], [ "in" ], [ "each" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(6) A(0) C(4) T(6)" }, { "db_id": "college_2", "query": "SELECT semester , YEAR FROM takes GROUP BY semester , YEAR ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "semester", ",", "YEAR", "FROM", "takes", "GROUP", "BY", "semester", ",", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "semester", ",", "year", "from", "takes", "group", "by", "semester", ",", "year", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Find the semester and year which has the least number of student taking any class.", "question_toks": [ "find", "semester", "and", "year", "which", "ha", "least", "number", "of", "student", "taking", "any", "class", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 34, false ], [ 0, 35, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "semester", "and", "year", "which", "has", "the", "least", "number", "of", "student", "taking", "any", "class", "." ], "question_arg": [ [ "find" ], [ "semester" ], [ "and" ], [ "year" ], [ "which" ], [ "ha" ], [ "least" ], [ "number" ], [ "of" ], [ "student" ], [ "taking" ], [ "any" ], [ "class" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "semester", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "which", "WDT" ], [ "ha", "VBD" ], [ "least", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "taking", "VBG" ], [ "any", "DT" ], [ "class", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(13) T(7) A(0) C(14) T(7) Sup(1) A(3) C(0) T(7)" }, { "db_id": "college_2", "query": "SELECT semester , YEAR FROM takes GROUP BY semester , YEAR ORDER BY count(*) LIMIT 1", "query_toks": [ "SELECT", "semester", ",", "YEAR", "FROM", "takes", "GROUP", "BY", "semester", ",", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "semester", ",", "year", "from", "takes", "group", "by", "semester", ",", "year", "order", "by", "count", "(", "*", ")", "limit", "value" ], "question": "Which semeseter and year had the fewest students?", "question_toks": [ "which", "semeseter", "and", "year", "had", "fewest", "student", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 34, false ], [ 0, 35, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 34, false ], null ] ], [ 0, [ 0, [ 0, 35, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Which", "semeseter", "and", "year", "had", "the", "fewest", "students", "?" ], "question_arg": [ [ "which" ], [ "semeseter" ], [ "and" ], [ "year" ], [ "had" ], [ "fewest" ], [ "student" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "semeseter", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "had", "VBD" ], [ "fewest", "JJS" ], [ "student", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(13) T(7) A(0) C(14) T(7) Sup(1) A(3) C(0) T(7)" }, { "db_id": "college_2", "query": "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History'", "query_toks": [ "SELECT", "i_id", "FROM", "advisor", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.s_id", "=", "T2.id", "WHERE", "T2.dept_name", "=", "'History", "'" ], "query_toks_no_value": [ "select", "i_id", "from", "advisor", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "s_id", "=", "t2", ".", "id", "where", "t2", ".", "dept_name", "=", "value" ], "question": "What is the id of the instructor who advises of all students from History department?", "question_toks": [ "what", "is", "id", "of", "instructor", "who", "advises", "of", "all", "student", "from", "history", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "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, 29, false ], null ], "\"History\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "instructor", "who", "advises", "of", "all", "students", "from", "History", "department", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "instructor" ], [ "who" ], [ "advises" ], [ "of" ], [ "all" ], [ "student" ], [ "from" ], [ "history" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "advises", "VBZ" ], [ "of", "IN" ], [ "all", "DT" ], [ "student", "NN" ], [ "from", "IN" ], [ "history", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "History" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(8) Filter(2) A(0) C(4) T(6) V(0)" }, { "db_id": "college_2", "query": "SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id = T2.id WHERE T2.dept_name = 'History'", "query_toks": [ "SELECT", "i_id", "FROM", "advisor", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.s_id", "=", "T2.id", "WHERE", "T2.dept_name", "=", "'History", "'" ], "query_toks_no_value": [ "select", "i_id", "from", "advisor", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "s_id", "=", "t2", ".", "id", "where", "t2", ".", "dept_name", "=", "value" ], "question": "Give id of the instructor who advises students in the History department.", "question_toks": [ "give", "id", "of", "instructor", "who", "advises", "student", "in", "history", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 27, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "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, 29, false ], null ], "\"History\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Give", "id", "of", "the", "instructor", "who", "advises", "students", "in", "the", "History", "department", "." ], "question_arg": [ [ "give" ], [ "id" ], [ "of" ], [ "instructor" ], [ "who" ], [ "advises" ], [ "student" ], [ "in" ], [ "history" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "id", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "advises", "VBZ" ], [ "student", "NN" ], [ "in", "IN" ], [ "history", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "History" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(19) T(8) Filter(2) A(0) C(4) T(6) V(0)" }, { "db_id": "college_2", "query": "SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'", "query_toks": [ "SELECT", "T2.name", ",", "T2.salary", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "WHERE", "T3.dept_name", "=", "'History", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "salary", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "where", "t3", ".", "dept_name", "=", "value" ], "question": "Find the name and salary of the instructors who are advisors of any student from History department?", "question_toks": [ "find", "name", "and", "salary", "of", "instructor", "who", "are", "advisor", "of", "any", "student", "from", "history", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "and", "salary", "of", "the", "instructors", "who", "are", "advisors", "of", "any", "student", "from", "History", "department", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "salary" ], [ "of" ], [ "instructor" ], [ "who" ], [ "are" ], [ "advisor" ], [ "of" ], [ "any" ], [ "student" ], [ "from" ], [ "history" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "advisor", "NNS" ], [ "of", "IN" ], [ "any", "DT" ], [ "student", "NN" ], [ "from", "IN" ], [ "history", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Namer", "History", "Nam", "Jame" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(11) T(3) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(19) T(8) Filter(2) A(0) C(4) T(6) V(1)" }, { "db_id": "college_2", "query": "SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'History'", "query_toks": [ "SELECT", "T2.name", ",", "T2.salary", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "WHERE", "T3.dept_name", "=", "'History", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "salary", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "where", "t3", ".", "dept_name", "=", "value" ], "question": "What are the names and salaries of instructors who advises students in the History department?", "question_toks": [ "what", "are", "name", "and", "salary", "of", "instructor", "who", "advises", "student", "in", "history", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 29, false ], null ], "\"History\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "salaries", "of", "instructors", "who", "advises", "students", "in", "the", "History", "department", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "salary" ], [ "of" ], [ "instructor" ], [ "who" ], [ "advises" ], [ "student" ], [ "in" ], [ "history" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "salary", "JJ" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "advises", "VBZ" ], [ "student", "NN" ], [ "in", "IN" ], [ "history", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Namer", "History" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(11) T(3) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(19) T(8) Filter(2) A(0) C(4) T(6) V(1)" }, { "db_id": "college_2", "query": "SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq", "query_toks": [ "SELECT", "course_id", "FROM", "course", "EXCEPT", "SELECT", "course_id", "FROM", "prereq" ], "query_toks_no_value": [ "select", "course_id", "from", "course", "except", "select", "course_id", "from", "prereq" ], "question": "Find the id of the courses that do not have any prerequisite?", "question_toks": [ "find", "id", "of", "course", "that", "do", "not", "have", "any", "prerequisite", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, "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": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "id", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "course" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "prerequisite" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "prerequisite", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(10)" }, { "db_id": "college_2", "query": "SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq", "query_toks": [ "SELECT", "course_id", "FROM", "course", "EXCEPT", "SELECT", "course_id", "FROM", "prereq" ], "query_toks_no_value": [ "select", "course_id", "from", "course", "except", "select", "course_id", "from", "prereq" ], "question": "What are the ids of courses without prerequisites?", "question_toks": [ "what", "are", "id", "of", "course", "without", "prerequisite", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, "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": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "courses", "without", "prerequisites", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "course" ], [ "without" ], [ "prerequisite" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "course", "NN" ], [ "without", "IN" ], [ "prerequisite", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(10)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")" ], "question": "Find the name of the courses that do not have any prerequisite?", "question_toks": [ "find", "name", "of", "course", "that", "do", "not", "have", "any", "prerequisite", "?" ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "course" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "prerequisite" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "prerequisite", "NN" ], [ "?", "." ] ], "values": [ "Namer", "Jame", "Nam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(19) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(10)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")" ], "question": "What are the names of courses without prerequisites?", "question_toks": [ "what", "are", "name", "of", "course", "without", "prerequisite", "?" ], "sql": { "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": [ [ true, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "courses", "without", "prerequisites", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "course" ], [ "without" ], [ "prerequisite" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "without", "IN" ], [ "prerequisite", "NN" ], [ "?", "." ] ], "values": [ "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(19) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(10)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance')", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "IN", "(", "SELECT", "T1.prereq_id", "FROM", "prereq", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.title", "=", "'International", "Finance", "'", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "in", "(", "select", "t1", ".", "prereq_id", "from", "prereq", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "title", "=", "value", ")" ], "question": "What is the title of the prerequisite class of International Finance course?", "question_toks": [ "what", "is", "title", "of", "prerequisite", "class", "of", "international", "finance", "course", "?" ], "sql": { "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": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"International Finance\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "title", "of", "the", "prerequisite", "class", "of", "International", "Finance", "course", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "of" ], [ "prerequisite" ], [ "class" ], [ "of" ], [ "international" ], [ "finance" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "NN" ], [ "of", "IN" ], [ "prerequisite", "JJ" ], [ "class", "NN" ], [ "of", "IN" ], [ "international", "JJ" ], [ "finance", "NN" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "International Finance", "Finance", "International Trade" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(18) A(0) C(6) T(2) Root(3) Sel(0) N(0) A(0) C(25) T(10) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance')", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "IN", "(", "SELECT", "T1.prereq_id", "FROM", "prereq", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.title", "=", "'International", "Finance", "'", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "in", "(", "select", "t1", ".", "prereq_id", "from", "prereq", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "title", "=", "value", ")" ], "question": "Give the title of the prerequisite to the course International Finance.", "question_toks": [ "give", "title", "of", "prerequisite", "to", "course", "international", "finance", "." ], "sql": { "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": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"International Finance\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Give", "the", "title", "of", "the", "prerequisite", "to", "the", "course", "International", "Finance", "." ], "question_arg": [ [ "give" ], [ "title" ], [ "of" ], [ "prerequisite" ], [ "to" ], [ "course" ], [ "international" ], [ "finance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "title", "NN" ], [ "of", "IN" ], [ "prerequisite", "NN" ], [ "to", "TO" ], [ "course", "NN" ], [ "international", "JJ" ], [ "finance", "NN" ], [ ".", "." ] ], "values": [ "International Finance", "Finance", "International Trade" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(18) A(0) C(6) T(2) Root(3) Sel(0) N(0) A(0) C(25) T(10) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry')", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "IN", "(", "SELECT", "T1.course_id", "FROM", "prereq", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.prereq_id", "=", "T2.course_id", "WHERE", "T2.title", "=", "'Differential", "Geometry", "'", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "in", "(", "select", "t1", ".", "course_id", "from", "prereq", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "prereq_id", "=", "t2", ".", "course_id", "where", "t2", ".", "title", "=", "value", ")" ], "question": "Find the title of course whose prerequisite is course Differential Geometry.", "question_toks": [ "find", "title", "of", "course", "whose", "prerequisite", "is", "course", "differential", "geometry", "." ], "sql": { "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": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Differential Geometry\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "title", "of", "course", "whose", "prerequisite", "is", "course", "Differential", "Geometry", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "course" ], [ "whose" ], [ "prerequisite" ], [ "is" ], [ "course" ], [ "differential" ], [ "geometry" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "whose", "WP$" ], [ "prerequisite", "NN" ], [ "is", "VBZ" ], [ "course", "NN" ], [ "differential", "JJ" ], [ "geometry", "NN" ], [ ".", "." ] ], "values": [ "Differential Geometry" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(18) A(0) C(6) T(2) Root(3) Sel(0) N(0) A(0) C(6) T(10) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry')", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "IN", "(", "SELECT", "T1.course_id", "FROM", "prereq", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.prereq_id", "=", "T2.course_id", "WHERE", "T2.title", "=", "'Differential", "Geometry", "'", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "in", "(", "select", "t1", ".", "course_id", "from", "prereq", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "prereq_id", "=", "t2", ".", "course_id", "where", "t2", ".", "title", "=", "value", ")" ], "question": "What is the title of the course with Differential Geometry as a prerequisite?", "question_toks": [ "what", "is", "title", "of", "course", "with", "differential", "geometry", "a", "a", "prerequisite", "?" ], "sql": { "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": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 46, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Differential Geometry\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "title", "of", "the", "course", "with", "Differential", "Geometry", "as", "a", "prerequisite", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "of" ], [ "course" ], [ "with" ], [ "differential" ], [ "geometry" ], [ "a" ], [ "a" ], [ "prerequisite" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "with", "IN" ], [ "differential", "JJ" ], [ "geometry", "NN" ], [ "a", "DT" ], [ "a", "DT" ], [ "prerequisite", "NN" ], [ "?", "." ] ], "values": [ "Differential Geometry" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(18) A(0) C(6) T(2) Root(3) Sel(0) N(0) A(0) C(6) T(10) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester = 'Fall' AND YEAR = 2003)", "query_toks": [ "SELECT", "name", "FROM", "student", "WHERE", "id", "IN", "(", "SELECT", "id", "FROM", "takes", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2003", ")" ], "query_toks_no_value": [ "select", "name", "from", "student", "where", "id", "in", "(", "select", "id", "from", "takes", "where", "semester", "=", "value", "and", "year", "=", "value", ")" ], "question": "Find the names of students who have taken any course in the fall semester of year 2003.", "question_toks": [ "find", "name", "of", "student", "who", "have", "taken", "any", "course", "in", "fall", "semester", "of", "year", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 27, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], 2003.0, null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "names", "of", "students", "who", "have", "taken", "any", "course", "in", "the", "fall", "semester", "of", "year", "2003", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "taken" ], [ "any" ], [ "course" ], [ "in" ], [ "fall" ], [ "semester" ], [ "of" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "any", "DT" ], [ "course", "NN" ], [ "in", "IN" ], [ "fall", "NN" ], [ "semester", "NN" ], [ "of", "IN" ], [ "year", "NN" ], [ "2003", "CD" ], [ ".", "." ] ], "values": [ "22003", "Fall", "2003", "Namer", "20803" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(6) Filter(18) A(0) C(9) T(6) Root(3) Sel(0) N(0) A(0) C(9) T(7) Filter(0) Filter(2) A(0) C(13) T(7) V(1) Filter(2) A(0) C(14) T(7) V(2)" }, { "db_id": "college_2", "query": "SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester = 'Fall' AND YEAR = 2003)", "query_toks": [ "SELECT", "name", "FROM", "student", "WHERE", "id", "IN", "(", "SELECT", "id", "FROM", "takes", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2003", ")" ], "query_toks_no_value": [ "select", "name", "from", "student", "where", "id", "in", "(", "select", "id", "from", "takes", "where", "semester", "=", "value", "and", "year", "=", "value", ")" ], "question": "What are the names of students who took a course in the Fall of 2003?", "question_toks": [ "what", "are", "name", "of", "student", "who", "took", "a", "course", "in", "fall", "of", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 27, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 34, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 35, false ], null ], 2003.0, null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "students", "who", "took", "a", "course", "in", "the", "Fall", "of", "2003", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "took" ], [ "a" ], [ "course" ], [ "in" ], [ "fall" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "a", "DT" ], [ "course", "NN" ], [ "in", "IN" ], [ "fall", "NN" ], [ "of", "IN" ], [ "2003", "CD" ], [ "?", "." ] ], "values": [ "22003", "Fall", "Gall", "Wall", "2003", "Namer", "20803" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(6) Filter(18) A(0) C(9) T(6) Root(3) Sel(0) N(0) A(0) C(9) T(7) Filter(0) Filter(2) A(0) C(13) T(7) V(1) Filter(2) A(0) C(14) T(7) V(4)" }, { "db_id": "college_2", "query": "SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010", "query_toks": [ "SELECT", "T1.title", "FROM", "course", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "building", "=", "'Chandler", "'", "AND", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "course", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "building", "=", "value", "and", "semester", "=", "value", "and", "year", "=", "value" ], "question": "What is the title of the course that was offered at building Chandler during the fall semester in the year of 2010?", "question_toks": [ "what", "is", "title", "of", "course", "that", "wa", "offered", "at", "building", "chandler", "during", "fall", "semester", "in", "year", "of", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Chandler\"", null ], "and", [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "title", "of", "the", "course", "that", "was", "offered", "at", "building", "Chandler", "during", "the", "fall", "semester", "in", "the", "year", "of", "2010", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "of" ], [ "course" ], [ "that" ], [ "wa" ], [ "offered" ], [ "at" ], [ "building" ], [ "chandler" ], [ "during" ], [ "fall" ], [ "semester" ], [ "in" ], [ "year" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "IN" ], [ "wa", "NN" ], [ "offered", "VBN" ], [ "at", "IN" ], [ "building", "VBG" ], [ "chandler", "NN" ], [ "during", "IN" ], [ "fall", "NN" ], [ "semester", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "of", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "Chandler", "Fall", "20180", "2010", "24010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(2) A(0) C(1) T(4) V(0) Filter(0) Filter(2) A(0) C(13) T(4) V(1) Filter(2) A(0) C(14) T(4) V(3)" }, { "db_id": "college_2", "query": "SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010", "query_toks": [ "SELECT", "T1.title", "FROM", "course", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "building", "=", "'Chandler", "'", "AND", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "course", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "building", "=", "value", "and", "semester", "=", "value", "and", "year", "=", "value" ], "question": "Give the title of the course offered in Chandler during the Fall of 2010.", "question_toks": [ "give", "title", "of", "course", "offered", "in", "chandler", "during", "fall", "of", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 19, false ], null ], "\"Chandler\"", null ], "and", [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Give", "the", "title", "of", "the", "course", "offered", "in", "Chandler", "during", "the", "Fall", "of", "2010", "." ], "question_arg": [ [ "give" ], [ "title" ], [ "of" ], [ "course" ], [ "offered" ], [ "in" ], [ "chandler" ], [ "during" ], [ "fall" ], [ "of" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "title", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "offered", "VBN" ], [ "in", "IN" ], [ "chandler", "NN" ], [ "during", "IN" ], [ "fall", "NN" ], [ "of", "IN" ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "Chandler", "Fall", "Gall", "20180", "Wall", "2010", "24010" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(0) Filter(2) A(0) C(1) T(4) V(0) Filter(0) Filter(2) A(0) C(13) T(4) V(1) Filter(2) A(0) C(14) T(4) V(5)" }, { "db_id": "college_2", "query": "SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming'", "query_toks": [ "SELECT", "T1.name", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.id", "=", "T2.id", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T3.title", "=", "'C", "Programming", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t3", ".", "title", "=", "value" ], "question": "Find the name of the instructors who taught C Programming course before.", "question_toks": [ "find", "name", "of", "instructor", "who", "taught", "c", "programming", "course", "before", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"C Programming\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "instructors", "who", "taught", "C", "Programming", "course", "before", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "taught" ], [ "c" ], [ "programming" ], [ "course" ], [ "before" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "taught", "VBD" ], [ "c", "NNS" ], [ "programming", "VBG" ], [ "course", "NN" ], [ "before", "IN" ], [ ".", "." ] ], "values": [ "C Programming", "Game Programming", "Jame", "FOCAL Programming", "RPG Programming", "Nam", "C", "Namer", "C Programming" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(5) Filter(2) A(0) C(7) T(2) V(8)" }, { "db_id": "college_2", "query": "SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id = T2.id JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.title = 'C Programming'", "query_toks": [ "SELECT", "T1.name", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.id", "=", "T2.id", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T3.title", "=", "'C", "Programming", "'" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t3", ".", "title", "=", "value" ], "question": "What are the names of instructors who have taught C Programming courses?", "question_toks": [ "what", "are", "name", "of", "instructor", "who", "have", "taught", "c", "programming", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 5 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 8, false ], null ], "\"C Programming\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "instructors", "who", "have", "taught", "C", "Programming", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "have" ], [ "taught" ], [ "c" ], [ "programming" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "c", "NNS" ], [ "programming", "VBG" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "C Programming", "Game Programming", "FOCAL Programming", "RPG Programming", "C", "Namer", "C Programming" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(5) Filter(2) A(0) C(7) T(2) V(6)" }, { "db_id": "college_2", "query": "SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math'", "query_toks": [ "SELECT", "T2.name", ",", "T2.salary", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "WHERE", "T3.dept_name", "=", "'Math", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "salary", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "where", "t3", ".", "dept_name", "=", "value" ], "question": "Find the name and salary of instructors who are advisors of the students from the Math department.", "question_toks": [ "find", "name", "and", "salary", "of", "instructor", "who", "are", "advisor", "of", "student", "from", "math", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Math\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "and", "salary", "of", "instructors", "who", "are", "advisors", "of", "the", "students", "from", "the", "Math", "department", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "salary" ], [ "of" ], [ "instructor" ], [ "who" ], [ "are" ], [ "advisor" ], [ "of" ], [ "student" ], [ "from" ], [ "math" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "advisor", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "from", "IN" ], [ "math", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Math", "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(11) T(3) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(19) T(8) Filter(2) A(0) C(4) T(6) V(0)" }, { "db_id": "college_2", "query": "SELECT T2.name , T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math'", "query_toks": [ "SELECT", "T2.name", ",", "T2.salary", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "WHERE", "T3.dept_name", "=", "'Math", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "salary", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "where", "t3", ".", "dept_name", "=", "value" ], "question": "What are the names and salaries of instructors who advise students in the Math department?", "question_toks": [ "what", "are", "name", "and", "salary", "of", "instructor", "who", "advise", "student", "in", "math", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Math\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "salaries", "of", "instructors", "who", "advise", "students", "in", "the", "Math", "department", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "salary" ], [ "of" ], [ "instructor" ], [ "who" ], [ "advise" ], [ "student" ], [ "in" ], [ "math" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "salary", "JJ" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "advise", "VBP" ], [ "student", "NN" ], [ "in", "IN" ], [ "math", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Math", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(11) T(3) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(19) T(8) Filter(2) A(0) C(4) T(6) V(0)" }, { "db_id": "college_2", "query": "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math' ORDER BY T3.tot_cred", "query_toks": [ "SELECT", "T2.name", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "WHERE", "T3.dept_name", "=", "'Math", "'", "ORDER", "BY", "T3.tot_cred" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "where", "t3", ".", "dept_name", "=", "value", "order", "by", "t3", ".", "tot_cred" ], "question": "Find the name of instructors who are advisors of the students from the Math department, and sort the results by students' total credit.", "question_toks": [ "find", "name", "of", "instructor", "who", "are", "advisor", "of", "student", "from", "math", "department", ",", "and", "sort", "result", "by", "student", "'", "total", "credit", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Math\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "instructors", "who", "are", "advisors", "of", "the", "students", "from", "the", "Math", "department", ",", "and", "sort", "the", "results", "by", "students", "'", "total", "credit", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "are" ], [ "advisor" ], [ "of" ], [ "student" ], [ "from" ], [ "math" ], [ "department" ], [ "," ], [ "and" ], [ "sort" ], [ "result" ], [ "by" ], [ "student" ], [ "'" ], [ "total", "credit" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "advisor", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "from", "IN" ], [ "math", "NN" ], [ "department", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "sort", "NN" ], [ "result", "NN" ], [ "by", "IN" ], [ "student", "NN" ], [ "'", "POS" ], [ "total", "JJ" ], [ "credit", "NN" ], [ ".", "." ] ], "values": [ "Math", "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(19) T(8) Filter(2) A(0) C(4) T(6) V(0) Order(1) A(0) C(16) T(6)" }, { "db_id": "college_2", "query": "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math' ORDER BY T3.tot_cred", "query_toks": [ "SELECT", "T2.name", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "WHERE", "T3.dept_name", "=", "'Math", "'", "ORDER", "BY", "T3.tot_cred" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "where", "t3", ".", "dept_name", "=", "value", "order", "by", "t3", ".", "tot_cred" ], "question": "What are the names of all instructors who advise students in the math depart sorted by total credits of the student.", "question_toks": [ "what", "are", "name", "of", "all", "instructor", "who", "advise", "student", "in", "math", "depart", "sorted", "by", "total", "credit", "of", "student", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 29, false ], null ], "\"Math\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "instructors", "who", "advise", "students", "in", "the", "math", "depart", "sorted", "by", "total", "credits", "of", "the", "student", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "who" ], [ "advise" ], [ "student" ], [ "in" ], [ "math" ], [ "depart" ], [ "sorted" ], [ "by" ], [ "total", "credit" ], [ "of" ], [ "student" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "advise", "VBP" ], [ "student", "NN" ], [ "in", "IN" ], [ "math", "JJ" ], [ "depart", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "total", "JJ" ], [ "credit", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ ".", "." ] ], "values": [ "Math", "Namer" ], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(19) T(8) Filter(2) A(0) C(4) T(6) V(0) Order(1) A(0) C(16) T(6)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing')", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "IN", "(", "SELECT", "T1.prereq_id", "FROM", "prereq", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.title", "=", "'Mobile", "Computing", "'", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "in", "(", "select", "t1", ".", "prereq_id", "from", "prereq", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "title", "=", "value", ")" ], "question": "What is the course title of the prerequisite of course Mobile Computing?", "question_toks": [ "what", "is", "course", "title", "of", "prerequisite", "of", "course", "mobile", "computing", "?" ], "sql": { "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": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Mobile Computing\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "course", "title", "of", "the", "prerequisite", "of", "course", "Mobile", "Computing", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "course" ], [ "title" ], [ "of" ], [ "prerequisite" ], [ "of" ], [ "course" ], [ "mobile" ], [ "computing" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "course", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "prerequisite", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "mobile", "NN" ], [ "computing", "VBG" ], [ "?", "." ] ], "values": [ "Mobile Computing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(18) A(0) C(6) T(2) Root(3) Sel(0) N(0) A(0) C(25) T(10) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing')", "query_toks": [ "SELECT", "title", "FROM", "course", "WHERE", "course_id", "IN", "(", "SELECT", "T1.prereq_id", "FROM", "prereq", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.title", "=", "'Mobile", "Computing", "'", ")" ], "query_toks_no_value": [ "select", "title", "from", "course", "where", "course_id", "in", "(", "select", "t1", ".", "prereq_id", "from", "prereq", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "title", "=", "value", ")" ], "question": "What is the title of the course that is a prerequisite for Mobile Computing?", "question_toks": [ "what", "is", "title", "of", "course", "that", "is", "a", "prerequisite", "for", "mobile", "computing", "?" ], "sql": { "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": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 10 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"Mobile Computing\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "title", "of", "the", "course", "that", "is", "a", "prerequisite", "for", "Mobile", "Computing", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "of" ], [ "course" ], [ "that" ], [ "is" ], [ "a" ], [ "prerequisite" ], [ "for" ], [ "mobile" ], [ "computing" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "a", "DT" ], [ "prerequisite", "NN" ], [ "for", "IN" ], [ "mobile", "JJ" ], [ "computing", "NN" ], [ "?", "." ] ], "values": [ "Mobile Computing" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(18) A(0) C(6) T(2) Root(3) Sel(0) N(0) A(0) C(25) T(10) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "ORDER", "BY", "T3.tot_cred", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "order", "by", "t3", ".", "tot_cred", "desc", "limit", "value" ], "question": "Find the name of instructor who is the advisor of the student who has the highest number of total credits.", "question_toks": [ "find", "name", "of", "instructor", "who", "is", "advisor", "of", "student", "who", "ha", "highest", "number", "of", "total", "credit", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "instructor", "who", "is", "the", "advisor", "of", "the", "student", "who", "has", "the", "highest", "number", "of", "total", "credits", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "is" ], [ "advisor" ], [ "of" ], [ "student" ], [ "who" ], [ "ha" ], [ "highest" ], [ "number" ], [ "of" ], [ "total", "credit" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "is", "VBZ" ], [ "advisor", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "highest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "credit", "NN" ], [ ".", "." ] ], "values": [ "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(3) Sup(0) A(0) C(16) T(6) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(19) T(8)" }, { "db_id": "college_2", "query": "SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id ORDER BY T3.tot_cred DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "ORDER", "BY", "T3.tot_cred", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "order", "by", "t3", ".", "tot_cred", "desc", "limit", "value" ], "question": "What is the name of the instructor who advises the student with the greatest number of total credits?", "question_toks": [ "what", "is", "name", "of", "instructor", "who", "advises", "student", "with", "greatest", "number", "of", "total", "credit", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 38, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 8 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 30, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 8 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "instructor", "who", "advises", "the", "student", "with", "the", "greatest", "number", "of", "total", "credits", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "advises" ], [ "student" ], [ "with" ], [ "greatest" ], [ "number" ], [ "of" ], [ "total", "credit" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "advises", "VBZ" ], [ "student", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "credit", "NN" ], [ "?", "." ] ], "values": [ "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(10) T(3) Sup(0) A(0) C(16) T(6) Filter(18) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(19) T(8)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches)", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "id", "FROM", "teaches", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "id", "not", "in", "(", "select", "id", "from", "teaches", ")" ], "question": "Find the name of instructors who didn't teach any courses?", "question_toks": [ "find", "name", "of", "instructor", "who", "did", "n't", "teach", "any", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "instructors", "who", "did", "n't", "teach", "any", "courses", "?" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "did" ], [ "n't" ], [ "teach" ], [ "any" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "n't", "RB" ], [ "teach", "VB" ], [ "any", "DT" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(19) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(5)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches)", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "id", "FROM", "teaches", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "id", "not", "in", "(", "select", "id", "from", "teaches", ")" ], "question": "What are the names of instructors who didn't teach?", "question_toks": [ "what", "are", "name", "of", "instructor", "who", "did", "n't", "teach", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "instructors", "who", "did", "n't", "teach", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "did" ], [ "n't" ], [ "teach" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "n't", "RB" ], [ "teach", "VB" ], [ "?", "." ] ], "values": [ "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(19) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(5)" }, { "db_id": "college_2", "query": "SELECT id FROM instructor EXCEPT SELECT id FROM teaches", "query_toks": [ "SELECT", "id", "FROM", "instructor", "EXCEPT", "SELECT", "id", "FROM", "teaches" ], "query_toks_no_value": [ "select", "id", "from", "instructor", "except", "select", "id", "from", "teaches" ], "question": "Find the id of instructors who didn't teach any courses?", "question_toks": [ "find", "id", "of", "instructor", "who", "did", "n't", "teach", "any", "course", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "id", "of", "instructors", "who", "did", "n't", "teach", "any", "courses", "?" ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "instructor" ], [ "who" ], [ "did" ], [ "n't" ], [ "teach" ], [ "any" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "n't", "RB" ], [ "teach", "VB" ], [ "any", "DT" ], [ "course", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(5)" }, { "db_id": "college_2", "query": "SELECT id FROM instructor EXCEPT SELECT id FROM teaches", "query_toks": [ "SELECT", "id", "FROM", "instructor", "EXCEPT", "SELECT", "id", "FROM", "teaches" ], "query_toks_no_value": [ "select", "id", "from", "instructor", "except", "select", "id", "from", "teaches" ], "question": "What are the ids of instructors who didnt' teach?", "question_toks": [ "what", "are", "id", "of", "instructor", "who", "didnt", "'", "teach", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [] }, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "instructors", "who", "didnt", "'", "teach", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "instructor" ], [ "who" ], [ "didnt" ], [ "'" ], [ "teach" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "didnt", "VBP" ], [ "'", "''" ], [ "teach", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(9) T(3) Root(5) Sel(0) N(0) A(0) C(9) T(5)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester = 'Spring')", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "id", "not", "in", "(", "select", "id", "from", "teaches", "where", "semester", "=", "value", ")" ], "question": "Find the names of instructors who didn't each any courses in any Spring semester.", "question_toks": [ "find", "name", "of", "instructor", "who", "did", "n't", "each", "any", "course", "in", "any", "spring", "semester", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "names", "of", "instructors", "who", "did", "n't", "each", "any", "courses", "in", "any", "Spring", "semester", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "did" ], [ "n't" ], [ "each" ], [ "any" ], [ "course" ], [ "in" ], [ "any" ], [ "spring" ], [ "semester" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "n't", "RB" ], [ "each", "DT" ], [ "any", "DT" ], [ "course", "NN" ], [ "in", "IN" ], [ "any", "DT" ], [ "spring", "NN" ], [ "semester", "NN" ], [ ".", "." ] ], "values": [ "Spring", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(19) A(0) C(9) T(3) Root(3) Sel(0) N(0) A(0) C(9) T(5) Filter(2) A(0) C(13) T(5) V(0)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester = 'Spring')", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "id", "not", "in", "(", "select", "id", "from", "teaches", "where", "semester", "=", "value", ")" ], "question": "What are the names of instructors who didn't teach courses in the Spring?", "question_toks": [ "what", "are", "name", "of", "instructor", "who", "did", "n't", "teach", "course", "in", "spring", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 11, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "instructors", "who", "did", "n't", "teach", "courses", "in", "the", "Spring", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "did" ], [ "n't" ], [ "teach" ], [ "course" ], [ "in" ], [ "spring" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "n't", "RB" ], [ "teach", "VB" ], [ "course", "NN" ], [ "in", "IN" ], [ "spring", "NN" ], [ "?", "." ] ], "values": [ "Spring", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(19) A(0) C(9) T(3) Root(3) Sel(0) N(0) A(0) C(9) T(5) Filter(2) A(0) C(13) T(5) V(0)" }, { "db_id": "college_2", "query": "SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "instructor", "GROUP", "BY", "dept_name", "ORDER", "BY", "avg", "(", "salary", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "instructor", "group", "by", "dept_name", "order", "by", "avg", "(", "salary", ")", "desc", "limit", "value" ], "question": "Find the name of the department which has the highest average salary of professors.", "question_toks": [ "find", "name", "of", "department", "which", "ha", "highest", "average", "salary", "of", "professor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "department", "which", "has", "the", "highest", "average", "salary", "of", "professors", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "department" ], [ "which" ], [ "ha" ], [ "highest" ], [ "average" ], [ "salary" ], [ "of" ], [ "professor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "department", "NN" ], [ "which", "WDT" ], [ "ha", "VBP" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "of", "IN" ], [ "professor", "NN" ], [ ".", "." ] ], "values": [ "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(3) Sup(0) A(5) C(11) T(3)" }, { "db_id": "college_2", "query": "SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1", "query_toks": [ "SELECT", "dept_name", "FROM", "instructor", "GROUP", "BY", "dept_name", "ORDER", "BY", "avg", "(", "salary", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "dept_name", "from", "instructor", "group", "by", "dept_name", "order", "by", "avg", "(", "salary", ")", "desc", "limit", "value" ], "question": "Which department has the highest average instructor salary?", "question_toks": [ "which", "department", "ha", "highest", "average", "instructor", "salary", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 14, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Which", "department", "has", "the", "highest", "average", "instructor", "salary", "?" ], "question_arg": [ [ "which" ], [ "department" ], [ "ha" ], [ "highest" ], [ "average" ], [ "instructor" ], [ "salary" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "department", "NN" ], [ "ha", "NN" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "instructor", "NN" ], [ "salary", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(3) Sup(0) A(5) C(11) T(3)" }, { "db_id": "college_2", "query": "SELECT avg(T1.salary) , count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name = T2.dept_name ORDER BY T2.budget DESC LIMIT 1", "query_toks": [ "SELECT", "avg", "(", "T1.salary", ")", ",", "count", "(", "*", ")", "FROM", "instructor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_name", "=", "T2.dept_name", "ORDER", "BY", "T2.budget", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "salary", ")", ",", "count", "(", "*", ")", "from", "instructor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "order", "by", "t2", ".", "budget", "desc", "limit", "value" ], "question": "Find the number and averaged salary of all instructors who are in the department with the highest budget.", "question_toks": [ "find", "number", "and", "averaged", "salary", "of", "all", "instructor", "who", "are", "in", "department", "with", "highest", "budget", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "number", "and", "averaged", "salary", "of", "all", "instructors", "who", "are", "in", "the", "department", "with", "the", "highest", "budget", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "and" ], [ "averaged" ], [ "salary" ], [ "of" ], [ "all" ], [ "instructor" ], [ "who" ], [ "are" ], [ "in" ], [ "department" ], [ "with" ], [ "highest" ], [ "budget" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "and", "CC" ], [ "averaged", "VBD" ], [ "salary", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "in", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "budget", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(5) C(11) T(3) A(3) C(0) T(1) Sup(0) A(0) C(5) T(1)" }, { "db_id": "college_2", "query": "SELECT avg(T1.salary) , count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name = T2.dept_name ORDER BY T2.budget DESC LIMIT 1", "query_toks": [ "SELECT", "avg", "(", "T1.salary", ")", ",", "count", "(", "*", ")", "FROM", "instructor", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_name", "=", "T2.dept_name", "ORDER", "BY", "T2.budget", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "avg", "(", "t1", ".", "salary", ")", ",", "count", "(", "*", ")", "from", "instructor", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "order", "by", "t2", ".", "budget", "desc", "limit", "value" ], "question": "How many instructors are in the department with the highest budget, and what is their average salary?", "question_toks": [ "how", "many", "instructor", "are", "in", "department", "with", "highest", "budget", ",", "and", "what", "is", "their", "average", "salary", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "instructors", "are", "in", "the", "department", "with", "the", "highest", "budget", ",", "and", "what", "is", "their", "average", "salary", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "instructor" ], [ "are" ], [ "in" ], [ "department" ], [ "with" ], [ "highest" ], [ "budget" ], [ "," ], [ "and" ], [ "what" ], [ "is" ], [ "their" ], [ "average" ], [ "salary" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "instructor", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "budget", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "their", "PRP$" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(5) C(11) T(3) A(3) C(0) T(1) Sup(0) A(0) C(5) T(1)" }, { "db_id": "college_2", "query": "SELECT T3.title , T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building = T2.building AND T1.room_number = T2.room_number JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.capacity = (SELECT max(capacity) FROM classroom)", "query_toks": [ "SELECT", "T3.title", ",", "T3.credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.building", "=", "T2.building", "AND", "T1.room_number", "=", "T2.room_number", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T1.capacity", "=", "(", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")" ], "query_toks_no_value": [ "select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "(", "select", "max", "(", "capacity", ")", "from", "classroom", ")" ], "question": "What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)?", "question_toks": [ "what", "is", "title", "and", "credit", "of", "course", "that", "is", "taught", "in", "largest", "classroom", "(", "with", "highest", "capacity", ")", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 19, false ], null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 2, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, 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, 3, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "is", "the", "title", "and", "credits", "of", "the", "course", "that", "is", "taught", "in", "the", "largest", "classroom", "(", "with", "the", "highest", "capacity", ")", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "title" ], [ "and" ], [ "credit" ], [ "of" ], [ "course" ], [ "that" ], [ "is" ], [ "taught" ], [ "in" ], [ "largest" ], [ "classroom" ], [ "(" ], [ "with" ], [ "highest" ], [ "capacity" ], [ ")" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "title", "JJ" ], [ "and", "CC" ], [ "credit", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "taught", "VBN" ], [ "in", "IN" ], [ "largest", "JJS" ], [ "classroom", "NN" ], [ "(", "(" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "capacity", "NN" ], [ ")", ")" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(0) C(2) T(4) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(4) Filter(11) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(1) C(3) T(0)" }, { "db_id": "college_2", "query": "SELECT T3.title , T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building = T2.building AND T1.room_number = T2.room_number JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.capacity = (SELECT max(capacity) FROM classroom)", "query_toks": [ "SELECT", "T3.title", ",", "T3.credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.building", "=", "T2.building", "AND", "T1.room_number", "=", "T2.room_number", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T1.capacity", "=", "(", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")" ], "query_toks_no_value": [ "select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "(", "select", "max", "(", "capacity", ")", "from", "classroom", ")" ], "question": "Give the title and credits for the course that is taught in the classroom with the greatest capacity.", "question_toks": [ "give", "title", "and", "credit", "for", "course", "that", "is", "taught", "in", "classroom", "with", "greatest", "capacity", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 19, false ], null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 2, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 4 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, 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, 3, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Give", "the", "title", "and", "credits", "for", "the", "course", "that", "is", "taught", "in", "the", "classroom", "with", "the", "greatest", "capacity", "." ], "question_arg": [ [ "give" ], [ "title" ], [ "and" ], [ "credit" ], [ "for" ], [ "course" ], [ "that" ], [ "is" ], [ "taught" ], [ "in" ], [ "classroom" ], [ "with" ], [ "greatest" ], [ "capacity" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "title", "NN" ], [ "and", "CC" ], [ "credit", "NN" ], [ "for", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "taught", "VBN" ], [ "in", "IN" ], [ "classroom", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "capacity", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(2) A(0) C(8) T(2) Filter(0) Filter(18) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(0) C(2) T(4) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(4) Filter(11) A(0) C(3) T(0) Root(5) Sel(0) N(0) A(1) C(3) T(0)" }, { "db_id": "college_2", "query": "SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology')", "query_toks": [ "SELECT", "name", "FROM", "student", "WHERE", "id", "NOT", "IN", "(", "SELECT", "T1.id", "FROM", "takes", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.dept_name", "=", "'Biology", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "student", "where", "id", "not", "in", "(", "select", "t1", ".", "id", "from", "takes", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "dept_name", "=", "value", ")" ], "question": "Find the name of students who didn't take any course from Biology department.", "question_toks": [ "find", "name", "of", "student", "who", "did", "n't", "take", "any", "course", "from", "biology", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 27, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Biology\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "students", "who", "did", "n't", "take", "any", "course", "from", "Biology", "department", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "did" ], [ "n't" ], [ "take" ], [ "any" ], [ "course" ], [ "from" ], [ "biology" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "n't", "RB" ], [ "take", "VB" ], [ "any", "DT" ], [ "course", "NN" ], [ "from", "IN" ], [ "biology", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Biology", "Jame", "Virology", "Namer", "Nam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(6) Filter(19) A(0) C(9) T(6) Root(3) Sel(0) N(0) A(0) C(9) T(7) Filter(2) A(0) C(4) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology')", "query_toks": [ "SELECT", "name", "FROM", "student", "WHERE", "id", "NOT", "IN", "(", "SELECT", "T1.id", "FROM", "takes", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.dept_name", "=", "'Biology", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "student", "where", "id", "not", "in", "(", "select", "t1", ".", "id", "from", "takes", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "dept_name", "=", "value", ")" ], "question": "What are the names of students who haven't taken any Biology courses?", "question_toks": [ "what", "are", "name", "of", "student", "who", "have", "n't", "taken", "any", "biology", "course", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ true, 8, [ 0, [ 0, 27, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 32, false ], null ], [ 0, 7, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 31, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Biology\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "students", "who", "have", "n't", "taken", "any", "Biology", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "n't" ], [ "taken" ], [ "any" ], [ "biology" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "n't", "RB" ], [ "taken", "VBN" ], [ "any", "DT" ], [ "biology", "NN" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "Biology", "Namer", "Virology" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(6) Filter(19) A(0) C(9) T(6) Root(3) Sel(0) N(0) A(0) C(9) T(7) Filter(2) A(0) C(4) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT count(DISTINCT T2.id) , count(DISTINCT T3.id) , T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T2.id", ")", ",", "count", "(", "DISTINCT", "T3.id", ")", ",", "T3.dept_name", "FROM", "department", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.dept_name", "=", "T2.dept_name", "JOIN", "instructor", "AS", "T3", "ON", "T1.dept_name", "=", "T3.dept_name", "GROUP", "BY", "T3.dept_name" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "id", ")", ",", "count", "(", "distinct", "t3", ".", "id", ")", ",", "t3", ".", "dept_name", "from", "department", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "join", "instructor", "as", "t3", "on", "t1", ".", "dept_name", "=", "t3", ".", "dept_name", "group", "by", "t3", ".", "dept_name" ], "question": "Find the total number of students and total number of instructors for each department.", "question_toks": [ "find", "total", "number", "of", "student", "and", "total", "number", "of", "instructor", "for", "each", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 27, true ], null ] ], [ 3, [ 0, [ 0, 11, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 29, 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": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "students", "and", "total", "number", "of", "instructors", "for", "each", "department", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "student" ], [ "and" ], [ "total" ], [ "number" ], [ "of" ], [ "instructor" ], [ "for" ], [ "each" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(2) A(3) C(9) T(6) A(3) C(9) T(3) A(0) C(4) T(3) Filter(18) A(0) C(4) T(6) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "college_2", "query": "SELECT count(DISTINCT T2.id) , count(DISTINCT T3.id) , T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "T2.id", ")", ",", "count", "(", "DISTINCT", "T3.id", ")", ",", "T3.dept_name", "FROM", "department", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.dept_name", "=", "T2.dept_name", "JOIN", "instructor", "AS", "T3", "ON", "T1.dept_name", "=", "T3.dept_name", "GROUP", "BY", "T3.dept_name" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "t2", ".", "id", ")", ",", "count", "(", "distinct", "t3", ".", "id", ")", ",", "t3", ".", "dept_name", "from", "department", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "join", "instructor", "as", "t3", "on", "t1", ".", "dept_name", "=", "t3", ".", "dept_name", "group", "by", "t3", ".", "dept_name" ], "question": "How many students and instructors are in each department?", "question_toks": [ "how", "many", "student", "and", "instructor", "are", "in", "each", "department", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 4, false ], null ], [ 0, 29, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 27, true ], null ] ], [ 3, [ 0, [ 0, 11, true ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 29, 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": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "students", "and", "instructors", "are", "in", "each", "department", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "student" ], [ "and" ], [ "instructor" ], [ "are" ], [ "in" ], [ "each" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "student", "NN" ], [ "and", "CC" ], [ "instructor", "NN" ], [ "are", "VBP" ], [ "in", "IN" ], [ "each", "DT" ], [ "department", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(2) A(3) C(9) T(6) A(3) C(9) T(3) A(0) C(4) T(3) Filter(18) A(0) C(4) T(6) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "college_2", "query": "SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id = T4.course_id WHERE T3.title = 'International Finance')", "query_toks": [ "SELECT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.id", "=", "T2.id", "WHERE", "T2.course_id", "IN", "(", "SELECT", "T4.prereq_id", "FROM", "course", "AS", "T3", "JOIN", "prereq", "AS", "T4", "ON", "T3.course_id", "=", "T4.course_id", "WHERE", "T3.title", "=", "'International", "Finance", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "t2", ".", "course_id", "in", "(", "select", "t4", ".", "prereq_id", "from", "course", "as", "t3", "join", "prereq", "as", "t4", "on", "t3", ".", "course_id", "=", "t4", ".", "course_id", "where", "t3", ".", "title", "=", "value", ")" ], "question": "Find the name of students who have taken the prerequisite course of the course with title International Finance.", "question_toks": [ "find", "name", "of", "student", "who", "have", "taken", "prerequisite", "course", "of", "course", "with", "title", "international", "finance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"International Finance\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "students", "who", "have", "taken", "the", "prerequisite", "course", "of", "the", "course", "with", "title", "International", "Finance", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "taken" ], [ "prerequisite" ], [ "course" ], [ "of" ], [ "course" ], [ "with" ], [ "title" ], [ "international" ], [ "finance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "prerequisite", "JJ" ], [ "course", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "with", "IN" ], [ "title", "JJ" ], [ "international", "JJ" ], [ "finance", "NN" ], [ ".", "." ] ], "values": [ "International Finance", "Jame", "International Trade", "Namer", "Nam", "Finance" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(6) Filter(18) A(0) C(6) T(7) Root(3) Sel(0) N(0) A(0) C(25) T(10) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id = T4.course_id WHERE T3.title = 'International Finance')", "query_toks": [ "SELECT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.id", "=", "T2.id", "WHERE", "T2.course_id", "IN", "(", "SELECT", "T4.prereq_id", "FROM", "course", "AS", "T3", "JOIN", "prereq", "AS", "T4", "ON", "T3.course_id", "=", "T4.course_id", "WHERE", "T3.title", "=", "'International", "Finance", "'", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "t2", ".", "course_id", "in", "(", "select", "t4", ".", "prereq_id", "from", "course", "as", "t3", "join", "prereq", "as", "t4", "on", "t3", ".", "course_id", "=", "t4", ".", "course_id", "where", "t3", ".", "title", "=", "value", ")" ], "question": "What are the names of students who have taken the prerequisite for the course International Finance?", "question_toks": [ "what", "are", "name", "of", "student", "who", "have", "taken", "prerequisite", "for", "course", "international", "finance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 27, false ], null ], [ 0, 31, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 32, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 45, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 10 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 8, false ], null ], "\"International Finance\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "students", "who", "have", "taken", "the", "prerequisite", "for", "the", "course", "International", "Finance", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "taken" ], [ "prerequisite" ], [ "for" ], [ "course" ], [ "international" ], [ "finance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "prerequisite", "NN" ], [ "for", "IN" ], [ "course", "NN" ], [ "international", "JJ" ], [ "finance", "NN" ], [ "?", "." ] ], "values": [ "International Finance", "Namer", "Finance" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(6) Filter(18) A(0) C(6) T(7) Root(3) Sel(0) N(0) A(0) C(25) T(10) Filter(2) A(0) C(7) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT name , salary FROM instructor WHERE salary < (SELECT avg(salary) FROM instructor WHERE dept_name = 'Physics')", "query_toks": [ "SELECT", "name", ",", "salary", "FROM", "instructor", "WHERE", "salary", "<", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Physics", "'", ")" ], "query_toks_no_value": [ "select", "name", ",", "salary", "from", "instructor", "where", "salary", "<", "(", "select", "avg", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")" ], "question": "Find the name and salary of instructors whose salary is below the average salary of the instructors in the Physics department.", "question_toks": [ "find", "name", "and", "salary", "of", "instructor", "whose", "salary", "is", "below", "average", "salary", "of", "instructor", "in", "physic", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Physics\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "and", "salary", "of", "instructors", "whose", "salary", "is", "below", "the", "average", "salary", "of", "the", "instructors", "in", "the", "Physics", "department", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "salary" ], [ "of" ], [ "instructor" ], [ "whose" ], [ "salary" ], [ "is" ], [ "below" ], [ "average" ], [ "salary" ], [ "of" ], [ "instructor" ], [ "in" ], [ "physic" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "salary", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "whose", "WP$" ], [ "salary", "NN" ], [ "is", "VBZ" ], [ "below", "JJ" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "in", "IN" ], [ "physic", "JJ" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Physics", "Jame", "Namer", "Nam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(11) T(3) Filter(12) A(0) C(11) T(3) Root(3) Sel(0) N(0) A(5) C(11) T(3) Filter(2) A(0) C(4) T(3) V(0)" }, { "db_id": "college_2", "query": "SELECT name , salary FROM instructor WHERE salary < (SELECT avg(salary) FROM instructor WHERE dept_name = 'Physics')", "query_toks": [ "SELECT", "name", ",", "salary", "FROM", "instructor", "WHERE", "salary", "<", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Physics", "'", ")" ], "query_toks_no_value": [ "select", "name", ",", "salary", "from", "instructor", "where", "salary", "<", "(", "select", "avg", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")" ], "question": "What are the names and salaries for instructors who earn less than the average salary of instructors in the Physics department?", "question_toks": [ "what", "are", "name", "and", "salary", "for", "instructor", "who", "earn", "le", "than", "average", "salary", "of", "instructor", "in", "physic", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Physics\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "salaries", "for", "instructors", "who", "earn", "less", "than", "the", "average", "salary", "of", "instructors", "in", "the", "Physics", "department", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "salary" ], [ "for" ], [ "instructor" ], [ "who" ], [ "earn" ], [ "le" ], [ "than" ], [ "average" ], [ "salary" ], [ "of" ], [ "instructor" ], [ "in" ], [ "physic" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "salary", "JJ" ], [ "for", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "earn", "VBP" ], [ "le", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "salary", "JJ" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "in", "IN" ], [ "physic", "JJ" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Physics", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(11) T(3) Filter(12) A(0) C(11) T(3) Root(3) Sel(0) N(0) A(5) C(11) T(3) Filter(2) A(0) C(4) T(3) V(0)" }, { "db_id": "college_2", "query": "SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics'", "query_toks": [ "SELECT", "T3.name", "FROM", "course", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "JOIN", "student", "AS", "T3", "ON", "T2.id", "=", "T3.id", "WHERE", "T1.dept_name", "=", "'Statistics", "'" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "course", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "student", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "id", "where", "t1", ".", "dept_name", "=", "value" ], "question": "Find the name of students who took some course offered by Statistics department.", "question_toks": [ "find", "name", "of", "student", "who", "took", "some", "course", "offered", "by", "statistic", "department", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 32, 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, 9, false ], null ], "\"Statistics\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "name", "of", "students", "who", "took", "some", "course", "offered", "by", "Statistics", "department", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "took" ], [ "some" ], [ "course" ], [ "offered" ], [ "by" ], [ "statistic" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "took", "VBD" ], [ "some", "DT" ], [ "course", "NN" ], [ "offered", "VBN" ], [ "by", "IN" ], [ "statistic", "JJ" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Statistics", "Jame", "Biostatistics", "Namer", "Nam" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(6) Filter(0) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(7) Filter(2) A(0) C(4) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics'", "query_toks": [ "SELECT", "T3.name", "FROM", "course", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "JOIN", "student", "AS", "T3", "ON", "T2.id", "=", "T3.id", "WHERE", "T1.dept_name", "=", "'Statistics", "'" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "course", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "join", "student", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "id", "where", "t1", ".", "dept_name", "=", "value" ], "question": "What are the names of students who have taken Statistics courses?", "question_toks": [ "what", "are", "name", "of", "student", "who", "have", "taken", "statistic", "course", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 32, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 7 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 28, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 7, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 32, 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, 9, false ], null ], "\"Statistics\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "students", "who", "have", "taken", "Statistics", "courses", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "student" ], [ "who" ], [ "have" ], [ "taken" ], [ "statistic" ], [ "course" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "student", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taken", "VBN" ], [ "statistic", "JJ" ], [ "course", "NN" ], [ "?", "." ] ], "values": [ "Statistics", "Biostatistics", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(6) Filter(0) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(7) Filter(2) A(0) C(4) T(2) V(0)" }, { "db_id": "college_2", "query": "SELECT T2.building , T2.room_number , T2.semester , T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY T1.title", "query_toks": [ "SELECT", "T2.building", ",", "T2.room_number", ",", "T2.semester", ",", "T2.year", "FROM", "course", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T1.dept_name", "=", "'Psychology", "'", "ORDER", "BY", "T1.title" ], "query_toks_no_value": [ "select", "t2", ".", "building", ",", "t2", ".", "room_number", ",", "t2", ".", "semester", ",", "t2", ".", "year", "from", "course", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t1", ".", "dept_name", "=", "value", "order", "by", "t1", ".", "title" ], "question": "Find the building, room number, semester and year of all courses offered by Psychology department sorted by course titles.", "question_toks": [ "find", "building", ",", "room", "number", ",", "semester", "and", "year", "of", "all", "course", "offered", "by", "psychology", "department", "sorted", "by", "course", "title", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "building", ",", "room", "number", ",", "semester", "and", "year", "of", "all", "courses", "offered", "by", "Psychology", "department", "sorted", "by", "course", "titles", "." ], "question_arg": [ [ "find" ], [ "building" ], [ "," ], [ "room", "number" ], [ "," ], [ "semester" ], [ "and" ], [ "year" ], [ "of" ], [ "all" ], [ "course" ], [ "offered" ], [ "by" ], [ "psychology" ], [ "department" ], [ "sorted" ], [ "by" ], [ "course" ], [ "title" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "building", "NN" ], [ ",", "," ], [ "room", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "semester", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "course", "NN" ], [ "offered", "VBN" ], [ "by", "IN" ], [ "psychology", "NN" ], [ "department", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "course", "NN" ], [ "title", "NN" ], [ ".", "." ] ], "values": [ "Psychology", "Rotom" ], "rule_label": "Root1(3) Root(1) Sel(0) N(3) A(0) C(1) T(4) A(0) C(2) T(4) A(0) C(13) T(4) A(0) C(14) T(4) Filter(2) A(0) C(4) T(2) V(0) Order(1) A(0) C(7) T(2)" }, { "db_id": "college_2", "query": "SELECT T2.building , T2.room_number , T2.semester , T2.year FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' ORDER BY T1.title", "query_toks": [ "SELECT", "T2.building", ",", "T2.room_number", ",", "T2.semester", ",", "T2.year", "FROM", "course", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T1.dept_name", "=", "'Psychology", "'", "ORDER", "BY", "T1.title" ], "query_toks_no_value": [ "select", "t2", ".", "building", ",", "t2", ".", "room_number", ",", "t2", ".", "semester", ",", "t2", ".", "year", "from", "course", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t1", ".", "dept_name", "=", "value", "order", "by", "t1", ".", "title" ], "question": "What are the building, room number, semester and year of courses in the Psychology department, sorted using course title?", "question_toks": [ "what", "are", "building", ",", "room", "number", ",", "semester", "and", "year", "of", "course", "in", "psychology", "department", ",", "sorted", "using", "course", "title", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 7, false ], null ], [ 0, 15, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 9, false ], null ], "\"Psychology\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "building", ",", "room", "number", ",", "semester", "and", "year", "of", "courses", "in", "the", "Psychology", "department", ",", "sorted", "using", "course", "title", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "building" ], [ "," ], [ "room", "number" ], [ "," ], [ "semester" ], [ "and" ], [ "year" ], [ "of" ], [ "course" ], [ "in" ], [ "psychology" ], [ "department" ], [ "," ], [ "sorted" ], [ "using" ], [ "course" ], [ "title" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "building", "VBG" ], [ ",", "," ], [ "room", "NN" ], [ "number", "NN" ], [ ",", "," ], [ "semester", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "of", "IN" ], [ "course", "NN" ], [ "in", "IN" ], [ "psychology", "NN" ], [ "department", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "using", "VBG" ], [ "course", "NN" ], [ "title", "NN" ], [ "?", "." ] ], "values": [ "Psychology", "Rotom" ], "rule_label": "Root1(3) Root(1) Sel(0) N(3) A(0) C(1) T(4) A(0) C(2) T(4) A(0) C(13) T(4) A(0) C(14) T(4) Filter(2) A(0) C(4) T(2) V(0) Order(1) A(0) C(7) T(2)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.'", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "dept_name", "=", "'Comp", ".", "Sci", ".", "'" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "dept_name", "=", "value" ], "question": "Find the names of all instructors in computer science department", "question_toks": [ "find", "name", "of", "all", "instructor", "in", "computer", "science", "department" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Comp. Sci.\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "instructors", "in", "computer", "science", "department" ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "in" ], [ "computer" ], [ "science" ], [ "department" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "in", "IN" ], [ "computer", "NN" ], [ "science", "NN" ], [ "department", "NN" ] ], "values": [ "Namer", "Comp. Sci." ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(4) T(3) V(1)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.'", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "dept_name", "=", "'Comp", ".", "Sci", ".", "'" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "dept_name", "=", "value" ], "question": "What are the names of all instructors in the Comp. Sci. department?", "question_toks": [ "what", "are", "name", "of", "all", "instructor", "in", "comp", ".", "sci", ".", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Comp. Sci.\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "instructors", "in", "the", "Comp", ".", "Sci", ".", "department", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "in" ], [ "comp" ], [ "." ], [ "sci" ], [ "." ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "in", "IN" ], [ "comp", "NN" ], [ ".", "." ], [ "sci", "NN" ], [ ".", "." ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Comp. Sci.", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(2) A(0) C(4) T(3) V(0)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "dept_name", "=", "'Comp", ".", "Sci", ".", "'", "AND", "salary", ">", "80000" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "dept_name", "=", "value", "and", "salary", ">", "value" ], "question": "Find the names of all instructors in Comp. Sci. department with salary > 80000.", "question_toks": [ "find", "name", "of", "all", "instructor", "in", "comp", ".", "sci", ".", "department", "with", "salary", ">", "80000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Comp. Sci.\"", null ], "and", [ false, 3, [ 0, [ 0, 14, false ], null ], 80000.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "instructors", "in", "Comp", ".", "Sci", ".", "department", "with", "salary", ">", "80000", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "in" ], [ "comp" ], [ "." ], [ "sci" ], [ "." ], [ "department" ], [ "with" ], [ "salary" ], [ ">" ], [ "80000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "in", "IN" ], [ "comp", "NN" ], [ ".", "." ], [ "sci", "NN" ], [ ".", "." ], [ "department", "NN" ], [ "with", "IN" ], [ "salary", "JJ" ], [ ">", "NN" ], [ "80000", "CD" ], [ ".", "." ] ], "values": [ "89000", "80000", "Comp. Sci.", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(2) A(0) C(4) T(3) V(2) Filter(5) A(0) C(11) T(3) V(1)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE dept_name = 'Comp. Sci.' AND salary > 80000", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "dept_name", "=", "'Comp", ".", "Sci", ".", "'", "AND", "salary", ">", "80000" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "dept_name", "=", "value", "and", "salary", ">", "value" ], "question": "What are the names of the instructors in the Comp. Sci. department who earn more than 80000?", "question_toks": [ "what", "are", "name", "of", "instructor", "in", "comp", ".", "sci", ".", "department", "who", "earn", "more", "than", "80000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Comp. Sci.\"", null ], "and", [ false, 3, [ 0, [ 0, 14, false ], null ], 80000.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "instructors", "in", "the", "Comp", ".", "Sci", ".", "department", "who", "earn", "more", "than", "80000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "instructor" ], [ "in" ], [ "comp" ], [ "." ], [ "sci" ], [ "." ], [ "department" ], [ "who" ], [ "earn" ], [ "more" ], [ "than" ], [ "80000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "in", "IN" ], [ "comp", "NN" ], [ ".", "." ], [ "sci", "NN" ], [ ".", "." ], [ "department", "NN" ], [ "who", "WP" ], [ "earn", "VBP" ], [ "more", "JJR" ], [ "than", "IN" ], [ "80000", "CD" ], [ "?", "." ] ], "values": [ "89000", "80000", "Comp. Sci.", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(0) Filter(2) A(0) C(4) T(3) V(2) Filter(5) A(0) C(11) T(3) V(1)" }, { "db_id": "college_2", "query": "SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID", "query_toks": [ "SELECT", "name", ",", "course_id", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.ID", "=", "T2.ID" ], "query_toks_no_value": [ "select", "name", ",", "course_id", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id" ], "question": "Find the names of all instructors who have taught some course and the course_id.", "question_toks": [ "find", "name", "of", "all", "instructor", "who", "have", "taught", "some", "course", "and", "course_id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "the", "course_id", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "who" ], [ "have" ], [ "taught" ], [ "some" ], [ "course" ], [ "and" ], [ "course_id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "some", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "course_id", "NN" ], [ ".", "." ] ], "values": [ "Namer" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(3) A(0) C(6) T(5)" }, { "db_id": "college_2", "query": "SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID", "query_toks": [ "SELECT", "name", ",", "course_id", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.ID", "=", "T2.ID" ], "query_toks_no_value": [ "select", "name", ",", "course_id", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id" ], "question": "What are the names of all instructors who have taught a course, as well as the corresponding course id?", "question_toks": [ "what", "are", "name", "of", "all", "instructor", "who", "have", "taught", "a", "course", ",", "a", "well", "a", "corresponding", "course", "id", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "instructors", "who", "have", "taught", "a", "course", ",", "as", "well", "as", "the", "corresponding", "course", "id", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "who" ], [ "have" ], [ "taught" ], [ "a" ], [ "course" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "corresponding" ], [ "course", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "a", "DT" ], [ "course", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "corresponding", "JJ" ], [ "course", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [ "Namer" ], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(10) T(3) A(0) C(6) T(5)" }, { "db_id": "college_2", "query": "SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID WHERE T1.dept_name = 'Art'", "query_toks": [ "SELECT", "name", ",", "course_id", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.ID", "=", "T2.ID", "WHERE", "T1.dept_name", "=", "'Art", "'" ], "query_toks_no_value": [ "select", "name", ",", "course_id", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "t1", ".", "dept_name", "=", "value" ], "question": "Find the names of all instructors in the Art department who have taught some course and the course_id.", "question_toks": [ "find", "name", "of", "all", "instructor", "in", "art", "department", "who", "have", "taught", "some", "course", "and", "course_id", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Art\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "instructors", "in", "the", "Art", "department", "who", "have", "taught", "some", "course", "and", "the", "course_id", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "in" ], [ "art" ], [ "department" ], [ "who" ], [ "have" ], [ "taught" ], [ "some" ], [ "course" ], [ "and" ], [ "course_id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "in", "IN" ], [ "art", "NN" ], [ "department", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "some", "DT" ], [ "course", "NN" ], [ "and", "CC" ], [ "course_id", "NN" ], [ ".", "." ] ], "values": [ "Namer", "Art" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(6) T(5) Filter(2) A(0) C(4) T(3) V(1)" }, { "db_id": "college_2", "query": "SELECT name , course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID WHERE T1.dept_name = 'Art'", "query_toks": [ "SELECT", "name", ",", "course_id", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.ID", "=", "T2.ID", "WHERE", "T1.dept_name", "=", "'Art", "'" ], "query_toks_no_value": [ "select", "name", ",", "course_id", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "t1", ".", "dept_name", "=", "value" ], "question": "What are the names of Art instructors who have taught a course, and the corresponding course id?", "question_toks": [ "what", "are", "name", "of", "art", "instructor", "who", "have", "taught", "a", "course", ",", "and", "corresponding", "course", "id", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Art\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "Art", "instructors", "who", "have", "taught", "a", "course", ",", "and", "the", "corresponding", "course", "id", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "art" ], [ "instructor" ], [ "who" ], [ "have" ], [ "taught" ], [ "a" ], [ "course" ], [ "," ], [ "and" ], [ "corresponding" ], [ "course", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "art", "NN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "taught", "VBN" ], [ "a", "DT" ], [ "course", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "course", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [ "Namer", "Art" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(10) T(3) A(0) C(6) T(5) Filter(2) A(0) C(4) T(3) V(1)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE name LIKE '%dar%'", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "dar", "%", "'" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "name", "like", "value" ], "question": "Find the names of all instructors whose name includes the substring \u201cdar\u201d.", "question_toks": [ "find", "name", "of", "all", "instructor", "whose", "name", "includes", "substring", "\u201cdar\u201d", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%dar%\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "instructors", "whose", "name", "includes", "the", "substring", "\u201cdar\u201d", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "whose" ], [ "name" ], [ "includes" ], [ "substring" ], [ "\u201cdar\u201d" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "includes", "VBZ" ], [ "substring", "VBG" ], [ "\u201cdar\u201d", "NNP" ], [ ".", "." ] ], "values": [ "Nam", "Namer", "Dair", "Jame", "dar" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(9) A(0) C(10) T(3) V(4)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE name LIKE '%dar%'", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "dar", "%", "'" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "name", "like", "value" ], "question": "What are the names of all instructors with names that include \"dar\"?", "question_toks": [ "what", "are", "name", "of", "all", "instructor", "with", "name", "that", "include", "'", "dar", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 12, false ], null ], "\"%dar%\"", null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "instructors", "with", "names", "that", "include", "``", "dar", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "with" ], [ "name" ], [ "that" ], [ "include" ], [ "'" ], [ "dar" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "include", "VBP" ], [ "'", "''" ], [ "dar", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "dar", "Dair", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(9) A(0) C(10) T(3) V(0)" }, { "db_id": "college_2", "query": "SELECT DISTINCT name FROM instructor ORDER BY name", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "instructor", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "instructor", "order", "by", "name" ], "question": "List in alphabetic order the names of all distinct instructors.", "question_toks": [ "list", "in", "alphabetic", "order", "name", "of", "all", "distinct", "instructor", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "List", "in", "alphabetic", "order", "the", "names", "of", "all", "distinct", "instructors", "." ], "question_arg": [ [ "list" ], [ "in" ], [ "alphabetic" ], [ "order" ], [ "name" ], [ "of" ], [ "all" ], [ "distinct" ], [ "instructor" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "in", "IN" ], [ "alphabetic", "JJ" ], [ "order", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "instructor", "NN" ], [ ".", "." ] ], "values": [ "Namer" ], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(10) T(3) Order(1) A(0) C(10) T(3)" }, { "db_id": "college_2", "query": "SELECT DISTINCT name FROM instructor ORDER BY name", "query_toks": [ "SELECT", "DISTINCT", "name", "FROM", "instructor", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "distinct", "name", "from", "instructor", "order", "by", "name" ], "question": "List the distinct names of the instructors, ordered by name.", "question_toks": [ "list", "distinct", "name", "of", "instructor", ",", "ordered", "by", "name", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ true, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "List", "the", "distinct", "names", "of", "the", "instructors", ",", "ordered", "by", "name", "." ], "question_arg": [ [ "list" ], [ "distinct" ], [ "name" ], [ "of" ], [ "instructor" ], [ "," ], [ "ordered" ], [ "by" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "distinct", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [ "Jame", "Nam", "Namer" ], "rule_label": "Root1(3) Root(4) Sel(1) N(0) A(0) C(10) T(3) Order(1) A(0) C(10) T(3)" }, { "db_id": "college_2", "query": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 UNION SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "UNION", "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value", "union", "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "Find courses that ran in Fall 2009 or in Spring 2010.", "question_toks": [ "find", "course", "that", "ran", "in", "fall", "year", "or", "in", "spring", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "courses", "that", "ran", "in", "Fall", "2009", "or", "in", "Spring", "2010", "." ], "question_arg": [ [ "find" ], [ "course" ], [ "that" ], [ "ran" ], [ "in" ], [ "fall" ], [ "year" ], [ "or" ], [ "in" ], [ "spring" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "course", "NN" ], [ "that", "WDT" ], [ "ran", "VBD" ], [ "in", "IN" ], [ "fall", "NN" ], [ "2009", "CD" ], [ "or", "CC" ], [ "in", "IN" ], [ "spring", "NN" ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "Fall", "2010", "2009", "Spring" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(6) T(4) Filter(0) Filter(2) A(0) C(13) T(4) V(0) Filter(2) A(0) C(14) T(4) V(2) Root(3) Sel(0) N(0) A(0) C(6) T(4) Filter(0) Filter(2) A(0) C(13) T(4) V(3) Filter(2) A(0) C(14) T(4) V(1)" }, { "db_id": "college_2", "query": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 UNION SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "UNION", "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value", "union", "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "What are the ids for courses in the Fall of 2009 or the Spring of 2010?", "question_toks": [ "what", "are", "id", "for", "course", "in", "fall", "of", "year", "or", "spring", "of", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "ids", "for", "courses", "in", "the", "Fall", "of", "2009", "or", "the", "Spring", "of", "2010", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "for" ], [ "course" ], [ "in" ], [ "fall" ], [ "of" ], [ "year" ], [ "or" ], [ "spring" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "for", "IN" ], [ "course", "NN" ], [ "in", "IN" ], [ "fall", "NN" ], [ "of", "IN" ], [ "2009", "CD" ], [ "or", "CC" ], [ "spring", "NN" ], [ "of", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "21009", "2009", "Wall", "20180", "Spring", "2010", "20099", "24010", "Fall", "Gall" ], "rule_label": "Root1(1) Root(3) Sel(0) N(0) A(0) C(6) T(4) Filter(0) Filter(2) A(0) C(13) T(4) V(8) Filter(2) A(0) C(14) T(4) V(1) Root(3) Sel(0) N(0) A(0) C(6) T(4) Filter(0) Filter(2) A(0) C(13) T(4) V(4) Filter(2) A(0) C(14) T(4) V(5)" }, { "db_id": "college_2", "query": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 INTERSECT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "INTERSECT", "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value", "intersect", "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "Find courses that ran in Fall 2009 and in Spring 2010.", "question_toks": [ "find", "course", "that", "ran", "in", "fall", "year", "and", "in", "spring", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "courses", "that", "ran", "in", "Fall", "2009", "and", "in", "Spring", "2010", "." ], "question_arg": [ [ "find" ], [ "course" ], [ "that" ], [ "ran" ], [ "in" ], [ "fall" ], [ "year" ], [ "and" ], [ "in" ], [ "spring" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "course", "NN" ], [ "that", "WDT" ], [ "ran", "VBD" ], [ "in", "IN" ], [ "fall", "NN" ], [ "2009", "CD" ], [ "and", "CC" ], [ "in", "IN" ], [ "spring", "NN" ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "Fall", "2010", "2009", "Spring" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(4) Filter(0) Filter(2) A(0) C(13) T(4) V(0) Filter(2) A(0) C(14) T(4) V(2) Root(3) Sel(0) N(0) A(0) C(6) T(4) Filter(0) Filter(2) A(0) C(13) T(4) V(3) Filter(2) A(0) C(14) T(4) V(1)" }, { "db_id": "college_2", "query": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 INTERSECT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "INTERSECT", "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value", "intersect", "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "What are the ids for courses that were offered in both Fall of 2009 and Spring of 2010?", "question_toks": [ "what", "are", "id", "for", "course", "that", "were", "offered", "in", "both", "fall", "of", "year", "and", "spring", "of", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "ids", "for", "courses", "that", "were", "offered", "in", "both", "Fall", "of", "2009", "and", "Spring", "of", "2010", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "for" ], [ "course" ], [ "that" ], [ "were" ], [ "offered" ], [ "in" ], [ "both" ], [ "fall" ], [ "of" ], [ "year" ], [ "and" ], [ "spring" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "for", "IN" ], [ "course", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "offered", "VBN" ], [ "in", "IN" ], [ "both", "DT" ], [ "fall", "NN" ], [ "of", "IN" ], [ "2009", "CD" ], [ "and", "CC" ], [ "spring", "NN" ], [ "of", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "21009", "2009", "20180", "Spring", "2010", "20099", "24010", "Fall" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(6) T(4) Filter(0) Filter(2) A(0) C(13) T(4) V(7) Filter(2) A(0) C(14) T(4) V(1) Root(3) Sel(0) N(0) A(0) C(6) T(4) Filter(0) Filter(2) A(0) C(13) T(4) V(3) Filter(2) A(0) C(14) T(4) V(4)" }, { "db_id": "college_2", "query": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "EXCEPT", "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value", "except", "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "Find courses that ran in Fall 2009 but not in Spring 2010.", "question_toks": [ "find", "course", "that", "ran", "in", "fall", "year", "but", "not", "in", "spring", "year", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "courses", "that", "ran", "in", "Fall", "2009", "but", "not", "in", "Spring", "2010", "." ], "question_arg": [ [ "find" ], [ "course" ], [ "that" ], [ "ran" ], [ "in" ], [ "fall" ], [ "year" ], [ "but" ], [ "not" ], [ "in" ], [ "spring" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "course", "NN" ], [ "that", "WDT" ], [ "ran", "VBD" ], [ "in", "IN" ], [ "fall", "NN" ], [ "2009", "CD" ], [ "but", "CC" ], [ "not", "RB" ], [ "in", "IN" ], [ "spring", "NN" ], [ "2010", "CD" ], [ ".", "." ] ], "values": [ "2009", "Fall", "2010", "Spring" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(6) T(4) Filter(0) Filter(2) A(0) C(13) T(4) V(1) Filter(2) A(0) C(14) T(4) V(0) Root(3) Sel(0) N(0) A(0) C(6) T(4) Filter(0) Filter(2) A(0) C(13) T(4) V(3) Filter(2) A(0) C(14) T(4) V(2)" }, { "db_id": "college_2", "query": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 EXCEPT SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Fall", "'", "AND", "YEAR", "=", "2009", "EXCEPT", "SELECT", "course_id", "FROM", "SECTION", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value", "except", "select", "course_id", "from", "section", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "What are the ids of courses offered in Fall of 2009 but not in Spring of 2010?", "question_toks": [ "what", "are", "id", "of", "course", "offered", "in", "fall", "of", "year", "but", "not", "in", "spring", "of", "year", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2010.0, null ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 15, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 17, false ], null ], "\"Fall\"", null ], "and", [ false, 2, [ 0, [ 0, 18, false ], null ], 2009.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "ids", "of", "courses", "offered", "in", "Fall", "of", "2009", "but", "not", "in", "Spring", "of", "2010", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "of" ], [ "course" ], [ "offered" ], [ "in" ], [ "fall" ], [ "of" ], [ "year" ], [ "but" ], [ "not" ], [ "in" ], [ "spring" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "of", "IN" ], [ "course", "NN" ], [ "offered", "VBN" ], [ "in", "IN" ], [ "fall", "NN" ], [ "of", "IN" ], [ "2009", "CD" ], [ "but", "CC" ], [ "not", "RB" ], [ "in", "IN" ], [ "spring", "NN" ], [ "of", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "2009", "24010", "2010", "Wall", "21009", "Gall", "20099", "20180", "Fall", "Spring" ], "rule_label": "Root1(2) Root(3) Sel(0) N(0) A(0) C(6) T(4) Filter(0) Filter(2) A(0) C(13) T(4) V(8) Filter(2) A(0) C(14) T(4) V(0) Root(3) Sel(0) N(0) A(0) C(6) T(4) Filter(0) Filter(2) A(0) C(13) T(4) V(9) Filter(2) A(0) C(14) T(4) V(2)" }, { "db_id": "college_2", "query": "SELECT DISTINCT salary FROM instructor WHERE salary < (SELECT max(salary) FROM instructor)", "query_toks": [ "SELECT", "DISTINCT", "salary", "FROM", "instructor", "WHERE", "salary", "<", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", ")" ], "query_toks_no_value": [ "select", "distinct", "salary", "from", "instructor", "where", "salary", "<", "(", "select", "max", "(", "salary", ")", "from", "instructor", ")" ], "question": "Find the salaries of all distinct instructors that are less than the largest salary.", "question_toks": [ "find", "salary", "of", "all", "distinct", "instructor", "that", "are", "le", "than", "largest", "salary", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "salaries", "of", "all", "distinct", "instructors", "that", "are", "less", "than", "the", "largest", "salary", "." ], "question_arg": [ [ "find" ], [ "salary" ], [ "of" ], [ "all" ], [ "distinct" ], [ "instructor" ], [ "that" ], [ "are" ], [ "le" ], [ "than" ], [ "largest" ], [ "salary" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "salary", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "instructor", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "le", "JJR" ], [ "than", "IN" ], [ "largest", "JJS" ], [ "salary", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(3) Filter(12) A(0) C(11) T(3) Root(5) Sel(0) N(0) A(1) C(11) T(3)" }, { "db_id": "college_2", "query": "SELECT DISTINCT salary FROM instructor WHERE salary < (SELECT max(salary) FROM instructor)", "query_toks": [ "SELECT", "DISTINCT", "salary", "FROM", "instructor", "WHERE", "salary", "<", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", ")" ], "query_toks_no_value": [ "select", "distinct", "salary", "from", "instructor", "where", "salary", "<", "(", "select", "max", "(", "salary", ")", "from", "instructor", ")" ], "question": "What are the distinct salaries of all instructors who earned less than the maximum salary?", "question_toks": [ "what", "are", "distinct", "salary", "of", "all", "instructor", "who", "earned", "le", "than", "maximum", "salary", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "distinct", "salaries", "of", "all", "instructors", "who", "earned", "less", "than", "the", "maximum", "salary", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "salary" ], [ "of" ], [ "all" ], [ "instructor" ], [ "who" ], [ "earned" ], [ "le" ], [ "than" ], [ "maximum" ], [ "salary" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "salary", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "earned", "VBD" ], [ "le", "JJR" ], [ "than", "IN" ], [ "maximum", "JJ" ], [ "salary", "JJ" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(11) T(3) Filter(12) A(0) C(11) T(3) Root(5) Sel(0) N(0) A(1) C(11) T(3)" }, { "db_id": "college_2", "query": "SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "ID", ")", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "id", ")", "from", "teaches", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "Find the total number of instructors who teach a course in the Spring 2010 semester.", "question_toks": [ "find", "total", "number", "of", "instructor", "who", "teach", "a", "course", "in", "spring", "year", "semester", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 22, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2010.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "total", "number", "of", "instructors", "who", "teach", "a", "course", "in", "the", "Spring", "2010", "semester", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "number" ], [ "of" ], [ "instructor" ], [ "who" ], [ "teach" ], [ "a" ], [ "course" ], [ "in" ], [ "spring" ], [ "year" ], [ "semester" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "number", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "teach", "VBP" ], [ "a", "DT" ], [ "course", "NN" ], [ "in", "IN" ], [ "spring", "NN" ], [ "2010", "CD" ], [ "semester", "NN" ], [ ".", "." ] ], "values": [ "2010", "Spring" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(9) T(5) Filter(0) Filter(2) A(0) C(13) T(5) V(1) Filter(2) A(0) C(14) T(5) V(0)" }, { "db_id": "college_2", "query": "SELECT COUNT (DISTINCT ID) FROM teaches WHERE semester = 'Spring' AND YEAR = 2010", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "ID", ")", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", "AND", "YEAR", "=", "2010" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "id", ")", "from", "teaches", "where", "semester", "=", "value", "and", "year", "=", "value" ], "question": "How many instructors teach a course in the Spring of 2010?", "question_toks": [ "how", "many", "instructor", "teach", "a", "course", "in", "spring", "of", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 22, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 25, false ], null ], "\"Spring\"", null ], "and", [ false, 2, [ 0, [ 0, 26, false ], null ], 2010.0, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "How", "many", "instructors", "teach", "a", "course", "in", "the", "Spring", "of", "2010", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "instructor" ], [ "teach" ], [ "a" ], [ "course" ], [ "in" ], [ "spring" ], [ "of" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "instructor", "NN" ], [ "teach", "VBP" ], [ "a", "DT" ], [ "course", "NN" ], [ "in", "IN" ], [ "spring", "NN" ], [ "of", "IN" ], [ "2010", "CD" ], [ "?", "." ] ], "values": [ "20180", "24010", "2010", "Spring" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(9) T(5) Filter(0) Filter(2) A(0) C(13) T(5) V(3) Filter(2) A(0) C(14) T(5) V(2)" }, { "db_id": "college_2", "query": "SELECT dept_name , AVG (salary) FROM instructor GROUP BY dept_name HAVING AVG (salary) > 42000", "query_toks": [ "SELECT", "dept_name", ",", "AVG", "(", "salary", ")", "FROM", "instructor", "GROUP", "BY", "dept_name", "HAVING", "AVG", "(", "salary", ")", ">", "42000" ], "query_toks_no_value": [ "select", "dept_name", ",", "avg", "(", "salary", ")", "from", "instructor", "group", "by", "dept_name", "having", "avg", "(", "salary", ")", ">", "value" ], "question": "Find the names and average salaries of all departments whose average salary is greater than 42000.", "question_toks": [ "find", "name", "and", "average", "salary", "of", "all", "department", "whose", "average", "salary", "is", "greater", "than", "42000", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 5, 14, false ], null ], 42000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "names", "and", "average", "salaries", "of", "all", "departments", "whose", "average", "salary", "is", "greater", "than", "42000", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "average" ], [ "salary" ], [ "of" ], [ "all" ], [ "department" ], [ "whose" ], [ "average" ], [ "salary" ], [ "is" ], [ "greater" ], [ "than" ], [ "42000" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "department", "NN" ], [ "whose", "WP$" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "42000", "CD" ], [ ".", "." ] ], "values": [ "42000", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(3) A(5) C(11) T(3) Filter(5) A(5) C(11) T(3) V(0)" }, { "db_id": "college_2", "query": "SELECT dept_name , AVG (salary) FROM instructor GROUP BY dept_name HAVING AVG (salary) > 42000", "query_toks": [ "SELECT", "dept_name", ",", "AVG", "(", "salary", ")", "FROM", "instructor", "GROUP", "BY", "dept_name", "HAVING", "AVG", "(", "salary", ")", ">", "42000" ], "query_toks_no_value": [ "select", "dept_name", ",", "avg", "(", "salary", ")", "from", "instructor", "group", "by", "dept_name", "having", "avg", "(", "salary", ")", ">", "value" ], "question": "What are the names and average salaries for departments with average salary higher than 42000?", "question_toks": [ "what", "are", "name", "and", "average", "salary", "for", "department", "with", "average", "salary", "higher", "than", "42000", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 5, 14, false ], null ], 42000.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 5, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "average", "salaries", "for", "departments", "with", "average", "salary", "higher", "than", "42000", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "average" ], [ "salary" ], [ "for" ], [ "department" ], [ "with" ], [ "average" ], [ "salary" ], [ "higher" ], [ "than" ], [ "42000" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "for", "IN" ], [ "department", "NN" ], [ "with", "IN" ], [ "average", "JJ" ], [ "salary", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "42000", "CD" ], [ "?", "." ] ], "values": [ "42000", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(4) T(3) A(5) C(11) T(3) Filter(5) A(5) C(11) T(3) V(0)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE salary > (SELECT min(salary) FROM instructor WHERE dept_name = 'Biology')", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "min", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "min", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")" ], "question": "Find names of instructors with salary greater than that of some (at least one) instructor in the Biology department.", "question_toks": [ "find", "name", "of", "instructor", "with", "salary", "greater", "than", "that", "of", "some", "(", "at", "least", "one", ")", "instructor", "in", "biology", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Biology\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "names", "of", "instructors", "with", "salary", "greater", "than", "that", "of", "some", "(", "at", "least", "one", ")", "instructor", "in", "the", "Biology", "department", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "instructor" ], [ "with" ], [ "salary" ], [ "greater" ], [ "than" ], [ "that" ], [ "of" ], [ "some" ], [ "(" ], [ "at" ], [ "least" ], [ "one" ], [ ")" ], [ "instructor" ], [ "in" ], [ "biology" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "with", "IN" ], [ "salary", "JJ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "that", "DT" ], [ "of", "IN" ], [ "some", "DT" ], [ "(", "(" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ ")", ")" ], [ "instructor", "NN" ], [ "in", "IN" ], [ "biology", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "1", "Biology", "Virology", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(13) A(0) C(11) T(3) Root(3) Sel(0) N(0) A(2) C(11) T(3) Filter(2) A(0) C(4) T(3) V(1)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE salary > (SELECT min(salary) FROM instructor WHERE dept_name = 'Biology')", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "min", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "min", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")" ], "question": "What are the names of instructors who earn more than at least one instructor from the Biology department?", "question_toks": [ "what", "are", "name", "of", "instructor", "who", "earn", "more", "than", "at", "least", "one", "instructor", "from", "biology", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Biology\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "instructors", "who", "earn", "more", "than", "at", "least", "one", "instructor", "from", "the", "Biology", "department", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "instructor" ], [ "who" ], [ "earn" ], [ "more" ], [ "than" ], [ "at" ], [ "least" ], [ "one" ], [ "instructor" ], [ "from" ], [ "biology" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "who", "WP" ], [ "earn", "VBZ" ], [ "more", "JJR" ], [ "than", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "one", "CD" ], [ "instructor", "NN" ], [ "from", "IN" ], [ "biology", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "1", "Biology", "Virology", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(13) A(0) C(11) T(3) Root(3) Sel(0) N(0) A(2) C(11) T(3) Filter(2) A(0) C(4) T(3) V(1)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE salary > (SELECT max(salary) FROM instructor WHERE dept_name = 'Biology')", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")" ], "question": "Find the names of all instructors whose salary is greater than the salary of all instructors in the Biology department.", "question_toks": [ "find", "name", "of", "all", "instructor", "whose", "salary", "is", "greater", "than", "salary", "of", "all", "instructor", "in", "biology", "department", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Biology\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "instructors", "whose", "salary", "is", "greater", "than", "the", "salary", "of", "all", "instructors", "in", "the", "Biology", "department", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "whose" ], [ "salary" ], [ "is" ], [ "greater" ], [ "than" ], [ "salary" ], [ "of" ], [ "all" ], [ "instructor" ], [ "in" ], [ "biology" ], [ "department" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "whose", "WP$" ], [ "salary", "NN" ], [ "is", "VBZ" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "salary", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "in", "IN" ], [ "biology", "NN" ], [ "department", "NN" ], [ ".", "." ] ], "values": [ "Biology", "Virology", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(13) A(0) C(11) T(3) Root(3) Sel(0) N(0) A(1) C(11) T(3) Filter(2) A(0) C(4) T(3) V(0)" }, { "db_id": "college_2", "query": "SELECT name FROM instructor WHERE salary > (SELECT max(salary) FROM instructor WHERE dept_name = 'Biology')", "query_toks": [ "SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")" ], "query_toks_no_value": [ "select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")" ], "question": "What are the names of all instructors with a higher salary than any of the instructors in the Biology department?", "question_toks": [ "what", "are", "name", "of", "all", "instructor", "with", "a", "higher", "salary", "than", "any", "of", "instructor", "in", "biology", "department", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 13, false ], null ], "\"Biology\"", null ] ] }, null ] ] }, "names": [ "*", "building", "room number", "capacity", "department name", "building", "budget", "course id", "title", "department name", "credits", "id", "name", "department name", "salary", "course id", "section id", "semester", "year", "building", "room number", "time slot id", "id", "course id", "section id", "semester", "year", "id", "name", "department name", "total credits", "id", "course id", "section id", "semester", "year", "grade", "student id", "instructor id", "time slot id", "day", "start hour", "start minute", "end hour", "end minute", "course id", "prerequisite id" ], "table_names": [ "classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite" ], "col_set": [ "*", "building", "room number", "capacity", "department name", "budget", "course id", "title", "credits", "id", "name", "salary", "section id", "semester", "year", "time slot id", "total credits", "grade", "student id", "instructor id", "day", "start hour", "start minute", "end hour", "end minute", "prerequisite id" ], "col_table": [ -1, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 10, 10 ], "keys": { "9": 4, "4": 4, "13": 4, "19": 1, "1": 1, "20": 2, "2": 20, "15": 15, "7": 7, "22": 22, "11": 11, "23": 15, "24": 16, "16": 33, "25": 17, "17": 34, "26": 18, "18": 35, "29": 4, "31": 31, "27": 27, "32": 15, "33": 16, "34": 17, "35": 18, "37": 37, "38": 11, "46": 7, "45": 45, "39": 39 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "instructors", "with", "a", "higher", "salary", "than", "any", "of", "the", "instructors", "in", "the", "Biology", "department", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "instructor" ], [ "with" ], [ "a" ], [ "higher" ], [ "salary" ], [ "than" ], [ "any" ], [ "of" ], [ "instructor" ], [ "in" ], [ "biology" ], [ "department" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "instructor", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "higher", "JJR" ], [ "salary", "JJ" ], [ "than", "IN" ], [ "any", "DT" ], [ "of", "IN" ], [ "instructor", "NN" ], [ "in", "IN" ], [ "biology", "NN" ], [ "department", "NN" ], [ "?", "." ] ], "values": [ "Biology", "Anty", "Virology", "Namer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(3) Filter(13) A(0) C(11) T(3) Root(3) Sel(0) N(0) A(1) C(11) T(3) Filter(2) A(0) C(4) T(3) V(0)" }, { "db_id": "debate", "query": "SELECT count(*) FROM debate", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "debate" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "debate" ], "question": "How many debates are there?", "question_toks": [ "how", "many", "debate", "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": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "How", "many", "debates", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "debate" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "debate", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "debate", "query": "SELECT Venue FROM debate ORDER BY Num_of_Audience ASC", "query_toks": [ "SELECT", "Venue", "FROM", "debate", "ORDER", "BY", "Num_of_Audience", "ASC" ], "query_toks_no_value": [ "select", "venue", "from", "debate", "order", "by", "num_of_audience", "asc" ], "question": "List the venues of debates in ascending order of the number of audience.", "question_toks": [ "list", "venue", "of", "debate", "in", "ascending", "order", "of", "number", "of", "audience", "." ], "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, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "List", "the", "venues", "of", "debates", "in", "ascending", "order", "of", "the", "number", "of", "audience", "." ], "question_arg": [ [ "list" ], [ "venue" ], [ "of" ], [ "debate" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "number" ], [ "num", "of", "audience" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "venue", "NN" ], [ "of", "IN" ], [ "debate", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "audience", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(1) Order(1) A(0) C(9) T(1)" }, { "db_id": "debate", "query": "SELECT Date , Venue FROM debate", "query_toks": [ "SELECT", "Date", ",", "Venue", "FROM", "debate" ], "query_toks_no_value": [ "select", "date", ",", "venue", "from", "debate" ], "question": "What are the date and venue of each debate?", "question_toks": [ "what", "are", "date", "and", "venue", "of", "each", "debate", "?" ], "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 ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "date", "and", "venue", "of", "each", "debate", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "date" ], [ "and" ], [ "venue" ], [ "of" ], [ "each" ], [ "debate" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "date", "NN" ], [ "and", "CC" ], [ "venue", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "debate", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(1) A(0) C(8) T(1)" }, { "db_id": "debate", "query": "SELECT Date FROM debate WHERE Num_of_Audience > 150", "query_toks": [ "SELECT", "Date", "FROM", "debate", "WHERE", "Num_of_Audience", ">", "150" ], "query_toks_no_value": [ "select", "date", "from", "debate", "where", "num_of_audience", ">", "value" ], "question": "List the dates of debates with number of audience bigger than 150", "question_toks": [ "list", "date", "of", "debate", "with", "number", "of", "audience", "bigger", "than", "150" ], "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, 3, [ 0, [ 0, 9, false ], null ], 150.0, null ] ] }, "names": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "List", "the", "dates", "of", "debates", "with", "number", "of", "audience", "bigger", "than", "150" ], "question_arg": [ [ "list" ], [ "date" ], [ "of" ], [ "debate" ], [ "with" ], [ "number" ], [ "num", "of", "audience" ], [ "bigger" ], [ "than" ], [ "150" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ] ], "nltk_pos": [ [ "list", "NN" ], [ "date", "NN" ], [ "of", "IN" ], [ "debate", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "audience", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "150", "CD" ] ], "values": [ "150" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(1) Filter(5) A(0) C(9) T(1) V(0)" }, { "db_id": "debate", "query": "SELECT Name FROM people WHERE Age = 35 OR Age = 36", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "Age", "=", "35", "OR", "Age", "=", "36" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "age", "=", "value", "or", "age", "=", "value" ], "question": "Show the names of people aged either 35 or 36.", "question_toks": [ "show", "name", "of", "people", "aged", "either", "35", "or", "36", "." ], "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, 5, false ], null ], 35.0, null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], 36.0, null ] ] }, "names": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "people", "aged", "either", "35", "or", "36", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "people" ], [ "aged" ], [ "either" ], [ "35" ], [ "or" ], [ "36" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "aged", "VBN" ], [ "either", "RB" ], [ "35", "CD" ], [ "or", "CC" ], [ "36", "CD" ], [ ".", "." ] ], "values": [ "35", "36" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(1) Filter(2) A(0) C(5) T(0) V(0) Filter(2) A(0) C(5) T(0) V(1)" }, { "db_id": "debate", "query": "SELECT Party FROM people ORDER BY Age ASC LIMIT 1", "query_toks": [ "SELECT", "Party", "FROM", "people", "ORDER", "BY", "Age", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "party", "from", "people", "order", "by", "age", "asc", "limit", "value" ], "question": "What is the party of the youngest people?", "question_toks": [ "what", "is", "party", "of", "youngest", "people", "?" ], "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, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "party", "of", "the", "youngest", "people", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "party" ], [ "of" ], [ "youngest" ], [ "people" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "party", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "people", "NNS" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(0) Sup(1) A(0) C(5) T(0)" }, { "db_id": "debate", "query": "SELECT Party , COUNT(*) FROM people GROUP BY Party", "query_toks": [ "SELECT", "Party", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Party" ], "query_toks_no_value": [ "select", "party", ",", "count", "(", "*", ")", "from", "people", "group", "by", "party" ], "question": "Show different parties of people along with the number of people in each party.", "question_toks": [ "show", "different", "party", "of", "people", "along", "with", "number", "of", "people", "in", "each", "party", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "Show", "different", "parties", "of", "people", "along", "with", "the", "number", "of", "people", "in", "each", "party", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "party" ], [ "of" ], [ "people" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "people" ], [ "in" ], [ "each" ], [ "party" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "party", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "in", "IN" ], [ "each", "DT" ], [ "party", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(0) A(3) C(0) T(0)" }, { "db_id": "debate", "query": "SELECT Party FROM people GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Party", "FROM", "people", "GROUP", "BY", "Party", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "party", "from", "people", "group", "by", "party", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the party that has the most people.", "question_toks": [ "show", "party", "that", "ha", "most", "people", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [] }, "names": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "Show", "the", "party", "that", "has", "the", "most", "people", "." ], "question_arg": [ [ "show" ], [ "party" ], [ "that" ], [ "ha" ], [ "most" ], [ "people" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "party", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "most", "RBS" ], [ "people", "NNS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(4) T(0) Sup(0) A(3) C(0) T(0)" }, { "db_id": "debate", "query": "SELECT DISTINCT Venue FROM debate", "query_toks": [ "SELECT", "DISTINCT", "Venue", "FROM", "debate" ], "query_toks_no_value": [ "select", "distinct", "venue", "from", "debate" ], "question": "Show the distinct venues of debates", "question_toks": [ "show", "distinct", "venue", "of", "debate" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "Show", "the", "distinct", "venues", "of", "debates" ], "question_arg": [ [ "show" ], [ "distinct" ], [ "venue" ], [ "of" ], [ "debate" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ] ], "nltk_pos": [ [ "show", "NN" ], [ "distinct", "JJ" ], [ "venue", "NN" ], [ "of", "IN" ], [ "debate", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(8) T(1)" }, { "db_id": "debate", "query": "SELECT T3.Name , T2.Date , T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Date", ",", "T2.Venue", "FROM", "debate_people", "AS", "T1", "JOIN", "debate", "AS", "T2", "ON", "T1.Debate_ID", "=", "T2.Debate_ID", "JOIN", "people", "AS", "T3", "ON", "T1.Affirmative", "=", "T3.People_ID" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "date", ",", "t2", ".", "venue", "from", "debate_people", "as", "t1", "join", "debate", "as", "t2", "on", "t1", ".", "debate_id", "=", "t2", ".", "debate_id", "join", "people", "as", "t3", "on", "t1", ".", "affirmative", "=", "t3", ".", "people_id" ], "question": "Show the names of people, and dates and venues of debates they are on the affirmative side.", "question_toks": [ "show", "name", "of", "people", ",", "and", "date", "and", "venue", "of", "debate", "they", "are", "on", "affirmative", "side", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, 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, 3, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, 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": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "people", ",", "and", "dates", "and", "venues", "of", "debates", "they", "are", "on", "the", "affirmative", "side", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "people" ], [ "," ], [ "and" ], [ "date" ], [ "and" ], [ "venue" ], [ "of" ], [ "debate" ], [ "they" ], [ "are" ], [ "on" ], [ "affirmative" ], [ "side" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ ",", "," ], [ "and", "CC" ], [ "date", "NN" ], [ "and", "CC" ], [ "venue", "NN" ], [ "of", "IN" ], [ "debate", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "on", "IN" ], [ "affirmative", "JJ" ], [ "side", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(3) T(0) A(0) C(7) T(1) A(0) C(8) T(1) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2)" }, { "db_id": "debate", "query": "SELECT T3.Name , T2.Date , T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Negative = T3.People_ID ORDER BY T3.Name ASC", "query_toks": [ "SELECT", "T3.Name", ",", "T2.Date", ",", "T2.Venue", "FROM", "debate_people", "AS", "T1", "JOIN", "debate", "AS", "T2", "ON", "T1.Debate_ID", "=", "T2.Debate_ID", "JOIN", "people", "AS", "T3", "ON", "T1.Negative", "=", "T3.People_ID", "ORDER", "BY", "T3.Name", "ASC" ], "query_toks_no_value": [ "select", "t3", ".", "name", ",", "t2", ".", "date", ",", "t2", ".", "venue", "from", "debate_people", "as", "t1", "join", "debate", "as", "t2", "on", "t1", ".", "debate_id", "=", "t2", ".", "debate_id", "join", "people", "as", "t3", "on", "t1", ".", "negative", "=", "t3", ".", "people_id", "order", "by", "t3", ".", "name", "asc" ], "question": "Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.", "question_toks": [ "show", "name", "of", "people", ",", "and", "date", "and", "venue", "of", "debate", "they", "are", "on", "negative", "side", ",", "ordered", "in", "ascending", "alphabetical", "order", "of", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 3, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, 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": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "people", ",", "and", "dates", "and", "venues", "of", "debates", "they", "are", "on", "the", "negative", "side", ",", "ordered", "in", "ascending", "alphabetical", "order", "of", "name", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "people" ], [ "," ], [ "and" ], [ "date" ], [ "and" ], [ "venue" ], [ "of" ], [ "debate" ], [ "they" ], [ "are" ], [ "on" ], [ "negative" ], [ "side" ], [ "," ], [ "ordered" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "of" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ ",", "," ], [ "and", "CC" ], [ "date", "NN" ], [ "and", "CC" ], [ "venue", "NN" ], [ "of", "IN" ], [ "debate", "NN" ], [ "they", "PRP" ], [ "are", "VBP" ], [ "on", "IN" ], [ "negative", "JJ" ], [ "side", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "of", "IN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(2) A(0) C(3) T(0) A(0) C(7) T(1) A(0) C(8) T(1) Filter(18) A(0) C(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Order(1) A(0) C(3) T(0)" }, { "db_id": "debate", "query": "SELECT T3.Name FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID WHERE T2.Num_of_Audience > 200", "query_toks": [ "SELECT", "T3.Name", "FROM", "debate_people", "AS", "T1", "JOIN", "debate", "AS", "T2", "ON", "T1.Debate_ID", "=", "T2.Debate_ID", "JOIN", "people", "AS", "T3", "ON", "T1.Affirmative", "=", "T3.People_ID", "WHERE", "T2.Num_of_Audience", ">", "200" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "debate_people", "as", "t1", "join", "debate", "as", "t2", "on", "t1", ".", "debate_id", "=", "t2", ".", "debate_id", "join", "people", "as", "t3", "on", "t1", ".", "affirmative", "=", "t3", ".", "people_id", "where", "t2", ".", "num_of_audience", ">", "value" ], "question": "Show the names of people that are on affirmative side of debates with number of audience bigger than 200.", "question_toks": [ "show", "name", "of", "people", "that", "are", "on", "affirmative", "side", "of", "debate", "with", "number", "of", "audience", "bigger", "than", "200", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, 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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, 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, 9, false ], null ], 200.0, null ] ] }, "names": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "people", "that", "are", "on", "affirmative", "side", "of", "debates", "with", "number", "of", "audience", "bigger", "than", "200", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "people" ], [ "that" ], [ "are" ], [ "on" ], [ "affirmative" ], [ "side" ], [ "of" ], [ "debate" ], [ "with" ], [ "number" ], [ "num", "of", "audience" ], [ "bigger" ], [ "than" ], [ "200" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "on", "IN" ], [ "affirmative", "JJ" ], [ "side", "NN" ], [ "of", "IN" ], [ "debate", "NN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "audience", "NN" ], [ "bigger", "JJR" ], [ "than", "IN" ], [ "200", "CD" ], [ ".", "." ] ], "values": [ "200" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) 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(0) C(9) T(1) V(0)" }, { "db_id": "debate", "query": "SELECT T2.Name , COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative = T2.People_ID GROUP BY T2.Name", "query_toks": [ "SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "debate_people", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Affirmative", "=", "T2.People_ID", "GROUP", "BY", "T2.Name" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "debate_people", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "affirmative", "=", "t2", ".", "people_id", "group", "by", "t2", ".", "name" ], "question": "Show the names of people and the number of times they have been on the affirmative side of debates.", "question_toks": [ "show", "name", "of", "people", "and", "number", "of", "time", "they", "have", "been", "on", "affirmative", "side", "of", "debate", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "people", "and", "the", "number", "of", "times", "they", "have", "been", "on", "the", "affirmative", "side", "of", "debates", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "people" ], [ "and" ], [ "number" ], [ "of" ], [ "time" ], [ "they" ], [ "have" ], [ "been" ], [ "on" ], [ "affirmative" ], [ "side" ], [ "of" ], [ "debate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "time", "NN" ], [ "they", "PRP" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "on", "IN" ], [ "affirmative", "JJ" ], [ "side", "NN" ], [ "of", "IN" ], [ "debate", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(2)" }, { "db_id": "debate", "query": "SELECT T2.Name FROM debate_people AS T1 JOIN people AS T2 ON T1.Negative = T2.People_ID GROUP BY T2.Name HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T2.Name", "FROM", "debate_people", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Negative", "=", "T2.People_ID", "GROUP", "BY", "T2.Name", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "debate_people", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "negative", "=", "t2", ".", "people_id", "group", "by", "t2", ".", "name", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the names of people who have been on the negative side of debates at least twice.", "question_toks": [ "show", "name", "of", "people", "who", "have", "been", "on", "negative", "side", "of", "debate", "at", "least", "twice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 0 ] ] }, "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 ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "of", "people", "who", "have", "been", "on", "the", "negative", "side", "of", "debates", "at", "least", "twice", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "people" ], [ "who" ], [ "have" ], [ "been" ], [ "on" ], [ "negative" ], [ "side" ], [ "of" ], [ "debate" ], [ "at" ], [ "least" ], [ "twice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "who", "WP" ], [ "have", "VBP" ], [ "been", "VBN" ], [ "on", "IN" ], [ "negative", "JJ" ], [ "side", "NN" ], [ "of", "IN" ], [ "debate", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "twice", "RB" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) 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(11) T(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "debate", "query": "SELECT Name FROM people WHERE People_id NOT IN (SELECT Affirmative FROM debate_people)", "query_toks": [ "SELECT", "Name", "FROM", "people", "WHERE", "People_id", "NOT", "IN", "(", "SELECT", "Affirmative", "FROM", "debate_people", ")" ], "query_toks_no_value": [ "select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "affirmative", "from", "debate_people", ")" ], "question": "List the names of people that have not been on the affirmative side of debates.", "question_toks": [ "list", "name", "of", "people", "that", "have", "not", "been", "on", "affirmative", "side", "of", "debate", "." ], "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, 11, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "debate id", "affirmative", "negative", "if affirmative win" ], "table_names": [ "people", "debate", "debate people" ], "col_set": [ "*", "people id", "district", "name", "party", "age", "debate id", "date", "venue", "num of audience", "affirmative", "negative", "if affirmative win" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "12": 1, "1": 1, "11": 1, "10": 10, "6": 6 }, "origin_question_toks": [ "List", "the", "names", "of", "people", "that", "have", "not", "been", "on", "the", "affirmative", "side", "of", "debates", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "people" ], [ "that" ], [ "have" ], [ "not" ], [ "been" ], [ "on" ], [ "affirmative" ], [ "side" ], [ "of" ], [ "debate" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "not", "RB" ], [ "been", "VBN" ], [ "on", "IN" ], [ "affirmative", "JJ" ], [ "side", "NN" ], [ "of", "IN" ], [ "debate", "NN" ], [ ".", "." ] ], "values": [], "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(10) T(2)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT customer_details FROM customers ORDER BY customer_details", "query_toks": [ "SELECT", "customer_details", "FROM", "customers", "ORDER", "BY", "customer_details" ], "query_toks_no_value": [ "select", "customer_details", "from", "customers", "order", "by", "customer_details" ], "question": "List the names of all the customers in alphabetical order.", "question_toks": [ "list", "name", "of", "all", "customer", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "List", "the", "names", "of", "all", "the", "customers", "in", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT customer_details FROM customers ORDER BY customer_details", "query_toks": [ "SELECT", "customer_details", "FROM", "customers", "ORDER", "BY", "customer_details" ], "query_toks_no_value": [ "select", "customer_details", "from", "customers", "order", "by", "customer_details" ], "question": "Sort the customer names in alphabetical order.", "question_toks": [ "sort", "customer", "name", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Sort", "the", "customer", "names", "in", "alphabetical", "order", "." ], "question_arg": [ [ "sort" ], [ "customer" ], [ "name" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "sort", "NN" ], [ "customer", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = \"Dayana Robel\"", "query_toks": [ "SELECT", "policy_type_code", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t2.customer_details", "=", "``", "Dayana", "Robel", "''" ], "query_toks_no_value": [ "select", "policy_type_code", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_details", "=", "value" ], "question": "Find all the policy type codes associated with the customer \"Dayana Robel\"", "question_toks": [ "find", "all", "policy", "type", "code", "associated", "with", "customer", "'", "dayana", "robel", "'" ], "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Dayana Robel\"", null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "all", "the", "policy", "type", "codes", "associated", "with", "the", "customer", "``", "Dayana", "Robel", "''" ], "question_arg": [ [ "find" ], [ "all" ], [ "policy", "type", "code" ], [ "associated" ], [ "with" ], [ "customer" ], [ "'" ], [ "dayana" ], [ "robel" ], [ "'" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "policy", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "customer", "NN" ], [ "'", "''" ], [ "dayana", "JJ" ], [ "robel", "NN" ], [ "'", "''" ] ], "values": [ "Dayana Robel" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = \"Dayana Robel\"", "query_toks": [ "SELECT", "policy_type_code", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t2.customer_details", "=", "``", "Dayana", "Robel", "''" ], "query_toks_no_value": [ "select", "policy_type_code", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_details", "=", "value" ], "question": "What are the type codes of the policies used by the customer \"Dayana Robel\"?", "question_toks": [ "what", "are", "type", "code", "of", "policy", "used", "by", "customer", "'", "dayana", "robel", "'", "?" ], "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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Dayana Robel\"", null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "What", "are", "the", "type", "codes", "of", "the", "policies", "used", "by", "the", "customer", "``", "Dayana", "Robel", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "type" ], [ "code" ], [ "of" ], [ "policy" ], [ "used" ], [ "by" ], [ "customer" ], [ "'" ], [ "dayana" ], [ "robel" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "type", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "policy", "NN" ], [ "used", "VBN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "'", "''" ], [ "dayana", "JJ" ], [ "robel", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Dayana Robel" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "policy_type_code", "FROM", "policies", "GROUP", "BY", "policy_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "policy_type_code", "from", "policies", "group", "by", "policy_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which type of policy is most frequently used? Give me the policy type code.", "question_toks": [ "which", "type", "of", "policy", "is", "most", "frequently", "used", "?", "give", "me", "policy", "type", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Which", "type", "of", "policy", "is", "most", "frequently", "used", "?", "Give", "me", "the", "policy", "type", "code", "." ], "question_arg": [ [ "which" ], [ "type" ], [ "of" ], [ "policy" ], [ "is" ], [ "most" ], [ "frequently" ], [ "used" ], [ "?" ], [ "give" ], [ "me" ], [ "policy", "type", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "type", "NN" ], [ "of", "IN" ], [ "policy", "NN" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "frequently", "RB" ], [ "used", "VBN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "policy", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT policy_type_code FROM policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "policy_type_code", "FROM", "policies", "GROUP", "BY", "policy_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "policy_type_code", "from", "policies", "group", "by", "policy_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the type code of the most frequently used policy.", "question_toks": [ "find", "type", "code", "of", "most", "frequently", "used", "policy", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "type", "code", "of", "the", "most", "frequently", "used", "policy", "." ], "question_arg": [ [ "find" ], [ "type" ], [ "code" ], [ "of" ], [ "most" ], [ "frequently" ], [ "used" ], [ "policy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "type", "JJ" ], [ "code", "NN" ], [ "of", "IN" ], [ "most", "JJS" ], [ "frequently", "RB" ], [ "used", "VBN" ], [ "policy", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(6) T(2) Sup(0) A(3) C(0) T(2)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*) > 2", "query_toks": [ "SELECT", "policy_type_code", "FROM", "policies", "GROUP", "BY", "policy_type_code", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "policy_type_code", "from", "policies", "group", "by", "policy_type_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Find all the policy types that are used by more than 2 customers.", "question_toks": [ "find", "all", "policy", "type", "that", "are", "used", "by", "more", "than", "2", "customer", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 3, [ 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": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "all", "the", "policy", "types", "that", "are", "used", "by", "more", "than", "2", "customers", "." ], "question_arg": [ [ "find" ], [ "all" ], [ "policy" ], [ "type" ], [ "that" ], [ "are" ], [ "used" ], [ "by" ], [ "more" ], [ "than" ], [ "2" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "all", "DT" ], [ "policy", "NN" ], [ "type", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "used", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING count(*) > 2", "query_toks": [ "SELECT", "policy_type_code", "FROM", "policies", "GROUP", "BY", "policy_type_code", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "policy_type_code", "from", "policies", "group", "by", "policy_type_code", "having", "count", "(", "*", ")", ">", "value" ], "question": "Which types of policy are chosen by more than 2 customers? Give me the policy type codes.", "question_toks": [ "which", "type", "of", "policy", "are", "chosen", "by", "more", "than", "2", "customer", "?", "give", "me", "policy", "type", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 7, false ] ], "having": [ [ false, 3, [ 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": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Which", "types", "of", "policy", "are", "chosen", "by", "more", "than", "2", "customers", "?", "Give", "me", "the", "policy", "type", "codes", "." ], "question_arg": [ [ "which" ], [ "type" ], [ "of" ], [ "policy" ], [ "are" ], [ "chosen" ], [ "by" ], [ "more" ], [ "than" ], [ "2" ], [ "customer" ], [ "?" ], [ "give" ], [ "me" ], [ "policy", "type", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "type", "NN" ], [ "of", "IN" ], [ "policy", "NN" ], [ "are", "VBP" ], [ "chosen", "VBN" ], [ "by", "IN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "2", "CD" ], [ "customer", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "policy", "NN" ], [ "type", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(6) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT sum(amount_piad) , avg(amount_piad) FROM claim_headers", "query_toks": [ "SELECT", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "FROM", "claim_headers" ], "query_toks_no_value": [ "select", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "from", "claim_headers" ], "question": "Find the total and average amount paid in claim headers.", "question_toks": [ "find", "total", "and", "average", "amount", "paid", "in", "claim", "header", "." ], "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 ] ], [ 5, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "total", "and", "average", "amount", "paid", "in", "claim", "headers", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "and" ], [ "average" ], [ "amount" ], [ "paid" ], [ "in" ], [ "claim", "header" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "paid", "VBN" ], [ "in", "IN" ], [ "claim", "NN" ], [ "header", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(15) T(3) A(5) C(15) T(3)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT sum(amount_piad) , avg(amount_piad) FROM claim_headers", "query_toks": [ "SELECT", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "FROM", "claim_headers" ], "query_toks_no_value": [ "select", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "from", "claim_headers" ], "question": "What are the total amount and average amount paid in claim headers?", "question_toks": [ "what", "are", "total", "amount", "and", "average", "amount", "paid", "in", "claim", "header", "?" ], "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 ] ], [ 5, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "What", "are", "the", "total", "amount", "and", "average", "amount", "paid", "in", "claim", "headers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "amount" ], [ "and" ], [ "average" ], [ "amount" ], [ "paid" ], [ "in" ], [ "claim", "header" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "paid", "VBN" ], [ "in", "IN" ], [ "claim", "NN" ], [ "header", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(15) T(3) A(5) C(15) T(3)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)", "query_toks": [ "SELECT", "sum", "(", "t1.amount_claimed", ")", "FROM", "claim_headers", "AS", "t1", "JOIN", "claims_documents", "AS", "t2", "ON", "t1.claim_header_id", "=", "t2.claim_id", "WHERE", "t2.created_date", "=", "(", "SELECT", "created_date", "FROM", "claims_documents", "ORDER", "BY", "created_date", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "amount_claimed", ")", "from", "claim_headers", "as", "t1", "join", "claims_documents", "as", "t2", "on", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "where", "t2", ".", "created_date", "=", "(", "select", "created_date", "from", "claims_documents", "order", "by", "created_date", "limit", "value", ")" ], "question": "Find the total amount claimed in the most recently created document.", "question_toks": [ "find", "total", "amount", "claimed", "in", "most", "recently", "created", "document", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "total", "amount", "claimed", "in", "the", "most", "recently", "created", "document", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "amount", "claimed" ], [ "in" ], [ "most" ], [ "recently" ], [ "created" ], [ "document" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "claimed", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "recently", "RB" ], [ "created", "VBN" ], [ "document", "NN" ], [ ".", "." ] ], "values": [ "Document" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(14) T(3) Filter(11) A(0) C(19) T(4) Root(2) Sel(0) N(0) A(0) C(19) T(4) Sup(1) A(0) C(19) T(4)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)", "query_toks": [ "SELECT", "sum", "(", "t1.amount_claimed", ")", "FROM", "claim_headers", "AS", "t1", "JOIN", "claims_documents", "AS", "t2", "ON", "t1.claim_header_id", "=", "t2.claim_id", "WHERE", "t2.created_date", "=", "(", "SELECT", "created_date", "FROM", "claims_documents", "ORDER", "BY", "created_date", "LIMIT", "1", ")" ], "query_toks_no_value": [ "select", "sum", "(", "t1", ".", "amount_claimed", ")", "from", "claim_headers", "as", "t1", "join", "claims_documents", "as", "t2", "on", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "where", "t2", ".", "created_date", "=", "(", "select", "created_date", "from", "claims_documents", "order", "by", "created_date", "limit", "value", ")" ], "question": "How much amount in total were claimed in the most recently created document?", "question_toks": [ "how", "much", "amount", "in", "total", "were", "claimed", "in", "most", "recently", "created", "document", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 18, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 21, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 4 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 21, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "How", "much", "amount", "in", "total", "were", "claimed", "in", "the", "most", "recently", "created", "document", "?" ], "question_arg": [ [ "how" ], [ "much" ], [ "amount" ], [ "in" ], [ "total" ], [ "were" ], [ "claimed" ], [ "in" ], [ "most" ], [ "recently" ], [ "created" ], [ "document" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "much", "JJ" ], [ "amount", "NN" ], [ "in", "IN" ], [ "total", "JJ" ], [ "were", "VBD" ], [ "claimed", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "recently", "RB" ], [ "created", "VBN" ], [ "document", "NN" ], [ "?", "." ] ], "values": [ "Document" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(14) T(3) Filter(11) A(0) C(19) T(4) Root(2) Sel(0) N(0) A(0) C(19) T(4) Sup(1) A(0) C(19) T(4)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT max(amount_claimed) FROM claim_headers)", "query_toks": [ "SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_claimed", "=", "(", "SELECT", "max", "(", "amount_claimed", ")", "FROM", "claim_headers", ")" ], "query_toks_no_value": [ "select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claim_headers", ")" ], "question": "What is the name of the customer who has made the largest amount of claim in a single claim?", "question_toks": [ "what", "is", "name", "of", "customer", "who", "ha", "made", "largest", "amount", "of", "claim", "in", "a", "single", "claim", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 5, 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, 16, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "largest", "amount", "of", "claim", "in", "a", "single", "claim", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "made" ], [ "largest" ], [ "amount" ], [ "date", "of", "claim" ], [ "in" ], [ "a" ], [ "single" ], [ "claim" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "made", "VBN" ], [ "largest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "claim", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "single", "JJ" ], [ "claim", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(5) T(3) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(11) A(0) C(14) T(3) Root(5) Sel(0) N(0) A(1) C(14) T(3)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_claimed = (SELECT max(amount_claimed) FROM claim_headers)", "query_toks": [ "SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_claimed", "=", "(", "SELECT", "max", "(", "amount_claimed", ")", "FROM", "claim_headers", ")" ], "query_toks_no_value": [ "select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claim_headers", ")" ], "question": "Which customer made the largest amount of claim in a single claim? Return the customer details.", "question_toks": [ "which", "customer", "made", "largest", "amount", "of", "claim", "in", "a", "single", "claim", "?", "return", "customer", "detail", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 5, 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, 16, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Which", "customer", "made", "the", "largest", "amount", "of", "claim", "in", "a", "single", "claim", "?", "Return", "the", "customer", "details", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "made" ], [ "largest" ], [ "amount" ], [ "date", "of", "claim" ], [ "in" ], [ "a" ], [ "single" ], [ "claim" ], [ "?" ], [ "return" ], [ "customer", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "made", "VBD" ], [ "largest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "claim", "NN" ], [ "in", "IN" ], [ "a", "DT" ], [ "single", "JJ" ], [ "claim", "NN" ], [ "?", "." ], [ "return", "VB" ], [ "customer", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(5) T(3) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(11) A(0) C(14) T(3) Root(5) Sel(0) N(0) A(1) C(14) T(3)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT min(amount_piad) FROM claim_headers)", "query_toks": [ "SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_piad", "=", "(", "SELECT", "min", "(", "amount_piad", ")", "FROM", "claim_headers", ")" ], "query_toks_no_value": [ "select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers", ")" ], "question": "What is the name of the customer who has made the minimum amount of payment in one claim?", "question_toks": [ "what", "is", "name", "of", "customer", "who", "ha", "made", "minimum", "amount", "of", "payment", "in", "one", "claim", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 5, 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, 17, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "minimum", "amount", "of", "payment", "in", "one", "claim", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "made" ], [ "minimum" ], [ "amount" ], [ "of" ], [ "payment" ], [ "in" ], [ "one" ], [ "claim" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "made", "VBN" ], [ "minimum", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "payment", "NN" ], [ "in", "IN" ], [ "one", "CD" ], [ "claim", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(5) T(3) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(11) A(0) C(15) T(3) Root(5) Sel(0) N(0) A(2) C(15) T(3)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT min(amount_piad) FROM claim_headers)", "query_toks": [ "SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_piad", "=", "(", "SELECT", "min", "(", "amount_piad", ")", "FROM", "claim_headers", ")" ], "query_toks_no_value": [ "select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers", ")" ], "question": "Which customer made the smallest amount of claim in one claim? Return the customer details.", "question_toks": [ "which", "customer", "made", "smallest", "amount", "of", "claim", "in", "one", "claim", "?", "return", "customer", "detail", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 5, 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, 17, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 17, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Which", "customer", "made", "the", "smallest", "amount", "of", "claim", "in", "one", "claim", "?", "Return", "the", "customer", "details", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "made" ], [ "smallest" ], [ "amount" ], [ "date", "of", "claim" ], [ "in" ], [ "one" ], [ "claim" ], [ "?" ], [ "return" ], [ "customer", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "made", "VBD" ], [ "smallest", "JJS" ], [ "amount", "NN" ], [ "of", "IN" ], [ "claim", "NN" ], [ "in", "IN" ], [ "one", "CD" ], [ "claim", "NN" ], [ "?", "." ], [ "return", "VB" ], [ "customer", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(18) A(0) C(5) T(3) Root(5) Sel(0) N(0) A(0) C(5) T(2) Filter(11) A(0) C(15) T(3) Root(5) Sel(0) N(0) A(2) C(15) T(3)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id", "query_toks": [ "SELECT", "customer_details", "FROM", "customers", "EXCEPT", "SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id" ], "query_toks_no_value": [ "select", "customer_details", "from", "customers", "except", "select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "Find the names of customers who have no policies associated.", "question_toks": [ "find", "name", "of", "customer", "who", "have", "no", "policy", "associated", "." ], "sql": { "except": { "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, 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 ] ] }, "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": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "names", "of", "customers", "who", "have", "no", "policies", "associated", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "no" ], [ "policy" ], [ "associated" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "no", "DT" ], [ "policy", "NN" ], [ "associated", "VBN" ], [ ".", "." ] ], "values": [], "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(1) T(2)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id", "query_toks": [ "SELECT", "customer_details", "FROM", "customers", "EXCEPT", "SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id" ], "query_toks_no_value": [ "select", "customer_details", "from", "customers", "except", "select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "What are the names of customers who do not have any policies?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "do", "not", "have", "any", "policy", "?" ], "sql": { "except": { "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, 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 ] ] }, "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": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "who", "do", "not", "have", "any", "policies", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "any" ], [ "policy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "any", "DT" ], [ "policy", "NN" ], [ "?", "." ] ], "values": [], "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(1) T(2)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT count(*) FROM claims_processing_stages", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "claims_processing_stages" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "claims_processing_stages" ], "question": "How many claim processing stages are there in total?", "question_toks": [ "how", "many", "claim", "processing", "stage", "are", "there", "in", "total", "?" ], "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": [] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "How", "many", "claim", "processing", "stages", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "claim", "processing", "stage" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "claim", "NN" ], [ "processing", "NN" ], [ "stage", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "total", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(5)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT count(*) FROM claims_processing_stages", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "claims_processing_stages" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "claims_processing_stages" ], "question": "Find the number of distinct stages in claim processing.", "question_toks": [ "find", "number", "of", "distinct", "stage", "in", "claim", "processing", "." ], "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": [] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "number", "of", "distinct", "stages", "in", "claim", "processing", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "distinct" ], [ "stage" ], [ "in" ], [ "claim", "processing" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "stage", "NN" ], [ "in", "IN" ], [ "claim", "NN" ], [ "processing", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(5)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.claim_status_name", "FROM", "claims_processing", "AS", "t1", "JOIN", "claims_processing_stages", "AS", "t2", "ON", "t1.claim_stage_id", "=", "t2.claim_stage_id", "GROUP", "BY", "t1.claim_stage_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "claim_status_name", "from", "claims_processing", "as", "t1", "join", "claims_processing_stages", "as", "t2", "on", "t1", ".", "claim_stage_id", "=", "t2", ".", "claim_stage_id", "group", "by", "t1", ".", "claim_stage_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name of the claim processing stage that most of the claims are on?", "question_toks": [ "what", "is", "name", "of", "claim", "processing", "stage", "that", "most", "of", "claim", "are", "on", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 29, 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, 8, [ 0, [ 0, 22, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "claim", "processing", "stage", "that", "most", "of", "the", "claims", "are", "on", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "date", "of", "claim" ], [ "processing" ], [ "stage" ], [ "that" ], [ "most" ], [ "date", "of", "claim" ], [ "are" ], [ "on" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "claim", "NN" ], [ "processing", "NN" ], [ "stage", "NN" ], [ "that", "IN" ], [ "most", "JJS" ], [ "of", "IN" ], [ "claim", "NN" ], [ "are", "VBP" ], [ "on", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(22) T(5) Sup(0) A(3) C(0) T(6) Filter(18) A(0) C(20) T(5) Root(5) Sel(0) N(0) A(0) C(20) T(6)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.claim_status_name", "FROM", "claims_processing", "AS", "t1", "JOIN", "claims_processing_stages", "AS", "t2", "ON", "t1.claim_stage_id", "=", "t2.claim_stage_id", "GROUP", "BY", "t1.claim_stage_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "claim_status_name", "from", "claims_processing", "as", "t1", "join", "claims_processing_stages", "as", "t2", "on", "t1", ".", "claim_stage_id", "=", "t2", ".", "claim_stage_id", "group", "by", "t1", ".", "claim_stage_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which claim processing stage has the most claims? Show the claim status name.", "question_toks": [ "which", "claim", "processing", "stage", "ha", "most", "claim", "?", "show", "claim", "status", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 29, false ], null ], [ 0, 22, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 29, 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, 8, [ 0, [ 0, 22, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 29, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Which", "claim", "processing", "stage", "has", "the", "most", "claims", "?", "Show", "the", "claim", "status", "name", "." ], "question_arg": [ [ "which" ], [ "claim", "processing", "stage" ], [ "ha" ], [ "most" ], [ "claim" ], [ "?" ], [ "show" ], [ "claim", "status", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "claim", "NN" ], [ "processing", "NN" ], [ "stage", "NN" ], [ "ha", "VBD" ], [ "most", "JJS" ], [ "claim", "NN" ], [ "?", "." ], [ "show", "NN" ], [ "claim", "NN" ], [ "status", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(22) T(5) Sup(0) A(3) C(0) T(6) Filter(18) A(0) C(20) T(5) Root(5) Sel(0) N(0) A(0) C(20) T(6)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT customer_details FROM customers WHERE customer_details LIKE \"%Diana%\"", "query_toks": [ "SELECT", "customer_details", "FROM", "customers", "WHERE", "customer_details", "LIKE", "``", "%", "Diana", "%", "''" ], "query_toks_no_value": [ "select", "customer_details", "from", "customers", "where", "customer_details", "like", "value" ], "question": "Find the names of customers whose name contains \"Diana\".", "question_toks": [ "find", "name", "of", "customer", "whose", "name", "contains", "'", "diana", "'", "." ], "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, 9, [ 0, [ 0, 2, false ], null ], "\"%Diana%\"", null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "names", "of", "customers", "whose", "name", "contains", "``", "Diana", "''", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "whose" ], [ "name" ], [ "contains" ], [ "'" ], [ "diana" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "'", "POS" ], [ "diana", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Diana" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT customer_details FROM customers WHERE customer_details LIKE \"%Diana%\"", "query_toks": [ "SELECT", "customer_details", "FROM", "customers", "WHERE", "customer_details", "LIKE", "``", "%", "Diana", "%", "''" ], "query_toks_no_value": [ "select", "customer_details", "from", "customers", "where", "customer_details", "like", "value" ], "question": "Which customers have the substring \"Diana\" in their names? Return the customer details.", "question_toks": [ "which", "customer", "have", "substring", "'", "diana", "'", "in", "their", "name", "?", "return", "customer", "detail", "." ], "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, 9, [ 0, [ 0, 2, false ], null ], "\"%Diana%\"", null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Which", "customers", "have", "the", "substring", "``", "Diana", "''", "in", "their", "names", "?", "Return", "the", "customer", "details", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "have" ], [ "substring" ], [ "'" ], [ "diana" ], [ "'" ], [ "in" ], [ "their" ], [ "name" ], [ "?" ], [ "return" ], [ "customer", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "substring", "VBG" ], [ "'", "''" ], [ "diana", "NN" ], [ "'", "''" ], [ "in", "IN" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "?", "." ], [ "return", "VB" ], [ "customer", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [ "Diana" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = \"Deputy\"", "query_toks": [ "SELECT", "DISTINCT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.policy_type_code", "=", "``", "Deputy", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "policy_type_code", "=", "value" ], "question": "Find the names of the customers who have an deputy policy.", "question_toks": [ "find", "name", "of", "customer", "who", "have", "an", "deputy", "policy", "." ], "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": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Deputy\"", null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "customers", "who", "have", "an", "deputy", "policy", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "an" ], [ "deputy" ], [ "policy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "an", "DT" ], [ "deputy", "NN" ], [ "policy", "NN" ], [ ".", "." ] ], "values": [ "Deputy" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = \"Deputy\"", "query_toks": [ "SELECT", "DISTINCT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.policy_type_code", "=", "``", "Deputy", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "policy_type_code", "=", "value" ], "question": "Which customers have an insurance policy with the type code \"Deputy\"? Give me the customer details.", "question_toks": [ "which", "customer", "have", "an", "insurance", "policy", "with", "type", "code", "'", "deputy", "'", "?", "give", "me", "customer", "detail", "." ], "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": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Deputy\"", null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Which", "customers", "have", "an", "insurance", "policy", "with", "the", "type", "code", "``", "Deputy", "''", "?", "Give", "me", "the", "customer", "details", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "have" ], [ "an" ], [ "insurance" ], [ "policy" ], [ "with" ], [ "type" ], [ "code" ], [ "'" ], [ "deputy" ], [ "'" ], [ "?" ], [ "give" ], [ "me" ], [ "customer", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "an", "DT" ], [ "insurance", "NN" ], [ "policy", "NN" ], [ "with", "IN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "'", "''" ], [ "deputy", "NN" ], [ "'", "''" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "customer", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [ "Deputy" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(2) A(0) C(6) T(2) V(0)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = \"Deputy\" OR t1.policy_type_code = \"Uniform\"", "query_toks": [ "SELECT", "DISTINCT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.policy_type_code", "=", "``", "Deputy", "''", "OR", "t1.policy_type_code", "=", "``", "Uniform", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "policy_type_code", "=", "value", "or", "t1", ".", "policy_type_code", "=", "value" ], "question": "Find the names of customers who either have an deputy policy or uniformed policy.", "question_toks": [ "find", "name", "of", "customer", "who", "either", "have", "an", "deputy", "policy", "or", "uniformed", "policy", "." ], "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": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Deputy\"", null ], "or", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Uniform\"", null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "names", "of", "customers", "who", "either", "have", "an", "deputy", "policy", "or", "uniformed", "policy", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "either" ], [ "have" ], [ "an" ], [ "deputy" ], [ "policy" ], [ "or" ], [ "uniformed" ], [ "policy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "either", "DT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "deputy", "NN" ], [ "policy", "NN" ], [ "or", "CC" ], [ "uniformed", "JJ" ], [ "policy", "NN" ], [ ".", "." ] ], "values": [ "Deputy", "Uniform" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(6) T(2) V(0) Filter(2) A(0) C(6) T(2) V(1)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = \"Deputy\" OR t1.policy_type_code = \"Uniform\"", "query_toks": [ "SELECT", "DISTINCT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.policy_type_code", "=", "``", "Deputy", "''", "OR", "t1.policy_type_code", "=", "``", "Uniform", "''" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "policy_type_code", "=", "value", "or", "t1", ".", "policy_type_code", "=", "value" ], "question": "Which customers have an insurance policy with the type code \"Deputy\" or \"Uniform\"? Return the customer details.", "question_toks": [ "which", "customer", "have", "an", "insurance", "policy", "with", "type", "code", "'", "deputy", "'", "or", "'", "uniform", "'", "?", "return", "customer", "detail", "." ], "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": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Deputy\"", null ], "or", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Uniform\"", null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Which", "customers", "have", "an", "insurance", "policy", "with", "the", "type", "code", "``", "Deputy", "''", "or", "``", "Uniform", "''", "?", "Return", "the", "customer", "details", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "have" ], [ "an" ], [ "insurance" ], [ "policy" ], [ "with" ], [ "type" ], [ "code" ], [ "'" ], [ "deputy" ], [ "'" ], [ "or" ], [ "'" ], [ "uniform" ], [ "'" ], [ "?" ], [ "return" ], [ "customer", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "an", "DT" ], [ "insurance", "NN" ], [ "policy", "NN" ], [ "with", "IN" ], [ "type", "JJ" ], [ "code", "NN" ], [ "'", "''" ], [ "deputy", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "uniform", "JJ" ], [ "'", "POS" ], [ "?", "." ], [ "return", "VB" ], [ "customer", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [ "Deputy", "Uniform", "Uniformed" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(6) T(2) V(0) Filter(2) A(0) C(6) T(2) V(1)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT customer_details FROM customers UNION SELECT staff_details FROM staff", "query_toks": [ "SELECT", "customer_details", "FROM", "customers", "UNION", "SELECT", "staff_details", "FROM", "staff" ], "query_toks_no_value": [ "select", "customer_details", "from", "customers", "union", "select", "staff_details", "from", "staff" ], "question": "Find the names of all the customers and staff members.", "question_toks": [ "find", "name", "of", "all", "customer", "and", "staff", "member", "." ], "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": { "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": [] }, "where": [] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "names", "of", "all", "the", "customers", "and", "staff", "members", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "and" ], [ "staff" ], [ "member" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "and", "CC" ], [ "staff", "NN" ], [ "member", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT customer_details FROM customers UNION SELECT staff_details FROM staff", "query_toks": [ "SELECT", "customer_details", "FROM", "customers", "UNION", "SELECT", "staff_details", "FROM", "staff" ], "query_toks_no_value": [ "select", "customer_details", "from", "customers", "union", "select", "staff_details", "from", "staff" ], "question": "What are the names of the customers and staff members?", "question_toks": [ "what", "are", "name", "of", "customer", "and", "staff", "member", "?" ], "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": { "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": [] }, "where": [] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "customers", "and", "staff", "members", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "and" ], [ "staff" ], [ "member" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "and", "CC" ], [ "staff", "NN" ], [ "member", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(1) Root(5) Sel(0) N(0) A(0) C(2) T(0) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT policy_type_code , count(*) FROM policies GROUP BY policy_type_code", "query_toks": [ "SELECT", "policy_type_code", ",", "count", "(", "*", ")", "FROM", "policies", "GROUP", "BY", "policy_type_code" ], "query_toks_no_value": [ "select", "policy_type_code", ",", "count", "(", "*", ")", "from", "policies", "group", "by", "policy_type_code" ], "question": "Find the number of records of each policy type and its type code.", "question_toks": [ "find", "number", "of", "record", "of", "each", "policy", "type", "and", "it", "type", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "number", "of", "records", "of", "each", "policy", "type", "and", "its", "type", "code", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "record" ], [ "of" ], [ "each" ], [ "policy" ], [ "type" ], [ "and" ], [ "it" ], [ "type" ], [ "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "record", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "policy", "NN" ], [ "type", "NN" ], [ "and", "CC" ], [ "it", "PRP" ], [ "type", "JJ" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(2) A(3) C(0) T(2)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT policy_type_code , count(*) FROM policies GROUP BY policy_type_code", "query_toks": [ "SELECT", "policy_type_code", ",", "count", "(", "*", ")", "FROM", "policies", "GROUP", "BY", "policy_type_code" ], "query_toks_no_value": [ "select", "policy_type_code", ",", "count", "(", "*", ")", "from", "policies", "group", "by", "policy_type_code" ], "question": "For each policy type, return its type code and its count in the record.", "question_toks": [ "for", "each", "policy", "type", ",", "return", "it", "type", "code", "and", "it", "count", "in", "record", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "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": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "For", "each", "policy", "type", ",", "return", "its", "type", "code", "and", "its", "count", "in", "the", "record", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "policy" ], [ "type" ], [ "," ], [ "return" ], [ "it" ], [ "type" ], [ "code" ], [ "and" ], [ "it" ], [ "count" ], [ "in" ], [ "record" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "policy", "NN" ], [ "type", "NN" ], [ ",", "," ], [ "return", "VB" ], [ "it", "PRP" ], [ "type", "JJ" ], [ "code", "NN" ], [ "and", "CC" ], [ "it", "PRP" ], [ "count", "NN" ], [ "in", "IN" ], [ "record", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(2) A(3) C(0) T(2)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "GROUP", "BY", "t2.customer_details", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t2", ".", "customer_details", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the customer that has been involved in the most policies.", "question_toks": [ "find", "name", "of", "customer", "that", "ha", "been", "involved", "in", "most", "policy", "." ], "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": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "customer", "that", "has", "been", "involved", "in", "the", "most", "policies", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "customer" ], [ "that" ], [ "ha" ], [ "been" ], [ "involved" ], [ "in" ], [ "most" ], [ "policy" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "been", "VBN" ], [ "involved", "VBN" ], [ "in", "IN" ], [ "most", "JJS" ], [ "policy", "NN" ], [ ".", "." ] ], "values": [], "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(1) T(2)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "GROUP", "BY", "t2.customer_details", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t2", ".", "customer_details", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Which customer have the most policies? Give me the customer details.", "question_toks": [ "which", "customer", "have", "most", "policy", "?", "give", "me", "customer", "detail", "." ], "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": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Which", "customer", "have", "the", "most", "policies", "?", "Give", "me", "the", "customer", "details", "." ], "question_arg": [ [ "which" ], [ "customer" ], [ "have" ], [ "most" ], [ "policy" ], [ "?" ], [ "give" ], [ "me" ], [ "customer", "detail" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "most", "VBN" ], [ "policy", "NN" ], [ "?", "." ], [ "give", "VB" ], [ "me", "PRP" ], [ "customer", "NN" ], [ "detail", "NN" ], [ ".", "." ] ], "values": [], "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(1) T(2)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT claim_status_description FROM claims_processing_stages WHERE claim_status_name = \"Open\"", "query_toks": [ "SELECT", "claim_status_description", "FROM", "claims_processing_stages", "WHERE", "claim_status_name", "=", "``", "Open", "''" ], "query_toks_no_value": [ "select", "claim_status_description", "from", "claims_processing_stages", "where", "claim_status_name", "=", "value" ], "question": "What is the description of the claim status \"Open\"?", "question_toks": [ "what", "is", "description", "of", "claim", "status", "'", "open", "'", "?" ], "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": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Open\"", null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "What", "is", "the", "description", "of", "the", "claim", "status", "``", "Open", "''", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "description" ], [ "date", "of", "claim" ], [ "status" ], [ "'" ], [ "open" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "description", "NN" ], [ "of", "IN" ], [ "claim", "NN" ], [ "status", "NN" ], [ "'", "''" ], [ "open", "JJ" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Open" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(5) Filter(2) A(0) C(22) T(5) V(0)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT claim_status_description FROM claims_processing_stages WHERE claim_status_name = \"Open\"", "query_toks": [ "SELECT", "claim_status_description", "FROM", "claims_processing_stages", "WHERE", "claim_status_name", "=", "``", "Open", "''" ], "query_toks_no_value": [ "select", "claim_status_description", "from", "claims_processing_stages", "where", "claim_status_name", "=", "value" ], "question": "Find the description of the claim status \"Open\".", "question_toks": [ "find", "description", "of", "claim", "status", "'", "open", "'", "." ], "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": [ [ false, 2, [ 0, [ 0, 24, false ], null ], "\"Open\"", null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "description", "of", "the", "claim", "status", "``", "Open", "''", "." ], "question_arg": [ [ "find" ], [ "description" ], [ "date", "of", "claim" ], [ "status" ], [ "'" ], [ "open" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "description", "NN" ], [ "of", "IN" ], [ "claim", "NN" ], [ "status", "NN" ], [ "'", "''" ], [ "open", "JJ" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Open" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(23) T(5) Filter(2) A(0) C(22) T(5) V(0)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT count(DISTINCT claim_outcome_code) FROM claims_processing", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "claim_outcome_code", ")", "FROM", "claims_processing" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "claim_outcome_code", ")", "from", "claims_processing" ], "question": "How many distinct claim outcome codes are there?", "question_toks": [ "how", "many", "distinct", "claim", "outcome", "code", "are", "there", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 28, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "How", "many", "distinct", "claim", "outcome", "codes", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "claim", "outcome", "code" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "claim", "NN" ], [ "outcome", "NN" ], [ "code", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(25) T(6)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT count(DISTINCT claim_outcome_code) FROM claims_processing", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "claim_outcome_code", ")", "FROM", "claims_processing" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "claim_outcome_code", ")", "from", "claims_processing" ], "question": "Count the number of distinct claim outcome codes.", "question_toks": [ "count", "number", "of", "distinct", "claim", "outcome", "code", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 28, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Count", "the", "number", "of", "distinct", "claim", "outcome", "codes", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "distinct" ], [ "claim", "outcome", "code" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "distinct", "JJ" ], [ "claim", "NN" ], [ "outcome", "NN" ], [ "code", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(25) T(6)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.start_date = (SELECT max(start_date) FROM policies)", "query_toks": [ "SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.start_date", "=", "(", "SELECT", "max", "(", "start_date", ")", "FROM", "policies", ")" ], "query_toks_no_value": [ "select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "start_date", "=", "(", "select", "max", "(", "start_date", ")", "from", "policies", ")" ], "question": "Which customer is associated with the latest policy?", "question_toks": [ "which", "customer", "is", "associated", "with", "latest", "policy", "?" ], "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, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Which", "customer", "is", "associated", "with", "the", "latest", "policy", "?" ], "question_arg": [ [ "which" ], [ "customer" ], [ "is" ], [ "associated" ], [ "with" ], [ "latest" ], [ "policy" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "customer", "NN" ], [ "is", "VBZ" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "latest", "JJS" ], [ "policy", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(11) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(1) C(7) T(2)" }, { "db_id": "insurance_and_eClaims", "query": "SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.start_date = (SELECT max(start_date) FROM policies)", "query_toks": [ "SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.start_date", "=", "(", "SELECT", "max", "(", "start_date", ")", "FROM", "policies", ")" ], "query_toks_no_value": [ "select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "start_date", "=", "(", "select", "max", "(", "start_date", ")", "from", "policies", ")" ], "question": "Find the customer who started a policy most recently.", "question_toks": [ "find", "customer", "who", "started", "a", "policy", "most", "recently", "." ], "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, 8, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "customer id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "policy id", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim id", "claim outcome code", "claim stage id", "staff id" ], "table_names": [ "customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing" ], "col_set": [ "*", "customer id", "customer details", "staff id", "staff details", "policy id", "policy type code", "start date", "end date", "claim header id", "claim status code", "claim type code", "date of claim", "date of settlement", "amount claimed", "amount piad", "claim id", "document type code", "created by staff id", "created date", "claim stage id", "next claim stage id", "claim status name", "claim status description", "claim processing id", "claim outcome code" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6 ], "keys": { "6": 1, "1": 1, "13": 5, "5": 5, "20": 3, "3": 3, "18": 18, "10": 10, "30": 3, "27": 10, "22": 22, "26": 26 }, "origin_question_toks": [ "Find", "the", "customer", "who", "started", "a", "policy", "most", "recently", "." ], "question_arg": [ [ "find" ], [ "customer" ], [ "who" ], [ "started" ], [ "a" ], [ "policy" ], [ "most" ], [ "recently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "customer", "NN" ], [ "who", "WP" ], [ "started", "VBD" ], [ "a", "DT" ], [ "policy", "NN" ], [ "most", "RBS" ], [ "recently", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(11) A(0) C(7) T(2) Root(5) Sel(0) N(0) A(1) C(7) T(2)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM Accounts", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "accounts" ], "question": "Show the number of accounts.", "question_toks": [ "show", "number", "of", "account", "." ], "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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "number", "of", "accounts", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM Accounts", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "accounts" ], "question": "How many accounts are there?", "question_toks": [ "how", "many", "account", "are", "there", "?" ], "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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "accounts", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "account" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "account", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(DISTINCT customer_id) FROM Accounts", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "customer_id", ")", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "customer_id", ")", "from", "accounts" ], "question": "How many customers have opened an account?", "question_toks": [ "how", "many", "customer", "have", "opened", "an", "account", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 21, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "customers", "have", "opened", "an", "account", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "have" ], [ "opened" ], [ "an" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "opened", "VBN" ], [ "an", "DT" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(DISTINCT customer_id) FROM Accounts", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "customer_id", ")", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "customer_id", ")", "from", "accounts" ], "question": "Count the number of customers who have an account.", "question_toks": [ "count", "number", "of", "customer", "who", "have", "an", "account", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 21, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Count", "the", "number", "of", "customers", "who", "have", "an", "account", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "an" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "an", "DT" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT account_id , date_account_opened , account_name , other_account_details FROM Accounts", "query_toks": [ "SELECT", "account_id", ",", "date_account_opened", ",", "account_name", ",", "other_account_details", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "account_id", ",", "date_account_opened", ",", "account_name", ",", "other_account_details", "from", "accounts" ], "question": "Show the id, the date of account opened, the account name, and other account detail for all accounts.", "question_toks": [ "show", "id", ",", "date", "of", "account", "opened", ",", "account", "name", ",", "and", "other", "account", "detail", "for", "all", "account", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "id", ",", "the", "date", "of", "account", "opened", ",", "the", "account", "name", ",", "and", "other", "account", "detail", "for", "all", "accounts", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "," ], [ "date" ], [ "of" ], [ "account" ], [ "opened" ], [ "," ], [ "account", "name" ], [ "," ], [ "and" ], [ "other", "account", "detail" ], [ "for" ], [ "all" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "date", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "opened", "VBD" ], [ ",", "," ], [ "account", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "other", "JJ" ], [ "account", "NN" ], [ "detail", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(18) T(3) A(0) C(19) T(3) A(0) C(20) T(3) A(0) C(21) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT account_id , date_account_opened , account_name , other_account_details FROM Accounts", "query_toks": [ "SELECT", "account_id", ",", "date_account_opened", ",", "account_name", ",", "other_account_details", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "account_id", ",", "date_account_opened", ",", "account_name", ",", "other_account_details", "from", "accounts" ], "question": "What are the ids, date opened, name, and other details for all accounts?", "question_toks": [ "what", "are", "id", ",", "date", "opened", ",", "name", ",", "and", "other", "detail", "for", "all", "account", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "ids", ",", "date", "opened", ",", "name", ",", "and", "other", "details", "for", "all", "accounts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "," ], [ "date", "account", "opened" ], [ "," ], [ "name" ], [ "," ], [ "and" ], [ "other" ], [ "detail" ], [ "for" ], [ "all" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ ",", "," ], [ "date", "NN" ], [ "opened", "VBD" ], [ ",", "," ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "other", "JJ" ], [ "detail", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(18) T(3) A(0) C(19) T(3) A(0) C(20) T(3) A(0) C(21) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT T1.account_id , T1.date_account_opened , T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = 'Meaghan'", "query_toks": [ "SELECT", "T1.account_id", ",", "T1.date_account_opened", ",", "T1.account_name", ",", "T1.other_account_details", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.customer_first_name", "=", "'Meaghan", "'" ], "query_toks_no_value": [ "select", "t1", ".", "account_id", ",", "t1", ".", "date_account_opened", ",", "t1", ".", "account_name", ",", "t1", ".", "other_account_details", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value" ], "question": "Show the id, the account name, and other account details for all accounts by the customer with first name 'Meaghan'.", "question_toks": [ "show", "id", ",", "account", "name", ",", "and", "other", "account", "detail", "for", "all", "account", "by", "customer", "with", "first", "name", "'", "meaghan", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Meaghan\"", null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "id", ",", "the", "account", "name", ",", "and", "other", "account", "details", "for", "all", "accounts", "by", "the", "customer", "with", "first", "name", "'Meaghan", "'", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "," ], [ "account", "name" ], [ "," ], [ "and" ], [ "other", "account", "detail" ], [ "for" ], [ "all" ], [ "account" ], [ "by" ], [ "customer" ], [ "with" ], [ "customer", "first", "name" ], [ "'" ], [ "meaghan" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "account", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "other", "JJ" ], [ "account", "NN" ], [ "detail", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "meaghan", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Meaghan", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(18) T(3) A(0) C(19) T(3) A(0) C(20) T(3) A(0) C(21) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT T1.account_id , T1.date_account_opened , T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = 'Meaghan'", "query_toks": [ "SELECT", "T1.account_id", ",", "T1.date_account_opened", ",", "T1.account_name", ",", "T1.other_account_details", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.customer_first_name", "=", "'Meaghan", "'" ], "query_toks_no_value": [ "select", "t1", ".", "account_id", ",", "t1", ".", "date_account_opened", ",", "t1", ".", "account_name", ",", "t1", ".", "other_account_details", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value" ], "question": "What are the ids, names, dates of opening, and other details for accounts corresponding to the customer with the first name \"Meaghan\"?", "question_toks": [ "what", "are", "id", ",", "name", ",", "date", "of", "opening", ",", "and", "other", "detail", "for", "account", "corresponding", "to", "customer", "with", "first", "name", "'", "meaghan", "'", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 20, false ], null ] ], [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Meaghan\"", null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "ids", ",", "names", ",", "dates", "of", "opening", ",", "and", "other", "details", "for", "accounts", "corresponding", "to", "the", "customer", "with", "the", "first", "name", "``", "Meaghan", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "," ], [ "name" ], [ "," ], [ "date" ], [ "of" ], [ "opening" ], [ "," ], [ "and" ], [ "other" ], [ "detail" ], [ "for" ], [ "account" ], [ "corresponding" ], [ "to" ], [ "customer" ], [ "with" ], [ "customer", "first", "name" ], [ "'" ], [ "meaghan" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ ",", "," ], [ "name", "NN" ], [ ",", "," ], [ "date", "NN" ], [ "of", "IN" ], [ "opening", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "other", "JJ" ], [ "detail", "NN" ], [ "for", "IN" ], [ "account", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "'", "''" ], [ "meaghan", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Meaghan", "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(3) A(0) C(18) T(3) A(0) C(19) T(3) A(0) C(20) T(3) A(0) C(21) T(3) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Meaghan\" AND T2.customer_last_name = \"Keeling\"", "query_toks": [ "SELECT", "T1.account_name", ",", "T1.other_account_details", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.customer_first_name", "=", "``", "Meaghan", "''", "AND", "T2.customer_last_name", "=", "``", "Keeling", "''" ], "query_toks_no_value": [ "select", "t1", ".", "account_name", ",", "t1", ".", "other_account_details", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value", "and", "t2", ".", "customer_last_name", "=", "value" ], "question": "Show the account name and other account detail for all accounts by the customer with first name Meaghan and last name Keeling.", "question_toks": [ "show", "account", "name", "and", "other", "account", "detail", "for", "all", "account", "by", "customer", "with", "first", "name", "meaghan", "and", "last", "name", "keeling", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Meaghan\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Keeling\"", null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "account", "name", "and", "other", "account", "detail", "for", "all", "accounts", "by", "the", "customer", "with", "first", "name", "Meaghan", "and", "last", "name", "Keeling", "." ], "question_arg": [ [ "show" ], [ "account", "name" ], [ "and" ], [ "other", "account", "detail" ], [ "for" ], [ "all" ], [ "account" ], [ "by" ], [ "customer" ], [ "with" ], [ "customer", "first", "name" ], [ "meaghan" ], [ "and" ], [ "customer", "last", "name" ], [ "keeling" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "account", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "other", "JJ" ], [ "account", "NN" ], [ "detail", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ "by", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "first", "JJ" ], [ "name", "NN" ], [ "meaghan", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "keeling", "NN" ], [ ".", "." ] ], "values": [ "Meaghan", "1", "Keeling" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(20) T(3) A(0) C(21) T(3) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(4) T(0) V(2)" }, { "db_id": "customers_and_invoices", "query": "SELECT T1.account_name , T1.other_account_details FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Meaghan\" AND T2.customer_last_name = \"Keeling\"", "query_toks": [ "SELECT", "T1.account_name", ",", "T1.other_account_details", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.customer_first_name", "=", "``", "Meaghan", "''", "AND", "T2.customer_last_name", "=", "``", "Keeling", "''" ], "query_toks_no_value": [ "select", "t1", ".", "account_name", ",", "t1", ".", "other_account_details", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value", "and", "t2", ".", "customer_last_name", "=", "value" ], "question": "What are the names and other details for accounts corresponding to the customer named Meaghan Keeling?", "question_toks": [ "what", "are", "name", "and", "other", "detail", "for", "account", "corresponding", "to", "customer", "named", "meaghan", "keeling", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 24, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Meaghan\"", null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"Keeling\"", null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "other", "details", "for", "accounts", "corresponding", "to", "the", "customer", "named", "Meaghan", "Keeling", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "other" ], [ "detail" ], [ "for" ], [ "account" ], [ "corresponding" ], [ "to" ], [ "customer" ], [ "named" ], [ "meaghan" ], [ "keeling" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "other", "JJ" ], [ "detail", "NN" ], [ "for", "IN" ], [ "account", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "customer", "NN" ], [ "named", "VBN" ], [ "meaghan", "IN" ], [ "keeling", "VBG" ], [ "?", "." ] ], "values": [ "Meaghan", "Keeling" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(20) T(3) A(0) C(21) T(3) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(4) T(0) V(1)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = \"900\"", "query_toks": [ "SELECT", "T2.customer_first_name", ",", "T2.customer_last_name", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.account_name", "=", "``", "900", "''" ], "query_toks_no_value": [ "select", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "account_name", "=", "value" ], "question": "Show the first name and last name for the customer with account name 900.", "question_toks": [ "show", "first", "name", "and", "last", "name", "for", "customer", "with", "account", "name", "900", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"900\"", null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "first", "name", "and", "last", "name", "for", "the", "customer", "with", "account", "name", "900", "." ], "question_arg": [ [ "show" ], [ "customer", "first", "name" ], [ "and" ], [ "customer", "last", "name" ], [ "for" ], [ "customer" ], [ "with" ], [ "account", "name" ], [ "900" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "account", "NN" ], [ "name", "NN" ], [ "900", "CD" ], [ ".", "." ] ], "values": [ "1", "900" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0) Filter(2) A(0) C(20) T(3) V(1)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = \"900\"", "query_toks": [ "SELECT", "T2.customer_first_name", ",", "T2.customer_last_name", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T1.account_name", "=", "``", "900", "''" ], "query_toks_no_value": [ "select", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "account_name", "=", "value" ], "question": "What are the full names of customers with the account name 900?", "question_toks": [ "what", "are", "full", "name", "of", "customer", "with", "account", "name", "900", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 23, false ], null ], "\"900\"", null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "full", "names", "of", "customers", "with", "the", "account", "name", "900", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "of" ], [ "customer" ], [ "with" ], [ "account", "name" ], [ "900" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "account", "NN" ], [ "name", "NN" ], [ "900", "CD" ], [ "?", "." ] ], "values": [ "900" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0) Filter(2) A(0) C(20) T(3) V(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Accounts", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "accounts", ")" ], "question": "How many customers don't have an account?", "question_toks": [ "how", "many", "customer", "do", "n't", "have", "an", "account", "?" ], "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", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "customers", "do", "n't", "have", "an", "account", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "do" ], [ "n't" ], [ "have" ], [ "an" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "have", "VB" ], [ "an", "DT" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "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(5) Sel(0) N(0) A(0) C(1) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM Customers WHERE customer_id NOT IN (SELECT customer_id FROM Accounts)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Accounts", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "accounts", ")" ], "question": "Count the number of customers who do not have an account.", "question_toks": [ "count", "number", "of", "customer", "who", "do", "not", "have", "an", "account", "." ], "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", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Count", "the", "number", "of", "customers", "who", "do", "not", "have", "an", "account", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "customer" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "an" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "an", "DT" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "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(5) Sel(0) N(0) A(0) C(1) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT DISTINCT T1.customer_first_name , T1.customer_last_name , T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_first_name", ",", "T1.customer_last_name", ",", "T1.phone_number", "FROM", "Customers", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_first_name", ",", "t1", ".", "customer_last_name", ",", "t1", ".", "phone_number", "from", "customers", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "Show the unique first names, last names, and phone numbers for all customers with any account.", "question_toks": [ "show", "unique", "first", "name", ",", "last", "name", ",", "and", "phone", "number", "for", "all", "customer", "with", "any", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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 ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "unique", "first", "names", ",", "last", "names", ",", "and", "phone", "numbers", "for", "all", "customers", "with", "any", "account", "." ], "question_arg": [ [ "show" ], [ "unique" ], [ "customer", "first", "name" ], [ "," ], [ "customer", "last", "name" ], [ "," ], [ "and" ], [ "phone", "number" ], [ "for" ], [ "all" ], [ "customer" ], [ "with" ], [ "any" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "unique", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "with", "IN" ], [ "any", "DT" ], [ "account", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(2) A(0) C(2) T(0) A(0) C(4) T(0) A(0) C(9) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT DISTINCT T1.customer_first_name , T1.customer_last_name , T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id", "query_toks": [ "SELECT", "DISTINCT", "T1.customer_first_name", ",", "T1.customer_last_name", ",", "T1.phone_number", "FROM", "Customers", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "customer_first_name", ",", "t1", ".", "customer_last_name", ",", "t1", ".", "phone_number", "from", "customers", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id" ], "question": "What are the distinct first names, last names, and phone numbers for customers with accounts?", "question_toks": [ "what", "are", "distinct", "first", "name", ",", "last", "name", ",", "and", "phone", "number", "for", "customer", "with", "account", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 21, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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 ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "distinct", "first", "names", ",", "last", "names", ",", "and", "phone", "numbers", "for", "customers", "with", "accounts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "customer", "first", "name" ], [ "," ], [ "customer", "last", "name" ], [ "," ], [ "and" ], [ "phone", "number" ], [ "for" ], [ "customer" ], [ "with" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "first", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "account", "NN" ], [ "?", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(1) N(2) A(0) C(2) T(0) A(0) C(4) T(0) A(0) C(9) T(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(1) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Accounts", "query_toks": [ "SELECT", "customer_id", "FROM", "Customers", "EXCEPT", "SELECT", "customer_id", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "customer_id", "from", "customers", "except", "select", "customer_id", "from", "accounts" ], "question": "Show customer ids who don't have an account.", "question_toks": [ "show", "customer", "id", "who", "do", "n't", "have", "an", "account", "." ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, 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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "customer", "ids", "who", "do", "n't", "have", "an", "account", "." ], "question_arg": [ [ "show" ], [ "customer", "id" ], [ "who" ], [ "do" ], [ "n't" ], [ "have" ], [ "an" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "customer", "NN" ], [ "id", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "have", "VB" ], [ "an", "DT" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "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(1) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT customer_id FROM Customers EXCEPT SELECT customer_id FROM Accounts", "query_toks": [ "SELECT", "customer_id", "FROM", "Customers", "EXCEPT", "SELECT", "customer_id", "FROM", "Accounts" ], "query_toks_no_value": [ "select", "customer_id", "from", "customers", "except", "select", "customer_id", "from", "accounts" ], "question": "What are the customer ids for customers who do not have an account?", "question_toks": [ "what", "are", "customer", "id", "for", "customer", "who", "do", "not", "have", "an", "account", "?" ], "sql": { "except": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, 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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "customer", "ids", "for", "customers", "who", "do", "not", "have", "an", "account", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "customer", "id" ], [ "for" ], [ "customer" ], [ "who" ], [ "do" ], [ "not" ], [ "have" ], [ "an" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "customer", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "an", "DT" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "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(1) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) , customer_id FROM Accounts GROUP BY customer_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "customer_id", "FROM", "Accounts", "GROUP", "BY", "customer_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "customer_id", "from", "accounts", "group", "by", "customer_id" ], "question": "How many accounts does each customer have? List the number and customer id.", "question_toks": [ "how", "many", "account", "doe", "each", "customer", "have", "?", "list", "number", "and", "customer", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "accounts", "does", "each", "customer", "have", "?", "List", "the", "number", "and", "customer", "id", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "account" ], [ "doe" ], [ "each" ], [ "customer" ], [ "have" ], [ "?" ], [ "list" ], [ "number" ], [ "and" ], [ "customer", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "account", "VBP" ], [ "doe", "JJ" ], [ "each", "DT" ], [ "customer", "NN" ], [ "have", "VBP" ], [ "?", "." ], [ "list", "JJ" ], [ "number", "NN" ], [ "and", "CC" ], [ "customer", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(3) A(0) C(1) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) , customer_id FROM Accounts GROUP BY customer_id", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "customer_id", "FROM", "Accounts", "GROUP", "BY", "customer_id" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "customer_id", "from", "accounts", "group", "by", "customer_id" ], "question": "Count the number of accounts corresponding to each customer id.", "question_toks": [ "count", "number", "of", "account", "corresponding", "to", "each", "customer", "id", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 3 ] ] }, "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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Count", "the", "number", "of", "accounts", "corresponding", "to", "each", "customer", "id", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "account" ], [ "corresponding" ], [ "to" ], [ "each" ], [ "customer", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "each", "DT" ], [ "customer", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(3) A(0) C(1) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.customer_id", ",", "T2.customer_first_name", ",", "T2.customer_last_name", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the customer id, first and last name with most number of accounts.", "question_toks": [ "what", "is", "customer", "id", ",", "first", "and", "last", "name", "with", "most", "number", "of", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "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, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "customer", "id", ",", "first", "and", "last", "name", "with", "most", "number", "of", "accounts", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "customer", "id" ], [ "," ], [ "first" ], [ "and" ], [ "customer", "last", "name" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "customer", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "first", "RB" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(1) T(3) A(0) C(2) T(0) A(0) C(4) T(0) Sup(0) A(3) C(0) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.customer_id", ",", "T2.customer_first_name", ",", "T2.customer_last_name", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the id and full name of the customer with the most accounts.", "question_toks": [ "return", "id", "and", "full", "name", "of", "customer", "with", "most", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "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, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Return", "the", "id", "and", "full", "name", "of", "the", "customer", "with", "the", "most", "accounts", "." ], "question_arg": [ [ "return" ], [ "id" ], [ "and" ], [ "full" ], [ "name" ], [ "of" ], [ "customer" ], [ "with" ], [ "most" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "full", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(1) T(3) A(0) C(2) T(0) A(0) C(4) T(0) Sup(0) A(3) C(0) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name , count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id", "query_toks": [ "SELECT", "T1.customer_id", ",", "T2.customer_first_name", ",", "T2.customer_last_name", ",", "count", "(", "*", ")", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id" ], "query_toks_no_value": [ "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", ",", "count", "(", "*", ")", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id" ], "question": "Show id, first name and last name for all customers and the number of accounts.", "question_toks": [ "show", "id", ",", "first", "name", "and", "last", "name", "for", "all", "customer", "and", "number", "of", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "id", ",", "first", "name", "and", "last", "name", "for", "all", "customers", "and", "the", "number", "of", "accounts", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "," ], [ "customer", "first", "name" ], [ "and" ], [ "customer", "last", "name" ], [ "for" ], [ "all" ], [ "customer" ], [ "and" ], [ "number" ], [ "of" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "last", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(1) T(3) A(0) C(2) T(0) A(0) C(4) T(0) A(3) C(0) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT T1.customer_id , T2.customer_first_name , T2.customer_last_name , count(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id", "query_toks": [ "SELECT", "T1.customer_id", ",", "T2.customer_first_name", ",", "T2.customer_last_name", ",", "count", "(", "*", ")", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id" ], "query_toks_no_value": [ "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", ",", "count", "(", "*", ")", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id" ], "question": "What are the the full names and ids for all customers, and how many accounts does each have?", "question_toks": [ "what", "are", "full", "name", "and", "id", "for", "all", "customer", ",", "and", "how", "many", "account", "doe", "each", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 21, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 21, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "the", "full", "names", "and", "ids", "for", "all", "customers", ",", "and", "how", "many", "accounts", "does", "each", "have", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "full" ], [ "name" ], [ "and" ], [ "id" ], [ "for" ], [ "all" ], [ "customer" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "account" ], [ "doe" ], [ "each" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "full", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "account", "VBP" ], [ "doe", "JJ" ], [ "each", "DT" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(0) C(1) T(3) A(0) C(2) T(0) A(0) C(4) T(0) A(3) C(0) T(3)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.customer_first_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.customer_first_name", ",", "T1.customer_id", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "customer_first_name", ",", "t1", ".", "customer_id", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show first name and id for all customers with at least 2 accounts.", "question_toks": [ "show", "first", "name", "and", "id", "for", "all", "customer", "with", "at", "least", "2", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 21, 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 ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "first", "name", "and", "id", "for", "all", "customers", "with", "at", "least", "2", "accounts", "." ], "question_arg": [ [ "show" ], [ "customer", "first", "name" ], [ "and" ], [ "id" ], [ "for" ], [ "all" ], [ "customer" ], [ "with" ], [ "at" ], [ "least" ], [ "2" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "first", "RB" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "2", "CD" ], [ "account", "NN" ], [ ".", "." ] ], "values": [ "1", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(3) Filter(7) A(3) C(0) T(3) V(1)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.customer_first_name , T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T2.customer_first_name", ",", "T1.customer_id", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "customer_first_name", ",", "t1", ".", "customer_id", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the first names and ids for customers who have two or more accounts?", "question_toks": [ "what", "are", "first", "name", "and", "id", "for", "customer", "who", "have", "two", "or", "more", "account", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 21, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 21, 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 ] ], [ 0, [ 0, [ 0, 21, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "first", "names", "and", "ids", "for", "customers", "who", "have", "two", "or", "more", "accounts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "customer", "first", "name" ], [ "and" ], [ "id" ], [ "for" ], [ "customer" ], [ "who" ], [ "have" ], [ "two" ], [ "or" ], [ "more" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "first", "JJ" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "for", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "account", "NN" ], [ "?", "." ] ], "values": [ "1", "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(3) Filter(7) A(3) C(0) T(3) V(1)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM Customers", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers" ], "question": "Show the number of customers.", "question_toks": [ "show", "number", "of", "customer", "." ], "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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "number", "of", "customers", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM Customers", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Customers" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "customers" ], "question": "Count the number of customers.", "question_toks": [ "count", "number", "of", "customer", "." ], "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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Count", "the", "number", "of", "customers", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "customer" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT gender , count(*) FROM Customers GROUP BY gender", "query_toks": [ "SELECT", "gender", ",", "count", "(", "*", ")", "FROM", "Customers", "GROUP", "BY", "gender" ], "query_toks_no_value": [ "select", "gender", ",", "count", "(", "*", ")", "from", "customers", "group", "by", "gender" ], "question": "Show the number of customers for each gender.", "question_toks": [ "show", "number", "of", "customer", "for", "each", "gender", "." ], "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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "number", "of", "customers", "for", "each", "gender", "." ], "question_arg": [ [ "show" ], [ "number" ], [ "of" ], [ "customer" ], [ "for" ], [ "each" ], [ "gender" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(0) A(3) C(0) T(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT gender , count(*) FROM Customers GROUP BY gender", "query_toks": [ "SELECT", "gender", ",", "count", "(", "*", ")", "FROM", "Customers", "GROUP", "BY", "gender" ], "query_toks_no_value": [ "select", "gender", ",", "count", "(", "*", ")", "from", "customers", "group", "by", "gender" ], "question": "How many customers are there of each gender?", "question_toks": [ "how", "many", "customer", "are", "there", "of", "each", "gender", "?" ], "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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "customers", "are", "there", "of", "each", "gender", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "customer" ], [ "are" ], [ "there" ], [ "of" ], [ "each" ], [ "gender" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "customer", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "of", "IN" ], [ "each", "DT" ], [ "gender", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(5) T(0) A(3) C(0) T(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM Financial_transactions", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Financial_transactions" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "financial_transactions" ], "question": "How many transactions do we have?", "question_toks": [ "how", "many", "transaction", "do", "we", "have", "?" ], "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": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "transactions", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "transaction" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "transaction", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM Financial_transactions", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Financial_transactions" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "financial_transactions" ], "question": "Count the number of transactions.", "question_toks": [ "count", "number", "of", "transaction", "." ], "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": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Count", "the", "number", "of", "transactions", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) , account_id FROM Financial_transactions", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "account_id", "FROM", "Financial_transactions" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "account_id", "from", "financial_transactions" ], "question": "How many transaction does each account have? Show the number and account id.", "question_toks": [ "how", "many", "transaction", "doe", "each", "account", "have", "?", "show", "number", "and", "account", "id", "." ], "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 ] ], [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "transaction", "does", "each", "account", "have", "?", "Show", "the", "number", "and", "account", "id", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "transaction" ], [ "doe" ], [ "each" ], [ "account" ], [ "have" ], [ "?" ], [ "show" ], [ "number" ], [ "and" ], [ "account", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "transaction", "NN" ], [ "doe", "VBZ" ], [ "each", "DT" ], [ "account", "NN" ], [ "have", "VBP" ], [ "?", "." ], [ "show", "VB" ], [ "number", "NN" ], [ "and", "CC" ], [ "account", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(6) A(0) C(18) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) , account_id FROM Financial_transactions", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "account_id", "FROM", "Financial_transactions" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "account_id", "from", "financial_transactions" ], "question": "Count the number of financial transactions that correspond to each account id.", "question_toks": [ "count", "number", "of", "financial", "transaction", "that", "correspond", "to", "each", "account", "id", "." ], "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 ] ], [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Count", "the", "number", "of", "financial", "transactions", "that", "correspond", "to", "each", "account", "id", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "financial", "transaction" ], [ "that" ], [ "correspond" ], [ "to" ], [ "each" ], [ "account", "id" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "financial", "JJ" ], [ "transaction", "NN" ], [ "that", "WDT" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "account", "NN" ], [ "id", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(6) A(0) C(18) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id WHERE T2.account_name = \"337\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.account_id", "=", "T2.account_id", "WHERE", "T2.account_name", "=", "``", "337", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "where", "t2", ".", "account_name", "=", "value" ], "question": "How many transaction does account with name 337 have?", "question_toks": [ "how", "many", "transaction", "doe", "account", "with", "name", "337", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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, 23, false ], null ], "\"337\"", null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "transaction", "does", "account", "with", "name", "337", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "transaction" ], [ "doe" ], [ "account" ], [ "with" ], [ "name" ], [ "337" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "transaction", "NN" ], [ "doe", "VBD" ], [ "account", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "337", "CD" ], [ "have", "NN" ], [ "?", "." ] ], "values": [ "337" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(2) A(0) C(20) T(3) V(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id WHERE T2.account_name = \"337\"", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.account_id", "=", "T2.account_id", "WHERE", "T2.account_name", "=", "``", "337", "''" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "where", "t2", ".", "account_name", "=", "value" ], "question": "Count the number of financial transactions that the account with the name 337 has.", "question_toks": [ "count", "number", "of", "financial", "transaction", "that", "account", "with", "name", "337", "ha", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "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, 23, false ], null ], "\"337\"", null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Count", "the", "number", "of", "financial", "transactions", "that", "the", "account", "with", "the", "name", "337", "has", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "financial", "transaction" ], [ "that" ], [ "account" ], [ "with" ], [ "name" ], [ "337" ], [ "ha" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "financial", "JJ" ], [ "transaction", "NN" ], [ "that", "WDT" ], [ "account", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "337", "CD" ], [ "ha", "NN" ], [ ".", "." ] ], "values": [ "337" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(6) Filter(2) A(0) C(20) T(3) V(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) FROM Financial_transactions", "query_toks": [ "SELECT", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions" ], "query_toks_no_value": [ "select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions" ], "question": "What is the average, minimum, maximum, and total transaction amount?", "question_toks": [ "what", "is", "average", ",", "minimum", ",", "maximum", ",", "and", "total", "transaction", "amount", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 40, false ], null ] ], [ 2, [ 0, [ 0, 40, false ], null ] ], [ 1, [ 0, [ 0, 40, false ], null ] ], [ 4, [ 0, [ 0, 40, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "average", ",", "minimum", ",", "maximum", ",", "and", "total", "transaction", "amount", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "," ], [ "minimum" ], [ "," ], [ "maximum" ], [ "," ], [ "and" ], [ "total" ], [ "transaction", "amount" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ ",", "," ], [ "minimum", "JJ" ], [ ",", "," ], [ "maximum", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "total", "JJ" ], [ "transaction", "NN" ], [ "amount", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(5) C(34) T(6) A(2) C(34) T(6) A(1) C(34) T(6) A(4) C(34) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) FROM Financial_transactions", "query_toks": [ "SELECT", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions" ], "query_toks_no_value": [ "select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions" ], "question": "Return the average, minimum, maximum, and total transaction amounts.", "question_toks": [ "return", "average", ",", "minimum", ",", "maximum", ",", "and", "total", "transaction", "amount", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 40, false ], null ] ], [ 2, [ 0, [ 0, 40, false ], null ] ], [ 1, [ 0, [ 0, 40, false ], null ] ], [ 4, [ 0, [ 0, 40, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Return", "the", "average", ",", "minimum", ",", "maximum", ",", "and", "total", "transaction", "amounts", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "," ], [ "minimum" ], [ "," ], [ "maximum" ], [ "," ], [ "and" ], [ "total" ], [ "transaction", "amount" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "NN" ], [ ",", "," ], [ "minimum", "NN" ], [ ",", "," ], [ "maximum", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "total", "JJ" ], [ "transaction", "NN" ], [ "amount", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(3) A(5) C(34) T(6) A(2) C(34) T(6) A(1) C(34) T(6) A(4) C(34) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT transaction_id FROM Financial_transactions WHERE transaction_amount > (SELECT avg(transaction_amount) FROM Financial_transactions)", "query_toks": [ "SELECT", "transaction_id", "FROM", "Financial_transactions", "WHERE", "transaction_amount", ">", "(", "SELECT", "avg", "(", "transaction_amount", ")", "FROM", "Financial_transactions", ")" ], "query_toks_no_value": [ "select", "transaction_id", "from", "financial_transactions", "where", "transaction_amount", ">", "(", "select", "avg", "(", "transaction_amount", ")", "from", "financial_transactions", ")" ], "question": "Show ids for all transactions whose amounts are greater than the average.", "question_toks": [ "show", "id", "for", "all", "transaction", "whose", "amount", "are", "greater", "than", "average", "." ], "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, 3, [ 0, [ 0, 40, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 40, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "ids", "for", "all", "transactions", "whose", "amounts", "are", "greater", "than", "the", "average", "." ], "question_arg": [ [ "show" ], [ "id" ], [ "for" ], [ "all" ], [ "transaction" ], [ "whose" ], [ "amount" ], [ "are" ], [ "greater" ], [ "than" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "transaction", "NN" ], [ "whose", "WP$" ], [ "amount", "NN" ], [ "are", "VBP" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(31) T(6) Filter(13) A(0) C(34) T(6) Root(5) Sel(0) N(0) A(5) C(34) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT transaction_id FROM Financial_transactions WHERE transaction_amount > (SELECT avg(transaction_amount) FROM Financial_transactions)", "query_toks": [ "SELECT", "transaction_id", "FROM", "Financial_transactions", "WHERE", "transaction_amount", ">", "(", "SELECT", "avg", "(", "transaction_amount", ")", "FROM", "Financial_transactions", ")" ], "query_toks_no_value": [ "select", "transaction_id", "from", "financial_transactions", "where", "transaction_amount", ">", "(", "select", "avg", "(", "transaction_amount", ")", "from", "financial_transactions", ")" ], "question": "What are the ids for transactions that have an amount greater than the average amount of a transaction?", "question_toks": [ "what", "are", "id", "for", "transaction", "that", "have", "an", "amount", "greater", "than", "average", "amount", "of", "a", "transaction", "?" ], "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, 3, [ 0, [ 0, 40, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 40, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "ids", "for", "transactions", "that", "have", "an", "amount", "greater", "than", "the", "average", "amount", "of", "a", "transaction", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "for" ], [ "transaction" ], [ "that" ], [ "have" ], [ "an" ], [ "amount" ], [ "greater" ], [ "than" ], [ "average" ], [ "amount" ], [ "of" ], [ "a" ], [ "transaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "for", "IN" ], [ "transaction", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "an", "DT" ], [ "amount", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "a", "DT" ], [ "transaction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(31) T(6) Filter(13) A(0) C(34) T(6) Root(5) Sel(0) N(0) A(5) C(34) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT transaction_type , sum(transaction_amount) FROM Financial_transactions GROUP BY transaction_type", "query_toks": [ "SELECT", "transaction_type", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions", "GROUP", "BY", "transaction_type" ], "query_toks_no_value": [ "select", "transaction_type", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions", "group", "by", "transaction_type" ], "question": "Show the transaction types and the total amount of transactions.", "question_toks": [ "show", "transaction", "type", "and", "total", "amount", "of", "transaction", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 38, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ], [ 4, [ 0, [ 0, 40, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "transaction", "types", "and", "the", "total", "amount", "of", "transactions", "." ], "question_arg": [ [ "show" ], [ "transaction", "type" ], [ "and" ], [ "total" ], [ "amount" ], [ "of" ], [ "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "transaction", "NN" ], [ "type", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "amount", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(32) T(6) A(4) C(34) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT transaction_type , sum(transaction_amount) FROM Financial_transactions GROUP BY transaction_type", "query_toks": [ "SELECT", "transaction_type", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions", "GROUP", "BY", "transaction_type" ], "query_toks_no_value": [ "select", "transaction_type", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions", "group", "by", "transaction_type" ], "question": "What are total transaction amounts for each transaction type?", "question_toks": [ "what", "are", "total", "transaction", "amount", "for", "each", "transaction", "type", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 38, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 38, false ], null ] ], [ 4, [ 0, [ 0, 40, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "total", "transaction", "amounts", "for", "each", "transaction", "type", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total" ], [ "transaction", "amount" ], [ "for" ], [ "each" ], [ "transaction", "type" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "transaction", "NN" ], [ "amount", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "transaction", "NN" ], [ "type", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(32) T(6) A(4) C(34) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.account_name , T1.account_id , count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id", "query_toks": [ "SELECT", "T2.account_name", ",", "T1.account_id", ",", "count", "(", "*", ")", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.account_id", "=", "T2.account_id", "GROUP", "BY", "T1.account_id" ], "query_toks_no_value": [ "select", "t2", ".", "account_name", ",", "t1", ".", "account_id", ",", "count", "(", "*", ")", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "group", "by", "t1", ".", "account_id" ], "question": "Show the account name, id and the number of transactions for each account.", "question_toks": [ "show", "account", "name", ",", "id", "and", "number", "of", "transaction", "for", "each", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 36, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "account", "name", ",", "id", "and", "the", "number", "of", "transactions", "for", "each", "account", "." ], "question_arg": [ [ "show" ], [ "account", "name" ], [ "," ], [ "id" ], [ "and" ], [ "number" ], [ "of" ], [ "transaction" ], [ "for" ], [ "each" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "account", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(20) T(3) A(0) C(18) T(6) A(3) C(0) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.account_name , T1.account_id , count(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id", "query_toks": [ "SELECT", "T2.account_name", ",", "T1.account_id", ",", "count", "(", "*", ")", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.account_id", "=", "T2.account_id", "GROUP", "BY", "T1.account_id" ], "query_toks_no_value": [ "select", "t2", ".", "account_name", ",", "t1", ".", "account_id", ",", "count", "(", "*", ")", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "group", "by", "t1", ".", "account_id" ], "question": "Return the names and ids of each account, as well as the number of transactions.", "question_toks": [ "return", "name", "and", "id", "of", "each", "account", ",", "a", "well", "a", "number", "of", "transaction", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 36, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 23, false ], null ] ], [ 0, [ 0, [ 0, 36, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Return", "the", "names", "and", "ids", "of", "each", "account", ",", "as", "well", "as", "the", "number", "of", "transactions", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "each" ], [ "account" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "number" ], [ "of" ], [ "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "each", "DT" ], [ "account", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(20) T(3) A(0) C(18) T(6) A(3) C(0) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT account_id FROM Financial_transactions GROUP BY account_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "account_id", "FROM", "Financial_transactions", "GROUP", "BY", "account_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "account_id", "from", "financial_transactions", "group", "by", "account_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Show the account id with most number of transactions.", "question_toks": [ "show", "account", "id", "with", "most", "number", "of", "transaction", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 36, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "account", "id", "with", "most", "number", "of", "transactions", "." ], "question_arg": [ [ "show" ], [ "account", "id" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "account", "NN" ], [ "id", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(18) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT account_id FROM Financial_transactions GROUP BY account_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "account_id", "FROM", "Financial_transactions", "GROUP", "BY", "account_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "account_id", "from", "financial_transactions", "group", "by", "account_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id of the account with the most transactions?", "question_toks": [ "what", "is", "id", "of", "account", "with", "most", "transaction", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 36, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "id", "of", "the", "account", "with", "the", "most", "transactions", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "of" ], [ "account" ], [ "with" ], [ "most" ], [ "transaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "transaction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(18) T(6) Sup(0) A(3) C(0) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT T1.account_id , T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id HAVING count(*) >= 4", "query_toks": [ "SELECT", "T1.account_id", ",", "T2.account_name", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.account_id", "=", "T2.account_id", "GROUP", "BY", "T1.account_id", "HAVING", "count", "(", "*", ")", ">", "=", "4" ], "query_toks_no_value": [ "select", "t1", ".", "account_id", ",", "t2", ".", "account_name", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "group", "by", "t1", ".", "account_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the account id and name with at least 4 transactions.", "question_toks": [ "show", "account", "id", "and", "name", "with", "at", "least", "4", "transaction", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 36, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "account", "id", "and", "name", "with", "at", "least", "4", "transactions", "." ], "question_arg": [ [ "show" ], [ "account", "id" ], [ "and" ], [ "name" ], [ "with" ], [ "at" ], [ "least" ], [ "4" ], [ "transaction" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "account", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "with", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "4", "CD" ], [ "transaction", "NN" ], [ ".", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(18) T(6) A(0) C(20) T(3) Filter(7) A(3) C(0) T(6) V(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT T1.account_id , T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id HAVING count(*) >= 4", "query_toks": [ "SELECT", "T1.account_id", ",", "T2.account_name", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.account_id", "=", "T2.account_id", "GROUP", "BY", "T1.account_id", "HAVING", "count", "(", "*", ")", ">", "=", "4" ], "query_toks_no_value": [ "select", "t1", ".", "account_id", ",", "t2", ".", "account_name", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "group", "by", "t1", ".", "account_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the ids and names of accounts with 4 or more transactions?", "question_toks": [ "what", "are", "id", "and", "name", "of", "account", "with", "4", "or", "more", "transaction", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 36, false ], null ], [ 0, 20, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 36, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 4.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 36, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "names", "of", "accounts", "with", "4", "or", "more", "transactions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "account" ], [ "with" ], [ "4" ], [ "or" ], [ "more" ], [ "transaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "with", "IN" ], [ "4", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "transaction", "NN" ], [ "?", "." ] ], "values": [ "4" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(18) T(6) A(0) C(20) T(3) Filter(7) A(3) C(0) T(6) V(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT DISTINCT product_size FROM Products", "query_toks": [ "SELECT", "DISTINCT", "product_size", "FROM", "Products" ], "query_toks_no_value": [ "select", "distinct", "product_size", "from", "products" ], "question": "Show all product sizes.", "question_toks": [ "show", "all", "product", "size", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "all", "product", "sizes", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "product", "size" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "product", "NN" ], [ "size", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(30) T(5)" }, { "db_id": "customers_and_invoices", "query": "SELECT DISTINCT product_size FROM Products", "query_toks": [ "SELECT", "DISTINCT", "product_size", "FROM", "Products" ], "query_toks_no_value": [ "select", "distinct", "product_size", "from", "products" ], "question": "What are the different product sizes?", "question_toks": [ "what", "are", "different", "product", "size", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 34, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "different", "product", "sizes", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "product", "size" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "product", "NN" ], [ "size", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(30) T(5)" }, { "db_id": "customers_and_invoices", "query": "SELECT DISTINCT product_color FROM Products", "query_toks": [ "SELECT", "DISTINCT", "product_color", "FROM", "Products" ], "query_toks_no_value": [ "select", "distinct", "product_color", "from", "products" ], "question": "Show all product colors.", "question_toks": [ "show", "all", "product", "color", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "all", "product", "colors", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "product", "color" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "product", "NN" ], [ "color", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(29) T(5)" }, { "db_id": "customers_and_invoices", "query": "SELECT DISTINCT product_color FROM Products", "query_toks": [ "SELECT", "DISTINCT", "product_color", "FROM", "Products" ], "query_toks_no_value": [ "select", "distinct", "product_color", "from", "products" ], "question": "What are the different product colors?", "question_toks": [ "what", "are", "different", "product", "color", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 33, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "different", "product", "colors", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "product", "color" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "product", "NN" ], [ "color", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(29) T(5)" }, { "db_id": "customers_and_invoices", "query": "SELECT invoice_number , count(*) FROM Financial_transactions GROUP BY invoice_number", "query_toks": [ "SELECT", "invoice_number", ",", "count", "(", "*", ")", "FROM", "Financial_transactions", "GROUP", "BY", "invoice_number" ], "query_toks_no_value": [ "select", "invoice_number", ",", "count", "(", "*", ")", "from", "financial_transactions", "group", "by", "invoice_number" ], "question": "Show the invoice number and the number of transactions for each invoice.", "question_toks": [ "show", "invoice", "number", "and", "number", "of", "transaction", "for", "each", "invoice", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "invoice", "number", "and", "the", "number", "of", "transactions", "for", "each", "invoice", "." ], "question_arg": [ [ "show" ], [ "invoice", "number" ], [ "and" ], [ "number" ], [ "of" ], [ "transaction" ], [ "for" ], [ "each" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "invoice", "JJ" ], [ "number", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(6) A(3) C(0) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT invoice_number , count(*) FROM Financial_transactions GROUP BY invoice_number", "query_toks": [ "SELECT", "invoice_number", ",", "count", "(", "*", ")", "FROM", "Financial_transactions", "GROUP", "BY", "invoice_number" ], "query_toks_no_value": [ "select", "invoice_number", ",", "count", "(", "*", ")", "from", "financial_transactions", "group", "by", "invoice_number" ], "question": "How many transactions correspond to each invoice number?", "question_toks": [ "how", "many", "transaction", "correspond", "to", "each", "invoice", "number", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 6 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "transactions", "correspond", "to", "each", "invoice", "number", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "transaction" ], [ "correspond" ], [ "to" ], [ "each" ], [ "invoice", "number" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "transaction", "NN" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "invoice", "NN" ], [ "number", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(16) T(6) A(3) C(0) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.invoice_number , T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number = T2.invoice_number GROUP BY T1.invoice_number ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.invoice_number", ",", "T2.invoice_date", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Invoices", "AS", "T2", "ON", "T1.invoice_number", "=", "T2.invoice_number", "GROUP", "BY", "T1.invoice_number", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "invoice_number", ",", "t2", ".", "invoice_date", "from", "financial_transactions", "as", "t1", "join", "invoices", "as", "t2", "on", "t1", ".", "invoice_number", "=", "t2", ".", "invoice_number", "group", "by", "t1", ".", "invoice_number", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the invoice number and invoice date for the invoice with most number of transactions?", "question_toks": [ "what", "is", "invoice", "number", "and", "invoice", "date", "for", "invoice", "with", "most", "number", "of", "transaction", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "invoice", "number", "and", "invoice", "date", "for", "the", "invoice", "with", "most", "number", "of", "transactions", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "invoice", "number" ], [ "and" ], [ "invoice", "date" ], [ "for" ], [ "invoice" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "transaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "invoice", "JJ" ], [ "number", "NN" ], [ "and", "CC" ], [ "invoice", "NN" ], [ "date", "NN" ], [ "for", "IN" ], [ "invoice", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(16) T(2) A(0) C(17) T(2) Sup(0) A(3) C(0) T(6) Filter(18) A(0) C(16) T(2) Root(5) Sel(0) N(0) A(0) C(16) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.invoice_number , T2.invoice_date FROM Financial_transactions AS T1 JOIN Invoices AS T2 ON T1.invoice_number = T2.invoice_number GROUP BY T1.invoice_number ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.invoice_number", ",", "T2.invoice_date", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Invoices", "AS", "T2", "ON", "T1.invoice_number", "=", "T2.invoice_number", "GROUP", "BY", "T1.invoice_number", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "invoice_number", ",", "t2", ".", "invoice_date", "from", "financial_transactions", "as", "t1", "join", "invoices", "as", "t2", "on", "t1", ".", "invoice_number", "=", "t2", ".", "invoice_number", "group", "by", "t1", ".", "invoice_number", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the invoice number and invoice date corresponding to the invoice with the greatest number of transactions?", "question_toks": [ "what", "is", "invoice", "number", "and", "invoice", "date", "corresponding", "to", "invoice", "with", "greatest", "number", "of", "transaction", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 37, false ], null ], [ 0, 17, false ], null ] ], "table_units": [ [ "table_unit", 6 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 37, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 17, false ], null ] ], [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 17, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 37, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 6 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "invoice", "number", "and", "invoice", "date", "corresponding", "to", "the", "invoice", "with", "the", "greatest", "number", "of", "transactions", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "invoice", "number" ], [ "and" ], [ "invoice", "date" ], [ "corresponding" ], [ "to" ], [ "invoice" ], [ "with" ], [ "greatest" ], [ "number" ], [ "of" ], [ "transaction" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "invoice", "JJ" ], [ "number", "NN" ], [ "and", "CC" ], [ "invoice", "NN" ], [ "date", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "invoice", "VB" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "transaction", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(16) T(2) A(0) C(17) T(2) Sup(0) A(3) C(0) T(6) Filter(18) A(0) C(16) T(2) Root(5) Sel(0) N(0) A(0) C(16) T(6)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM Invoices", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Invoices" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "invoices" ], "question": "How many invoices do we have?", "question_toks": [ "how", "many", "invoice", "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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "invoices", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "invoice" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "invoice", "RB" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM Invoices", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Invoices" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "invoices" ], "question": "Count the number of invoices.", "question_toks": [ "count", "number", "of", "invoice", "." ], "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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Count", "the", "number", "of", "invoices", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "customers_and_invoices", "query": "SELECT T1.invoice_date , T1.order_id , T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id", "query_toks": [ "SELECT", "T1.invoice_date", ",", "T1.order_id", ",", "T2.order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id" ], "query_toks_no_value": [ "select", "t1", ".", "invoice_date", ",", "t1", ".", "order_id", ",", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id" ], "question": "Show invoice dates and order id and details for all invoices.", "question_toks": [ "show", "invoice", "date", "and", "order", "id", "and", "detail", "for", "all", "invoice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "invoice", "dates", "and", "order", "id", "and", "details", "for", "all", "invoices", "." ], "question_arg": [ [ "show" ], [ "invoice", "date" ], [ "and" ], [ "order", "id" ], [ "and" ], [ "detail" ], [ "for" ], [ "all" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "invoice", "NN" ], [ "date", "NN" ], [ "and", "CC" ], [ "order", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(17) T(2) A(0) C(13) T(2) A(0) C(15) T(1)" }, { "db_id": "customers_and_invoices", "query": "SELECT T1.invoice_date , T1.order_id , T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id", "query_toks": [ "SELECT", "T1.invoice_date", ",", "T1.order_id", ",", "T2.order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id" ], "query_toks_no_value": [ "select", "t1", ".", "invoice_date", ",", "t1", ".", "order_id", ",", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id" ], "question": "What are the invoice dates, order ids, and order details for all invoices?", "question_toks": [ "what", "are", "invoice", "date", ",", "order", "id", ",", "and", "order", "detail", "for", "all", "invoice", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ], [ 0, [ 0, [ 0, 18, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "invoice", "dates", ",", "order", "ids", ",", "and", "order", "details", "for", "all", "invoices", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "invoice", "date" ], [ "," ], [ "order", "id" ], [ "," ], [ "and" ], [ "order", "detail" ], [ "for" ], [ "all" ], [ "invoice" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "invoice", "JJ" ], [ "date", "NN" ], [ ",", "," ], [ "order", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "order", "NN" ], [ "detail", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "invoice", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(17) T(2) A(0) C(13) T(2) A(0) C(15) T(1)" }, { "db_id": "customers_and_invoices", "query": "SELECT order_id , count(*) FROM Invoices GROUP BY order_id", "query_toks": [ "SELECT", "order_id", ",", "count", "(", "*", ")", "FROM", "Invoices", "GROUP", "BY", "order_id" ], "query_toks_no_value": [ "select", "order_id", ",", "count", "(", "*", ")", "from", "invoices", "group", "by", "order_id" ], "question": "Show the order ids and the number of invoices for each order.", "question_toks": [ "show", "order", "id", "and", "number", "of", "invoice", "for", "each", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "order", "ids", "and", "the", "number", "of", "invoices", "for", "each", "order", "." ], "question_arg": [ [ "show" ], [ "order", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "invoice" ], [ "for" ], [ "each" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "order", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "invoice", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(2) A(3) C(0) T(2)" }, { "db_id": "customers_and_invoices", "query": "SELECT order_id , count(*) FROM Invoices GROUP BY order_id", "query_toks": [ "SELECT", "order_id", ",", "count", "(", "*", ")", "FROM", "Invoices", "GROUP", "BY", "order_id" ], "query_toks_no_value": [ "select", "order_id", ",", "count", "(", "*", ")", "from", "invoices", "group", "by", "order_id" ], "question": "How many invoices correspond to each order id?", "question_toks": [ "how", "many", "invoice", "correspond", "to", "each", "order", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 18, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "invoices", "correspond", "to", "each", "order", "id", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "invoice" ], [ "correspond" ], [ "to" ], [ "each" ], [ "order", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "invoice", "JJ" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "order", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(2) A(3) C(0) T(2)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.order_id , T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id GROUP BY T2.order_id HAVING count(*) > 2", "query_toks": [ "SELECT", "T2.order_id", ",", "T2.order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "GROUP", "BY", "T2.order_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "t2", ".", "order_id", ",", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t2", ".", "order_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "What is the order id and order details for the order more than two invoices.", "question_toks": [ "what", "is", "order", "id", "and", "order", "detail", "for", "order", "more", "than", "two", "invoice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "order", "id", "and", "order", "details", "for", "the", "order", "more", "than", "two", "invoices", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "order", "id" ], [ "and" ], [ "order", "detail" ], [ "for" ], [ "order" ], [ "more" ], [ "than" ], [ "two" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "order", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "order", "NN" ], [ "detail", "NN" ], [ "for", "IN" ], [ "order", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "two", "CD" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(1) A(0) C(15) T(1) Filter(0) Filter(18) A(0) C(13) T(1) Root(5) Sel(0) N(0) A(0) C(13) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.order_id , T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id GROUP BY T2.order_id HAVING count(*) > 2", "query_toks": [ "SELECT", "T2.order_id", ",", "T2.order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "GROUP", "BY", "T2.order_id", "HAVING", "count", "(", "*", ")", ">", "2" ], "query_toks_no_value": [ "select", "t2", ".", "order_id", ",", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t2", ".", "order_id", "having", "count", "(", "*", ")", ">", "value" ], "question": "Return the order ids and details for orderes with two or more invoices.", "question_toks": [ "return", "order", "id", "and", "detail", "for", "orderes", "with", "two", "or", "more", "invoice", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 18, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 13, false ] ], "having": [ [ false, 3, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Return", "the", "order", "ids", "and", "details", "for", "orderes", "with", "two", "or", "more", "invoices", "." ], "question_arg": [ [ "return" ], [ "order", "id" ], [ "and" ], [ "detail" ], [ "for" ], [ "orderes" ], [ "with" ], [ "two" ], [ "or" ], [ "more" ], [ "invoice" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "order", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "detail", "NN" ], [ "for", "IN" ], [ "orderes", "NNS" ], [ "with", "IN" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "invoice", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(13) T(1) A(0) C(15) T(1) Filter(0) Filter(18) A(0) C(13) T(1) Root(5) Sel(0) N(0) A(0) C(13) T(2) Filter(5) A(3) C(0) T(2) V(0)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.customer_last_name , T1.customer_id , T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.customer_last_name", ",", "T1.customer_id", ",", "T2.phone_number", "FROM", "Orders", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "customer_last_name", ",", "t1", ".", "customer_id", ",", "t2", ".", "phone_number", "from", "orders", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the customer last name, id and phone number with most number of orders?", "question_toks": [ "what", "is", "customer", "last", "name", ",", "id", "and", "phone", "number", "with", "most", "number", "of", "order", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "is", "the", "customer", "last", "name", ",", "id", "and", "phone", "number", "with", "most", "number", "of", "orders", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "customer", "last", "name" ], [ "," ], [ "id" ], [ "and" ], [ "phone", "number" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "customer", "NN" ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "id", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(4) T(0) A(0) C(1) T(1) A(0) C(9) T(0) Sup(0) A(3) C(0) T(1)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.customer_last_name , T1.customer_id , T2.phone_number FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.customer_last_name", ",", "T1.customer_id", ",", "T2.phone_number", "FROM", "Orders", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "customer_last_name", ",", "t1", ".", "customer_id", ",", "t2", ".", "phone_number", "from", "orders", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the last name, id and phone number of the customer who has made the greatest number of orders.", "question_toks": [ "return", "last", "name", ",", "id", "and", "phone", "number", "of", "customer", "who", "ha", "made", "greatest", "number", "of", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 14, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 14, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Return", "the", "last", "name", ",", "id", "and", "phone", "number", "of", "the", "customer", "who", "has", "made", "the", "greatest", "number", "of", "orders", "." ], "question_arg": [ [ "return" ], [ "customer", "last", "name" ], [ "," ], [ "id" ], [ "and" ], [ "phone", "number" ], [ "of" ], [ "customer" ], [ "who" ], [ "ha" ], [ "made" ], [ "greatest" ], [ "number" ], [ "of" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "last", "JJ" ], [ "name", "NN" ], [ ",", "," ], [ "id", "NN" ], [ "and", "CC" ], [ "phone", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "ha", "VBD" ], [ "made", "VBN" ], [ "greatest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(2) A(0) C(4) T(0) A(0) C(1) T(1) A(0) C(9) T(0) Sup(0) A(3) C(0) T(1)" }, { "db_id": "customers_and_invoices", "query": "SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id", "query_toks": [ "SELECT", "product_name", "FROM", "Products", "EXCEPT", "SELECT", "T1.product_name", "FROM", "Products", "AS", "T1", "JOIN", "Order_items", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "except", "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id" ], "question": "Show all product names without an order.", "question_toks": [ "show", "all", "product", "name", "without", "an", "order", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, 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, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 28, 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 ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "all", "product", "names", "without", "an", "order", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "product", "name" ], [ "without" ], [ "an" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "product", "NN" ], [ "name", "NN" ], [ "without", "IN" ], [ "an", "DT" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(28) T(5) Root(3) Sel(0) N(0) A(0) C(28) T(5) Filter(18) A(0) C(25) T(5) Root(5) Sel(0) N(0) A(0) C(25) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT product_name FROM Products EXCEPT SELECT T1.product_name FROM Products AS T1 JOIN Order_items AS T2 ON T1.product_id = T2.product_id", "query_toks": [ "SELECT", "product_name", "FROM", "Products", "EXCEPT", "SELECT", "T1.product_name", "FROM", "Products", "AS", "T1", "JOIN", "Order_items", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id" ], "query_toks_no_value": [ "select", "product_name", "from", "products", "except", "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id" ], "question": "What are the names of products that have never been ordered?", "question_toks": [ "what", "are", "name", "of", "product", "that", "have", "never", "been", "ordered", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 28, 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, 32, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 28, 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 ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 5 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "products", "that", "have", "never", "been", "ordered", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "product" ], [ "that" ], [ "have" ], [ "never" ], [ "been" ], [ "ordered" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "never", "RB" ], [ "been", "VBN" ], [ "ordered", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(28) T(5) Root(3) Sel(0) N(0) A(0) C(28) T(5) Filter(18) A(0) C(25) T(5) Root(5) Sel(0) N(0) A(0) C(25) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.product_name , sum(T1.product_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name", "query_toks": [ "SELECT", "T2.product_name", ",", "sum", "(", "T1.product_quantity", ")", "FROM", "Order_items", "AS", "T1", "JOIN", "Products", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "GROUP", "BY", "T2.product_name" ], "query_toks_no_value": [ "select", "t2", ".", "product_name", ",", "sum", "(", "t1", ".", "product_quantity", ")", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t2", ".", "product_name" ], "question": "Show all product names and the total quantity ordered for each product name.", "question_toks": [ "show", "all", "product", "name", "and", "total", "quantity", "ordered", "for", "each", "product", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "all", "product", "names", "and", "the", "total", "quantity", "ordered", "for", "each", "product", "name", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "product", "name" ], [ "and" ], [ "total" ], [ "quantity" ], [ "ordered" ], [ "for" ], [ "each" ], [ "product", "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "product", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "quantity", "NN" ], [ "ordered", "VBD" ], [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(28) T(5) A(4) C(38) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.product_name , sum(T1.product_quantity) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name", "query_toks": [ "SELECT", "T2.product_name", ",", "sum", "(", "T1.product_quantity", ")", "FROM", "Order_items", "AS", "T1", "JOIN", "Products", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "GROUP", "BY", "T2.product_name" ], "query_toks_no_value": [ "select", "t2", ".", "product_name", ",", "sum", "(", "t1", ".", "product_quantity", ")", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t2", ".", "product_name" ], "question": "What are the different product names, and what is the sum of quantity ordered for each product?", "question_toks": [ "what", "are", "different", "product", "name", ",", "and", "what", "is", "sum", "of", "quantity", "ordered", "for", "each", "product", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "the", "different", "product", "names", ",", "and", "what", "is", "the", "sum", "of", "quantity", "ordered", "for", "each", "product", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "different" ], [ "product", "name" ], [ "," ], [ "and" ], [ "what" ], [ "is" ], [ "sum" ], [ "of" ], [ "quantity" ], [ "ordered" ], [ "for" ], [ "each" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "different", "JJ" ], [ "product", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "sum", "NN" ], [ "of", "IN" ], [ "quantity", "NN" ], [ "ordered", "VBN" ], [ "for", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(28) T(5) A(4) C(38) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT order_id , count(*) FROM Order_items GROUP BY order_id", "query_toks": [ "SELECT", "order_id", ",", "count", "(", "*", ")", "FROM", "Order_items", "GROUP", "BY", "order_id" ], "query_toks_no_value": [ "select", "order_id", ",", "count", "(", "*", ")", "from", "order_items", "group", "by", "order_id" ], "question": "Show the order ids and the number of items in each order.", "question_toks": [ "show", "order", "id", "and", "number", "of", "item", "in", "each", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 44, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "order", "ids", "and", "the", "number", "of", "items", "in", "each", "order", "." ], "question_arg": [ [ "show" ], [ "order", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "item" ], [ "in" ], [ "each" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "order", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(7) A(3) C(0) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT order_id , count(*) FROM Order_items GROUP BY order_id", "query_toks": [ "SELECT", "order_id", ",", "count", "(", "*", ")", "FROM", "Order_items", "GROUP", "BY", "order_id" ], "query_toks_no_value": [ "select", "order_id", ",", "count", "(", "*", ")", "from", "order_items", "group", "by", "order_id" ], "question": "How many order items correspond to each order id?", "question_toks": [ "how", "many", "order", "item", "correspond", "to", "each", "order", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 44, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "order", "items", "correspond", "to", "each", "order", "id", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "order", "item" ], [ "correspond" ], [ "to" ], [ "each" ], [ "order", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "order", "NN" ], [ "item", "NN" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "order", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(7) A(3) C(0) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT product_id , count(DISTINCT order_id) FROM Order_items GROUP BY product_id", "query_toks": [ "SELECT", "product_id", ",", "count", "(", "DISTINCT", "order_id", ")", "FROM", "Order_items", "GROUP", "BY", "product_id" ], "query_toks_no_value": [ "select", "product_id", ",", "count", "(", "distinct", "order_id", ")", "from", "order_items", "group", "by", "product_id" ], "question": "Show the product ids and the number of unique orders containing each product.", "question_toks": [ "show", "product", "id", "and", "number", "of", "unique", "order", "containing", "each", "product", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ], [ 3, [ 0, [ 0, 44, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "the", "product", "ids", "and", "the", "number", "of", "unique", "orders", "containing", "each", "product", "." ], "question_arg": [ [ "show" ], [ "product", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "unique" ], [ "order" ], [ "containing" ], [ "each" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "product", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "unique", "JJ" ], [ "order", "NN" ], [ "containing", "VBG" ], [ "each", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(25) T(7) A(3) C(13) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT product_id , count(DISTINCT order_id) FROM Order_items GROUP BY product_id", "query_toks": [ "SELECT", "product_id", ",", "count", "(", "DISTINCT", "order_id", ")", "FROM", "Order_items", "GROUP", "BY", "product_id" ], "query_toks_no_value": [ "select", "product_id", ",", "count", "(", "distinct", "order_id", ")", "from", "order_items", "group", "by", "product_id" ], "question": "How many distinct order ids correspond to each product?", "question_toks": [ "how", "many", "distinct", "order", "id", "correspond", "to", "each", "product", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 45, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 45, false ], null ] ], [ 3, [ 0, [ 0, 44, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "distinct", "order", "ids", "correspond", "to", "each", "product", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "order", "id" ], [ "correspond" ], [ "to" ], [ "each" ], [ "product" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "order", "NN" ], [ "id", "NN" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "product", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(25) T(7) A(3) C(13) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.product_name , count(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name", "query_toks": [ "SELECT", "T2.product_name", ",", "count", "(", "*", ")", "FROM", "Order_items", "AS", "T1", "JOIN", "Products", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "JOIN", "Orders", "AS", "T3", "ON", "T3.order_id", "=", "T1.order_id", "GROUP", "BY", "T2.product_name" ], "query_toks_no_value": [ "select", "t2", ".", "product_name", ",", "count", "(", "*", ")", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "orders", "as", "t3", "on", "t3", ".", "order_id", "=", "t1", ".", "order_id", "group", "by", "t2", ".", "product_name" ], "question": "Show all product names and the number of customers having an order on each product.", "question_toks": [ "show", "all", "product", "name", "and", "number", "of", "customer", "having", "an", "order", "on", "each", "product", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "all", "product", "names", "and", "the", "number", "of", "customers", "having", "an", "order", "on", "each", "product", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "product", "name" ], [ "and" ], [ "number" ], [ "of" ], [ "customer" ], [ "having" ], [ "an" ], [ "order" ], [ "on" ], [ "each" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "product", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "having", "VBG" ], [ "an", "DT" ], [ "order", "NN" ], [ "on", "IN" ], [ "each", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(28) T(5) A(3) C(0) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT T2.product_name , count(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name", "query_toks": [ "SELECT", "T2.product_name", ",", "count", "(", "*", ")", "FROM", "Order_items", "AS", "T1", "JOIN", "Products", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "JOIN", "Orders", "AS", "T3", "ON", "T3.order_id", "=", "T1.order_id", "GROUP", "BY", "T2.product_name" ], "query_toks_no_value": [ "select", "t2", ".", "product_name", ",", "count", "(", "*", ")", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "orders", "as", "t3", "on", "t3", ".", "order_id", "=", "t1", ".", "order_id", "group", "by", "t2", ".", "product_name" ], "question": "What are teh names of the different products, as well as the number of customers who have ordered each product.", "question_toks": [ "what", "are", "teh", "name", "of", "different", "product", ",", "a", "well", "a", "number", "of", "customer", "who", "have", "ordered", "each", "product", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 45, false ], null ], [ 0, 28, false ], null ] ], "table_units": [ [ "table_unit", 7 ], [ "table_unit", 5 ] ] }, "groupBy": [ [ 0, 32, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 32, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "What", "are", "teh", "names", "of", "the", "different", "products", ",", "as", "well", "as", "the", "number", "of", "customers", "who", "have", "ordered", "each", "product", "." ], "question_arg": [ [ "what" ], [ "are" ], [ "teh" ], [ "name" ], [ "of" ], [ "different" ], [ "product" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "number" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "ordered" ], [ "each" ], [ "product" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "teh", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "product", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "number", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "ordered", "VBN" ], [ "each", "DT" ], [ "product", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(28) T(5) A(3) C(0) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT order_id , count(DISTINCT product_id) FROM Order_items GROUP BY order_id", "query_toks": [ "SELECT", "order_id", ",", "count", "(", "DISTINCT", "product_id", ")", "FROM", "Order_items", "GROUP", "BY", "order_id" ], "query_toks_no_value": [ "select", "order_id", ",", "count", "(", "distinct", "product_id", ")", "from", "order_items", "group", "by", "order_id" ], "question": "Show order ids and the number of products in each order.", "question_toks": [ "show", "order", "id", "and", "number", "of", "product", "in", "each", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 44, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 3, [ 0, [ 0, 45, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "order", "ids", "and", "the", "number", "of", "products", "in", "each", "order", "." ], "question_arg": [ [ "show" ], [ "order", "id" ], [ "and" ], [ "number" ], [ "of" ], [ "product" ], [ "in" ], [ "each" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "order", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(13) T(7) A(3) C(25) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT order_id , count(DISTINCT product_id) FROM Order_items GROUP BY order_id", "query_toks": [ "SELECT", "order_id", ",", "count", "(", "DISTINCT", "product_id", ")", "FROM", "Order_items", "GROUP", "BY", "order_id" ], "query_toks_no_value": [ "select", "order_id", ",", "count", "(", "distinct", "product_id", ")", "from", "order_items", "group", "by", "order_id" ], "question": "How many different products correspond to each order id?", "question_toks": [ "how", "many", "different", "product", "correspond", "to", "each", "order", "id", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 44, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 3, [ 0, [ 0, 45, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "different", "products", "correspond", "to", "each", "order", "id", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "product" ], [ "correspond" ], [ "to" ], [ "each" ], [ "order", "id" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "product", "NN" ], [ "correspond", "NN" ], [ "to", "TO" ], [ "each", "DT" ], [ "order", "NN" ], [ "id", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(1) A(0) C(13) T(7) A(3) C(25) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT order_id , sum(product_quantity) FROM Order_items GROUP BY order_id", "query_toks": [ "SELECT", "order_id", ",", "sum", "(", "product_quantity", ")", "FROM", "Order_items", "GROUP", "BY", "order_id" ], "query_toks_no_value": [ "select", "order_id", ",", "sum", "(", "product_quantity", ")", "from", "order_items", "group", "by", "order_id" ], "question": "Show order ids and the total quantity in each order.", "question_toks": [ "show", "order", "id", "and", "total", "quantity", "in", "each", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 44, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Show", "order", "ids", "and", "the", "total", "quantity", "in", "each", "order", "." ], "question_arg": [ [ "show" ], [ "order", "id" ], [ "and" ], [ "total" ], [ "quantity" ], [ "in" ], [ "each" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "order", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "quantity", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(7) A(4) C(38) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT order_id , sum(product_quantity) FROM Order_items GROUP BY order_id", "query_toks": [ "SELECT", "order_id", ",", "sum", "(", "product_quantity", ")", "FROM", "Order_items", "GROUP", "BY", "order_id" ], "query_toks_no_value": [ "select", "order_id", ",", "sum", "(", "product_quantity", ")", "from", "order_items", "group", "by", "order_id" ], "question": "Give the order ids for all orders, as well as the total product quantity in each.", "question_toks": [ "give", "order", "id", "for", "all", "order", ",", "a", "well", "a", "total", "product", "quantity", "in", "each", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 7 ] ] }, "groupBy": [ [ 0, 44, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 44, false ], null ] ], [ 4, [ 0, [ 0, 46, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Give", "the", "order", "ids", "for", "all", "orders", ",", "as", "well", "as", "the", "total", "product", "quantity", "in", "each", "." ], "question_arg": [ [ "give" ], [ "order", "id" ], [ "for" ], [ "all" ], [ "order" ], [ "," ], [ "a" ], [ "well" ], [ "a" ], [ "total" ], [ "product", "quantity" ], [ "in" ], [ "each" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "order", "NN" ], [ "id", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "order", "NN" ], [ ",", "," ], [ "a", "DT" ], [ "well", "RB" ], [ "a", "DT" ], [ "total", "JJ" ], [ "product", "NN" ], [ "quantity", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(7) A(4) C(38) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM products WHERE product_id NOT IN ( SELECT product_id FROM Order_items )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "Order_items", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "order_items", ")" ], "question": "How many products were not included in any order?", "question_toks": [ "how", "many", "product", "were", "not", "included", "in", "any", "order", "?" ], "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, 28, 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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "How", "many", "products", "were", "not", "included", "in", "any", "order", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "product" ], [ "were" ], [ "not" ], [ "included" ], [ "in" ], [ "any" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "product", "NN" ], [ "were", "VBD" ], [ "not", "RB" ], [ "included", "VBN" ], [ "in", "IN" ], [ "any", "DT" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(19) A(0) C(25) T(5) Root(5) Sel(0) N(0) A(0) C(25) T(7)" }, { "db_id": "customers_and_invoices", "query": "SELECT count(*) FROM products WHERE product_id NOT IN ( SELECT product_id FROM Order_items )", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "Order_items", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "order_items", ")" ], "question": "Count the number of products that were never ordered.", "question_toks": [ "count", "number", "of", "product", "that", "were", "never", "ordered", "." ], "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, 28, 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": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "customer id", "date order placed", "order details", "invoice number", "order id", "invoice date", "account id", "customer id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "production type code", "unit price", "product name", "product color", "product size", "transaction id", "account id", "invoice number", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "order id", "product id", "product quantity", "other order item details", "order item id", "invoice number", "product id", "product title", "product quantity", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "table_names": [ "customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items" ], "col_set": [ "*", "customer id", "customer first name", "customer middle initial", "customer last name", "gender", "email address", "login name", "login password", "phone number", "town city", "state county province", "country", "order id", "date order placed", "order details", "invoice number", "invoice date", "account id", "date account opened", "account name", "other account details", "production type code", "product type description", "vat rating", "product id", "parent product id", "unit price", "product name", "product color", "product size", "transaction id", "transaction type", "transaction date", "transaction amount", "transaction comment", "other transaction details", "order item id", "product quantity", "other order item details", "product title", "product price", "derived product cost", "derived vat payable", "derived total cost" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8 ], "keys": { "14": 1, "1": 1, "18": 13, "13": 13, "21": 1, "30": 25, "25": 25, "36": 20, "20": 20, "37": 17, "17": 17, "44": 13, "45": 28, "28": 28, "50": 28, "49": 17, "48": 43, "43": 43 }, "origin_question_toks": [ "Count", "the", "number", "of", "products", "that", "were", "never", "ordered", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "product" ], [ "that" ], [ "were" ], [ "never" ], [ "ordered" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "product", "NN" ], [ "that", "WDT" ], [ "were", "VBD" ], [ "never", "RB" ], [ "ordered", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(5) Filter(19) A(0) C(25) T(5) Root(5) Sel(0) N(0) A(0) C(25) T(7)" }, { "db_id": "wedding", "query": "SELECT count(*) FROM Church WHERE Open_Date < 1850", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "Church", "WHERE", "Open_Date", "<", "1850" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "church", "where", "open_date", "<", "value" ], "question": "How many churches opened before 1850 are there?", "question_toks": [ "how", "many", "church", "opened", "before", "year", "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, 9, false ], null ], 1850.0, null ] ] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "churches", "opened", "before", "1850", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "church" ], [ "opened" ], [ "before" ], [ "year" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "church", "NN" ], [ "opened", "VBD" ], [ "before", "IN" ], [ "1850", "CD" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [ "1850" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(4) A(0) C(8) T(1) V(0)" }, { "db_id": "wedding", "query": "SELECT name , open_date , organized_by FROM Church", "query_toks": [ "SELECT", "name", ",", "open_date", ",", "organized_by", "FROM", "Church" ], "query_toks_no_value": [ "select", "name", ",", "open_date", ",", "organized_by", "from", "church" ], "question": "Show the name, open date, and organizer for all churches.", "question_toks": [ "show", "name", ",", "open", "date", ",", "and", "organizer", "for", "all", "church", "." ], "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 ] ], [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "name", ",", "open", "date", ",", "and", "organizer", "for", "all", "churches", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "," ], [ "open", "date" ], [ "," ], [ "and" ], [ "organizer" ], [ "for" ], [ "all" ], [ "church" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "open", "JJ" ], [ "date", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "organizer", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "church", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(2) T(1) A(0) C(8) T(1) A(0) C(7) T(1)" }, { "db_id": "wedding", "query": "SELECT name FROM church ORDER BY open_date DESC", "query_toks": [ "SELECT", "name", "FROM", "church", "ORDER", "BY", "open_date", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "church", "order", "by", "open_date", "desc" ], "question": "List all church names in descending order of opening date.", "question_toks": [ "list", "all", "church", "name", "in", "descending", "order", "of", "opening", "date", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "List", "all", "church", "names", "in", "descending", "order", "of", "opening", "date", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "church" ], [ "name" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "opening" ], [ "date" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "church", "NN" ], [ "name", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "opening", "VBG" ], [ "date", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(0) A(0) C(8) T(1)" }, { "db_id": "wedding", "query": "SELECT open_date FROM church GROUP BY open_date HAVING count(*) >= 2", "query_toks": [ "SELECT", "open_date", "FROM", "church", "GROUP", "BY", "open_date", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "open_date", "from", "church", "group", "by", "open_date", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the opening year in whcih at least two churches opened.", "question_toks": [ "show", "opening", "year", "in", "whcih", "at", "least", "two", "church", "opened", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "opening", "year", "in", "whcih", "at", "least", "two", "churches", "opened", "." ], "question_arg": [ [ "show" ], [ "opening" ], [ "year" ], [ "in" ], [ "whcih" ], [ "at" ], [ "least" ], [ "two" ], [ "church" ], [ "opened" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "opening", "VBG" ], [ "year", "NN" ], [ "in", "IN" ], [ "whcih", "NN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "church", "NN" ], [ "opened", "VBD" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(7) A(3) C(0) T(1) V(0)" }, { "db_id": "wedding", "query": "SELECT organized_by , name FROM church WHERE open_date BETWEEN 1830 AND 1840", "query_toks": [ "SELECT", "organized_by", ",", "name", "FROM", "church", "WHERE", "open_date", "BETWEEN", "1830", "AND", "1840" ], "query_toks_no_value": [ "select", "organized_by", ",", "name", "from", "church", "where", "open_date", "between", "value", "and", "value" ], "question": "Show the organizer and name for churches that opened between 1830 and 1840.", "question_toks": [ "show", "organizer", "and", "name", "for", "church", "that", "opened", "between", "year", "and", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 1, [ 0, [ 0, 9, false ], null ], 1830.0, 1840.0 ] ] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "organizer", "and", "name", "for", "churches", "that", "opened", "between", "1830", "and", "1840", "." ], "question_arg": [ [ "show" ], [ "organizer" ], [ "and" ], [ "name" ], [ "for" ], [ "church" ], [ "that" ], [ "opened" ], [ "between" ], [ "year" ], [ "and" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "organizer", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "for", "IN" ], [ "church", "NN" ], [ "that", "WDT" ], [ "opened", "VBD" ], [ "between", "IN" ], [ "1830", "CD" ], [ "and", "CC" ], [ "1840", "CD" ], [ ".", "." ] ], "values": [ "1840", "1830" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(7) T(1) A(0) C(2) T(1) Filter(8) A(0) C(8) T(1) V(1) V(0)" }, { "db_id": "wedding", "query": "SELECT open_date , count(*) FROM church GROUP BY open_date", "query_toks": [ "SELECT", "open_date", ",", "count", "(", "*", ")", "FROM", "church", "GROUP", "BY", "open_date" ], "query_toks_no_value": [ "select", "open_date", ",", "count", "(", "*", ")", "from", "church", "group", "by", "open_date" ], "question": "Show all opening years and the number of churches that opened in that year.", "question_toks": [ "show", "all", "opening", "year", "and", "number", "of", "church", "that", "opened", "in", "that", "year", "." ], "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": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "all", "opening", "years", "and", "the", "number", "of", "churches", "that", "opened", "in", "that", "year", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "opening" ], [ "year" ], [ "and" ], [ "number" ], [ "of" ], [ "church" ], [ "that" ], [ "opened" ], [ "in" ], [ "that" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "VB" ], [ "all", "DT" ], [ "opening", "JJ" ], [ "year", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "church", "NN" ], [ "that", "WDT" ], [ "opened", "VBD" ], [ "in", "IN" ], [ "that", "DT" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(8) T(1) A(3) C(0) T(1)" }, { "db_id": "wedding", "query": "SELECT name , open_date FROM church ORDER BY open_date DESC LIMIT 3", "query_toks": [ "SELECT", "name", ",", "open_date", "FROM", "church", "ORDER", "BY", "open_date", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "name", ",", "open_date", "from", "church", "order", "by", "open_date", "desc", "limit", "value" ], "question": "Show the name and opening year for three churches that opened most recently.", "question_toks": [ "show", "name", "and", "opening", "year", "for", "three", "church", "that", "opened", "most", "recently", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 9, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "name", "and", "opening", "year", "for", "three", "churches", "that", "opened", "most", "recently", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "opening" ], [ "year" ], [ "for" ], [ "three" ], [ "church" ], [ "that" ], [ "opened" ], [ "most" ], [ "recently" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "opening", "JJ" ], [ "year", "NN" ], [ "for", "IN" ], [ "three", "CD" ], [ "church", "NN" ], [ "that", "WDT" ], [ "opened", "VBD" ], [ "most", "RBS" ], [ "recently", "RB" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(1) A(0) C(8) T(1) Sup(0) A(0) C(8) T(1)" }, { "db_id": "wedding", "query": "SELECT count(*) FROM people WHERE is_male = 'F' AND age > 30", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "people", "WHERE", "is_male", "=", "'F", "'", "AND", "age", ">", "30" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "people", "where", "is_male", "=", "value", "and", "age", ">", "value" ], "question": "How many female people are older than 30 in our record?", "question_toks": [ "how", "many", "female", "people", "are", "older", "than", "30", "in", "our", "record", "?" ], "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 ], "\"F\"", null ], "and", [ false, 3, [ 0, [ 0, 5, false ], null ], 30.0, null ] ] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "female", "people", "are", "older", "than", "30", "in", "our", "record", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "female" ], [ "people" ], [ "are" ], [ "older" ], [ "than" ], [ "30" ], [ "in" ], [ "our" ], [ "record" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "female", "JJ" ], [ "people", "NNS" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "30", "CD" ], [ "in", "IN" ], [ "our", "PRP$" ], [ "record", "NN" ], [ "?", "." ] ], "values": [ "F", "30" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(2) A(0) C(4) T(0) V(0) Filter(5) A(0) C(5) T(0) V(1)" }, { "db_id": "wedding", "query": "SELECT country FROM people WHERE age < 25 INTERSECT SELECT country FROM people WHERE age > 30", "query_toks": [ "SELECT", "country", "FROM", "people", "WHERE", "age", "<", "25", "INTERSECT", "SELECT", "country", "FROM", "people", "WHERE", "age", ">", "30" ], "query_toks_no_value": [ "select", "country", "from", "people", "where", "age", "<", "value", "intersect", "select", "country", "from", "people", "where", "age", ">", "value" ], "question": "Show the country where people older than 30 and younger than 25 are from.", "question_toks": [ "show", "country", "where", "people", "older", "than", "30", "and", "younger", "than", "25", "are", "from", "." ], "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, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 5, false ], null ], 30.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 5, false ], null ], 25.0, null ] ] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "country", "where", "people", "older", "than", "30", "and", "younger", "than", "25", "are", "from", "." ], "question_arg": [ [ "show" ], [ "country" ], [ "where" ], [ "people" ], [ "older" ], [ "than" ], [ "30" ], [ "and" ], [ "younger" ], [ "than" ], [ "25" ], [ "are" ], [ "from" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "country", "NN" ], [ "where", "WRB" ], [ "people", "NNS" ], [ "older", "JJR" ], [ "than", "IN" ], [ "30", "CD" ], [ "and", "CC" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "25", "CD" ], [ "are", "VBP" ], [ "from", "IN" ], [ ".", "." ] ], "values": [ "25", "30" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(4) A(0) C(5) T(0) V(0) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(5) A(0) C(5) T(0) V(1)" }, { "db_id": "wedding", "query": "SELECT min(age) , max(age) , avg(age) FROM people", "query_toks": [ "SELECT", "min", "(", "age", ")", ",", "max", "(", "age", ")", ",", "avg", "(", "age", ")", "FROM", "people" ], "query_toks_no_value": [ "select", "min", "(", "age", ")", ",", "max", "(", "age", ")", ",", "avg", "(", "age", ")", "from", "people" ], "question": "Show the minimum, maximum, and average age for all people.", "question_toks": [ "show", "minimum", ",", "maximum", ",", "and", "average", "age", "for", "all", "people", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 5, false ], null ] ], [ 1, [ 0, [ 0, 5, false ], null ] ], [ 5, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "minimum", ",", "maximum", ",", "and", "average", "age", "for", "all", "people", "." ], "question_arg": [ [ "show" ], [ "minimum" ], [ "," ], [ "maximum" ], [ "," ], [ "and" ], [ "average" ], [ "age" ], [ "for" ], [ "all" ], [ "people" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "minimum", "NN" ], [ ",", "," ], [ "maximum", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "average", "JJ" ], [ "age", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(2) C(5) T(0) A(1) C(5) T(0) A(5) C(5) T(0)" }, { "db_id": "wedding", "query": "SELECT name , country FROM people WHERE age < (SELECT avg(age) FROM people)", "query_toks": [ "SELECT", "name", ",", "country", "FROM", "people", "WHERE", "age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "people", ")" ], "query_toks_no_value": [ "select", "name", ",", "country", "from", "people", "where", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "people", ")" ], "question": "Show the name and country for all people whose age is smaller than the average.", "question_toks": [ "show", "name", "and", "country", "for", "all", "people", "whose", "age", "is", "smaller", "than", "average", "." ], "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, 4, [ 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": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "name", "and", "country", "for", "all", "people", "whose", "age", "is", "smaller", "than", "the", "average", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "country" ], [ "for" ], [ "all" ], [ "people" ], [ "whose" ], [ "age" ], [ "is" ], [ "smaller" ], [ "than" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "country", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ "whose", "WP$" ], [ "age", "NN" ], [ "is", "VBZ" ], [ "smaller", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(12) A(0) C(5) T(0) Root(5) Sel(0) N(0) A(5) C(5) T(0)" }, { "db_id": "wedding", "query": "SELECT T2.name , T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014", "query_toks": [ "SELECT", "T2.name", ",", "T3.name", "FROM", "wedding", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.male_id", "=", "T2.people_id", "JOIN", "people", "AS", "T3", "ON", "T1.female_id", "=", "T3.people_id", "WHERE", "T1.year", ">", "2014" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t3", ".", "name", "from", "wedding", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "male_id", "=", "t2", ".", "people_id", "join", "people", "as", "t3", "on", "t1", ".", "female_id", "=", "t3", ".", "people_id", "where", "t1", ".", "year", ">", "value" ], "question": "Show the pair of male and female names in all weddings after year 2014", "question_toks": [ "show", "pair", "of", "male", "and", "female", "name", "in", "all", "wedding", "after", "year", "year" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, 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 ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 14, false ], null ], 2014.0, null ] ] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "pair", "of", "male", "and", "female", "names", "in", "all", "weddings", "after", "year", "2014" ], "question_arg": [ [ "show" ], [ "pair" ], [ "of" ], [ "male" ], [ "and" ], [ "female" ], [ "name" ], [ "in" ], [ "all" ], [ "wedding" ], [ "after" ], [ "year" ], [ "year" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ] ], "nltk_pos": [ [ "show", "NN" ], [ "pair", "NN" ], [ "of", "IN" ], [ "male", "NN" ], [ "and", "CC" ], [ "female", "JJ" ], [ "name", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "wedding", "NN" ], [ "after", "IN" ], [ "year", "NN" ], [ "2014", "CD" ] ], "values": [ "F", "2014" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(2) T(0) Filter(5) A(0) C(12) T(2) V(1)" }, { "db_id": "wedding", "query": "SELECT name , age FROM people WHERE is_male = 'T' AND people_id NOT IN (SELECT male_id FROM wedding)", "query_toks": [ "SELECT", "name", ",", "age", "FROM", "people", "WHERE", "is_male", "=", "'T", "'", "AND", "people_id", "NOT", "IN", "(", "SELECT", "male_id", "FROM", "wedding", ")" ], "query_toks_no_value": [ "select", "name", ",", "age", "from", "people", "where", "is_male", "=", "value", "and", "people_id", "not", "in", "(", "select", "male_id", "from", "wedding", ")" ], "question": "Show the name and age for all male people who don't have a wedding.", "question_toks": [ "show", "name", "and", "age", "for", "all", "male", "people", "who", "do", "n't", "have", "a", "wedding", "." ], "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, 4, false ], null ], "\"T\"", null ], "and", [ 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, 12, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "name", "and", "age", "for", "all", "male", "people", "who", "do", "n't", "have", "a", "wedding", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "age" ], [ "for" ], [ "all" ], [ "male" ], [ "people" ], [ "who" ], [ "do" ], [ "n't" ], [ "have" ], [ "a" ], [ "wedding" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "age", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "male", "JJ" ], [ "people", "NNS" ], [ "who", "WP" ], [ "do", "VBP" ], [ "n't", "RB" ], [ "have", "VB" ], [ "a", "DT" ], [ "wedding", "NN" ], [ ".", "." ] ], "values": [ "T" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(5) T(0) Filter(0) Filter(2) A(0) C(4) T(0) V(0) Filter(19) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(10) T(2)" }, { "db_id": "wedding", "query": "SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id WHERE T2.year = 2015", "query_toks": [ "SELECT", "name", "FROM", "church", "EXCEPT", "SELECT", "T1.name", "FROM", "church", "AS", "T1", "JOIN", "wedding", "AS", "T2", "ON", "T1.church_id", "=", "T2.church_id", "WHERE", "T2.year", "=", "2015" ], "query_toks_no_value": [ "select", "name", "from", "church", "except", "select", "t1", ".", "name", "from", "church", "as", "t1", "join", "wedding", "as", "t2", "on", "t1", ".", "church_id", "=", "t2", ".", "church_id", "where", "t2", ".", "year", "=", "value" ], "question": "Show all church names except for those that had a wedding in year 2015.", "question_toks": [ "show", "all", "church", "name", "except", "for", "those", "that", "had", "a", "wedding", "in", "year", "year", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], 2015.0, 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": [] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "all", "church", "names", "except", "for", "those", "that", "had", "a", "wedding", "in", "year", "2015", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "church" ], [ "name" ], [ "except" ], [ "for" ], [ "those" ], [ "that" ], [ "had" ], [ "a" ], [ "wedding" ], [ "in" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "church", "NN" ], [ "name", "NN" ], [ "except", "IN" ], [ "for", "IN" ], [ "those", "DT" ], [ "that", "WDT" ], [ "had", "VBD" ], [ "a", "DT" ], [ "wedding", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2015", "CD" ], [ ".", "." ] ], "values": [ "2015" ], "rule_label": "Root1(2) Root(5) Sel(0) N(0) A(0) C(2) T(1) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "wedding", "query": "SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id GROUP BY T1.church_id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.name", "FROM", "church", "AS", "T1", "JOIN", "wedding", "AS", "T2", "ON", "T1.church_id", "=", "T2.church_id", "GROUP", "BY", "T1.church_id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "church", "as", "t1", "join", "wedding", "as", "t2", "on", "t1", ".", "church_id", "=", "t2", ".", "church_id", "group", "by", "t1", ".", "church_id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show all church names that have hosted least two weddings.", "question_toks": [ "show", "all", "church", "name", "that", "have", "hosted", "least", "two", "wedding", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 6, 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": [ [ false, 8, [ 0, [ 0, 6, 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": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "all", "church", "names", "that", "have", "hosted", "least", "two", "weddings", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "church" ], [ "name" ], [ "that" ], [ "have" ], [ "hosted" ], [ "least" ], [ "two" ], [ "wedding" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "church", "NN" ], [ "name", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "hosted", "VBN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "wedding", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) 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(7) A(3) C(0) T(2) V(0)" }, { "db_id": "wedding", "query": "SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada'", "query_toks": [ "SELECT", "T2.name", "FROM", "wedding", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.female_id", "=", "T2.people_id", "WHERE", "T1.year", "=", "2016", "AND", "T2.is_male", "=", "'F", "'", "AND", "T2.country", "=", "'Canada", "'" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "wedding", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "female_id", "=", "t2", ".", "people_id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "is_male", "=", "value", "and", "t2", ".", "country", "=", "value" ], "question": "Show the names for all females from Canada having a wedding in year 2016.", "question_toks": [ "show", "name", "for", "all", "female", "from", "canada", "having", "a", "wedding", "in", "year", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 13, 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, 14, false ], null ], 2016.0, null ], "and", [ false, 2, [ 0, [ 0, 4, false ], null ], "\"F\"", null ], "and", [ false, 2, [ 0, [ 0, 3, false ], null ], "\"Canada\"", null ] ] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "names", "for", "all", "females", "from", "Canada", "having", "a", "wedding", "in", "year", "2016", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "all" ], [ "female" ], [ "from" ], [ "canada" ], [ "having" ], [ "a" ], [ "wedding" ], [ "in" ], [ "year" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "country" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "female", "NN" ], [ "from", "IN" ], [ "canada", "NN" ], [ "having", "VBG" ], [ "a", "DT" ], [ "wedding", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2016", "CD" ], [ ".", "." ] ], "values": [ "F", "Canada", "2016" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(0) Filter(2) A(0) C(12) T(2) V(2) Filter(0) Filter(2) A(0) C(4) T(0) V(0) Filter(2) A(0) C(3) T(0) V(1)" }, { "db_id": "wedding", "query": "SELECT count(*) FROM wedding WHERE YEAR = 2016", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "wedding", "WHERE", "YEAR", "=", "2016" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "wedding", "where", "year", "=", "value" ], "question": "How many weddings are there in year 2016?", "question_toks": [ "how", "many", "wedding", "are", "there", "in", "year", "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, 14, false ], null ], 2016.0, null ] ] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "weddings", "are", "there", "in", "year", "2016", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "wedding" ], [ "are" ], [ "there" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "wedding", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "year", "NN" ], [ "2016", "CD" ], [ "?", "." ] ], "values": [ "2016" ], "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": "wedding", "query": "SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id JOIN church AS T4 ON T4.church_id = T1.church_id WHERE T2.age > 30 OR T3.age > 30", "query_toks": [ "SELECT", "T4.name", "FROM", "wedding", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.male_id", "=", "T2.people_id", "JOIN", "people", "AS", "T3", "ON", "T1.female_id", "=", "T3.people_id", "JOIN", "church", "AS", "T4", "ON", "T4.church_id", "=", "T1.church_id", "WHERE", "T2.age", ">", "30", "OR", "T3.age", ">", "30" ], "query_toks_no_value": [ "select", "t4", ".", "name", "from", "wedding", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "male_id", "=", "t2", ".", "people_id", "join", "people", "as", "t3", "on", "t1", ".", "female_id", "=", "t3", ".", "people_id", "join", "church", "as", "t4", "on", "t4", ".", "church_id", "=", "t1", ".", "church_id", "where", "t2", ".", "age", ">", "value", "or", "t3", ".", "age", ">", "value" ], "question": "Show the church names for the weddings of all people older than 30.", "question_toks": [ "show", "church", "name", "for", "wedding", "of", "all", "people", "older", "than", "30", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 12, 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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, 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 ], "and", [ false, 3, [ 0, [ 0, 5, false ], null ], 30.0, null ], "or", [ false, 3, [ 0, [ 0, 5, false ], null ], 30.0, null ] ] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "church", "names", "for", "the", "weddings", "of", "all", "people", "older", "than", "30", "." ], "question_arg": [ [ "show" ], [ "church" ], [ "name" ], [ "for" ], [ "wedding" ], [ "of" ], [ "all" ], [ "people" ], [ "older" ], [ "than" ], [ "30" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "church", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "wedding", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "people", "NNS" ], [ "older", "JJR" ], [ "than", "IN" ], [ "30", "CD" ], [ ".", "." ] ], "values": [ "30" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(10) T(2) Filter(1) Filter(5) A(0) C(5) T(0) V(0) Filter(5) A(0) C(5) T(0) V(0)" }, { "db_id": "wedding", "query": "SELECT country , count(*) FROM people GROUP BY country", "query_toks": [ "SELECT", "country", ",", "count", "(", "*", ")", "FROM", "people", "GROUP", "BY", "country" ], "query_toks_no_value": [ "select", "country", ",", "count", "(", "*", ")", "from", "people", "group", "by", "country" ], "question": "Show all countries and the number of people from each country.", "question_toks": [ "show", "all", "country", "and", "number", "of", "people", "from", "each", "country", "." ], "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": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "all", "countries", "and", "the", "number", "of", "people", "from", "each", "country", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "country" ], [ "and" ], [ "number" ], [ "of" ], [ "people" ], [ "from" ], [ "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" ], [ "people", "NNS" ], [ "from", "IN" ], [ "each", "DT" ], [ "country", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(0)" }, { "db_id": "wedding", "query": "SELECT COUNT (DISTINCT church_id) FROM wedding WHERE YEAR = 2016", "query_toks": [ "SELECT", "COUNT", "(", "DISTINCT", "church_id", ")", "FROM", "wedding", "WHERE", "YEAR", "=", "2016" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "church_id", ")", "from", "wedding", "where", "year", "=", "value" ], "question": "How many churches have a wedding in year 2016?", "question_toks": [ "how", "many", "church", "have", "a", "wedding", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 11, true ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 14, false ], null ], 2016.0, null ] ] }, "names": [ "*", "people id", "name", "country", "is male", "age", "church id", "name", "organized by", "open date", "continuation of", "church id", "male id", "female id", "year" ], "table_names": [ "people", "church", "wedding" ], "col_set": [ "*", "people id", "name", "country", "is male", "age", "church id", "organized by", "open date", "continuation of", "male id", "female id", "year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2 ], "keys": { "13": 1, "1": 1, "12": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "churches", "have", "a", "wedding", "in", "year", "2016", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "church" ], [ "have" ], [ "a" ], [ "wedding" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "church", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "wedding", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2016", "CD" ], [ "?", "." ] ], "values": [ "2016" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(3) C(6) T(2) Filter(2) A(0) C(12) T(2) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT count(*) FROM artist", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "artist" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "artist" ], "question": "How many artists do we have?", "question_toks": [ "how", "many", "artist", "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": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "artists", "do", "we", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "artist" ], [ "do" ], [ "we" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "artist", "NN" ], [ "do", "VBP" ], [ "we", "PRP" ], [ "have", "VB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "theme_gallery", "query": "SELECT count(*) FROM artist", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "artist" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "artist" ], "question": "Count the number of artists.", "question_toks": [ "count", "number", "of", "artist", "." ], "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": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Count", "the", "number", "of", "artists", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "artist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "theme_gallery", "query": "SELECT name , age , country FROM artist ORDER BY Year_Join", "query_toks": [ "SELECT", "name", ",", "age", ",", "country", "FROM", "artist", "ORDER", "BY", "Year_Join" ], "query_toks_no_value": [ "select", "name", ",", "age", ",", "country", "from", "artist", "order", "by", "year_join" ], "question": "Show all artist name, age, and country ordered by the yeared they joined.", "question_toks": [ "show", "all", "artist", "name", ",", "age", ",", "and", "country", "ordered", "by", "yeared", "they", "joined", "." ], "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 ] ], [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "all", "artist", "name", ",", "age", ",", "and", "country", "ordered", "by", "the", "yeared", "they", "joined", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "artist" ], [ "name" ], [ "," ], [ "age" ], [ "," ], [ "and" ], [ "country" ], [ "ordered" ], [ "by" ], [ "yeared" ], [ "they" ], [ "joined" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "age", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "country", "NN" ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "yeared", "JJ" ], [ "they", "PRP" ], [ "joined", "VBD" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(2) T(0) A(0) C(5) T(0) A(0) C(3) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "theme_gallery", "query": "SELECT name , age , country FROM artist ORDER BY Year_Join", "query_toks": [ "SELECT", "name", ",", "age", ",", "country", "FROM", "artist", "ORDER", "BY", "Year_Join" ], "query_toks_no_value": [ "select", "name", ",", "age", ",", "country", "from", "artist", "order", "by", "year_join" ], "question": "What are the names, ages, and countries of artists, sorted by the year they joined?", "question_toks": [ "what", "are", "name", ",", "age", ",", "and", "country", "of", "artist", ",", "sorted", "by", "year", "they", "joined", "?" ], "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 ] ], [ 0, [ 0, [ 0, 5, false ], null ] ], [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "ages", ",", "and", "countries", "of", "artists", ",", "sorted", "by", "the", "year", "they", "joined", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "age" ], [ "," ], [ "and" ], [ "country" ], [ "of" ], [ "artist" ], [ "," ], [ "sorted" ], [ "by" ], [ "year" ], [ "they" ], [ "joined" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "age", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "country", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "year", "NN" ], [ "they", "PRP" ], [ "joined", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(2) T(0) A(0) C(5) T(0) A(0) C(3) T(0) Order(1) A(0) C(4) T(0)" }, { "db_id": "theme_gallery", "query": "SELECT DISTINCT country FROM artist", "query_toks": [ "SELECT", "DISTINCT", "country", "FROM", "artist" ], "query_toks_no_value": [ "select", "distinct", "country", "from", "artist" ], "question": "What are all distinct country for artists?", "question_toks": [ "what", "are", "all", "distinct", "country", "for", "artist", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "are", "all", "distinct", "country", "for", "artists", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "all" ], [ "distinct" ], [ "country" ], [ "for" ], [ "artist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "all", "DT" ], [ "distinct", "JJ" ], [ "country", "NN" ], [ "for", "IN" ], [ "artist", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(0)" }, { "db_id": "theme_gallery", "query": "SELECT DISTINCT country FROM artist", "query_toks": [ "SELECT", "DISTINCT", "country", "FROM", "artist" ], "query_toks_no_value": [ "select", "distinct", "country", "from", "artist" ], "question": "Return the different countries for artists.", "question_toks": [ "return", "different", "country", "for", "artist", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Return", "the", "different", "countries", "for", "artists", "." ], "question_arg": [ [ "return" ], [ "different" ], [ "country" ], [ "for" ], [ "artist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "different", "JJ" ], [ "country", "NN" ], [ "for", "IN" ], [ "artist", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(0) C(3) T(0)" }, { "db_id": "theme_gallery", "query": "SELECT name , year_join FROM artist WHERE country != 'United States'", "query_toks": [ "SELECT", "name", ",", "year_join", "FROM", "artist", "WHERE", "country", "!", "=", "'United", "States", "'" ], "query_toks_no_value": [ "select", "name", ",", "year_join", "from", "artist", "where", "country", "!", "=", "value" ], "question": "Show all artist names and the year joined who are not from United States.", "question_toks": [ "show", "all", "artist", "name", "and", "year", "joined", "who", "are", "not", "from", "united", "state", "." ], "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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 3, false ], null ], "\"United States\"", null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "all", "artist", "names", "and", "the", "year", "joined", "who", "are", "not", "from", "United", "States", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "artist" ], [ "name" ], [ "and" ], [ "year" ], [ "joined" ], [ "who" ], [ "are" ], [ "not" ], [ "from" ], [ "united" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "joined", "VBN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "from", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "United States" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0) Filter(3) A(0) C(3) T(0) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT name , year_join FROM artist WHERE country != 'United States'", "query_toks": [ "SELECT", "name", ",", "year_join", "FROM", "artist", "WHERE", "country", "!", "=", "'United", "States", "'" ], "query_toks_no_value": [ "select", "name", ",", "year_join", "from", "artist", "where", "country", "!", "=", "value" ], "question": "What are the names and year of joining for artists that do not have the country \"United States\"?", "question_toks": [ "what", "are", "name", "and", "year", "of", "joining", "for", "artist", "that", "do", "not", "have", "country", "'", "united", "state", "'", "?" ], "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, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 3, false ], null ], "\"United States\"", null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "year", "of", "joining", "for", "artists", "that", "do", "not", "have", "the", "country", "``", "United", "States", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "year" ], [ "of" ], [ "joining" ], [ "for" ], [ "artist" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "country" ], [ "'" ], [ "united" ], [ "state" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "of", "IN" ], [ "joining", "VBG" ], [ "for", "IN" ], [ "artist", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "country", "NN" ], [ "'", "''" ], [ "united", "JJ" ], [ "state", "NN" ], [ "'", "''" ], [ "?", "." ] ], "values": [ "United States" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(4) T(0) Filter(3) A(0) C(3) T(0) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT count(*) FROM artist WHERE age > 46 AND year_join > 1990", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "artist", "WHERE", "age", ">", "46", "AND", "year_join", ">", "1990" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "artist", "where", "age", ">", "value", "and", "year_join", ">", "value" ], "question": "How many artists are above age 46 and joined after 1990?", "question_toks": [ "how", "many", "artist", "are", "above", "age", "46", "and", "joined", "after", "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, 5, false ], null ], 46.0, null ], "and", [ false, 3, [ 0, [ 0, 4, false ], null ], 1990.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "artists", "are", "above", "age", "46", "and", "joined", "after", "1990", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "artist" ], [ "are" ], [ "above" ], [ "age" ], [ "46" ], [ "and" ], [ "joined" ], [ "after" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "artist", "NN" ], [ "are", "VBP" ], [ "above", "JJ" ], [ "age", "NN" ], [ "46", "CD" ], [ "and", "CC" ], [ "joined", "VBD" ], [ "after", "IN" ], [ "1990", "CD" ], [ "?", "." ] ], "values": [ "1990", "46" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(5) A(0) C(5) T(0) V(1) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT count(*) FROM artist WHERE age > 46 AND year_join > 1990", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "artist", "WHERE", "age", ">", "46", "AND", "year_join", ">", "1990" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "artist", "where", "age", ">", "value", "and", "year_join", ">", "value" ], "question": "Count the number of artists who are older than 46 and joined after 1990.", "question_toks": [ "count", "number", "of", "artist", "who", "are", "older", "than", "46", "and", "joined", "after", "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, 5, false ], null ], 46.0, null ], "and", [ false, 3, [ 0, [ 0, 4, false ], null ], 1990.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Count", "the", "number", "of", "artists", "who", "are", "older", "than", "46", "and", "joined", "after", "1990", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "artist" ], [ "who" ], [ "are" ], [ "older" ], [ "than" ], [ "46" ], [ "and" ], [ "joined" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "older", "JJR" ], [ "than", "IN" ], [ "46", "CD" ], [ "and", "CC" ], [ "joined", "VBD" ], [ "after", "IN" ], [ "1990", "CD" ], [ ".", "." ] ], "values": [ "1990", "46" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(0) Filter(0) Filter(5) A(0) C(5) T(0) V(1) Filter(5) A(0) C(4) T(0) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT avg(age) , min(age) FROM artist WHERE country = 'United States'", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "FROM", "artist", "WHERE", "country", "=", "'United", "States", "'" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "from", "artist", "where", "country", "=", "value" ], "question": "What is the average and minimum age of all artists from United States.", "question_toks": [ "what", "is", "average", "and", "minimum", "age", "of", "all", "artist", "from", "united", "state", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 5, false ], null ] ], [ 2, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"United States\"", null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "average", "and", "minimum", "age", "of", "all", "artists", "from", "United", "States", "." ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "and" ], [ "minimum" ], [ "age" ], [ "of" ], [ "all" ], [ "artist" ], [ "from" ], [ "united" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "age", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "from", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "United States" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(5) T(0) A(2) C(5) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT avg(age) , min(age) FROM artist WHERE country = 'United States'", "query_toks": [ "SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "FROM", "artist", "WHERE", "country", "=", "'United", "States", "'" ], "query_toks_no_value": [ "select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "from", "artist", "where", "country", "=", "value" ], "question": "Return the average and minimum ages across artists from the United States.", "question_toks": [ "return", "average", "and", "minimum", "age", "across", "artist", "from", "united", "state", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 5, false ], null ] ], [ 2, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 3, false ], null ], "\"United States\"", null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Return", "the", "average", "and", "minimum", "ages", "across", "artists", "from", "the", "United", "States", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "and" ], [ "minimum" ], [ "age" ], [ "across" ], [ "artist" ], [ "from" ], [ "united" ], [ "state" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "NN" ], [ "and", "CC" ], [ "minimum", "JJ" ], [ "age", "NN" ], [ "across", "IN" ], [ "artist", "NN" ], [ "from", "IN" ], [ "united", "JJ" ], [ "state", "NN" ], [ ".", "." ] ], "values": [ "United States" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(5) C(5) T(0) A(2) C(5) T(0) Filter(2) A(0) C(3) T(0) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT name FROM artist ORDER BY year_join DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "artist", "ORDER", "BY", "year_join", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "artist", "order", "by", "year_join", "desc", "limit", "value" ], "question": "What is the name of the artist who joined latest?", "question_toks": [ "what", "is", "name", "of", "artist", "who", "joined", "latest", "?" ], "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": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "artist", "who", "joined", "latest", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "joined" ], [ "latest" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "joined", "VBD" ], [ "latest", "JJS" ], [ "?", "." ] ], "values": [], "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": "theme_gallery", "query": "SELECT name FROM artist ORDER BY year_join DESC LIMIT 1", "query_toks": [ "SELECT", "name", "FROM", "artist", "ORDER", "BY", "year_join", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "artist", "order", "by", "year_join", "desc", "limit", "value" ], "question": "Return the name of the artist who has the latest join year.", "question_toks": [ "return", "name", "of", "artist", "who", "ha", "latest", "join", "year", "." ], "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": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "artist", "who", "has", "the", "latest", "join", "year", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "ha" ], [ "latest" ], [ "year", "join" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "ha", "VBZ" ], [ "latest", "JJS" ], [ "join", "NN" ], [ "year", "NN" ], [ ".", "." ] ], "values": [], "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": "theme_gallery", "query": "SELECT count(*) FROM exhibition WHERE YEAR >= 2005", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "exhibition", "WHERE", "YEAR", ">", "=", "2005" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "exhibition", "where", "year", ">", "=", "value" ], "question": "How many exhibition are there in year 2005 or after?", "question_toks": [ "how", "many", "exhibition", "are", "there", "in", "year", "year", "or", "after", "?" ], "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, 5, [ 0, [ 0, 7, false ], null ], 2005.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "exhibition", "are", "there", "in", "year", "2005", "or", "after", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "exhibition" ], [ "are" ], [ "there" ], [ "in" ], [ "year" ], [ "year" ], [ "or" ], [ "after" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "exhibition", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "year", "NN" ], [ "2005", "CD" ], [ "or", "CC" ], [ "after", "IN" ], [ "?", "." ] ], "values": [ "2005" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(7) A(0) C(7) T(1) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT count(*) FROM exhibition WHERE YEAR >= 2005", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "exhibition", "WHERE", "YEAR", ">", "=", "2005" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "exhibition", "where", "year", ">", "=", "value" ], "question": "Count the number of exhibitions that happened in or after 2005.", "question_toks": [ "count", "number", "of", "exhibition", "that", "happened", "in", "or", "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": [ [ false, 5, [ 0, [ 0, 7, false ], null ], 2005.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Count", "the", "number", "of", "exhibitions", "that", "happened", "in", "or", "after", "2005", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "exhibition" ], [ "that" ], [ "happened" ], [ "in" ], [ "or" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "exhibition", "NN" ], [ "that", "WDT" ], [ "happened", "VBD" ], [ "in", "IN" ], [ "or", "CC" ], [ "after", "IN" ], [ "2005", "CD" ], [ ".", "." ] ], "values": [ "2005" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(7) A(0) C(7) T(1) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT theme , YEAR FROM exhibition WHERE ticket_price < 15", "query_toks": [ "SELECT", "theme", ",", "YEAR", "FROM", "exhibition", "WHERE", "ticket_price", "<", "15" ], "query_toks_no_value": [ "select", "theme", ",", "year", "from", "exhibition", "where", "ticket_price", "<", "value" ], "question": "Show theme and year for all exhibitions with ticket prices lower than 15.", "question_toks": [ "show", "theme", "and", "year", "for", "all", "exhibition", "with", "ticket", "price", "lower", "than", "15", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 10, false ], null ], 15.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "theme", "and", "year", "for", "all", "exhibitions", "with", "ticket", "prices", "lower", "than", "15", "." ], "question_arg": [ [ "show" ], [ "theme" ], [ "and" ], [ "year" ], [ "for" ], [ "all" ], [ "exhibition" ], [ "with" ], [ "ticket", "price" ], [ "lower" ], [ "than" ], [ "15" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "theme", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "exhibition", "NN" ], [ "with", "IN" ], [ "ticket", "NN" ], [ "price", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "15", "CD" ], [ ".", "." ] ], "values": [ "15" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(7) T(1) Filter(4) A(0) C(9) T(1) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT theme , YEAR FROM exhibition WHERE ticket_price < 15", "query_toks": [ "SELECT", "theme", ",", "YEAR", "FROM", "exhibition", "WHERE", "ticket_price", "<", "15" ], "query_toks_no_value": [ "select", "theme", ",", "year", "from", "exhibition", "where", "ticket_price", "<", "value" ], "question": "What are the theme and year for all exhibitions that have a ticket price under 15?", "question_toks": [ "what", "are", "theme", "and", "year", "for", "all", "exhibition", "that", "have", "a", "ticket", "price", "under", "15", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 10, false ], null ], 15.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "theme", "and", "year", "for", "all", "exhibitions", "that", "have", "a", "ticket", "price", "under", "15", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "theme" ], [ "and" ], [ "year" ], [ "for" ], [ "all" ], [ "exhibition" ], [ "that" ], [ "have" ], [ "a" ], [ "ticket", "price" ], [ "under" ], [ "15" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "theme", "JJ" ], [ "and", "CC" ], [ "year", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "exhibition", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "ticket", "NN" ], [ "price", "NN" ], [ "under", "IN" ], [ "15", "CD" ], [ "?", "." ] ], "values": [ "Nick Price", "15" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(7) T(1) Filter(4) A(0) C(9) T(1) V(1)" }, { "db_id": "theme_gallery", "query": "SELECT T2.name , count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "exhibition", "AS", "T1", "JOIN", "artist", "AS", "T2", "ON", "T1.artist_id", "=", "T2.artist_id", "GROUP", "BY", "T1.artist_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "group", "by", "t1", ".", "artist_id" ], "question": "Show all artist names and the number of exhibitions for each artist.", "question_toks": [ "show", "all", "artist", "name", "and", "number", "of", "exhibition", "for", "each", "artist", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 9, 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": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "all", "artist", "names", "and", "the", "number", "of", "exhibitions", "for", "each", "artist", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "artist" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "exhibition" ], [ "for" ], [ "each" ], [ "artist" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "exhibition", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "artist", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(1)" }, { "db_id": "theme_gallery", "query": "SELECT T2.name , count(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id", "query_toks": [ "SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "exhibition", "AS", "T1", "JOIN", "artist", "AS", "T2", "ON", "T1.artist_id", "=", "T2.artist_id", "GROUP", "BY", "T1.artist_id" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "group", "by", "t1", ".", "artist_id" ], "question": "How many exhibitions has each artist had?", "question_toks": [ "how", "many", "exhibition", "ha", "each", "artist", "had", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 9, 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": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "exhibitions", "has", "each", "artist", "had", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "exhibition" ], [ "ha" ], [ "each" ], [ "artist" ], [ "had" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "exhibition", "NN" ], [ "ha", "NNS" ], [ "each", "DT" ], [ "artist", "NN" ], [ "had", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(3) C(0) T(1)" }, { "db_id": "theme_gallery", "query": "SELECT T2.name , T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", ",", "T2.country", "FROM", "exhibition", "AS", "T1", "JOIN", "artist", "AS", "T2", "ON", "T1.artist_id", "=", "T2.artist_id", "GROUP", "BY", "T1.artist_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "country", "from", "exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "group", "by", "t1", ".", "artist_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the name and country for the artist with most number of exhibitions?", "question_toks": [ "what", "is", "name", "and", "country", "for", "artist", "with", "most", "number", "of", "exhibition", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 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, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "country", "for", "the", "artist", "with", "most", "number", "of", "exhibitions", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "country" ], [ "for" ], [ "artist" ], [ "with" ], [ "most" ], [ "number" ], [ "of" ], [ "exhibition" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "JJ" ], [ "and", "CC" ], [ "country", "NN" ], [ "for", "IN" ], [ "artist", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "exhibition", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) 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": "theme_gallery", "query": "SELECT T2.name , T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.name", ",", "T2.country", "FROM", "exhibition", "AS", "T1", "JOIN", "artist", "AS", "T2", "ON", "T1.artist_id", "=", "T2.artist_id", "GROUP", "BY", "T1.artist_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t2", ".", "country", "from", "exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "group", "by", "t1", ".", "artist_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the name and country corresponding to the artist who has had the most exhibitions.", "question_toks": [ "return", "name", "and", "country", "corresponding", "to", "artist", "who", "ha", "had", "most", "exhibition", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 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, 9, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Return", "the", "name", "and", "country", "corresponding", "to", "the", "artist", "who", "has", "had", "the", "most", "exhibitions", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "and" ], [ "country" ], [ "corresponding" ], [ "to" ], [ "artist" ], [ "who" ], [ "ha" ], [ "had" ], [ "most" ], [ "exhibition" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "country", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "artist", "VB" ], [ "who", "WP" ], [ "ha", "PRP" ], [ "had", "VBD" ], [ "most", "JJS" ], [ "exhibition", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) 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": "theme_gallery", "query": "SELECT name FROM artist WHERE artist_id NOT IN (SELECT artist_id FROM exhibition)", "query_toks": [ "SELECT", "name", "FROM", "artist", "WHERE", "artist_id", "NOT", "IN", "(", "SELECT", "artist_id", "FROM", "exhibition", ")" ], "query_toks_no_value": [ "select", "name", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "exhibition", ")" ], "question": "Show names for artists without any exhibition.", "question_toks": [ "show", "name", "for", "artist", "without", "any", "exhibition", "." ], "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, 9, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "names", "for", "artists", "without", "any", "exhibition", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "for" ], [ "artist" ], [ "without" ], [ "any" ], [ "exhibition" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "for", "IN" ], [ "artist", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "exhibition", "NN" ], [ ".", "." ] ], "values": [], "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": "theme_gallery", "query": "SELECT name FROM artist WHERE artist_id NOT IN (SELECT artist_id FROM exhibition)", "query_toks": [ "SELECT", "name", "FROM", "artist", "WHERE", "artist_id", "NOT", "IN", "(", "SELECT", "artist_id", "FROM", "exhibition", ")" ], "query_toks_no_value": [ "select", "name", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "exhibition", ")" ], "question": "What are the names of artists that have not had any exhibitions?", "question_toks": [ "what", "are", "name", "of", "artist", "that", "have", "not", "had", "any", "exhibition", "?" ], "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, 9, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "artists", "that", "have", "not", "had", "any", "exhibitions", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "artist" ], [ "that" ], [ "have" ], [ "not" ], [ "had" ], [ "any" ], [ "exhibition" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "not", "RB" ], [ "had", "VBN" ], [ "any", "DT" ], [ "exhibition", "NN" ], [ "?", "." ] ], "values": [], "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": "theme_gallery", "query": "SELECT T1.theme , T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT avg(ticket_price) FROM exhibition)", "query_toks": [ "SELECT", "T1.theme", ",", "T2.name", "FROM", "exhibition", "AS", "T1", "JOIN", "artist", "AS", "T2", "ON", "T1.artist_id", "=", "T2.artist_id", "WHERE", "T1.ticket_price", ">", "(", "SELECT", "avg", "(", "ticket_price", ")", "FROM", "exhibition", ")" ], "query_toks_no_value": [ "select", "t1", ".", "theme", ",", "t2", ".", "name", "from", "exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "ticket_price", ">", "(", "select", "avg", "(", "ticket_price", ")", "from", "exhibition", ")" ], "question": "What is the theme and artist name for the exhibition with a ticket price higher than the average?", "question_toks": [ "what", "is", "theme", "and", "artist", "name", "for", "exhibition", "with", "a", "ticket", "price", "higher", "than", "average", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "theme", "and", "artist", "name", "for", "the", "exhibition", "with", "a", "ticket", "price", "higher", "than", "the", "average", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "theme" ], [ "and" ], [ "artist" ], [ "name" ], [ "for" ], [ "exhibition" ], [ "with" ], [ "a" ], [ "ticket", "price" ], [ "higher" ], [ "than" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "theme", "JJ" ], [ "and", "CC" ], [ "artist", "JJ" ], [ "name", "NN" ], [ "for", "IN" ], [ "exhibition", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "ticket", "NN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [ "Nick Price" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(2) T(0) Filter(13) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(5) C(9) T(1)" }, { "db_id": "theme_gallery", "query": "SELECT T1.theme , T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT avg(ticket_price) FROM exhibition)", "query_toks": [ "SELECT", "T1.theme", ",", "T2.name", "FROM", "exhibition", "AS", "T1", "JOIN", "artist", "AS", "T2", "ON", "T1.artist_id", "=", "T2.artist_id", "WHERE", "T1.ticket_price", ">", "(", "SELECT", "avg", "(", "ticket_price", ")", "FROM", "exhibition", ")" ], "query_toks_no_value": [ "select", "t1", ".", "theme", ",", "t2", ".", "name", "from", "exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "ticket_price", ">", "(", "select", "avg", "(", "ticket_price", ")", "from", "exhibition", ")" ], "question": "Return the names of artists and the themes of their exhibitions that had a ticket price higher than average.", "question_toks": [ "return", "name", "of", "artist", "and", "theme", "of", "their", "exhibition", "that", "had", "a", "ticket", "price", "higher", "than", "average", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 8, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 10, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Return", "the", "names", "of", "artists", "and", "the", "themes", "of", "their", "exhibitions", "that", "had", "a", "ticket", "price", "higher", "than", "average", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "artist" ], [ "and" ], [ "theme" ], [ "of" ], [ "their" ], [ "exhibition" ], [ "that" ], [ "had" ], [ "a" ], [ "ticket", "price" ], [ "higher" ], [ "than" ], [ "average" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "and", "CC" ], [ "theme", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "exhibition", "NN" ], [ "that", "IN" ], [ "had", "VBD" ], [ "a", "DT" ], [ "ticket", "NN" ], [ "price", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "NN" ], [ ".", "." ] ], "values": [ "Nick Price" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(8) T(1) A(0) C(2) T(0) Filter(13) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(5) C(9) T(1)" }, { "db_id": "theme_gallery", "query": "SELECT avg(ticket_price) , min(ticket_price) , max(ticket_price) FROM exhibition WHERE YEAR < 2009", "query_toks": [ "SELECT", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "FROM", "exhibition", "WHERE", "YEAR", "<", "2009" ], "query_toks_no_value": [ "select", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "from", "exhibition", "where", "year", "<", "value" ], "question": "Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.", "question_toks": [ "show", "average", ",", "minimum", ",", "and", "maximum", "ticket", "price", "for", "exhibition", "for", "all", "year", "before", "year", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 10, false ], null ] ], [ 2, [ 0, [ 0, 10, false ], null ] ], [ 1, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 7, false ], null ], 2009.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "average", ",", "minimum", ",", "and", "maximum", "ticket", "prices", "for", "exhibitions", "for", "all", "years", "before", "2009", "." ], "question_arg": [ [ "show" ], [ "average" ], [ "," ], [ "minimum" ], [ "," ], [ "and" ], [ "maximum" ], [ "ticket", "price" ], [ "for" ], [ "exhibition" ], [ "for" ], [ "all" ], [ "year" ], [ "before" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "average", "NN" ], [ ",", "," ], [ "minimum", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "ticket", "NN" ], [ "price", "NN" ], [ "for", "IN" ], [ "exhibition", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "year", "NN" ], [ "before", "IN" ], [ "2009", "CD" ], [ ".", "." ] ], "values": [ "2009" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(5) C(9) T(1) A(2) C(9) T(1) A(1) C(9) T(1) Filter(4) A(0) C(7) T(1) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT avg(ticket_price) , min(ticket_price) , max(ticket_price) FROM exhibition WHERE YEAR < 2009", "query_toks": [ "SELECT", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "FROM", "exhibition", "WHERE", "YEAR", "<", "2009" ], "query_toks_no_value": [ "select", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "from", "exhibition", "where", "year", "<", "value" ], "question": "What are the average, minimum, and maximum ticket prices for exhibitions that happened prior to 2009?", "question_toks": [ "what", "are", "average", ",", "minimum", ",", "and", "maximum", "ticket", "price", "for", "exhibition", "that", "happened", "prior", "to", "year", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 10, false ], null ] ], [ 2, [ 0, [ 0, 10, false ], null ] ], [ 1, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 7, false ], null ], 2009.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "average", ",", "minimum", ",", "and", "maximum", "ticket", "prices", "for", "exhibitions", "that", "happened", "prior", "to", "2009", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "average" ], [ "," ], [ "minimum" ], [ "," ], [ "and" ], [ "maximum" ], [ "ticket", "price" ], [ "for" ], [ "exhibition" ], [ "that" ], [ "happened" ], [ "prior" ], [ "to" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "average", "JJ" ], [ ",", "," ], [ "minimum", "JJ" ], [ ",", "," ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "ticket", "NN" ], [ "price", "NN" ], [ "for", "IN" ], [ "exhibition", "NN" ], [ "that", "WDT" ], [ "happened", "VBD" ], [ "prior", "RB" ], [ "to", "TO" ], [ "2009", "CD" ], [ "?", "." ] ], "values": [ "2009" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(5) C(9) T(1) A(2) C(9) T(1) A(1) C(9) T(1) Filter(4) A(0) C(7) T(1) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT theme , YEAR FROM exhibition ORDER BY ticket_price DESC", "query_toks": [ "SELECT", "theme", ",", "YEAR", "FROM", "exhibition", "ORDER", "BY", "ticket_price", "DESC" ], "query_toks_no_value": [ "select", "theme", ",", "year", "from", "exhibition", "order", "by", "ticket_price", "desc" ], "question": "Show theme and year for all exhibitions in an descending order of ticket price.", "question_toks": [ "show", "theme", "and", "year", "for", "all", "exhibition", "in", "an", "descending", "order", "of", "ticket", "price", "." ], "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "theme", "and", "year", "for", "all", "exhibitions", "in", "an", "descending", "order", "of", "ticket", "price", "." ], "question_arg": [ [ "show" ], [ "theme" ], [ "and" ], [ "year" ], [ "for" ], [ "all" ], [ "exhibition" ], [ "in" ], [ "an" ], [ "descending" ], [ "order" ], [ "of" ], [ "ticket", "price" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "theme", "NN" ], [ "and", "CC" ], [ "year", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "exhibition", "NN" ], [ "in", "IN" ], [ "an", "DT" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "ticket", "NN" ], [ "price", "NN" ], [ ".", "." ] ], "values": [ "Nick Price" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(8) T(1) A(0) C(7) T(1) Order(0) A(0) C(9) T(1)" }, { "db_id": "theme_gallery", "query": "SELECT theme , YEAR FROM exhibition ORDER BY ticket_price DESC", "query_toks": [ "SELECT", "theme", ",", "YEAR", "FROM", "exhibition", "ORDER", "BY", "ticket_price", "DESC" ], "query_toks_no_value": [ "select", "theme", ",", "year", "from", "exhibition", "order", "by", "ticket_price", "desc" ], "question": "What are the themes and years for exhibitions, sorted by ticket price descending?", "question_toks": [ "what", "are", "theme", "and", "year", "for", "exhibition", ",", "sorted", "by", "ticket", "price", "descending", "?" ], "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, 8, false ], null ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "themes", "and", "years", "for", "exhibitions", ",", "sorted", "by", "ticket", "price", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "theme" ], [ "and" ], [ "year" ], [ "for" ], [ "exhibition" ], [ "," ], [ "sorted" ], [ "by" ], [ "ticket", "price" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "theme", "JJ" ], [ "and", "CC" ], [ "year", "NN" ], [ "for", "IN" ], [ "exhibition", "NN" ], [ ",", "," ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "ticket", "NN" ], [ "price", "NN" ], [ "descending", "NN" ], [ "?", "." ] ], "values": [ "Nick Price" ], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(8) T(1) A(0) C(7) T(1) Order(0) A(0) C(9) T(1)" }, { "db_id": "theme_gallery", "query": "SELECT T2.theme , T1.date , T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.year = 2004", "query_toks": [ "SELECT", "T2.theme", ",", "T1.date", ",", "T1.attendance", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "WHERE", "T2.year", "=", "2004" ], "query_toks_no_value": [ "select", "t2", ".", "theme", ",", "t1", ".", "date", ",", "t1", ".", "attendance", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "where", "t2", ".", "year", "=", "value" ], "question": "What is the theme, date, and attendance for the exhibition in year 2004?", "question_toks": [ "what", "is", "theme", ",", "date", ",", "and", "attendance", "for", "exhibition", "in", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 8, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], 2004.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "is", "the", "theme", ",", "date", ",", "and", "attendance", "for", "the", "exhibition", "in", "year", "2004", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "theme" ], [ "," ], [ "date" ], [ "," ], [ "and" ], [ "attendance" ], [ "for" ], [ "exhibition" ], [ "in" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "theme", "JJ" ], [ ",", "," ], [ "date", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "attendance", "NN" ], [ "for", "IN" ], [ "exhibition", "NN" ], [ "in", "IN" ], [ "year", "NN" ], [ "2004", "CD" ], [ "?", "." ] ], "values": [ "2004" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(8) T(1) A(0) C(10) T(2) A(0) C(11) T(2) Filter(2) A(0) C(7) T(1) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT T2.theme , T1.date , T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.year = 2004", "query_toks": [ "SELECT", "T2.theme", ",", "T1.date", ",", "T1.attendance", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "WHERE", "T2.year", "=", "2004" ], "query_toks_no_value": [ "select", "t2", ".", "theme", ",", "t1", ".", "date", ",", "t1", ".", "attendance", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "where", "t2", ".", "year", "=", "value" ], "question": "Return the themes, dates, and attendance for exhibitions that happened in 2004.", "question_toks": [ "return", "theme", ",", "date", ",", "and", "attendance", "for", "exhibition", "that", "happened", "in", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 8, false ], null ] ], [ 0, [ 0, [ 0, 12, false ], null ] ], [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], 2004.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Return", "the", "themes", ",", "dates", ",", "and", "attendance", "for", "exhibitions", "that", "happened", "in", "2004", "." ], "question_arg": [ [ "return" ], [ "theme" ], [ "," ], [ "date" ], [ "," ], [ "and" ], [ "attendance" ], [ "for" ], [ "exhibition" ], [ "that" ], [ "happened" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "theme", "NN" ], [ ",", "," ], [ "date", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "attendance", "NN" ], [ "for", "IN" ], [ "exhibition", "NN" ], [ "that", "WDT" ], [ "happened", "VBD" ], [ "in", "IN" ], [ "2004", "CD" ], [ ".", "." ] ], "values": [ "2004" ], "rule_label": "Root1(3) Root(3) Sel(0) N(2) A(0) C(8) T(1) A(0) C(10) T(2) A(0) C(11) T(2) Filter(2) A(0) C(7) T(1) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.year = 2004", "query_toks": [ "SELECT", "name", "FROM", "artist", "EXCEPT", "SELECT", "T2.name", "FROM", "exhibition", "AS", "T1", "JOIN", "artist", "AS", "T2", "ON", "T1.artist_id", "=", "T2.artist_id", "WHERE", "T1.year", "=", "2004" ], "query_toks_no_value": [ "select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "year", "=", "value" ], "question": "Show all artist names who didn't have an exhibition in 2004.", "question_toks": [ "show", "all", "artist", "name", "who", "did", "n't", "have", "an", "exhibition", "in", "year", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 2, [ 0, [ 0, 7, false ], null ], 2004.0, 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": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "all", "artist", "names", "who", "did", "n't", "have", "an", "exhibition", "in", "2004", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "artist" ], [ "name" ], [ "who" ], [ "did" ], [ "n't" ], [ "have" ], [ "an" ], [ "exhibition" ], [ "in" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "artist", "VBP" ], [ "name", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "n't", "RB" ], [ "have", "VB" ], [ "an", "DT" ], [ "exhibition", "NN" ], [ "in", "IN" ], [ "2004", "CD" ], [ ".", "." ] ], "values": [ "2004" ], "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(2) A(0) C(7) T(1) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.year = 2004", "query_toks": [ "SELECT", "name", "FROM", "artist", "EXCEPT", "SELECT", "T2.name", "FROM", "exhibition", "AS", "T1", "JOIN", "artist", "AS", "T2", "ON", "T1.artist_id", "=", "T2.artist_id", "WHERE", "T1.year", "=", "2004" ], "query_toks_no_value": [ "select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "year", "=", "value" ], "question": "What are the names of artists who did not have an exhibition in 2004?", "question_toks": [ "what", "are", "name", "of", "artist", "who", "did", "not", "have", "an", "exhibition", "in", "year", "?" ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, 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, 2, [ 0, [ 0, 7, false ], null ], 2004.0, 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": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "artists", "who", "did", "not", "have", "an", "exhibition", "in", "2004", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "artist" ], [ "who" ], [ "did" ], [ "not" ], [ "have" ], [ "an" ], [ "exhibition" ], [ "in" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "have", "VB" ], [ "an", "DT" ], [ "exhibition", "NN" ], [ "in", "IN" ], [ "2004", "CD" ], [ "?", "." ] ], "values": [ "2004" ], "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(2) A(0) C(7) T(1) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500", "query_toks": [ "SELECT", "T2.theme", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "WHERE", "T1.attendance", "<", "100", "INTERSECT", "SELECT", "T2.theme", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "WHERE", "T1.attendance", ">", "500" ], "query_toks_no_value": [ "select", "t2", ".", "theme", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "where", "t1", ".", "attendance", "<", "value", "intersect", "select", "t2", ".", "theme", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "where", "t1", ".", "attendance", ">", "value" ], "question": "Show the theme for exhibitions with both records of an attendance below 100 and above 500.", "question_toks": [ "show", "theme", "for", "exhibition", "with", "both", "record", "of", "an", "attendance", "below", "100", "and", "above", "500", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 500.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 13, false ], null ], 100.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "the", "theme", "for", "exhibitions", "with", "both", "records", "of", "an", "attendance", "below", "100", "and", "above", "500", "." ], "question_arg": [ [ "show" ], [ "theme" ], [ "for" ], [ "exhibition" ], [ "with" ], [ "both" ], [ "record" ], [ "of" ], [ "an" ], [ "attendance" ], [ "below" ], [ "100" ], [ "and" ], [ "above" ], [ "500" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "theme", "NN" ], [ "for", "IN" ], [ "exhibition", "NN" ], [ "with", "IN" ], [ "both", "DT" ], [ "record", "NN" ], [ "of", "IN" ], [ "an", "DT" ], [ "attendance", "NN" ], [ "below", "IN" ], [ "100", "CD" ], [ "and", "CC" ], [ "above", "JJ" ], [ "500", "CD" ], [ ".", "." ] ], "values": [ "500", "100" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(4) A(0) C(11) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(0) C(11) T(2) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500", "query_toks": [ "SELECT", "T2.theme", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "WHERE", "T1.attendance", "<", "100", "INTERSECT", "SELECT", "T2.theme", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "WHERE", "T1.attendance", ">", "500" ], "query_toks_no_value": [ "select", "t2", ".", "theme", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "where", "t1", ".", "attendance", "<", "value", "intersect", "select", "t2", ".", "theme", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "where", "t1", ".", "attendance", ">", "value" ], "question": "Which themes have had corresponding exhibitions that have had attendance both below 100 and above 500?", "question_toks": [ "which", "theme", "have", "had", "corresponding", "exhibition", "that", "have", "had", "attendance", "both", "below", "100", "and", "above", "500", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 13, false ], null ], 500.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 13, false ], null ], 100.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Which", "themes", "have", "had", "corresponding", "exhibitions", "that", "have", "had", "attendance", "both", "below", "100", "and", "above", "500", "?" ], "question_arg": [ [ "which" ], [ "theme" ], [ "have" ], [ "had" ], [ "corresponding" ], [ "exhibition" ], [ "that" ], [ "have" ], [ "had" ], [ "attendance" ], [ "both" ], [ "below" ], [ "100" ], [ "and" ], [ "above" ], [ "500" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "theme", "NN" ], [ "have", "VBP" ], [ "had", "VBN" ], [ "corresponding", "JJ" ], [ "exhibition", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "had", "VBN" ], [ "attendance", "NN" ], [ "both", "DT" ], [ "below", "IN" ], [ "100", "CD" ], [ "and", "CC" ], [ "above", "IN" ], [ "500", "CD" ], [ "?", "." ] ], "values": [ "500", "100" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(4) A(0) C(11) T(2) V(1) Root(3) Sel(0) N(0) A(0) C(8) T(1) Filter(5) A(0) C(11) T(2) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT count(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 100 OR T2.ticket_price < 10", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "WHERE", "T1.attendance", ">", "100", "OR", "T2.ticket_price", "<", "10" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "where", "t1", ".", "attendance", ">", "value", "or", "t2", ".", "ticket_price", "<", "value" ], "question": "How many exhibitions have a attendance more than 100 or have a ticket price below 10?", "question_toks": [ "how", "many", "exhibition", "have", "a", "attendance", "more", "than", "100", "or", "have", "a", "ticket", "price", "below", "10", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 3, [ 0, [ 0, 13, false ], null ], 100.0, null ], "or", [ false, 4, [ 0, [ 0, 10, false ], null ], 10.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "How", "many", "exhibitions", "have", "a", "attendance", "more", "than", "100", "or", "have", "a", "ticket", "price", "below", "10", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "exhibition" ], [ "have" ], [ "a" ], [ "attendance" ], [ "more" ], [ "than" ], [ "100" ], [ "or" ], [ "have" ], [ "a" ], [ "ticket", "price" ], [ "below" ], [ "10" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "exhibition", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "attendance", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "100", "CD" ], [ "or", "CC" ], [ "have", "VB" ], [ "a", "DT" ], [ "ticket", "NN" ], [ "price", "NN" ], [ "below", "IN" ], [ "10", "CD" ], [ "?", "." ] ], "values": [ "Nick Price", "100", "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(1) Filter(5) A(0) C(11) T(2) V(1) Filter(4) A(0) C(9) T(1) V(2)" }, { "db_id": "theme_gallery", "query": "SELECT count(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 100 OR T2.ticket_price < 10", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "WHERE", "T1.attendance", ">", "100", "OR", "T2.ticket_price", "<", "10" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "where", "t1", ".", "attendance", ">", "value", "or", "t2", ".", "ticket_price", "<", "value" ], "question": "Count the number of exhibitions that have had an attendnance of over 100 or a ticket prices under 10.", "question_toks": [ "count", "number", "of", "exhibition", "that", "have", "had", "an", "attendnance", "of", "over", "100", "or", "a", "ticket", "price", "under", "10", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, 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, 3, [ 0, [ 0, 13, false ], null ], 100.0, null ], "or", [ false, 4, [ 0, [ 0, 10, false ], null ], 10.0, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Count", "the", "number", "of", "exhibitions", "that", "have", "had", "an", "attendnance", "of", "over", "100", "or", "a", "ticket", "prices", "under", "10", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "exhibition" ], [ "that" ], [ "have" ], [ "had" ], [ "an" ], [ "attendnance" ], [ "of" ], [ "over" ], [ "100" ], [ "or" ], [ "a" ], [ "ticket", "price" ], [ "under" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "exhibition", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "had", "VBD" ], [ "an", "DT" ], [ "attendnance", "NN" ], [ "of", "IN" ], [ "over", "IN" ], [ "100", "CD" ], [ "or", "CC" ], [ "a", "DT" ], [ "ticket", "JJ" ], [ "price", "NN" ], [ "under", "IN" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "100", "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(1) Filter(5) A(0) C(11) T(2) V(0) Filter(4) A(0) C(9) T(1) V(1)" }, { "db_id": "theme_gallery", "query": "SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING avg(T1.attendance) > 200", "query_toks": [ "SELECT", "T3.name", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "JOIN", "artist", "AS", "T3", "ON", "T3.artist_id", "=", "T2.artist_id", "GROUP", "BY", "T3.artist_id", "HAVING", "avg", "(", "T1.attendance", ")", ">", "200" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "join", "artist", "as", "t3", "on", "t3", ".", "artist_id", "=", "t2", ".", "artist_id", "group", "by", "t3", ".", "artist_id", "having", "avg", "(", "t1", ".", "attendance", ")", ">", "value" ], "question": "Show all artist names with an average exhibition attendance over 200.", "question_toks": [ "show", "all", "artist", "name", "with", "an", "average", "exhibition", "attendance", "over", "200", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 3, [ 0, [ 5, 13, 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, 6, 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 ], "and", [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "Show", "all", "artist", "names", "with", "an", "average", "exhibition", "attendance", "over", "200", "." ], "question_arg": [ [ "show" ], [ "all" ], [ "artist" ], [ "name" ], [ "with" ], [ "an" ], [ "average" ], [ "exhibition" ], [ "attendance" ], [ "over" ], [ "200" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "all", "DT" ], [ "artist", "NN" ], [ "name", "NN" ], [ "with", "IN" ], [ "an", "DT" ], [ "average", "JJ" ], [ "exhibition", "NN" ], [ "attendance", "NN" ], [ "over", "IN" ], [ "200", "CD" ], [ ".", "." ] ], "values": [ "200" ], "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(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(1) Filter(5) A(5) C(11) T(2) V(0)" }, { "db_id": "theme_gallery", "query": "SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING avg(T1.attendance) > 200", "query_toks": [ "SELECT", "T3.name", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "JOIN", "artist", "AS", "T3", "ON", "T3.artist_id", "=", "T2.artist_id", "GROUP", "BY", "T3.artist_id", "HAVING", "avg", "(", "T1.attendance", ")", ">", "200" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "join", "artist", "as", "t3", "on", "t3", ".", "artist_id", "=", "t2", ".", "artist_id", "group", "by", "t3", ".", "artist_id", "having", "avg", "(", "t1", ".", "attendance", ")", ">", "value" ], "question": "What are the names of artist whose exhibitions draw over 200 attendees on average?", "question_toks": [ "what", "are", "name", "of", "artist", "whose", "exhibition", "draw", "over", "200", "attendee", "on", "average", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 11, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 3, [ 0, [ 5, 13, 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, 6, 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 ], "and", [ false, 8, [ 0, [ 0, 11, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "artist id", "ticket price", "exhibition id", "date", "attendance" ], "table_names": [ "artist", "exhibition", "exhibition record" ], "col_set": [ "*", "artist id", "name", "country", "year join", "age", "exhibition id", "year", "theme", "ticket price", "date", "attendance" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2 ], "keys": { "9": 1, "1": 1, "11": 11, "6": 6 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "artist", "whose", "exhibitions", "draw", "over", "200", "attendees", "on", "average", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "artist" ], [ "whose" ], [ "exhibition" ], [ "draw" ], [ "over" ], [ "200" ], [ "attendee" ], [ "on" ], [ "average" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "artist", "NN" ], [ "whose", "WP$" ], [ "exhibition", "NN" ], [ "draw", "NN" ], [ "over", "IN" ], [ "200", "CD" ], [ "attendee", "NNS" ], [ "on", "IN" ], [ "average", "NN" ], [ "?", "." ] ], "values": [ "200" ], "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(6) T(1) Root(5) Sel(0) N(0) A(0) C(6) T(2) Filter(18) A(0) C(6) T(2) Root(5) Sel(0) N(0) A(0) C(6) T(1) Filter(5) A(5) C(11) T(2) V(0)" }, { "db_id": "epinions_1", "query": "SELECT i_id FROM item WHERE title = \"orange\"", "query_toks": [ "SELECT", "i_id", "FROM", "item", "WHERE", "title", "=", "``", "orange", "''" ], "query_toks_no_value": [ "select", "i_id", "from", "item", "where", "title", "=", "value" ], "question": "Find the id of the item whose title is \"orange\".", "question_toks": [ "find", "id", "of", "item", "whose", "title", "is", "'", "orange", "'", "." ], "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 ], "\"orange\"", null ] ] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "id", "of", "the", "item", "whose", "title", "is", "``", "orange", "''", "." ], "question_arg": [ [ "find" ], [ "id" ], [ "of" ], [ "item" ], [ "whose" ], [ "title" ], [ "is" ], [ "'" ], [ "orange" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "id", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "whose", "WP$" ], [ "title", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "orange", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "orange" ], "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": "epinions_1", "query": "SELECT * FROM item", "query_toks": [ "SELECT", "*", "FROM", "item" ], "query_toks_no_value": [ "select", "*", "from", "item" ], "question": "List all information in the item table.", "question_toks": [ "list", "all", "information", "in", "item", "table", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "List", "all", "information", "in", "the", "item", "table", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "information" ], [ "in" ], [ "item" ], [ "table" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "information", "NN" ], [ "in", "IN" ], [ "item", "NN" ], [ "table", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(0) C(0) T(0)" }, { "db_id": "epinions_1", "query": "SELECT count(*) FROM review", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "review" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "review" ], "question": "Find the number of reviews.", "question_toks": [ "find", "number", "of", "review", "." ], "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": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "number", "of", "reviews", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "review" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "review", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(1)" }, { "db_id": "epinions_1", "query": "SELECT count(*) FROM useracct", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "useracct" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "useracct" ], "question": "How many users are there?", "question_toks": [ "how", "many", "user", "are", "there", "?" ], "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": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "How", "many", "users", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "user" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "user", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(2)" }, { "db_id": "epinions_1", "query": "SELECT avg(rating) , max(rating) FROM review", "query_toks": [ "SELECT", "avg", "(", "rating", ")", ",", "max", "(", "rating", ")", "FROM", "review" ], "query_toks_no_value": [ "select", "avg", "(", "rating", ")", ",", "max", "(", "rating", ")", "from", "review" ], "question": "Find the average and maximum rating of all reviews.", "question_toks": [ "find", "average", "and", "maximum", "rating", "of", "all", "review", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ], [ 1, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "average", "and", "maximum", "rating", "of", "all", "reviews", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "and" ], [ "maximum" ], [ "rating" ], [ "of" ], [ "all" ], [ "review" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "and", "CC" ], [ "maximum", "JJ" ], [ "rating", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "review", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(5) C(5) T(1) A(1) C(5) T(1)" }, { "db_id": "epinions_1", "query": "SELECT min(rank) FROM review", "query_toks": [ "SELECT", "min", "(", "rank", ")", "FROM", "review" ], "query_toks_no_value": [ "select", "min", "(", "rank", ")", "from", "review" ], "question": "Find the highest rank of all reviews.", "question_toks": [ "find", "highest", "rank", "of", "all", "review", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 2, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "highest", "rank", "of", "all", "reviews", "." ], "question_arg": [ [ "find" ], [ "highest" ], [ "rank" ], [ "of" ], [ "all" ], [ "review" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "highest", "JJS" ], [ "rank", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "review", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(2) C(6) T(1)" }, { "db_id": "epinions_1", "query": "SELECT count(DISTINCT u_id) FROM review", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "u_id", ")", "FROM", "review" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "u_id", ")", "from", "review" ], "question": "How many different users wrote some reviews?", "question_toks": [ "how", "many", "different", "user", "wrote", "some", "review", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 4, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "How", "many", "different", "users", "wrote", "some", "reviews", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "user" ], [ "wrote" ], [ "some" ], [ "review" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "user", "NN" ], [ "wrote", "VBD" ], [ "some", "DT" ], [ "review", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(1)" }, { "db_id": "epinions_1", "query": "SELECT count(DISTINCT i_id) FROM review", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "i_id", ")", "FROM", "review" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "i_id", ")", "from", "review" ], "question": "How many different items were reviewed by some users?", "question_toks": [ "how", "many", "different", "item", "were", "reviewed", "by", "some", "user", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 5, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "How", "many", "different", "items", "were", "reviewed", "by", "some", "users", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "item" ], [ "were" ], [ "reviewed" ], [ "by" ], [ "some" ], [ "user" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "item", "NN" ], [ "were", "VBD" ], [ "reviewed", "VBN" ], [ "by", "IN" ], [ "some", "DT" ], [ "user", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(1) T(1)" }, { "db_id": "epinions_1", "query": "SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "item", "WHERE", "i_id", "NOT", "IN", "(", "SELECT", "i_id", "FROM", "review", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "item", "where", "i_id", "not", "in", "(", "select", "i_id", "from", "review", ")" ], "question": "Find the number of items that did not receive any review.", "question_toks": [ "find", "number", "of", "item", "that", "did", "not", "receive", "any", "review", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "number", "of", "items", "that", "did", "not", "receive", "any", "review", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "item" ], [ "that" ], [ "did" ], [ "not" ], [ "receive" ], [ "any" ], [ "review" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "that", "WDT" ], [ "did", "VBD" ], [ "not", "RB" ], [ "receive", "VB" ], [ "any", "DT" ], [ "review", "NN" ], [ ".", "." ] ], "values": [], "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(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "epinions_1", "query": "SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)", "query_toks": [ "SELECT", "name", "FROM", "useracct", "WHERE", "u_id", "NOT", "IN", "(", "SELECT", "u_id", "FROM", "review", ")" ], "query_toks_no_value": [ "select", "name", "from", "useracct", "where", "u_id", "not", "in", "(", "select", "u_id", "from", "review", ")" ], "question": "Find the names of users who did not leave any review.", "question_toks": [ "find", "name", "of", "user", "who", "did", "not", "leave", "any", "review", "." ], "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": [ [ true, 8, [ 0, [ 0, 8, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "names", "of", "users", "who", "did", "not", "leave", "any", "review", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "user" ], [ "who" ], [ "did" ], [ "not" ], [ "leave" ], [ "any" ], [ "review" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "leave", "VB" ], [ "any", "DT" ], [ "review", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(19) A(0) C(4) T(2) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "epinions_1", "query": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating = 10", "query_toks": [ "SELECT", "T1.title", "FROM", "item", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.i_id", "=", "T2.i_id", "WHERE", "T2.rating", "=", "10" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "item", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "i_id", "where", "t2", ".", "rating", "=", "value" ], "question": "Find the names of goods that receive a rating of 10.", "question_toks": [ "find", "name", "of", "good", "that", "receive", "a", "rating", "of", "10", "." ], "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 6, false ], null ], 10.0, null ] ] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "names", "of", "goods", "that", "receive", "a", "rating", "of", "10", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "good" ], [ "that" ], [ "receive" ], [ "a" ], [ "rating" ], [ "of" ], [ "10" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "good", "JJ" ], [ "that", "WDT" ], [ "receive", "VBP" ], [ "a", "DT" ], [ "rating", "NN" ], [ "of", "IN" ], [ "10", "CD" ], [ ".", "." ] ], "values": [ "10" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(2) A(0) C(5) T(1) V(0)" }, { "db_id": "epinions_1", "query": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > (SELECT avg(rating) FROM review)", "query_toks": [ "SELECT", "T1.title", "FROM", "item", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.i_id", "=", "T2.i_id", "WHERE", "T2.rating", ">", "(", "SELECT", "avg", "(", "rating", ")", "FROM", "review", ")" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "item", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "i_id", "where", "t2", ".", "rating", ">", "(", "select", "avg", "(", "rating", ")", "from", "review", ")" ], "question": "Find the titles of items whose rating is higher than the average review rating of all items.", "question_toks": [ "find", "title", "of", "item", "whose", "rating", "is", "higher", "than", "average", "review", "rating", "of", "all", "item", "." ], "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "titles", "of", "items", "whose", "rating", "is", "higher", "than", "the", "average", "review", "rating", "of", "all", "items", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "item" ], [ "whose" ], [ "rating" ], [ "is" ], [ "higher" ], [ "than" ], [ "average" ], [ "review" ], [ "rating" ], [ "of" ], [ "all" ], [ "item" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "whose", "WP$" ], [ "rating", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "review", "NN" ], [ "rating", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "item", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(13) A(0) C(5) T(1) Root(5) Sel(0) N(0) A(5) C(5) T(1)" }, { "db_id": "epinions_1", "query": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5", "query_toks": [ "SELECT", "T1.title", "FROM", "item", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.i_id", "=", "T2.i_id", "WHERE", "T2.rating", "<", "5" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "item", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "i_id", "where", "t2", ".", "rating", "<", "value" ], "question": "Find the titles of items that received any rating below 5.", "question_toks": [ "find", "title", "of", "item", "that", "received", "any", "rating", "below", "5", "." ], "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 6, false ], null ], 5.0, null ] ] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "titles", "of", "items", "that", "received", "any", "rating", "below", "5", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "item" ], [ "that" ], [ "received" ], [ "any" ], [ "rating" ], [ "below" ], [ "5" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "that", "WDT" ], [ "received", "VBD" ], [ "any", "DT" ], [ "rating", "NN" ], [ "below", "IN" ], [ "5", "CD" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(5) T(1) V(0)" }, { "db_id": "epinions_1", "query": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5", "query_toks": [ "SELECT", "T1.title", "FROM", "item", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.i_id", "=", "T2.i_id", "WHERE", "T2.rating", ">", "8", "INTERSECT", "SELECT", "T1.title", "FROM", "item", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.i_id", "=", "T2.i_id", "WHERE", "T2.rating", "<", "5" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "item", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "i_id", "where", "t2", ".", "rating", ">", "value", "intersect", "select", "t1", ".", "title", "from", "item", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "i_id", "where", "t2", ".", "rating", "<", "value" ], "question": "Find the titles of items that received both a rating higher than 8 and a rating below 5.", "question_toks": [ "find", "title", "of", "item", "that", "received", "both", "a", "rating", "higher", "than", "8", "and", "a", "rating", "below", "5", "." ], "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": { "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, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 6, false ], null ], 5.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 6, false ], null ], 8.0, null ] ] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "titles", "of", "items", "that", "received", "both", "a", "rating", "higher", "than", "8", "and", "a", "rating", "below", "5", "." ], "question_arg": [ [ "find" ], [ "title" ], [ "of" ], [ "item" ], [ "that" ], [ "received" ], [ "both" ], [ "a" ], [ "rating" ], [ "higher" ], [ "than" ], [ "8" ], [ "and" ], [ "a" ], [ "rating" ], [ "below" ], [ "5" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "title", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "that", "WDT" ], [ "received", "VBD" ], [ "both", "DT" ], [ "a", "DT" ], [ "rating", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "8", "CD" ], [ "and", "CC" ], [ "a", "DT" ], [ "rating", "NN" ], [ "below", "IN" ], [ "5", "CD" ], [ ".", "." ] ], "values": [ "8", "5" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(5) T(1) V(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(4) A(0) C(5) T(1) V(1)" }, { "db_id": "epinions_1", "query": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rank > 3 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id HAVING avg(T2.rating) > 5", "query_toks": [ "SELECT", "T1.title", "FROM", "item", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.i_id", "=", "T2.i_id", "WHERE", "T2.rank", ">", "3", "INTERSECT", "SELECT", "T1.title", "FROM", "item", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.i_id", "=", "T2.i_id", "GROUP", "BY", "T2.i_id", "HAVING", "avg", "(", "T2.rating", ")", ">", "5" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "item", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "i_id", "where", "t2", ".", "rank", ">", "value", "intersect", "select", "t1", ".", "title", "from", "item", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "i_id", "group", "by", "t2", ".", "i_id", "having", "avg", "(", "t2", ".", "rating", ")", ">", "value" ], "question": "Find the names of items whose rank is higher than 3 and whose average rating is above 5.", "question_toks": [ "find", "name", "of", "item", "whose", "rank", "is", "higher", "than", "3", "and", "whose", "average", "rating", "is", "above", "5", "." ], "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": { "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, 5, false ] ], "having": [ [ false, 3, [ 0, [ 5, 6, false ], null ], 5.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, 5, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 1 ] ], "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": [ [ false, 3, [ 0, [ 0, 7, false ], null ], 3.0, null ] ] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "names", "of", "items", "whose", "rank", "is", "higher", "than", "3", "and", "whose", "average", "rating", "is", "above", "5", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "item" ], [ "whose" ], [ "rank" ], [ "is" ], [ "higher" ], [ "than" ], [ "3" ], [ "and" ], [ "whose" ], [ "average" ], [ "rating" ], [ "is" ], [ "above" ], [ "5" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "whose", "WP$" ], [ "rank", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "3", "CD" ], [ "and", "CC" ], [ "whose", "WP$" ], [ "average", "NN" ], [ "rating", "NN" ], [ "is", "VBZ" ], [ "above", "IN" ], [ "5", "CD" ], [ ".", "." ] ], "values": [ "5", "3" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(6) T(1) V(1) 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(5) C(5) T(1) V(0)" }, { "db_id": "epinions_1", "query": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) LIMIT 1", "query_toks": [ "SELECT", "T1.title", "FROM", "item", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.i_id", "=", "T2.i_id", "GROUP", "BY", "T2.i_id", "ORDER", "BY", "avg", "(", "T2.rating", ")", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", "from", "item", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "i_id", "group", "by", "t2", ".", "i_id", "order", "by", "avg", "(", "t2", ".", "rating", ")", "limit", "value" ], "question": "Find the name of the item with the lowest average rating.", "question_toks": [ "find", "name", "of", "item", "with", "lowest", "average", "rating", "." ], "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, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 5, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "item", "with", "the", "lowest", "average", "rating", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "item" ], [ "with" ], [ "lowest" ], [ "average" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "with", "IN" ], [ "lowest", "JJ" ], [ "average", "NN" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(1) A(5) C(5) T(1)" }, { "db_id": "epinions_1", "query": "SELECT title FROM item ORDER BY title", "query_toks": [ "SELECT", "title", "FROM", "item", "ORDER", "BY", "title" ], "query_toks_no_value": [ "select", "title", "from", "item", "order", "by", "title" ], "question": "List the titles of all items in alphabetic order .", "question_toks": [ "list", "title", "of", "all", "item", "in", "alphabetic", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "List", "the", "titles", "of", "all", "items", "in", "alphabetic", "order", "." ], "question_arg": [ [ "list" ], [ "title" ], [ "of" ], [ "all" ], [ "item" ], [ "in" ], [ "alphabetic" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "title", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "item", "NN" ], [ "in", "IN" ], [ "alphabetic", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "epinions_1", "query": "SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "useracct", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.u_id", "=", "T2.u_id", "GROUP", "BY", "T2.u_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "useracct", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "u_id", "=", "t2", ".", "u_id", "group", "by", "t2", ".", "u_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Find the name of the user who gives the most reviews.", "question_toks": [ "find", "name", "of", "user", "who", "give", "most", "review", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 4, 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, 9, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 8, 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": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "user", "who", "gives", "the", "most", "reviews", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "user" ], [ "who" ], [ "give" ], [ "most" ], [ "review" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "give", "VBP" ], [ "most", "RBS" ], [ "review", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(7) T(2) Sup(0) A(3) C(0) T(1) Filter(18) A(0) C(4) T(2) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "epinions_1", "query": "SELECT T1.title , T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rating) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.title", ",", "T1.i_id", "FROM", "item", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.i_id", "=", "T2.i_id", "GROUP", "BY", "T2.i_id", "ORDER", "BY", "avg", "(", "T2.rating", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t1", ".", "i_id", "from", "item", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "i_id", "group", "by", "t2", ".", "i_id", "order", "by", "avg", "(", "t2", ".", "rating", ")", "desc", "limit", "value" ], "question": "Find the name and id of the item with the highest average rating.", "question_toks": [ "find", "name", "and", "id", "of", "item", "with", "highest", "average", "rating", "." ], "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, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "and", "id", "of", "the", "item", "with", "the", "highest", "average", "rating", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "item" ], [ "with" ], [ "highest" ], [ "average" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "average", "NN" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Sup(0) A(5) C(5) T(1)" }, { "db_id": "epinions_1", "query": "SELECT T1.title , T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY avg(T2.rank) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.title", ",", "T1.i_id", "FROM", "item", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.i_id", "=", "T2.i_id", "GROUP", "BY", "T2.i_id", "ORDER", "BY", "avg", "(", "T2.rank", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "title", ",", "t1", ".", "i_id", "from", "item", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "i_id", "group", "by", "t2", ".", "i_id", "order", "by", "avg", "(", "t2", ".", "rank", ")", "desc", "limit", "value" ], "question": "Find the name and id of the good with the highest average rank.", "question_toks": [ "find", "name", "and", "id", "of", "good", "with", "highest", "average", "rank", "." ], "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, 5, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 1, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "and", "id", "of", "the", "good", "with", "the", "highest", "average", "rank", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "good" ], [ "with" ], [ "highest" ], [ "average" ], [ "rank" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "good", "JJ" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "rank", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(1) T(0) Sup(0) A(5) C(6) T(1)" }, { "db_id": "epinions_1", "query": "SELECT T1.name , avg(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id", "query_toks": [ "SELECT", "T1.name", ",", "avg", "(", "T2.rating", ")", "FROM", "useracct", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.u_id", "=", "T2.u_id", "GROUP", "BY", "T2.u_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "avg", "(", "t2", ".", "rating", ")", "from", "useracct", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "u_id", "=", "t2", ".", "u_id", "group", "by", "t2", ".", "u_id" ], "question": "For each user, return the name and the average rating of reviews given by them.", "question_toks": [ "for", "each", "user", ",", "return", "name", "and", "average", "rating", "of", "review", "given", "by", "them", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "For", "each", "user", ",", "return", "the", "name", "and", "the", "average", "rating", "of", "reviews", "given", "by", "them", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "user" ], [ "," ], [ "return" ], [ "name" ], [ "and" ], [ "average" ], [ "rating" ], [ "of" ], [ "review" ], [ "given" ], [ "by" ], [ "them" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "user", "NN" ], [ ",", "," ], [ "return", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "rating", "NN" ], [ "of", "IN" ], [ "review", "NN" ], [ "given", "VBN" ], [ "by", "IN" ], [ "them", "PRP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(2) A(5) C(5) T(1)" }, { "db_id": "epinions_1", "query": "SELECT T1.name , count(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id", "query_toks": [ "SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "useracct", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.u_id", "=", "T2.u_id", "GROUP", "BY", "T2.u_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "useracct", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "u_id", "=", "t2", ".", "u_id", "group", "by", "t2", ".", "u_id" ], "question": "For each user, find their name and the number of reviews written by them.", "question_toks": [ "for", "each", "user", ",", "find", "their", "name", "and", "number", "of", "review", "written", "by", "them", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 4, 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": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "For", "each", "user", ",", "find", "their", "name", "and", "the", "number", "of", "reviews", "written", "by", "them", "." ], "question_arg": [ [ "for" ], [ "each" ], [ "user" ], [ "," ], [ "find" ], [ "their" ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "review" ], [ "written" ], [ "by" ], [ "them" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "for", "IN" ], [ "each", "DT" ], [ "user", "NN" ], [ ",", "," ], [ "find", "VBP" ], [ "their", "PRP$" ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "review", "NN" ], [ "written", "VBN" ], [ "by", "IN" ], [ "them", "PRP" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(2) A(3) C(0) T(1)" }, { "db_id": "epinions_1", "query": "SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id ORDER BY T2.rating DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "useracct", "AS", "T1", "JOIN", "review", "AS", "T2", "ON", "T1.u_id", "=", "T2.u_id", "ORDER", "BY", "T2.rating", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "useracct", "as", "t1", "join", "review", "as", "t2", "on", "t1", ".", "u_id", "=", "t2", ".", "u_id", "order", "by", "t2", ".", "rating", "desc", "limit", "value" ], "question": "Find the name of the user who gave the highest rating.", "question_toks": [ "find", "name", "of", "user", "who", "gave", "highest", "rating", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 4, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "user", "who", "gave", "the", "highest", "rating", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "user" ], [ "who" ], [ "gave" ], [ "highest" ], [ "rating" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "gave", "VBD" ], [ "highest", "JJS" ], [ "rating", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(2) Sup(0) A(0) C(5) T(1)" }, { "db_id": "epinions_1", "query": "SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.source_u_id GROUP BY T2.source_u_id ORDER BY avg(trust) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "useracct", "AS", "T1", "JOIN", "trust", "AS", "T2", "ON", "T1.u_id", "=", "T2.source_u_id", "GROUP", "BY", "T2.source_u_id", "ORDER", "BY", "avg", "(", "trust", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "useracct", "as", "t1", "join", "trust", "as", "t2", "on", "t1", ".", "u_id", "=", "t2", ".", "source_u_id", "group", "by", "t2", ".", "source_u_id", "order", "by", "avg", "(", "trust", ")", "desc", "limit", "value" ], "question": "Find the name of the source user with the highest average trust score.", "question_toks": [ "find", "name", "of", "source", "user", "with", "highest", "average", "trust", "score", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 10, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 10, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 5, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "source", "user", "with", "the", "highest", "average", "trust", "score", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "source", "user", "id" ], [ "with" ], [ "highest" ], [ "average" ], [ "trust" ], [ "score" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "source", "NN" ], [ "user", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "average", "JJ" ], [ "trust", "NN" ], [ "score", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(2) Sup(0) A(5) C(10) T(3)" }, { "db_id": "epinions_1", "query": "SELECT T1.name , avg(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id", "query_toks": [ "SELECT", "T1.name", ",", "avg", "(", "trust", ")", "FROM", "useracct", "AS", "T1", "JOIN", "trust", "AS", "T2", "ON", "T1.u_id", "=", "T2.target_u_id", "GROUP", "BY", "T2.target_u_id" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "avg", "(", "trust", ")", "from", "useracct", "as", "t1", "join", "trust", "as", "t2", "on", "t1", ".", "u_id", "=", "t2", ".", "target_u_id", "group", "by", "t2", ".", "target_u_id" ], "question": "Find each target user's name and average trust score.", "question_toks": [ "find", "each", "target", "user", "'s", "name", "and", "average", "trust", "score", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [ [ 0, 11, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 5, [ 0, [ 0, 12, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "each", "target", "user", "'s", "name", "and", "average", "trust", "score", "." ], "question_arg": [ [ "find" ], [ "each" ], [ "target", "user", "id" ], [ "'s" ], [ "name" ], [ "and" ], [ "average" ], [ "trust" ], [ "score" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "each", "DT" ], [ "target", "NN" ], [ "user", "NN" ], [ "'s", "POS" ], [ "name", "NN" ], [ "and", "CC" ], [ "average", "JJ" ], [ "trust", "NN" ], [ "score", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(7) T(2) A(5) C(10) T(3)" }, { "db_id": "epinions_1", "query": "SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id ORDER BY trust LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "useracct", "AS", "T1", "JOIN", "trust", "AS", "T2", "ON", "T1.u_id", "=", "T2.target_u_id", "ORDER", "BY", "trust", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "useracct", "as", "t1", "join", "trust", "as", "t2", "on", "t1", ".", "u_id", "=", "t2", ".", "target_u_id", "order", "by", "trust", "limit", "value" ], "question": "Find the name of the target user with the lowest trust score.", "question_toks": [ "find", "name", "of", "target", "user", "with", "lowest", "trust", "score", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 11, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "name", "of", "the", "target", "user", "with", "the", "lowest", "trust", "score", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "target", "user", "id" ], [ "with" ], [ "lowest" ], [ "trust" ], [ "score" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "target", "NN" ], [ "user", "NN" ], [ "with", "IN" ], [ "lowest", "JJS" ], [ "trust", "NN" ], [ "score", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(7) T(2) Sup(1) A(0) C(10) T(3)" }, { "db_id": "epinions_1", "query": "SELECT title FROM item WHERE i_id NOT IN (SELECT i_id FROM review)", "query_toks": [ "SELECT", "title", "FROM", "item", "WHERE", "i_id", "NOT", "IN", "(", "SELECT", "i_id", "FROM", "review", ")" ], "query_toks_no_value": [ "select", "title", "from", "item", "where", "i_id", "not", "in", "(", "select", "i_id", "from", "review", ")" ], "question": "Find the names of the items that did not receive any review.", "question_toks": [ "find", "name", "of", "item", "that", "did", "not", "receive", "any", "review", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "names", "of", "the", "items", "that", "did", "not", "receive", "any", "review", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "item" ], [ "that" ], [ "did" ], [ "not" ], [ "receive" ], [ "any" ], [ "review" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "that", "WDT" ], [ "did", "VBD" ], [ "not", "RB" ], [ "receive", "VB" ], [ "any", "DT" ], [ "review", "NN" ], [ ".", "." ] ], "values": [], "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": "epinions_1", "query": "SELECT name FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)", "query_toks": [ "SELECT", "name", "FROM", "useracct", "WHERE", "u_id", "NOT", "IN", "(", "SELECT", "u_id", "FROM", "review", ")" ], "query_toks_no_value": [ "select", "name", "from", "useracct", "where", "u_id", "not", "in", "(", "select", "u_id", "from", "review", ")" ], "question": "Find the names of users who did not leave any review.", "question_toks": [ "find", "name", "of", "user", "who", "did", "not", "leave", "any", "review", "." ], "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": [ [ true, 8, [ 0, [ 0, 8, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "names", "of", "users", "who", "did", "not", "leave", "any", "review", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "user" ], [ "who" ], [ "did" ], [ "not" ], [ "leave" ], [ "any" ], [ "review" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "leave", "VB" ], [ "any", "DT" ], [ "review", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(7) T(2) Filter(19) A(0) C(4) T(2) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "epinions_1", "query": "SELECT count(*) FROM useracct WHERE u_id NOT IN (SELECT u_id FROM review)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "useracct", "WHERE", "u_id", "NOT", "IN", "(", "SELECT", "u_id", "FROM", "review", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "useracct", "where", "u_id", "not", "in", "(", "select", "u_id", "from", "review", ")" ], "question": "Find the number of users who did not write any review.", "question_toks": [ "find", "number", "of", "user", "who", "did", "not", "write", "any", "review", "." ], "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": [ [ true, 8, [ 0, [ 0, 8, false ], null ], { "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": [] }, null ] ] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "number", "of", "users", "who", "did", "not", "write", "any", "review", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "user" ], [ "who" ], [ "did" ], [ "not" ], [ "write" ], [ "any" ], [ "review" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "user", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "write", "VB" ], [ "any", "DT" ], [ "review", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(2) Filter(19) A(0) C(4) T(2) Root(5) Sel(0) N(0) A(0) C(4) T(1)" }, { "db_id": "epinions_1", "query": "SELECT count(*) FROM item WHERE i_id NOT IN (SELECT i_id FROM review)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "item", "WHERE", "i_id", "NOT", "IN", "(", "SELECT", "i_id", "FROM", "review", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "item", "where", "i_id", "not", "in", "(", "select", "i_id", "from", "review", ")" ], "question": "Find the number of items without any review.", "question_toks": [ "find", "number", "of", "item", "without", "any", "review", "." ], "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, 5, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "item id", "title", "a id", "user id", "item id", "rating", "rank", "user id", "name", "source user id", "target user id", "trust" ], "table_names": [ "item", "review", "useracct", "trust" ], "col_set": [ "*", "item id", "title", "a id", "user id", "rating", "rank", "name", "source user id", "target user id", "trust" ], "col_table": [ -1, 0, 0, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3 ], "keys": { "5": 1, "1": 1, "4": 8, "8": 8, "11": 8, "10": 8, "3": 3 }, "origin_question_toks": [ "Find", "the", "number", "of", "items", "without", "any", "review", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "item" ], [ "without" ], [ "any" ], [ "review" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "item", "NN" ], [ "without", "IN" ], [ "any", "DT" ], [ "review", "NN" ], [ ".", "." ] ], "values": [], "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(5) Sel(0) N(0) A(0) C(1) T(1)" }, { "db_id": "riding_club", "query": "SELECT count(*) FROM player", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "player" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "player" ], "question": "How many players are there?", "question_toks": [ "how", "many", "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": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "How", "many", "players", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "player" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "player", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "riding_club", "query": "SELECT Player_name FROM player ORDER BY Votes ASC", "query_toks": [ "SELECT", "Player_name", "FROM", "player", "ORDER", "BY", "Votes", "ASC" ], "query_toks_no_value": [ "select", "player_name", "from", "player", "order", "by", "votes", "asc" ], "question": "List the names of players in ascending order of votes.", "question_toks": [ "list", "name", "of", "player", "in", "ascending", "order", "of", "vote", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "List", "the", "names", "of", "players", "in", "ascending", "order", "of", "votes", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "player" ], [ "in" ], [ "ascending" ], [ "order" ], [ "of" ], [ "vote" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "vote", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(0) Order(1) A(0) C(7) T(0)" }, { "db_id": "riding_club", "query": "SELECT Gender , Occupation FROM player", "query_toks": [ "SELECT", "Gender", ",", "Occupation", "FROM", "player" ], "query_toks_no_value": [ "select", "gender", ",", "occupation", "from", "player" ], "question": "What are the gender and occupation of players?", "question_toks": [ "what", "are", "gender", "and", "occupation", "of", "player", "?" ], "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 ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "What", "are", "the", "gender", "and", "occupation", "of", "players", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "gender" ], [ "and" ], [ "occupation" ], [ "of" ], [ "player" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "gender", "JJ" ], [ "and", "CC" ], [ "occupation", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(4) T(0) A(0) C(6) T(0)" }, { "db_id": "riding_club", "query": "SELECT Player_name , residence FROM player WHERE Occupation != \"Researcher\"", "query_toks": [ "SELECT", "Player_name", ",", "residence", "FROM", "player", "WHERE", "Occupation", "!", "=", "``", "Researcher", "''" ], "query_toks_no_value": [ "select", "player_name", ",", "residence", "from", "player", "where", "occupation", "!", "=", "value" ], "question": "List the name and residence for players whose occupation is not \"Researcher\".", "question_toks": [ "list", "name", "and", "residence", "for", "player", "whose", "occupation", "is", "not", "'", "researcher", "'", "." ], "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": [ [ false, 7, [ 0, [ 0, 6, false ], null ], "\"Researcher\"", null ] ] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "List", "the", "name", "and", "residence", "for", "players", "whose", "occupation", "is", "not", "``", "Researcher", "''", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "and" ], [ "residence" ], [ "for" ], [ "player" ], [ "whose" ], [ "occupation" ], [ "is" ], [ "not" ], [ "'" ], [ "researcher" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "residence", "NN" ], [ "for", "IN" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "occupation", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "researcher", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Researcher" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(5) T(0) Filter(3) A(0) C(6) T(0) V(0)" }, { "db_id": "riding_club", "query": "SELECT Sponsor_name FROM player WHERE Residence = \"Brandon\" OR Residence = \"Birtle\"", "query_toks": [ "SELECT", "Sponsor_name", "FROM", "player", "WHERE", "Residence", "=", "``", "Brandon", "''", "OR", "Residence", "=", "``", "Birtle", "''" ], "query_toks_no_value": [ "select", "sponsor_name", "from", "player", "where", "residence", "=", "value", "or", "residence", "=", "value" ], "question": "Show the names of sponsors of players whose residence is either \"Brandon\" or \"Birtle\".", "question_toks": [ "show", "name", "of", "sponsor", "of", "player", "whose", "residence", "is", "either", "'", "brandon", "'", "or", "'", "birtle", "'", "." ], "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, 5, false ], null ], "\"Brandon\"", null ], "or", [ false, 2, [ 0, [ 0, 5, false ], null ], "\"Birtle\"", null ] ] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "Show", "the", "names", "of", "sponsors", "of", "players", "whose", "residence", "is", "either", "``", "Brandon", "''", "or", "``", "Birtle", "''", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "sponsor" ], [ "of" ], [ "player" ], [ "whose" ], [ "residence" ], [ "is" ], [ "either" ], [ "'" ], [ "brandon" ], [ "'" ], [ "or" ], [ "'" ], [ "birtle" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "sponsor", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "whose", "WP$" ], [ "residence", "NN" ], [ "is", "VBZ" ], [ "either", "DT" ], [ "'", "''" ], [ "brandon", "NN" ], [ "'", "''" ], [ "or", "CC" ], [ "'", "POS" ], [ "birtle", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Birtle", "Brandon" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(1) Filter(2) A(0) C(5) T(0) V(1) Filter(2) A(0) C(5) T(0) V(0)" }, { "db_id": "riding_club", "query": "SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1", "query_toks": [ "SELECT", "Player_name", "FROM", "player", "ORDER", "BY", "Votes", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "player_name", "from", "player", "order", "by", "votes", "desc", "limit", "value" ], "question": "What is the name of the player with the largest number of votes?", "question_toks": [ "what", "is", "name", "of", "player", "with", "largest", "number", "of", "vote", "?" ], "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 ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "player", "with", "the", "largest", "number", "of", "votes", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "player" ], [ "with" ], [ "largest" ], [ "number" ], [ "of" ], [ "vote" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "with", "IN" ], [ "largest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "vote", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(3) T(0) Sup(0) A(0) C(7) T(0)" }, { "db_id": "riding_club", "query": "SELECT Occupation , COUNT(*) FROM player GROUP BY Occupation", "query_toks": [ "SELECT", "Occupation", ",", "COUNT", "(", "*", ")", "FROM", "player", "GROUP", "BY", "Occupation" ], "query_toks_no_value": [ "select", "occupation", ",", "count", "(", "*", ")", "from", "player", "group", "by", "occupation" ], "question": "Show different occupations along with the number of players in each occupation.", "question_toks": [ "show", "different", "occupation", "along", "with", "number", "of", "player", "in", "each", "occupation", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "Show", "different", "occupations", "along", "with", "the", "number", "of", "players", "in", "each", "occupation", "." ], "question_arg": [ [ "show" ], [ "different" ], [ "occupation" ], [ "along" ], [ "with" ], [ "number" ], [ "of" ], [ "player" ], [ "in" ], [ "each" ], [ "occupation" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "different", "JJ" ], [ "occupation", "NN" ], [ "along", "IN" ], [ "with", "IN" ], [ "number", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "in", "IN" ], [ "each", "DT" ], [ "occupation", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(6) T(0) A(3) C(0) T(0)" }, { "db_id": "riding_club", "query": "SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "Occupation", "FROM", "player", "GROUP", "BY", "Occupation", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "occupation", "from", "player", "group", "by", "occupation", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Please show the most common occupation of players.", "question_toks": [ "please", "show", "most", "common", "occupation", "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", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "Please", "show", "the", "most", "common", "occupation", "of", "players", "." ], "question_arg": [ [ "please" ], [ "show" ], [ "most" ], [ "common" ], [ "occupation" ], [ "of" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "please", "VB" ], [ "show", "NN" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "occupation", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ ".", "." ] ], "values": [], "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": "riding_club", "query": "SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "Residence", "FROM", "player", "GROUP", "BY", "Residence", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "residence", "from", "player", "group", "by", "residence", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Show the residences that have at least two players.", "question_toks": [ "show", "residence", "that", "have", "at", "least", "two", "player", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "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": [] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "Show", "the", "residences", "that", "have", "at", "least", "two", "players", "." ], "question_arg": [ [ "show" ], [ "residence" ], [ "that" ], [ "have" ], [ "at" ], [ "least" ], [ "two" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "residence", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "player", "NN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "riding_club", "query": "SELECT T3.Player_name , T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID", "query_toks": [ "SELECT", "T3.Player_name", ",", "T2.coach_name", "FROM", "player_coach", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.Coach_ID", "=", "T2.Coach_ID", "JOIN", "player", "AS", "T3", "ON", "T1.Player_ID", "=", "T3.Player_ID" ], "query_toks_no_value": [ "select", "t3", ".", "player_name", ",", "t2", ".", "coach_name", "from", "player_coach", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "coach_id", "=", "t2", ".", "coach_id", "join", "player", "as", "t3", "on", "t1", ".", "player_id", "=", "t3", ".", "player_id" ], "question": "Show the names of players and names of their coaches.", "question_toks": [ "show", "name", "of", "player", "and", "name", "of", "their", "coach", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "Show", "the", "names", "of", "players", "and", "names", "of", "their", "coaches", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "player" ], [ "and" ], [ "name" ], [ "of" ], [ "their" ], [ "coach" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "coach", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(0) A(0) C(3) T(2) Filter(18) A(0) C(13) T(2) Root(5) Sel(0) N(0) A(0) C(13) T(3)" }, { "db_id": "riding_club", "query": "SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T2.Rank = 1", "query_toks": [ "SELECT", "T3.Player_name", "FROM", "player_coach", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.Coach_ID", "=", "T2.Coach_ID", "JOIN", "player", "AS", "T3", "ON", "T1.Player_ID", "=", "T3.Player_ID", "WHERE", "T2.Rank", "=", "1" ], "query_toks_no_value": [ "select", "t3", ".", "player_name", "from", "player_coach", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "coach_id", "=", "t2", ".", "coach_id", "join", "player", "as", "t3", "on", "t1", ".", "player_id", "=", "t3", ".", "player_id", "where", "t2", ".", "rank", "=", "value" ], "question": "Show the names of players coached by the rank 1 coach.", "question_toks": [ "show", "name", "of", "player", "coached", "by", "rank", "1", "coach", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, 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, 17, false ], null ], 1.0, null ] ] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "Show", "the", "names", "of", "players", "coached", "by", "the", "rank", "1", "coach", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "player" ], [ "coached" ], [ "by" ], [ "rank" ], [ "1" ], [ "coach" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "value" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "coached", "VBN" ], [ "by", "IN" ], [ "rank", "NN" ], [ "1", "CD" ], [ "coach", "NN" ], [ ".", "." ] ], "values": [ "1" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(0) Filter(0) Filter(18) A(0) C(13) T(2) Root(5) Sel(0) N(0) A(0) C(13) T(3) Filter(2) A(0) C(8) T(2) V(0)" }, { "db_id": "riding_club", "query": "SELECT T3.Player_name , T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011", "query_toks": [ "SELECT", "T3.Player_name", ",", "T3.gender", "FROM", "player_coach", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.Coach_ID", "=", "T2.Coach_ID", "JOIN", "player", "AS", "T3", "ON", "T1.Player_ID", "=", "T3.Player_ID", "WHERE", "T1.Starting_year", ">", "2011" ], "query_toks_no_value": [ "select", "t3", ".", "player_name", ",", "t3", ".", "gender", "from", "player_coach", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "coach_id", "=", "t2", ".", "coach_id", "join", "player", "as", "t3", "on", "t1", ".", "player_id", "=", "t3", ".", "player_id", "where", "t1", ".", "starting_year", ">", "value" ], "question": "Show the names and genders of players with a coach starting after 2011.", "question_toks": [ "show", "name", "and", "gender", "of", "player", "with", "a", "coach", "starting", "after", "year", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "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, 19, 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 ], "and", [ false, 3, [ 0, [ 0, 20, false ], null ], 2011.0, null ] ] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "Show", "the", "names", "and", "genders", "of", "players", "with", "a", "coach", "starting", "after", "2011", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "and" ], [ "gender" ], [ "of" ], [ "player" ], [ "with" ], [ "a" ], [ "coach" ], [ "starting" ], [ "after" ], [ "year" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "gender", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "coach", "NN" ], [ "starting", "VBG" ], [ "after", "IN" ], [ "2011", "CD" ], [ ".", "." ] ], "values": [ "2011" ], "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(13) T(3) Root(5) Sel(0) N(0) A(0) C(13) T(2) Filter(5) A(0) C(14) T(3) V(0)" }, { "db_id": "riding_club", "query": "SELECT T3.Player_name , T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC", "query_toks": [ "SELECT", "T3.Player_name", ",", "T2.coach_name", "FROM", "player_coach", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.Coach_ID", "=", "T2.Coach_ID", "JOIN", "player", "AS", "T3", "ON", "T1.Player_ID", "=", "T3.Player_ID", "ORDER", "BY", "T3.Votes", "DESC" ], "query_toks_no_value": [ "select", "t3", ".", "player_name", ",", "t2", ".", "coach_name", "from", "player_coach", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "coach_id", "=", "t2", ".", "coach_id", "join", "player", "as", "t3", "on", "t1", ".", "player_id", "=", "t3", ".", "player_id", "order", "by", "t3", ".", "votes", "desc" ], "question": "Show the names of players and names of their coaches in descending order of the votes of players.", "question_toks": [ "show", "name", "of", "player", "and", "name", "of", "their", "coach", "in", "descending", "order", "of", "vote", "of", "player", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 19, false ], null ], [ 0, 13, false ], null ] ], "table_units": [ [ "table_unit", 3 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 7, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 3, false ], null ] ], [ 0, [ 0, [ 0, 14, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 13, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 19, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 3 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "Show", "the", "names", "of", "players", "and", "names", "of", "their", "coaches", "in", "descending", "order", "of", "the", "votes", "of", "players", "." ], "question_arg": [ [ "show" ], [ "name" ], [ "of" ], [ "player" ], [ "and" ], [ "name" ], [ "of" ], [ "their" ], [ "coach" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "vote" ], [ "of" ], [ "player" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "coach", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "vote", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(1) A(0) C(3) T(0) A(0) C(3) T(2) Filter(18) A(0) C(13) T(2) Root(5) Sel(0) N(0) A(0) C(13) T(3) Order(0) A(0) C(7) T(0)" }, { "db_id": "riding_club", "query": "SELECT Player_name FROM player WHERE Player_ID NOT IN (SELECT Player_ID FROM player_coach)", "query_toks": [ "SELECT", "Player_name", "FROM", "player", "WHERE", "Player_ID", "NOT", "IN", "(", "SELECT", "Player_ID", "FROM", "player_coach", ")" ], "query_toks_no_value": [ "select", "player_name", "from", "player", "where", "player_id", "not", "in", "(", "select", "player_id", "from", "player_coach", ")" ], "question": "List the names of players that do not have coaches.", "question_toks": [ "list", "name", "of", "player", "that", "do", "not", "have", "coach", "." ], "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", 3 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 18, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "List", "the", "names", "of", "players", "that", "do", "not", "have", "coaches", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "player" ], [ "that" ], [ "do" ], [ "not" ], [ "have" ], [ "coach" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "player", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "have", "VB" ], [ "coach", "NN" ], [ ".", "." ] ], "values": [], "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(3)" }, { "db_id": "riding_club", "query": "SELECT Residence FROM player WHERE gender = \"M\" INTERSECT SELECT Residence FROM player WHERE gender = \"F\"", "query_toks": [ "SELECT", "Residence", "FROM", "player", "WHERE", "gender", "=", "``", "M", "''", "INTERSECT", "SELECT", "Residence", "FROM", "player", "WHERE", "gender", "=", "``", "F", "''" ], "query_toks_no_value": [ "select", "residence", "from", "player", "where", "gender", "=", "value", "intersect", "select", "residence", "from", "player", "where", "gender", "=", "value" ], "question": "Show the residences that have both a player of gender \"M\" and a player of gender \"F\".", "question_toks": [ "show", "residence", "that", "have", "both", "a", "player", "of", "gender", "'", "m", "'", "and", "a", "player", "of", "gender", "'", "f", "'", "." ], "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, 2, [ 0, [ 0, 4, false ], null ], "\"F\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 5, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 4, false ], null ], "\"M\"", null ] ] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "Show", "the", "residences", "that", "have", "both", "a", "player", "of", "gender", "``", "M", "''", "and", "a", "player", "of", "gender", "``", "F", "''", "." ], "question_arg": [ [ "show" ], [ "residence" ], [ "that" ], [ "have" ], [ "both" ], [ "a" ], [ "player" ], [ "of" ], [ "gender" ], [ "'" ], [ "m" ], [ "'" ], [ "and" ], [ "a" ], [ "player" ], [ "of" ], [ "gender" ], [ "'" ], [ "f" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "residence", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "both", "DT" ], [ "a", "DT" ], [ "player", "NN" ], [ "of", "IN" ], [ "gender", "NN" ], [ "'", "''" ], [ "m", "NN" ], [ "'", "''" ], [ "and", "CC" ], [ "a", "DT" ], [ "player", "NN" ], [ "of", "IN" ], [ "gender", "NN" ], [ "'", "''" ], [ "f", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "F", "M" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(4) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(5) T(0) Filter(2) A(0) C(4) T(0) V(0)" }, { "db_id": "riding_club", "query": "SELECT T1.club_id , T1.club_name, count(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id", "query_toks": [ "SELECT", "T1.club_id", ",", "T1.club_name", ",", "count", "(", "*", ")", "FROM", "club", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.club_id", "=", "T2.club_id", "GROUP", "BY", "T1.club_id" ], "query_toks_no_value": [ "select", "t1", ".", "club_id", ",", "t1", ".", "club_name", ",", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "club_id", "=", "t2", ".", "club_id", "group", "by", "t1", ".", "club_id" ], "question": "How many coaches does each club has? List the club id, name and the number of coaches.", "question_toks": [ "how", "many", "coach", "doe", "each", "club", "ha", "?", "list", "club", "id", ",", "name", "and", "number", "of", "coach", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 9, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ], [ 0, [ 0, [ 0, 10, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "How", "many", "coaches", "does", "each", "club", "has", "?", "List", "the", "club", "id", ",", "name", "and", "the", "number", "of", "coaches", "." ], "question_arg": [ [ "how" ], [ "many" ], [ "coach" ], [ "doe" ], [ "each" ], [ "club" ], [ "ha" ], [ "?" ], [ "list" ], [ "club", "id" ], [ "," ], [ "name" ], [ "and" ], [ "number" ], [ "of" ], [ "coach" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "coach", "VBP" ], [ "doe", "JJ" ], [ "each", "DT" ], [ "club", "NN" ], [ "ha", "NN" ], [ "?", "." ], [ "list", "NN" ], [ "club", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "number", "NN" ], [ "of", "IN" ], [ "coach", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(9) T(1) A(0) C(10) T(1) A(3) C(0) T(2)" }, { "db_id": "riding_club", "query": "SELECT T1.club_id , T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.club_id", ",", "T1.gold", "FROM", "match_result", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.club_id", "=", "T2.club_id", "GROUP", "BY", "T1.club_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "club_id", ",", "t1", ".", "gold", "from", "match_result", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "club_id", "=", "t2", ".", "club_id", "group", "by", "t1", ".", "club_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "How many gold medals has the club with the most coaches won?", "question_toks": [ "how", "many", "gold", "medal", "ha", "club", "with", "most", "coach", "won", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 22, false ], null ], [ 0, 16, false ], null ] ], "table_units": [ [ "table_unit", 4 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 22, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 22, false ], null ] ], [ 0, [ 0, [ 0, 23, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 22, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 16, false ], null ] ] ] ], "from": { "table_units": [ [ "table_unit", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ] ] }, "names": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "player name", "gender", "club id", "rank", "player id", "coach id", "starting year", "rank", "club id", "gold", "big silver", "small silver", "bronze", "points" ], "table_names": [ "player", "club", "coach", "player coach", "match result" ], "col_set": [ "*", "player id", "sponsor name", "player name", "gender", "residence", "occupation", "votes", "rank", "club id", "club name", "region", "start year", "coach id", "starting year", "gold", "big silver", "small silver", "bronze", "points" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4 ], "keys": { "16": 9, "9": 9, "19": 13, "13": 13, "18": 18, "1": 1, "22": 9, "21": 21 }, "origin_question_toks": [ "How", "many", "gold", "medals", "has", "the", "club", "with", "the", "most", "coaches", "won", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "gold" ], [ "medal" ], [ "ha" ], [ "club" ], [ "with" ], [ "most" ], [ "coach" ], [ "won" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "gold", "NN" ], [ "medal", "NN" ], [ "ha", "NN" ], [ "club", "NN" ], [ "with", "IN" ], [ "most", "JJS" ], [ "coach", "NN" ], [ "won", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(1) A(0) C(9) T(4) A(0) C(15) T(4) Sup(0) A(3) C(0) T(2) Filter(18) A(0) C(9) T(4) Root(5) Sel(0) N(0) A(0) C(9) T(2)" }, { "db_id": "gymnast", "query": "SELECT count(*) FROM gymnast", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "gymnast" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "gymnast" ], "question": "How many gymnasts are there?", "question_toks": [ "how", "many", "gymnast", "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": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "gymnasts", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "gymnast" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "gymnast", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "gymnast", "query": "SELECT count(*) FROM gymnast", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "gymnast" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "gymnast" ], "question": "Count the number of gymnasts.", "question_toks": [ "count", "number", "of", "gymnast", "." ], "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": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Count", "the", "number", "of", "gymnasts", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "gymnast" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "gymnast", "query": "SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC", "query_toks": [ "SELECT", "Total_Points", "FROM", "gymnast", "ORDER", "BY", "Total_Points", "DESC" ], "query_toks_no_value": [ "select", "total_points", "from", "gymnast", "order", "by", "total_points", "desc" ], "question": "List the total points of gymnasts in descending order.", "question_toks": [ "list", "total", "point", "of", "gymnast", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "total", "points", "of", "gymnasts", "in", "descending", "order", "." ], "question_arg": [ [ "list" ], [ "total", "point" ], [ "of" ], [ "gymnast" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "total", "JJ" ], [ "point", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(0) Order(0) A(0) C(8) T(0)" }, { "db_id": "gymnast", "query": "SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC", "query_toks": [ "SELECT", "Total_Points", "FROM", "gymnast", "ORDER", "BY", "Total_Points", "DESC" ], "query_toks_no_value": [ "select", "total_points", "from", "gymnast", "order", "by", "total_points", "desc" ], "question": "What are the total points for all gymnasts, ordered by total points descending?", "question_toks": [ "what", "are", "total", "point", "for", "all", "gymnast", ",", "ordered", "by", "total", "point", "descending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "total", "points", "for", "all", "gymnasts", ",", "ordered", "by", "total", "points", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total", "point" ], [ "for" ], [ "all" ], [ "gymnast" ], [ "," ], [ "ordered" ], [ "by" ], [ "total", "point" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "point", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "gymnast", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "total", "JJ" ], [ "point", "NN" ], [ "descending", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(0) Order(0) A(0) C(8) T(0)" }, { "db_id": "gymnast", "query": "SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC", "query_toks": [ "SELECT", "Total_Points", "FROM", "gymnast", "ORDER", "BY", "Floor_Exercise_Points", "DESC" ], "query_toks_no_value": [ "select", "total_points", "from", "gymnast", "order", "by", "floor_exercise_points", "desc" ], "question": "List the total points of gymnasts in descending order of floor exercise points.", "question_toks": [ "list", "total", "point", "of", "gymnast", "in", "descending", "order", "of", "floor", "exercise", "point", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "total", "points", "of", "gymnasts", "in", "descending", "order", "of", "floor", "exercise", "points", "." ], "question_arg": [ [ "list" ], [ "total", "point" ], [ "of" ], [ "gymnast" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "floor", "exercise", "point" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "total", "JJ" ], [ "point", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "floor", "NN" ], [ "exercise", "NN" ], [ "point", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "gymnast", "query": "SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC", "query_toks": [ "SELECT", "Total_Points", "FROM", "gymnast", "ORDER", "BY", "Floor_Exercise_Points", "DESC" ], "query_toks_no_value": [ "select", "total_points", "from", "gymnast", "order", "by", "floor_exercise_points", "desc" ], "question": "What are the total points of gymnasts, ordered by their floor exercise points descending?", "question_toks": [ "what", "are", "total", "point", "of", "gymnast", ",", "ordered", "by", "their", "floor", "exercise", "point", "descending", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "total", "points", "of", "gymnasts", ",", "ordered", "by", "their", "floor", "exercise", "points", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "total", "point" ], [ "of" ], [ "gymnast" ], [ "," ], [ "ordered" ], [ "by" ], [ "their" ], [ "floor", "exercise", "point" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "point", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "floor", "NN" ], [ "exercise", "NN" ], [ "point", "NN" ], [ "descending", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(8) T(0) Order(0) A(0) C(2) T(0)" }, { "db_id": "gymnast", "query": "SELECT avg(Horizontal_Bar_Points) FROM gymnast", "query_toks": [ "SELECT", "avg", "(", "Horizontal_Bar_Points", ")", "FROM", "gymnast" ], "query_toks_no_value": [ "select", "avg", "(", "horizontal_bar_points", ")", "from", "gymnast" ], "question": "What is the average horizontal bar points for all gymnasts?", "question_toks": [ "what", "is", "average", "horizontal", "bar", "point", "for", "all", "gymnast", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "average", "horizontal", "bar", "points", "for", "all", "gymnasts", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "horizontal", "bar", "point" ], [ "for" ], [ "all" ], [ "gymnast" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "horizontal", "JJ" ], [ "bar", "NN" ], [ "point", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "gymnast", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(7) T(0)" }, { "db_id": "gymnast", "query": "SELECT avg(Horizontal_Bar_Points) FROM gymnast", "query_toks": [ "SELECT", "avg", "(", "Horizontal_Bar_Points", ")", "FROM", "gymnast" ], "query_toks_no_value": [ "select", "avg", "(", "horizontal_bar_points", ")", "from", "gymnast" ], "question": "Return the average horizontal bar points across all gymnasts.", "question_toks": [ "return", "average", "horizontal", "bar", "point", "across", "all", "gymnast", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "average", "horizontal", "bar", "points", "across", "all", "gymnasts", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "horizontal", "bar", "point" ], [ "across" ], [ "all" ], [ "gymnast" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "JJ" ], [ "horizontal", "JJ" ], [ "bar", "NN" ], [ "point", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "gymnast", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(7) T(0)" }, { "db_id": "gymnast", "query": "SELECT Name FROM People ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", "FROM", "People", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "people", "order", "by", "name", "asc" ], "question": "What are the names of people in ascending alphabetical order?", "question_toks": [ "what", "are", "name", "of", "people", "in", "ascending", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "people", "in", "ascending", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "people" ], [ "in" ], [ "ascending" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(10) T(1) Order(1) A(0) C(10) T(1)" }, { "db_id": "gymnast", "query": "SELECT Name FROM People ORDER BY Name ASC", "query_toks": [ "SELECT", "Name", "FROM", "People", "ORDER", "BY", "Name", "ASC" ], "query_toks_no_value": [ "select", "name", "from", "people", "order", "by", "name", "asc" ], "question": "Return the names of people, ordered alphabetically.", "question_toks": [ "return", "name", "of", "people", ",", "ordered", "alphabetically", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 10, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "names", "of", "people", ",", "ordered", "alphabetically", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "people" ], [ "," ], [ "ordered" ], [ "alphabetically" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "people", "NNS" ], [ ",", "," ], [ "ordered", "VBN" ], [ "alphabetically", "RB" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(10) T(1) Order(1) A(0) C(10) T(1)" }, { "db_id": "gymnast", "query": "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID", "query_toks": [ "SELECT", "T2.Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id" ], "question": "What are the names of gymnasts?", "question_toks": [ "what", "are", "name", "of", "gymnast", "?" ], "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, 8, [ 0, [ 0, 9, 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 ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "gymnasts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "gymnast" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "gymnast", "query": "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID", "query_toks": [ "SELECT", "T2.Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id" ], "question": "Return the names of the gymnasts.", "question_toks": [ "return", "name", "of", "gymnast", "." ], "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, 8, [ 0, [ 0, 9, 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 ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "names", "of", "the", "gymnasts", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "gymnast" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "gymnast", "query": "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T2.Hometown != \"Santo Domingo\"", "query_toks": [ "SELECT", "T2.Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "WHERE", "T2.Hometown", "!", "=", "``", "Santo", "Domingo", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t2", ".", "hometown", "!", "=", "value" ], "question": "What are the names of gymnasts whose hometown is not \"Santo Domingo\"?", "question_toks": [ "what", "are", "name", "of", "gymnast", "whose", "hometown", "is", "not", "'", "santo", "domingo", "'", "?" ], "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, 8, [ 0, [ 0, 9, 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 ], "and", [ false, 7, [ 0, [ 0, 13, false ], null ], "\"Santo Domingo\"", null ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "gymnasts", "whose", "hometown", "is", "not", "``", "Santo", "Domingo", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "gymnast" ], [ "whose" ], [ "hometown" ], [ "is" ], [ "not" ], [ "'" ], [ "santo" ], [ "domingo" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "whose", "WP$" ], [ "hometown", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "santo", "JJ" ], [ "domingo", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Santo Domingo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(3) A(0) C(13) T(1) V(0)" }, { "db_id": "gymnast", "query": "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T2.Hometown != \"Santo Domingo\"", "query_toks": [ "SELECT", "T2.Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "WHERE", "T2.Hometown", "!", "=", "``", "Santo", "Domingo", "''" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t2", ".", "hometown", "!", "=", "value" ], "question": "Return the names of gymnasts who did not grow up in Santo Domingo.", "question_toks": [ "return", "name", "of", "gymnast", "who", "did", "not", "grow", "up", "in", "santo", "domingo", "." ], "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, 8, [ 0, [ 0, 9, 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 ], "and", [ false, 7, [ 0, [ 0, 13, false ], null ], "\"Santo Domingo\"", null ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "names", "of", "gymnasts", "who", "did", "not", "grow", "up", "in", "Santo", "Domingo", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "gymnast" ], [ "who" ], [ "did" ], [ "not" ], [ "grow" ], [ "up" ], [ "in" ], [ "santo" ], [ "domingo" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "who", "WP" ], [ "did", "VBD" ], [ "not", "RB" ], [ "grow", "VB" ], [ "up", "RP" ], [ "in", "IN" ], [ "santo", "NN" ], [ "domingo", "NN" ], [ ".", "." ] ], "values": [ "Santo Domingo" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(3) A(0) C(13) T(1) V(0)" }, { "db_id": "gymnast", "query": "SELECT Age FROM people ORDER BY Height DESC LIMIT 1", "query_toks": [ "SELECT", "Age", "FROM", "people", "ORDER", "BY", "Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "age", "from", "people", "order", "by", "height", "desc", "limit", "value" ], "question": "What is the age of the tallest person?", "question_toks": [ "what", "is", "age", "of", "tallest", "person", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "age", "of", "the", "tallest", "person", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "age" ], [ "of" ], [ "tallest" ], [ "person" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "age", "NN" ], [ "of", "IN" ], [ "tallest", "JJS" ], [ "person", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(1) Sup(0) A(0) C(12) T(1)" }, { "db_id": "gymnast", "query": "SELECT Age FROM people ORDER BY Height DESC LIMIT 1", "query_toks": [ "SELECT", "Age", "FROM", "people", "ORDER", "BY", "Height", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "age", "from", "people", "order", "by", "height", "desc", "limit", "value" ], "question": "Return the age of the person with the greatest height.", "question_toks": [ "return", "age", "of", "person", "with", "greatest", "height", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "age", "of", "the", "person", "with", "the", "greatest", "height", "." ], "question_arg": [ [ "return" ], [ "age" ], [ "of" ], [ "person" ], [ "with" ], [ "greatest" ], [ "height" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "age", "NN" ], [ "of", "IN" ], [ "person", "NN" ], [ "with", "IN" ], [ "greatest", "JJS" ], [ "height", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(11) T(1) Sup(0) A(0) C(12) T(1)" }, { "db_id": "gymnast", "query": "SELECT Name FROM People ORDER BY Age DESC LIMIT 5", "query_toks": [ "SELECT", "Name", "FROM", "People", "ORDER", "BY", "Age", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "name", "from", "people", "order", "by", "age", "desc", "limit", "value" ], "question": "List the names of the top 5 oldest people.", "question_toks": [ "list", "name", "of", "top", "5", "oldest", "people", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "names", "of", "the", "top", "5", "oldest", "people", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "top" ], [ "5" ], [ "oldest" ], [ "people" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "5", "CD" ], [ "oldest", "JJS" ], [ "people", "NNS" ], [ ".", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "gymnast", "query": "SELECT Name FROM People ORDER BY Age DESC LIMIT 5", "query_toks": [ "SELECT", "Name", "FROM", "People", "ORDER", "BY", "Age", "DESC", "LIMIT", "5" ], "query_toks_no_value": [ "select", "name", "from", "people", "order", "by", "age", "desc", "limit", "value" ], "question": "What are the names of the five oldest people?", "question_toks": [ "what", "are", "name", "of", "five", "oldest", "people", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 5, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "five", "oldest", "people", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "five" ], [ "oldest" ], [ "people" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "five", "CD" ], [ "oldest", "JJS" ], [ "people", "NNS" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(10) T(1) Sup(0) A(0) C(11) T(1)" }, { "db_id": "gymnast", "query": "SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age ASC LIMIT 1", "query_toks": [ "SELECT", "T1.Total_Points", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Age", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "total_points", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "age", "asc", "limit", "value" ], "question": "What is the total point count of the youngest gymnast?", "question_toks": [ "what", "is", "total", "point", "count", "of", "youngest", "gymnast", "?" ], "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": 1, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "total", "point", "count", "of", "the", "youngest", "gymnast", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total", "point" ], [ "count" ], [ "of" ], [ "youngest" ], [ "gymnast" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "point", "NN" ], [ "count", "NN" ], [ "of", "IN" ], [ "youngest", "JJS" ], [ "gymnast", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(0) Sup(1) A(0) C(11) T(1)" }, { "db_id": "gymnast", "query": "SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age ASC LIMIT 1", "query_toks": [ "SELECT", "T1.Total_Points", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Age", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "total_points", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "age", "asc", "limit", "value" ], "question": "Return the total points of the gymnast with the lowest age.", "question_toks": [ "return", "total", "point", "of", "gymnast", "with", "lowest", "age", "." ], "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": 1, "orderBy": [ "asc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "total", "points", "of", "the", "gymnast", "with", "the", "lowest", "age", "." ], "question_arg": [ [ "return" ], [ "total", "point" ], [ "of" ], [ "gymnast" ], [ "with" ], [ "lowest" ], [ "age" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "total", "JJ" ], [ "point", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "with", "IN" ], [ "lowest", "JJ" ], [ "age", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(8) T(0) Sup(1) A(0) C(11) T(1)" }, { "db_id": "gymnast", "query": "SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID", "query_toks": [ "SELECT", "avg", "(", "T2.Age", ")", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "age", ")", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id" ], "question": "What is the average age of all gymnasts?", "question_toks": [ "what", "is", "average", "age", "of", "all", "gymnast", "?" ], "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, [ [ 5, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "average", "age", "of", "all", "gymnasts", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "age" ], [ "of" ], [ "all" ], [ "gymnast" ], [ "?" ] ], "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" ], [ "gymnast", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(11) T(1) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "gymnast", "query": "SELECT avg(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID", "query_toks": [ "SELECT", "avg", "(", "T2.Age", ")", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "avg", "(", "t2", ".", "age", ")", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id" ], "question": "Return the average age across all gymnasts.", "question_toks": [ "return", "average", "age", "across", "all", "gymnast", "." ], "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, [ [ 5, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "average", "age", "across", "all", "gymnasts", "." ], "question_arg": [ [ "return" ], [ "average" ], [ "age" ], [ "across" ], [ "all" ], [ "gymnast" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "average", "JJ" ], [ "age", "NN" ], [ "across", "IN" ], [ "all", "DT" ], [ "gymnast", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(5) C(11) T(1) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "gymnast", "query": "SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T1.Total_Points > 57.5", "query_toks": [ "SELECT", "DISTINCT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "WHERE", "T1.Total_Points", ">", "57.5" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total_points", ">", "value" ], "question": "What are the distinct hometowns of gymnasts with total points more than 57.5?", "question_toks": [ "what", "are", "distinct", "hometown", "of", "gymnast", "with", "total", "point", "more", "than", "57.5", "?" ], "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, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 57.5, null ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "distinct", "hometowns", "of", "gymnasts", "with", "total", "points", "more", "than", "57.5", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "hometown" ], [ "of" ], [ "gymnast" ], [ "with" ], [ "total", "point" ], [ "more" ], [ "than" ], [ "57.5" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "hometown", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "with", "IN" ], [ "total", "JJ" ], [ "point", "NN" ], [ "more", "JJR" ], [ "than", "IN" ], [ "57.5", "CD" ], [ "?", "." ] ], "values": [ "57.5" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(13) T(1) Filter(5) A(0) C(8) T(0) V(0)" }, { "db_id": "gymnast", "query": "SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T1.Total_Points > 57.5", "query_toks": [ "SELECT", "DISTINCT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "WHERE", "T1.Total_Points", ">", "57.5" ], "query_toks_no_value": [ "select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total_points", ">", "value" ], "question": "Give the different hometowns of gymnasts that have a total point score of above 57.5.", "question_toks": [ "give", "different", "hometown", "of", "gymnast", "that", "have", "a", "total", "point", "score", "of", "above", "57.5", "." ], "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, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 8, false ], null ], 57.5, null ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Give", "the", "different", "hometowns", "of", "gymnasts", "that", "have", "a", "total", "point", "score", "of", "above", "57.5", "." ], "question_arg": [ [ "give" ], [ "different" ], [ "hometown" ], [ "of" ], [ "gymnast" ], [ "that" ], [ "have" ], [ "a" ], [ "total", "point" ], [ "score" ], [ "of" ], [ "above" ], [ "57.5" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "different", "JJ" ], [ "hometown", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "a", "DT" ], [ "total", "JJ" ], [ "point", "NN" ], [ "score", "NN" ], [ "of", "IN" ], [ "above", "IN" ], [ "57.5", "CD" ], [ ".", "." ] ], "values": [ "57.5" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(13) T(1) Filter(5) A(0) C(8) T(0) V(0)" }, { "db_id": "gymnast", "query": "SELECT T2.Hometown , COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown", "query_toks": [ "SELECT", "T2.Hometown", ",", "COUNT", "(", "*", ")", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "GROUP", "BY", "T2.Hometown" ], "query_toks_no_value": [ "select", "t2", ".", "hometown", ",", "count", "(", "*", ")", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "group", "by", "t2", ".", "hometown" ], "question": "What are the hometowns of gymnasts and the corresponding number of gymnasts?", "question_toks": [ "what", "are", "hometown", "of", "gymnast", "and", "corresponding", "number", "of", "gymnast", "?" ], "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, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "hometowns", "of", "gymnasts", "and", "the", "corresponding", "number", "of", "gymnasts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "hometown" ], [ "of" ], [ "gymnast" ], [ "and" ], [ "corresponding" ], [ "number" ], [ "of" ], [ "gymnast" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "hometown", "VBN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "and", "CC" ], [ "corresponding", "VBG" ], [ "number", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(1) A(3) C(0) T(0)" }, { "db_id": "gymnast", "query": "SELECT T2.Hometown , COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown", "query_toks": [ "SELECT", "T2.Hometown", ",", "COUNT", "(", "*", ")", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "GROUP", "BY", "T2.Hometown" ], "query_toks_no_value": [ "select", "t2", ".", "hometown", ",", "count", "(", "*", ")", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "group", "by", "t2", ".", "hometown" ], "question": "How many gymnasts are from each hometown?", "question_toks": [ "how", "many", "gymnast", "are", "from", "each", "hometown", "?" ], "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, 13, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ], [ 3, [ 0, [ 0, 0, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "gymnasts", "are", "from", "each", "hometown", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "gymnast" ], [ "are" ], [ "from" ], [ "each" ], [ "hometown" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "gymnast", "NN" ], [ "are", "VBP" ], [ "from", "IN" ], [ "each", "DT" ], [ "hometown", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(13) T(1) A(3) C(0) T(0)" }, { "db_id": "gymnast", "query": "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "GROUP", "BY", "T2.Hometown", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "group", "by", "t2", ".", "hometown", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the most common hometown of gymnasts?", "question_toks": [ "what", "is", "most", "common", "hometown", "of", "gymnast", "?" ], "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, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "is", "the", "most", "common", "hometown", "of", "gymnasts", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "most" ], [ "common" ], [ "hometown" ], [ "of" ], [ "gymnast" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "hometown", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(1) Sup(0) A(3) C(0) T(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "gymnast", "query": "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "GROUP", "BY", "T2.Hometown", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "group", "by", "t2", ".", "hometown", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "Return the hometown that is most common among gymnasts.", "question_toks": [ "return", "hometown", "that", "is", "most", "common", "among", "gymnast", "." ], "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, 13, false ] ], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 3, 0, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Return", "the", "hometown", "that", "is", "most", "common", "among", "gymnasts", "." ], "question_arg": [ [ "return" ], [ "hometown" ], [ "that" ], [ "is" ], [ "most" ], [ "common" ], [ "among" ], [ "gymnast" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "VB" ], [ "hometown", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "most", "RBS" ], [ "common", "JJ" ], [ "among", "IN" ], [ "gymnast", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(13) T(1) Sup(0) A(3) C(0) T(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "gymnast", "query": "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "GROUP", "BY", "T2.Hometown", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "group", "by", "t2", ".", "hometown", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the hometowns that are shared by at least two gymnasts?", "question_toks": [ "what", "are", "hometown", "that", "are", "shared", "by", "at", "least", "two", "gymnast", "?" ], "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, 13, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "hometowns", "that", "are", "shared", "by", "at", "least", "two", "gymnasts", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "hometown" ], [ "that" ], [ "are" ], [ "shared" ], [ "by" ], [ "at" ], [ "least" ], [ "two" ], [ "gymnast" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "hometown", "VBN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "at", "IN" ], [ "least", "JJS" ], [ "two", "CD" ], [ "gymnast", "NN" ], [ "?", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "gymnast", "query": "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2", "query_toks": [ "SELECT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "GROUP", "BY", "T2.Hometown", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "group", "by", "t2", ".", "hometown", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "Give the hometowns from which two or more gymnasts are from.", "question_toks": [ "give", "hometown", "from", "which", "two", "or", "more", "gymnast", "are", "from", "." ], "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, 13, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.0, null ] ], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Give", "the", "hometowns", "from", "which", "two", "or", "more", "gymnasts", "are", "from", "." ], "question_arg": [ [ "give" ], [ "hometown" ], [ "from" ], [ "which" ], [ "two" ], [ "or" ], [ "more" ], [ "gymnast" ], [ "are" ], [ "from" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "hometown", "NN" ], [ "from", "IN" ], [ "which", "WDT" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "gymnast", "NNS" ], [ "are", "VBP" ], [ "from", "IN" ], [ ".", "." ] ], "values": [ "2" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(0) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0) Filter(7) A(3) C(0) T(0) V(0)" }, { "db_id": "gymnast", "query": "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Height ASC", "query_toks": [ "SELECT", "T2.Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Height", "ASC" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "height", "asc" ], "question": "List the names of gymnasts in ascending order by their heights.", "question_toks": [ "list", "name", "of", "gymnast", "in", "ascending", "order", "by", "their", "height", "." ], "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": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "names", "of", "gymnasts", "in", "ascending", "order", "by", "their", "heights", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "gymnast" ], [ "in" ], [ "ascending" ], [ "order" ], [ "by" ], [ "their" ], [ "height" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "height", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(10) T(1) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0) Order(1) A(0) C(12) T(1)" }, { "db_id": "gymnast", "query": "SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Height ASC", "query_toks": [ "SELECT", "T2.Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Height", "ASC" ], "query_toks_no_value": [ "select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "height", "asc" ], "question": "What are the names of gymnasts, ordered by their heights ascending?", "question_toks": [ "what", "are", "name", "of", "gymnast", ",", "ordered", "by", "their", "height", "ascending", "?" ], "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": [ "asc", [ [ 0, [ 0, 12, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 10, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "gymnasts", ",", "ordered", "by", "their", "heights", "ascending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "gymnast" ], [ "," ], [ "ordered" ], [ "by" ], [ "their" ], [ "height" ], [ "ascending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "height", "NN" ], [ "ascending", "VBG" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(1) Sel(0) N(0) A(0) C(10) T(1) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0) Order(1) A(0) C(12) T(1)" }, { "db_id": "gymnast", "query": "SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID", "query_toks": [ "SELECT", "DISTINCT", "Hometown", "FROM", "people", "EXCEPT", "SELECT", "DISTINCT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "distinct", "hometown", "from", "people", "except", "select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id" ], "question": "List the distinct hometowns that are not associated with any gymnast.", "question_toks": [ "list", "distinct", "hometown", "that", "are", "not", "associated", "with", "any", "gymnast", "." ], "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": [ true, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "List", "the", "distinct", "hometowns", "that", "are", "not", "associated", "with", "any", "gymnast", "." ], "question_arg": [ [ "list" ], [ "distinct" ], [ "hometown" ], [ "that" ], [ "are" ], [ "not" ], [ "associated" ], [ "with" ], [ "any" ], [ "gymnast" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "distinct", "JJ" ], [ "hometown", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "associated", "VBN" ], [ "with", "IN" ], [ "any", "DT" ], [ "gymnast", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(1) N(0) A(0) C(13) T(1) Root(3) Sel(1) N(0) A(0) C(13) T(1) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "gymnast", "query": "SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID", "query_toks": [ "SELECT", "DISTINCT", "Hometown", "FROM", "people", "EXCEPT", "SELECT", "DISTINCT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID" ], "query_toks_no_value": [ "select", "distinct", "hometown", "from", "people", "except", "select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id" ], "question": "From which hometowns did no gymnasts come from?", "question_toks": [ "from", "which", "hometown", "did", "no", "gymnast", "come", "from", "?" ], "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": [ true, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 9, 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 ] ] }, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "From", "which", "hometowns", "did", "no", "gymnasts", "come", "from", "?" ], "question_arg": [ [ "from" ], [ "which" ], [ "hometown" ], [ "did" ], [ "no" ], [ "gymnast" ], [ "come" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "from", "IN" ], [ "which", "WDT" ], [ "hometown", "NN" ], [ "did", "VBD" ], [ "no", "DT" ], [ "gymnast", "NN" ], [ "come", "VB" ], [ "from", "IN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(2) Root(5) Sel(1) N(0) A(0) C(13) T(1) Root(3) Sel(1) N(0) A(0) C(13) T(1) Filter(18) A(0) C(9) T(1) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "gymnast", "query": "SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20", "query_toks": [ "SELECT", "Hometown", "FROM", "people", "WHERE", "Age", ">", "23", "INTERSECT", "SELECT", "Hometown", "FROM", "people", "WHERE", "Age", "<", "20" ], "query_toks_no_value": [ "select", "hometown", "from", "people", "where", "age", ">", "value", "intersect", "select", "hometown", "from", "people", "where", "age", "<", "value" ], "question": "Show the hometowns shared by people older than 23 and younger than 20.", "question_toks": [ "show", "hometown", "shared", "by", "people", "older", "than", "23", "and", "younger", "than", "20", "." ], "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, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 11, false ], null ], 20.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 23.0, null ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Show", "the", "hometowns", "shared", "by", "people", "older", "than", "23", "and", "younger", "than", "20", "." ], "question_arg": [ [ "show" ], [ "hometown" ], [ "shared" ], [ "by" ], [ "people" ], [ "older" ], [ "than" ], [ "23" ], [ "and" ], [ "younger" ], [ "than" ], [ "20" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "hometown", "VBN" ], [ "shared", "VBN" ], [ "by", "IN" ], [ "people", "NNS" ], [ "older", "JJR" ], [ "than", "IN" ], [ "23", "CD" ], [ "and", "CC" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ ".", "." ] ], "values": [ "20", "23" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(5) A(0) C(11) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "gymnast", "query": "SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20", "query_toks": [ "SELECT", "Hometown", "FROM", "people", "WHERE", "Age", ">", "23", "INTERSECT", "SELECT", "Hometown", "FROM", "people", "WHERE", "Age", "<", "20" ], "query_toks_no_value": [ "select", "hometown", "from", "people", "where", "age", ">", "value", "intersect", "select", "hometown", "from", "people", "where", "age", "<", "value" ], "question": "From which hometowns did both people older than 23 and younger than 20 come from?", "question_toks": [ "from", "which", "hometown", "did", "both", "people", "older", "than", "23", "and", "younger", "than", "20", "come", "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, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 11, false ], null ], 20.0, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 13, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 11, false ], null ], 23.0, null ] ] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "From", "which", "hometowns", "did", "both", "people", "older", "than", "23", "and", "younger", "than", "20", "come", "from", "?" ], "question_arg": [ [ "from" ], [ "which" ], [ "hometown" ], [ "did" ], [ "both" ], [ "people" ], [ "older" ], [ "than" ], [ "23" ], [ "and" ], [ "younger" ], [ "than" ], [ "20" ], [ "come" ], [ "from" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "from", "IN" ], [ "which", "WDT" ], [ "hometown", "NN" ], [ "did", "VBD" ], [ "both", "DT" ], [ "people", "NNS" ], [ "older", "JJR" ], [ "than", "IN" ], [ "23", "CD" ], [ "and", "CC" ], [ "younger", "JJR" ], [ "than", "IN" ], [ "20", "CD" ], [ "come", "NN" ], [ "from", "IN" ], [ "?", "." ] ], "values": [ "20", "23" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(5) A(0) C(11) T(1) V(1) Root(3) Sel(0) N(0) A(0) C(13) T(1) Filter(4) A(0) C(11) T(1) V(0)" }, { "db_id": "gymnast", "query": "SELECT count(DISTINCT Hometown) FROM people", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Hometown", ")", "FROM", "people" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "hometown", ")", "from", "people" ], "question": "How many distinct hometowns did these people have?", "question_toks": [ "how", "many", "distinct", "hometown", "did", "these", "people", "have", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "How", "many", "distinct", "hometowns", "did", "these", "people", "have", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "distinct" ], [ "hometown" ], [ "did" ], [ "these" ], [ "people" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "distinct", "JJ" ], [ "hometown", "NN" ], [ "did", "VBD" ], [ "these", "DT" ], [ "people", "NNS" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(13) T(1)" }, { "db_id": "gymnast", "query": "SELECT count(DISTINCT Hometown) FROM people", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "Hometown", ")", "FROM", "people" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "hometown", ")", "from", "people" ], "question": "Count the number of different hometowns of these people.", "question_toks": [ "count", "number", "of", "different", "hometown", "of", "these", "people", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 13, true ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Count", "the", "number", "of", "different", "hometowns", "of", "these", "people", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "different" ], [ "hometown" ], [ "of" ], [ "these" ], [ "people" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "different", "JJ" ], [ "hometown", "NN" ], [ "of", "IN" ], [ "these", "DT" ], [ "people", "NNS" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(13) T(1)" }, { "db_id": "gymnast", "query": "SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T1.Total_Points DESC", "query_toks": [ "SELECT", "T2.Age", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total_Points", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "age", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total_points", "desc" ], "question": "Show the ages of gymnasts in descending order of total points.", "question_toks": [ "show", "age", "of", "gymnast", "in", "descending", "order", "of", "total", "point", "." ], "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": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "Show", "the", "ages", "of", "gymnasts", "in", "descending", "order", "of", "total", "points", "." ], "question_arg": [ [ "show" ], [ "age" ], [ "of" ], [ "gymnast" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "total", "point" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "age", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "total", "JJ" ], [ "point", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(11) T(1) Order(0) A(0) C(8) T(0)" }, { "db_id": "gymnast", "query": "SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T1.Total_Points DESC", "query_toks": [ "SELECT", "T2.Age", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total_Points", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "age", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total_points", "desc" ], "question": "What are the ages of the gymnasts, ordered descending by their total points?", "question_toks": [ "what", "are", "age", "of", "gymnast", ",", "ordered", "descending", "by", "their", "total", "point", "?" ], "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": [ "desc", [ [ 0, [ 0, 8, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "table_names": [ "gymnast", "people" ], "col_set": [ "*", "gymnast id", "floor exercise points", "pommel horse points", "rings points", "vault points", "parallel bars points", "horizontal bar points", "total points", "people id", "name", "age", "height", "hometown" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 ], "keys": { "1": 1, "9": 9 }, "origin_question_toks": [ "What", "are", "the", "ages", "of", "the", "gymnasts", ",", "ordered", "descending", "by", "their", "total", "points", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "age" ], [ "of" ], [ "gymnast" ], [ "," ], [ "ordered" ], [ "descending" ], [ "by" ], [ "their" ], [ "total", "point" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "age", "NN" ], [ "of", "IN" ], [ "gymnast", "NN" ], [ ",", "," ], [ "ordered", "VBD" ], [ "descending", "NN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "total", "JJ" ], [ "point", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(11) T(1) Order(0) A(0) C(8) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT sum(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name != 'Brown'", "query_toks": [ "SELECT", "sum", "(", "T2.balance", ")", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T1.name", "!", "=", "'Brown", "'" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "balance", ")", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "!", "=", "value" ], "question": "Find the total savings balance of all accounts except the account with name \u2018Brown\u2019.", "question_toks": [ "find", "total", "saving", "balance", "of", "all", "account", "except", "account", "with", "name", "\u2018brown\u2019", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 2, false ], null ], "\"Brown\"", null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "total", "savings", "balance", "of", "all", "accounts", "except", "the", "account", "with", "name", "\u2018Brown\u2019", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "saving" ], [ "balance" ], [ "of" ], [ "all" ], [ "account" ], [ "except" ], [ "account" ], [ "with" ], [ "name" ], [ "\u2018brown\u2019" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ "except", "IN" ], [ "account", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "\u2018brown\u2019", "NNP" ], [ ".", "." ] ], "values": [ "Brown" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(3) T(1) Filter(3) A(0) C(2) T(0) V(0)" }, { "db_id": "small_bank_1", "query": "SELECT sum(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name != 'Brown'", "query_toks": [ "SELECT", "sum", "(", "T2.balance", ")", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T1.name", "!", "=", "'Brown", "'" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "balance", ")", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "!", "=", "value" ], "question": "What is the total balance of savings accounts not belonging to someone with the name Brown?", "question_toks": [ "what", "is", "total", "balance", "of", "saving", "account", "not", "belonging", "to", "someone", "with", "name", "brown", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 2, false ], null ], "\"Brown\"", null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "total", "balance", "of", "savings", "accounts", "not", "belonging", "to", "someone", "with", "the", "name", "Brown", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "balance" ], [ "of" ], [ "saving" ], [ "account" ], [ "not" ], [ "belonging" ], [ "to" ], [ "someone" ], [ "with" ], [ "name" ], [ "brown" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "balance", "NN" ], [ "of", "IN" ], [ "saving", "VBG" ], [ "account", "NN" ], [ "not", "RB" ], [ "belonging", "VBG" ], [ "to", "TO" ], [ "someone", "NN" ], [ "with", "IN" ], [ "name", "NN" ], [ "brown", "VBN" ], [ "?", "." ] ], "values": [ "Brown" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(4) C(3) T(1) Filter(3) A(0) C(2) T(0) V(0)" }, { "db_id": "small_bank_1", "query": "SELECT count(*) FROM accounts", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "accounts" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "accounts" ], "question": "How many accounts are there in total?", "question_toks": [ "how", "many", "account", "are", "there", "in", "total", "?" ], "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": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "How", "many", "accounts", "are", "there", "in", "total", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "account" ], [ "are" ], [ "there" ], [ "in" ], [ "total" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "account", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "in", "IN" ], [ "total", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT count(*) FROM accounts", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "accounts" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "accounts" ], "question": "Count the number of accounts.", "question_toks": [ "count", "number", "of", "account", "." ], "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": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Count", "the", "number", "of", "accounts", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT sum(balance) FROM checking", "query_toks": [ "SELECT", "sum", "(", "balance", ")", "FROM", "checking" ], "query_toks_no_value": [ "select", "sum", "(", "balance", ")", "from", "checking" ], "question": "What is the total checking balance in all accounts?", "question_toks": [ "what", "is", "total", "checking", "balance", "in", "all", "account", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "total", "checking", "balance", "in", "all", "accounts", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "total" ], [ "checking" ], [ "balance" ], [ "in" ], [ "all" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "in", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT sum(balance) FROM checking", "query_toks": [ "SELECT", "sum", "(", "balance", ")", "FROM", "checking" ], "query_toks_no_value": [ "select", "sum", "(", "balance", ")", "from", "checking" ], "question": "Find the total balance across checking accounts.", "question_toks": [ "find", "total", "balance", "across", "checking", "account", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "total", "balance", "across", "checking", "accounts", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "balance" ], [ "across" ], [ "checking" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "balance", "NN" ], [ "across", "IN" ], [ "checking", "VBG" ], [ "account", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(4) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT avg(balance) FROM checking", "query_toks": [ "SELECT", "avg", "(", "balance", ")", "FROM", "checking" ], "query_toks_no_value": [ "select", "avg", "(", "balance", ")", "from", "checking" ], "question": "Find the average checking balance.", "question_toks": [ "find", "average", "checking", "balance", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "average", "checking", "balance", "." ], "question_arg": [ [ "find" ], [ "average" ], [ "checking" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "JJ" ], [ "average", "JJ" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT avg(balance) FROM checking", "query_toks": [ "SELECT", "avg", "(", "balance", ")", "FROM", "checking" ], "query_toks_no_value": [ "select", "avg", "(", "balance", ")", "from", "checking" ], "question": "What is the average balance in checking accounts?", "question_toks": [ "what", "is", "average", "balance", "in", "checking", "account", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "average", "balance", "in", "checking", "accounts", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "average" ], [ "balance" ], [ "in" ], [ "checking" ], [ "account" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "average", "JJ" ], [ "balance", "NN" ], [ "in", "IN" ], [ "checking", "VBG" ], [ "account", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(5) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT count(*) FROM savings WHERE balance > (SELECT avg(balance) FROM savings)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "savings", "WHERE", "balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "savings", "where", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")" ], "question": "How many accounts have a savings balance above the average savings balance?", "question_toks": [ "how", "many", "account", "have", "a", "saving", "balance", "above", "average", "saving", "balance", "?" ], "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, 3, [ 0, [ 0, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "How", "many", "accounts", "have", "a", "savings", "balance", "above", "the", "average", "savings", "balance", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "account" ], [ "have" ], [ "a" ], [ "saving" ], [ "balance" ], [ "above" ], [ "average" ], [ "saving" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "account", "NN" ], [ "have", "VBP" ], [ "a", "DT" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "above", "IN" ], [ "average", "JJ" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(13) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(5) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT count(*) FROM savings WHERE balance > (SELECT avg(balance) FROM savings)", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "savings", "WHERE", "balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "savings", "where", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")" ], "question": "Find the number of accounts with a savings balance that is higher than the average savings balance.", "question_toks": [ "find", "number", "of", "account", "with", "a", "saving", "balance", "that", "is", "higher", "than", "average", "saving", "balance", "." ], "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, 3, [ 0, [ 0, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "number", "of", "accounts", "with", "a", "savings", "balance", "that", "is", "higher", "than", "the", "average", "savings", "balance", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "account" ], [ "with" ], [ "a" ], [ "saving" ], [ "balance" ], [ "that" ], [ "is" ], [ "higher" ], [ "than" ], [ "average" ], [ "saving" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "saving", "JJ" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(13) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(5) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT T1.custid , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT max(balance) FROM checking)", "query_toks": [ "SELECT", "T1.custid", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", "<", "(", "SELECT", "max", "(", "balance", ")", "FROM", "checking", ")" ], "query_toks_no_value": [ "select", "t1", ".", "custid", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", "<", "(", "select", "max", "(", "balance", ")", "from", "checking", ")" ], "question": "Find the name and id of accounts whose checking balance is below the maximum checking balance.", "question_toks": [ "find", "name", "and", "id", "of", "account", "whose", "checking", "balance", "is", "below", "maximum", "checking", "balance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "name", "and", "id", "of", "accounts", "whose", "checking", "balance", "is", "below", "the", "maximum", "checking", "balance", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "id" ], [ "of" ], [ "account" ], [ "whose" ], [ "checking" ], [ "balance" ], [ "is" ], [ "below" ], [ "maximum" ], [ "checking" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "id", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "whose", "WP$" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "is", "VBZ" ], [ "below", "IN" ], [ "maximum", "JJ" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(12) A(0) C(3) T(2) Root(5) Sel(0) N(0) A(1) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT T1.custid , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT max(balance) FROM checking)", "query_toks": [ "SELECT", "T1.custid", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", "<", "(", "SELECT", "max", "(", "balance", ")", "FROM", "checking", ")" ], "query_toks_no_value": [ "select", "t1", ".", "custid", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", "<", "(", "select", "max", "(", "balance", ")", "from", "checking", ")" ], "question": "What are the customer id and name corresponding to accounts with a checking balance less than the largest checking balance?", "question_toks": [ "what", "are", "customer", "id", "and", "name", "corresponding", "to", "account", "with", "a", "checking", "balance", "le", "than", "largest", "checking", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 1, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 4, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "customer", "id", "and", "name", "corresponding", "to", "accounts", "with", "a", "checking", "balance", "less", "than", "the", "largest", "checking", "balance", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "customer", "id" ], [ "and" ], [ "name" ], [ "corresponding" ], [ "to" ], [ "account" ], [ "with" ], [ "a" ], [ "checking" ], [ "balance" ], [ "le" ], [ "than" ], [ "largest" ], [ "checking" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "customer", "NN" ], [ "id", "NN" ], [ "and", "CC" ], [ "name", "NN" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "account", "VB" ], [ "with", "IN" ], [ "a", "DT" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "le", "NN" ], [ "than", "IN" ], [ "largest", "JJS" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(0) A(0) C(2) T(0) Filter(12) A(0) C(3) T(2) Root(5) Sel(0) N(0) A(1) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%'", "query_toks": [ "SELECT", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T1.name", "LIKE", "'", "%", "ee", "%", "'" ], "query_toks_no_value": [ "select", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "like", "value" ], "question": "What is the checking balance of the account whose owner\u2019s name contains the substring \u2018ee\u2019?", "question_toks": [ "what", "is", "checking", "balance", "of", "account", "whose", "owner\u2019s", "name", "contains", "substring", "\u2018ee\u2019", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 2, false ], null ], "\"%ee%\"", null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "checking", "balance", "of", "the", "account", "whose", "owner\u2019s", "name", "contains", "the", "substring", "\u2018ee\u2019", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "checking" ], [ "balance" ], [ "of" ], [ "account" ], [ "whose" ], [ "owner\u2019s" ], [ "name" ], [ "contains" ], [ "substring" ], [ "\u2018ee\u2019" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "whose", "WP$" ], [ "owner\u2019s", "NN" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "substring", "VBG" ], [ "\u2018ee\u2019", "NNS" ], [ "?", "." ] ], "values": [ "ee" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(2) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "small_bank_1", "query": "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%'", "query_toks": [ "SELECT", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T1.name", "LIKE", "'", "%", "ee", "%", "'" ], "query_toks_no_value": [ "select", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "like", "value" ], "question": "Find the balance of the checking account belonging to an owner whose name contains 'ee'.", "question_toks": [ "find", "balance", "of", "checking", "account", "belonging", "to", "an", "owner", "whose", "name", "contains", "'", "ee", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [ [ false, 9, [ 0, [ 0, 2, false ], null ], "\"%ee%\"", null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "balance", "of", "the", "checking", "account", "belonging", "to", "an", "owner", "whose", "name", "contains", "'ee", "'", "." ], "question_arg": [ [ "find" ], [ "balance" ], [ "of" ], [ "checking" ], [ "account" ], [ "belonging" ], [ "to" ], [ "an" ], [ "owner" ], [ "whose" ], [ "name" ], [ "contains" ], [ "'" ], [ "ee" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "balance", "NN" ], [ "of", "IN" ], [ "checking", "VBG" ], [ "account", "NN" ], [ "belonging", "VBG" ], [ "to", "TO" ], [ "an", "DT" ], [ "owner", "NN" ], [ "whose", "WP$" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "'", "POS" ], [ "ee", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "ee" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(2) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "small_bank_1", "query": "SELECT T2.balance , T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T1.name = 'Brown'", "query_toks": [ "SELECT", "T2.balance", ",", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T1.name", "=", "'Brown", "'" ], "query_toks_no_value": [ "select", "t2", ".", "balance", ",", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t1", ".", "name", "=", "value" ], "question": "Find the checking balance and saving balance in the Brown\u2019s account.", "question_toks": [ "find", "checking", "balance", "and", "saving", "balance", "in", "brown\u2019s", "account", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Brown\"", null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "checking", "balance", "and", "saving", "balance", "in", "the", "Brown\u2019s", "account", "." ], "question_arg": [ [ "find" ], [ "checking" ], [ "balance" ], [ "and" ], [ "saving" ], [ "balance" ], [ "in" ], [ "brown\u2019s" ], [ "account" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "checking", "JJ" ], [ "balance", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "in", "IN" ], [ "brown\u2019s", "JJ" ], [ "account", "NN" ], [ ".", "." ] ], "values": [ "Brown" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(2) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "small_bank_1", "query": "SELECT T2.balance , T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T1.name = 'Brown'", "query_toks": [ "SELECT", "T2.balance", ",", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T1.name", "=", "'Brown", "'" ], "query_toks_no_value": [ "select", "t2", ".", "balance", ",", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t1", ".", "name", "=", "value" ], "question": "What are the checking and savings balances in accounts belonging to Brown?", "question_toks": [ "what", "are", "checking", "and", "saving", "balance", "in", "account", "belonging", "to", "brown", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Brown\"", null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "checking", "and", "savings", "balances", "in", "accounts", "belonging", "to", "Brown", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "checking" ], [ "and" ], [ "saving" ], [ "balance" ], [ "in" ], [ "account" ], [ "belonging" ], [ "to" ], [ "brown" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "checking", "VBG" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "in", "IN" ], [ "account", "NN" ], [ "belonging", "NN" ], [ "to", "TO" ], [ "brown", "VB" ], [ "?", "." ] ], "values": [ "Brown" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(3) T(2) A(0) C(3) T(1) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT avg(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM savings)", "query_toks": [ "SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "checking", ")", "INTERSECT", "SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", "<", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "checking", ")", "intersect", "select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", "<", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")" ], "question": "Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance.", "question_toks": [ "find", "name", "of", "account", "whose", "checking", "balance", "is", "above", "average", "checking", "balance", ",", "but", "saving", "balance", "is", "below", "average", "saving", "balance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 3, 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, 3, 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, 4, [ 0, [ 0, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "names", "of", "accounts", "whose", "checking", "balance", "is", "above", "the", "average", "checking", "balance", ",", "but", "savings", "balance", "is", "below", "the", "average", "savings", "balance", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "account" ], [ "whose" ], [ "checking" ], [ "balance" ], [ "is" ], [ "above" ], [ "average" ], [ "checking" ], [ "balance" ], [ "," ], [ "but" ], [ "saving" ], [ "balance" ], [ "is" ], [ "below" ], [ "average" ], [ "saving" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "whose", "WP$" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "is", "VBZ" ], [ "above", "JJ" ], [ "average", "JJ" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ ",", "," ], [ "but", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "is", "VBZ" ], [ "below", "JJ" ], [ "average", "JJ" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(13) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(5) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(12) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(5) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT avg(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM savings)", "query_toks": [ "SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "checking", ")", "INTERSECT", "SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", "<", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "checking", ")", "intersect", "select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", "<", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")" ], "question": "What are the names of accounts with checking balances greater than the average checking balance and savings balances below the average savings balance?", "question_toks": [ "what", "are", "name", "of", "account", "with", "checking", "balance", "greater", "than", "average", "checking", "balance", "and", "saving", "balance", "below", "average", "saving", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 3, 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, 3, 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, 4, [ 0, [ 0, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "accounts", "with", "checking", "balances", "greater", "than", "the", "average", "checking", "balance", "and", "savings", "balances", "below", "the", "average", "savings", "balance", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "account" ], [ "with" ], [ "checking" ], [ "balance" ], [ "greater" ], [ "than" ], [ "average" ], [ "checking" ], [ "balance" ], [ "and" ], [ "saving" ], [ "balance" ], [ "below" ], [ "average" ], [ "saving" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "with", "IN" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "checking", "JJ" ], [ "balance", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "below", "IN" ], [ "average", "JJ" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(13) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(5) C(3) T(2) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(12) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(5) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT avg(balance) FROM savings))", "query_toks": [ "SELECT", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T1.name", "IN", "(", "SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")", ")" ], "query_toks_no_value": [ "select", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "in", "(", "select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")", ")" ], "question": "Find the checking balance of the accounts whose savings balance is higher than the average savings balance.", "question_toks": [ "find", "checking", "balance", "of", "account", "whose", "saving", "balance", "is", "higher", "than", "average", "saving", "balance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 2, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 3, 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, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "checking", "balance", "of", "the", "accounts", "whose", "savings", "balance", "is", "higher", "than", "the", "average", "savings", "balance", "." ], "question_arg": [ [ "find" ], [ "checking" ], [ "balance" ], [ "of" ], [ "account" ], [ "whose" ], [ "saving" ], [ "balance" ], [ "is" ], [ "higher" ], [ "than" ], [ "average" ], [ "saving" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "checking", "JJ" ], [ "balance", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "whose", "WP$" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "saving", "JJ" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(18) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(13) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(5) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT avg(balance) FROM savings))", "query_toks": [ "SELECT", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T1.name", "IN", "(", "SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")", ")" ], "query_toks_no_value": [ "select", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "in", "(", "select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")", ")" ], "question": "What are the balances of checking accounts belonging to people with savings balances greater than the average savings balance?", "question_toks": [ "what", "are", "balance", "of", "checking", "account", "belonging", "to", "people", "with", "saving", "balance", "greater", "than", "average", "saving", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "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, 2, false ], null ], { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 3, 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, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "balances", "of", "checking", "accounts", "belonging", "to", "people", "with", "savings", "balances", "greater", "than", "the", "average", "savings", "balance", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "balance" ], [ "of" ], [ "checking" ], [ "account" ], [ "belonging" ], [ "to" ], [ "people" ], [ "with" ], [ "saving" ], [ "balance" ], [ "greater" ], [ "than" ], [ "average" ], [ "saving" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "balance", "NN" ], [ "of", "IN" ], [ "checking", "VBG" ], [ "account", "NN" ], [ "belonging", "VBG" ], [ "to", "TO" ], [ "people", "NNS" ], [ "with", "IN" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "greater", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(3) T(1) Filter(18) A(0) C(2) T(0) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(13) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(5) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT name FROM accounts ORDER BY name", "query_toks": [ "SELECT", "name", "FROM", "accounts", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "name", "from", "accounts", "order", "by", "name" ], "question": "List all customers\u2019 names in the alphabetical order.", "question_toks": [ "list", "all", "customers\u2019", "name", "in", "alphabetical", "order", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "List", "all", "customers\u2019", "names", "in", "the", "alphabetical", "order", "." ], "question_arg": [ [ "list" ], [ "all" ], [ "customers\u2019" ], [ "name" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "all", "DT" ], [ "customers\u2019", "VBP" ], [ "name", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT name FROM accounts ORDER BY name", "query_toks": [ "SELECT", "name", "FROM", "accounts", "ORDER", "BY", "name" ], "query_toks_no_value": [ "select", "name", "from", "accounts", "order", "by", "name" ], "question": "What are the names of all the customers in alphabetical order?", "question_toks": [ "what", "are", "name", "of", "all", "customer", "in", "alphabetical", "order", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 0, [ 0, 2, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "all", "the", "customers", "in", "alphabetical", "order", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "all" ], [ "customer" ], [ "in" ], [ "alphabetical" ], [ "order" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "in", "IN" ], [ "alphabetical", "JJ" ], [ "order", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(1) A(0) C(2) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "+", "T3.balance", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "+", "t3", ".", "balance", "limit", "value" ], "question": "Find the name of account that has the lowest total checking and saving balance.", "question_toks": [ "find", "name", "of", "account", "that", "ha", "lowest", "total", "checking", "and", "saving", "balance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 2, [ 0, 6, false ], [ 0, 4, false ] ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "name", "of", "account", "that", "has", "the", "lowest", "total", "checking", "and", "saving", "balance", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "account" ], [ "that" ], [ "ha" ], [ "lowest" ], [ "total" ], [ "checking" ], [ "and" ], [ "saving" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "that", "WDT" ], [ "ha", "VBZ" ], [ "lowest", "JJS" ], [ "total", "JJ" ], [ "checking", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(1) A(0) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1", "query_toks": [ "SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "+", "T3.balance", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "+", "t3", ".", "balance", "limit", "value" ], "question": "What is the name corresponding to the accoung with the lowest sum of checking and savings balances?", "question_toks": [ "what", "is", "name", "corresponding", "to", "accoung", "with", "lowest", "sum", "of", "checking", "and", "saving", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 2, [ 0, 6, false ], [ 0, 4, false ] ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "name", "corresponding", "to", "the", "accoung", "with", "the", "lowest", "sum", "of", "checking", "and", "savings", "balances", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "corresponding" ], [ "to" ], [ "accoung" ], [ "with" ], [ "lowest" ], [ "sum" ], [ "of" ], [ "checking" ], [ "and" ], [ "saving" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "agg" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "JJ" ], [ "corresponding", "VBG" ], [ "to", "TO" ], [ "accoung", "VB" ], [ "with", "IN" ], [ "lowest", "JJS" ], [ "sum", "NN" ], [ "of", "IN" ], [ "checking", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(1) A(0) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name , T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT avg(balance) FROM savings)", "query_toks": [ "SELECT", "T1.name", ",", "T2.balance", "+", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T3.balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "balance", "+", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")" ], "question": "Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.", "question_toks": [ "find", "name", "and", "total", "checking", "and", "saving", "balance", "of", "account", "whose", "saving", "balance", "is", "higher", "than", "average", "saving", "balance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, 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, [ 2, [ 0, 6, false ], [ 0, 4, false ] ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "names", "and", "total", "checking", "and", "savings", "balances", "of", "accounts", "whose", "savings", "balance", "is", "higher", "than", "the", "average", "savings", "balance", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "total" ], [ "checking" ], [ "and" ], [ "saving" ], [ "balance" ], [ "of" ], [ "account" ], [ "whose" ], [ "saving" ], [ "balance" ], [ "is" ], [ "higher" ], [ "than" ], [ "average" ], [ "saving" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "checking", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "whose", "WP$" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "saving", "JJ" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(2) Filter(13) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(5) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name , T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT avg(balance) FROM savings)", "query_toks": [ "SELECT", "T1.name", ",", "T2.balance", "+", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T3.balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "balance", "+", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")" ], "question": "What are the names and sum of checking and savings balances for accounts with savings balances higher than the average savings balance?", "question_toks": [ "what", "are", "name", "and", "sum", "of", "checking", "and", "saving", "balance", "for", "account", "with", "saving", "balance", "higher", "than", "average", "saving", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, 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, [ 2, [ 0, 6, false ], [ 0, 4, false ] ] ] ] ], "union": null, "where": [ [ false, 3, [ 0, [ 0, 4, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "sum", "of", "checking", "and", "savings", "balances", "for", "accounts", "with", "savings", "balances", "higher", "than", "the", "average", "savings", "balance", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "sum" ], [ "of" ], [ "checking" ], [ "and" ], [ "saving" ], [ "balance" ], [ "for" ], [ "account" ], [ "with" ], [ "saving" ], [ "balance" ], [ "higher" ], [ "than" ], [ "average" ], [ "saving" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "sum", "NN" ], [ "of", "IN" ], [ "checking", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "for", "IN" ], [ "account", "NN" ], [ "with", "IN" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(2) Filter(13) A(0) C(3) T(1) Root(5) Sel(0) N(0) A(5) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name , T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1", "query_toks": [ "SELECT", "T1.name", ",", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T3.balance", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t3", ".", "balance", "limit", "value" ], "question": "Find the name and checking balance of the account with the lowest savings balance.", "question_toks": [ "find", "name", "and", "checking", "balance", "of", "account", "with", "lowest", "saving", "balance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "savings", "balance", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "checking" ], [ "balance" ], [ "of" ], [ "account" ], [ "with" ], [ "lowest" ], [ "saving" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "with", "IN" ], [ "lowest", "JJS" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(2) Sup(1) A(0) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name , T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1", "query_toks": [ "SELECT", "T1.name", ",", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T3.balance", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t3", ".", "balance", "limit", "value" ], "question": "What are the names and balances of checking accounts belonging to the customer with the lowest savings balance?", "question_toks": [ "what", "are", "name", "and", "balance", "of", "checking", "account", "belonging", "to", "customer", "with", "lowest", "saving", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "balances", "of", "checking", "accounts", "belonging", "to", "the", "customer", "with", "the", "lowest", "savings", "balance", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "balance" ], [ "of" ], [ "checking" ], [ "account" ], [ "belonging" ], [ "to" ], [ "customer" ], [ "with" ], [ "lowest" ], [ "saving" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "balance", "NN" ], [ "of", "IN" ], [ "checking", "VBG" ], [ "account", "NN" ], [ "belonging", "VBG" ], [ "to", "TO" ], [ "customer", "NN" ], [ "with", "IN" ], [ "lowest", "JJ" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(2) Sup(1) A(0) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT count(*) , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "GROUP", "BY", "T1.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "group", "by", "t1", ".", "name" ], "question": "Find the number of checking accounts for each account name.", "question_toks": [ "find", "number", "of", "checking", "account", "for", "each", "account", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "number", "of", "checking", "accounts", "for", "each", "account", "name", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "checking" ], [ "account" ], [ "for" ], [ "each" ], [ "account" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "checking", "VBG" ], [ "account", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "account", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(2) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT count(*) , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name", "query_toks": [ "SELECT", "count", "(", "*", ")", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "GROUP", "BY", "T1.name" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "group", "by", "t1", ".", "name" ], "question": "What are the names of customers with accounts, and how many checking accounts do each of them have?", "question_toks": [ "what", "are", "name", "of", "customer", "with", "account", ",", "and", "how", "many", "checking", "account", "do", "each", "of", "them", "have", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 3, [ 0, [ 0, 0, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "with", "accounts", ",", "and", "how", "many", "checking", "accounts", "do", "each", "of", "them", "have", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "with" ], [ "account" ], [ "," ], [ "and" ], [ "how" ], [ "many" ], [ "checking" ], [ "account" ], [ "do" ], [ "each" ], [ "of" ], [ "them" ], [ "have" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "account", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "how", "WRB" ], [ "many", "JJ" ], [ "checking", "NN" ], [ "account", "NN" ], [ "do", "VBP" ], [ "each", "DT" ], [ "of", "IN" ], [ "them", "PRP" ], [ "have", "VBP" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(3) C(0) T(2) A(0) C(2) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT sum(T2.balance) , T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name", "query_toks": [ "SELECT", "sum", "(", "T2.balance", ")", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "GROUP", "BY", "T1.name" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "balance", ")", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "group", "by", "t1", ".", "name" ], "question": "Find the total saving balance for each account name.", "question_toks": [ "find", "total", "saving", "balance", "for", "each", "account", "name", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "total", "saving", "balance", "for", "each", "account", "name", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "saving" ], [ "balance" ], [ "for" ], [ "each" ], [ "account" ], [ "name" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "account", "NN" ], [ "name", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(3) T(1) A(0) C(2) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT sum(T2.balance) , T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name", "query_toks": [ "SELECT", "sum", "(", "T2.balance", ")", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "GROUP", "BY", "T1.name" ], "query_toks_no_value": [ "select", "sum", "(", "t2", ".", "balance", ")", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "group", "by", "t1", ".", "name" ], "question": "What are the names of customers with accounts, and what are the total savings balances for each?", "question_toks": [ "what", "are", "name", "of", "customer", "with", "account", ",", "and", "what", "are", "total", "saving", "balance", "for", "each", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [ [ 0, 2, false ] ], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 4, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "with", "accounts", ",", "and", "what", "are", "the", "total", "savings", "balances", "for", "each", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "with" ], [ "account" ], [ "," ], [ "and" ], [ "what" ], [ "are" ], [ "total" ], [ "saving" ], [ "balance" ], [ "for" ], [ "each" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "account", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WDT" ], [ "are", "VBP" ], [ "total", "JJ" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "for", "IN" ], [ "each", "DT" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(4) C(3) T(1) A(0) C(2) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM checking)", "query_toks": [ "SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", "<", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "checking", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", "<", "(", "select", "avg", "(", "balance", ")", "from", "checking", ")" ], "question": "Find the name of accounts whose checking balance is below the average checking balance.", "question_toks": [ "find", "name", "of", "account", "whose", "checking", "balance", "is", "below", "average", "checking", "balance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, 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, 4, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "name", "of", "accounts", "whose", "checking", "balance", "is", "below", "the", "average", "checking", "balance", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "account" ], [ "whose" ], [ "checking" ], [ "balance" ], [ "is" ], [ "below" ], [ "average" ], [ "checking" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "whose", "WP$" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "is", "VBZ" ], [ "below", "JJ" ], [ "average", "JJ" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(12) A(0) C(3) T(2) Root(5) Sel(0) N(0) A(5) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM checking)", "query_toks": [ "SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", "<", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "checking", ")" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", "<", "(", "select", "avg", "(", "balance", ")", "from", "checking", ")" ], "question": "What are the names of customers with checking balances lower than the average checking balance?", "question_toks": [ "what", "are", "name", "of", "customer", "with", "checking", "balance", "lower", "than", "average", "checking", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, 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, 4, [ 0, [ 0, 6, false ], null ], { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 5, [ 0, [ 0, 6, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "with", "checking", "balances", "lower", "than", "the", "average", "checking", "balance", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "with" ], [ "checking" ], [ "balance" ], [ "lower" ], [ "than" ], [ "average" ], [ "checking" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "agg" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "average", "JJ" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(12) A(0) C(3) T(2) Root(5) Sel(0) N(0) A(5) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1", "query_toks": [ "SELECT", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "desc", "limit", "value" ], "question": "Find the saving balance of the account with the highest checking balance.", "question_toks": [ "find", "saving", "balance", "of", "account", "with", "highest", "checking", "balance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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 ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "saving", "balance", "of", "the", "account", "with", "the", "highest", "checking", "balance", "." ], "question_arg": [ [ "find" ], [ "saving" ], [ "balance" ], [ "of" ], [ "account" ], [ "with" ], [ "highest" ], [ "checking" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "saving", "JJ" ], [ "balance", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(3) T(1) Sup(0) A(0) C(3) T(2) Filter(18) A(0) C(1) T(2) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1", "query_toks": [ "SELECT", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "desc", "limit", "value" ], "question": "What is the savings balance of the account belonging to the customer with the highest checking balance?", "question_toks": [ "what", "is", "saving", "balance", "of", "account", "belonging", "to", "customer", "with", "highest", "checking", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "desc", [ [ 0, [ 0, 6, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 5, 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 ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "savings", "balance", "of", "the", "account", "belonging", "to", "the", "customer", "with", "the", "highest", "checking", "balance", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "saving" ], [ "balance" ], [ "of" ], [ "account" ], [ "belonging" ], [ "to" ], [ "customer" ], [ "with" ], [ "highest" ], [ "checking" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "belonging", "NN" ], [ "to", "TO" ], [ "customer", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(0) Sel(0) N(0) A(0) C(3) T(1) Sup(0) A(0) C(3) T(2) Filter(18) A(0) C(1) T(2) Root(5) Sel(0) N(0) A(0) C(1) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance", "query_toks": [ "SELECT", "T1.balance", "+", "T2.balance", "FROM", "checking", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "ORDER", "BY", "T1.balance", "+", "T2.balance" ], "query_toks_no_value": [ "select", "t1", ".", "balance", "+", "t2", ".", "balance", "from", "checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "order", "by", "t1", ".", "balance", "+", "t2", ".", "balance" ], "question": "Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.", "question_toks": [ "find", "total", "checking", "and", "saving", "balance", "of", "all", "account", "sorted", "by", "total", "balance", "in", "ascending", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 2, [ 0, 6, false ], [ 0, 4, false ] ] ] ], "select": [ false, [ [ 0, [ 2, [ 0, 6, false ], [ 0, 4, false ] ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "total", "checking", "and", "saving", "balance", "of", "all", "accounts", "sorted", "by", "the", "total", "balance", "in", "ascending", "order", "." ], "question_arg": [ [ "find" ], [ "total" ], [ "checking" ], [ "and" ], [ "saving" ], [ "balance" ], [ "of" ], [ "all" ], [ "account" ], [ "sorted" ], [ "by" ], [ "total" ], [ "balance" ], [ "in" ], [ "ascending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "total", "JJ" ], [ "checking", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "total", "JJ" ], [ "balance", "NN" ], [ "in", "IN" ], [ "ascending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(2) Order(1) A(0) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance", "query_toks": [ "SELECT", "T1.balance", "+", "T2.balance", "FROM", "checking", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "ORDER", "BY", "T1.balance", "+", "T2.balance" ], "query_toks_no_value": [ "select", "t1", ".", "balance", "+", "t2", ".", "balance", "from", "checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "order", "by", "t1", ".", "balance", "+", "t2", ".", "balance" ], "question": "What is the sum of checking and savings balances for all customers, ordered by the total balance?", "question_toks": [ "what", "is", "sum", "of", "checking", "and", "saving", "balance", "for", "all", "customer", ",", "ordered", "by", "total", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 5, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "asc", [ [ 2, [ 0, 6, false ], [ 0, 4, false ] ] ] ], "select": [ false, [ [ 0, [ 2, [ 0, 6, false ], [ 0, 4, false ] ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "sum", "of", "checking", "and", "savings", "balances", "for", "all", "customers", ",", "ordered", "by", "the", "total", "balance", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "sum" ], [ "of" ], [ "checking" ], [ "and" ], [ "saving" ], [ "balance" ], [ "for" ], [ "all" ], [ "customer" ], [ "," ], [ "ordered" ], [ "by" ], [ "total" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "sum", "NN" ], [ "of", "IN" ], [ "checking", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "total", "JJ" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(3) T(2) Order(1) A(0) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT T2.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1", "query_toks": [ "SELECT", "T2.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T3.balance", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t3", ".", "balance", "limit", "value" ], "question": "Find the name and checking balance of the account with the lowest saving balance.", "question_toks": [ "find", "name", "and", "checking", "balance", "of", "account", "with", "lowest", "saving", "balance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "saving", "balance", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "checking" ], [ "balance" ], [ "of" ], [ "account" ], [ "with" ], [ "lowest" ], [ "saving" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "with", "IN" ], [ "lowest", "JJS" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(2) A(0) C(2) T(0) Sup(1) A(0) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT T2.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1", "query_toks": [ "SELECT", "T2.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T3.balance", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t2", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t3", ".", "balance", "limit", "value" ], "question": "What is the name and checking balance of the account which has the lowest savings balance?", "question_toks": [ "what", "is", "name", "and", "checking", "balance", "of", "account", "which", "ha", "lowest", "saving", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "is", "the", "name", "and", "checking", "balance", "of", "the", "account", "which", "has", "the", "lowest", "savings", "balance", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "and" ], [ "checking" ], [ "balance" ], [ "of" ], [ "account" ], [ "which" ], [ "ha" ], [ "lowest" ], [ "saving" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "and", "CC" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "which", "WDT" ], [ "ha", "VBZ" ], [ "lowest", "JJS" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(3) T(2) A(0) C(2) T(0) Sup(1) A(0) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid", "query_toks": [ "SELECT", "T2.balance", ",", "T3.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid" ], "query_toks_no_value": [ "select", "t2", ".", "balance", ",", "t3", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid" ], "question": "Find the name, checking balance and saving balance of all accounts in the bank.", "question_toks": [ "find", "name", ",", "checking", "balance", "and", "saving", "balance", "of", "all", "account", "in", "bank", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "name", ",", "checking", "balance", "and", "saving", "balance", "of", "all", "accounts", "in", "the", "bank", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "checking" ], [ "balance" ], [ "and" ], [ "saving" ], [ "balance" ], [ "of" ], [ "all" ], [ "account" ], [ "in" ], [ "bank" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ "in", "IN" ], [ "bank", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(3) T(2) A(0) C(3) T(1) A(0) C(2) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid", "query_toks": [ "SELECT", "T2.balance", ",", "T3.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid" ], "query_toks_no_value": [ "select", "t2", ".", "balance", ",", "t3", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid" ], "question": "What are the names, checking balances, and savings balances for all customers?", "question_toks": [ "what", "are", "name", ",", "checking", "balance", ",", "and", "saving", "balance", "for", "all", "customer", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "checking", "balances", ",", "and", "savings", "balances", "for", "all", "customers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "checking" ], [ "balance" ], [ "," ], [ "and" ], [ "saving" ], [ "balance" ], [ "for" ], [ "all" ], [ "customer" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "checking", "VBG" ], [ "balance", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "for", "IN" ], [ "all", "DT" ], [ "customer", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(3) T(2) A(0) C(3) T(1) A(0) C(2) T(0)" }, { "db_id": "small_bank_1", "query": "SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC", "query_toks": [ "SELECT", "T2.balance", ",", "T3.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "+", "T3.balance", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "balance", ",", "t3", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "+", "t3", ".", "balance", "desc" ], "question": "Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.", "question_toks": [ "find", "name", ",", "checking", "balance", "and", "saving", "balance", "of", "all", "account", "in", "bank", "sorted", "by", "their", "total", "checking", "and", "saving", "balance", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 2, [ 0, 6, false ], [ 0, 4, false ] ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "name", ",", "checking", "balance", "and", "savings", "balance", "of", "all", "accounts", "in", "the", "bank", "sorted", "by", "their", "total", "checking", "and", "savings", "balance", "in", "descending", "order", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "," ], [ "checking" ], [ "balance" ], [ "and" ], [ "saving" ], [ "balance" ], [ "of" ], [ "all" ], [ "account" ], [ "in" ], [ "bank" ], [ "sorted" ], [ "by" ], [ "their" ], [ "total" ], [ "checking" ], [ "and" ], [ "saving" ], [ "balance" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "NN" ], [ "name", "NN" ], [ ",", "," ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "account", "NN" ], [ "in", "IN" ], [ "bank", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "their", "PRP$" ], [ "total", "JJ" ], [ "checking", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(3) T(2) A(0) C(3) T(1) A(0) C(2) T(0) Order(0) A(0) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC", "query_toks": [ "SELECT", "T2.balance", ",", "T3.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "+", "T3.balance", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "balance", ",", "t3", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "+", "t3", ".", "balance", "desc" ], "question": "What are the names, checking balances, and savings balances of customers, ordered by the total of checking and savings balances descending?", "question_toks": [ "what", "are", "name", ",", "checking", "balance", ",", "and", "saving", "balance", "of", "customer", ",", "ordered", "by", "total", "of", "checking", "and", "saving", "balance", "descending", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 2, [ 0, 6, false ], [ 0, 4, false ] ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 6, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", ",", "checking", "balances", ",", "and", "savings", "balances", "of", "customers", ",", "ordered", "by", "the", "total", "of", "checking", "and", "savings", "balances", "descending", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "," ], [ "checking" ], [ "balance" ], [ "," ], [ "and" ], [ "saving" ], [ "balance" ], [ "of" ], [ "customer" ], [ "," ], [ "ordered" ], [ "by" ], [ "total" ], [ "of" ], [ "checking" ], [ "and" ], [ "saving" ], [ "balance" ], [ "descending" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ ",", "," ], [ "checking", "VBG" ], [ "balance", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ ",", "," ], [ "ordered", "VBN" ], [ "by", "IN" ], [ "total", "NN" ], [ "of", "IN" ], [ "checking", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "descending", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(2) A(0) C(3) T(2) A(0) C(3) T(1) A(0) C(2) T(0) Order(0) A(0) C(3) T(2)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance", "query_toks": [ "SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T2.balance", ">", "T3.balance" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t2", ".", "balance", ">", "t3", ".", "balance" ], "question": "Find the name of accounts whose checking balance is higher than corresponding saving balance.", "question_toks": [ "find", "name", "of", "account", "whose", "checking", "balance", "is", "higher", "than", "corresponding", "saving", "balance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, 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, 3, [ 0, [ 0, 6, false ], null ], [ 0, 4, false ], null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "name", "of", "accounts", "whose", "checking", "balance", "is", "higher", "than", "corresponding", "saving", "balance", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "of" ], [ "account" ], [ "whose" ], [ "checking" ], [ "balance" ], [ "is" ], [ "higher" ], [ "than" ], [ "corresponding" ], [ "saving" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "whose", "WP$" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "is", "VBZ" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "corresponding", "VBG" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [ "[0, 4, False]" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(3) T(2) V(0)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance", "query_toks": [ "SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T2.balance", ">", "T3.balance" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t2", ".", "balance", ">", "t3", ".", "balance" ], "question": "What are the names of customers with a higher checking balance than savings balance?", "question_toks": [ "what", "are", "name", "of", "customer", "with", "a", "higher", "checking", "balance", "than", "saving", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, 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, 3, [ 0, [ 0, 6, false ], null ], [ 0, 4, false ], null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "with", "a", "higher", "checking", "balance", "than", "savings", "balance", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "with" ], [ "a" ], [ "higher" ], [ "checking" ], [ "balance" ], [ "than" ], [ "saving" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "with", "IN" ], [ "a", "DT" ], [ "higher", "JJR" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ "than", "IN" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [ "[0, 4, False]" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(5) A(0) C(3) T(2) V(0)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name , T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance", "query_toks": [ "SELECT", "T1.name", ",", "T3.balance", "+", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T3.balance", "<", "T2.balance" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t3", ".", "balance", "+", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "t2", ".", "balance" ], "question": "Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.", "question_toks": [ "find", "name", "and", "total", "checking", "and", "saving", "balance", "of", "account", "whose", "saving", "balance", "is", "lower", "than", "corresponding", "checking", "balance", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, 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, [ 2, [ 0, 4, false ], [ 0, 6, false ] ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 5, 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 ], [ 0, 6, false ], null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "name", "and", "total", "checking", "and", "savings", "balance", "of", "the", "accounts", "whose", "savings", "balance", "is", "lower", "than", "corresponding", "checking", "balance", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "total" ], [ "checking" ], [ "and" ], [ "saving" ], [ "balance" ], [ "of" ], [ "account" ], [ "whose" ], [ "saving" ], [ "balance" ], [ "is" ], [ "lower" ], [ "than" ], [ "corresponding" ], [ "checking" ], [ "balance" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "total", "JJ" ], [ "checking", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "account", "NN" ], [ "whose", "WP$" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "is", "VBZ" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "corresponding", "VBG" ], [ "checking", "VBG" ], [ "balance", "NN" ], [ ".", "." ] ], "values": [ "[0, 6, False]" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) 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(4) A(0) C(3) T(1) V(0)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name , T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance", "query_toks": [ "SELECT", "T1.name", ",", "T3.balance", "+", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T3.balance", "<", "T2.balance" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t3", ".", "balance", "+", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "t2", ".", "balance" ], "question": "What are the names of customers who have a savings balance lower than their checking balance, and what is the total of their checking and savings balances?", "question_toks": [ "what", "are", "name", "of", "customer", "who", "have", "a", "saving", "balance", "lower", "than", "their", "checking", "balance", ",", "and", "what", "is", "total", "of", "their", "checking", "and", "saving", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 5, 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, [ 2, [ 0, 4, false ], [ 0, 6, false ] ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 1, false ], null ], { "select": [ false, [ [ 0, [ 0, [ 0, 5, 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 ], [ 0, 6, false ], null ] ] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "customers", "who", "have", "a", "savings", "balance", "lower", "than", "their", "checking", "balance", ",", "and", "what", "is", "the", "total", "of", "their", "checking", "and", "savings", "balances", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "customer" ], [ "who" ], [ "have" ], [ "a" ], [ "saving" ], [ "balance" ], [ "lower" ], [ "than" ], [ "their" ], [ "checking" ], [ "balance" ], [ "," ], [ "and" ], [ "what" ], [ "is" ], [ "total" ], [ "of" ], [ "their" ], [ "checking" ], [ "and" ], [ "saving" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "customer", "NN" ], [ "who", "WP" ], [ "have", "VBP" ], [ "a", "DT" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "lower", "JJR" ], [ "than", "IN" ], [ "their", "PRP$" ], [ "checking", "NN" ], [ "balance", "NN" ], [ ",", "," ], [ "and", "CC" ], [ "what", "WP" ], [ "is", "VBZ" ], [ "total", "JJ" ], [ "of", "IN" ], [ "their", "PRP$" ], [ "checking", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [ "[0, 6, False]" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) 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(4) A(0) C(3) T(1) V(0)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name , T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3", "query_toks": [ "SELECT", "T1.name", ",", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "ORDER", "BY", "T2.balance", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "order", "by", "t2", ".", "balance", "desc", "limit", "value" ], "question": "Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order.", "question_toks": [ "find", "name", "and", "saving", "balance", "of", "top", "3", "account", "with", "highest", "saving", "balance", "sorted", "by", "saving", "balance", "in", "descending", "order", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "Find", "the", "name", "and", "savings", "balance", "of", "the", "top", "3", "accounts", "with", "the", "highest", "saving", "balance", "sorted", "by", "savings", "balance", "in", "descending", "order", "." ], "question_arg": [ [ "find" ], [ "name" ], [ "and" ], [ "saving" ], [ "balance" ], [ "of" ], [ "top" ], [ "3" ], [ "account" ], [ "with" ], [ "highest" ], [ "saving" ], [ "balance" ], [ "sorted" ], [ "by" ], [ "saving" ], [ "balance" ], [ "in" ], [ "descending" ], [ "order" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "value" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "top", "JJ" ], [ "3", "CD" ], [ "account", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "sorted", "VBN" ], [ "by", "IN" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ ".", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(1) Sup(0) A(0) C(3) T(1)" }, { "db_id": "small_bank_1", "query": "SELECT T1.name , T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3", "query_toks": [ "SELECT", "T1.name", ",", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "ORDER", "BY", "T2.balance", "DESC", "LIMIT", "3" ], "query_toks_no_value": [ "select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "order", "by", "t2", ".", "balance", "desc", "limit", "value" ], "question": "What are names and savings balances of the three accounts with the highest savings balances?", "question_toks": [ "what", "are", "name", "and", "saving", "balance", "of", "three", "account", "with", "highest", "saving", "balance", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 1, false ], null ], [ 0, 3, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 3, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 4, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "customer id", "name", "customer id", "balance", "customer id", "balance" ], "table_names": [ "accounts", "savings", "checking" ], "col_set": [ "*", "customer id", "name", "balance" ], "col_table": [ -1, 0, 0, 1, 1, 2, 2 ], "keys": { "3": 3, "1": 1, "5": 5 }, "origin_question_toks": [ "What", "are", "names", "and", "savings", "balances", "of", "the", "three", "accounts", "with", "the", "highest", "savings", "balances", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "saving" ], [ "balance" ], [ "of" ], [ "three" ], [ "account" ], [ "with" ], [ "highest" ], [ "saving" ], [ "balance" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "MOST" ], [ "table" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "of", "IN" ], [ "three", "CD" ], [ "account", "NN" ], [ "with", "IN" ], [ "highest", "JJS" ], [ "saving", "VBG" ], [ "balance", "NN" ], [ "?", "." ] ], "values": [ "3" ], "rule_label": "Root1(3) Root(2) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(1) Sup(0) A(0) C(3) T(1)" }, { "db_id": "browser_web", "query": "SELECT count(*) FROM browser WHERE market_share >= 5", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "browser", "WHERE", "market_share", ">", "=", "5" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "browser", "where", "market_share", ">", "=", "value" ], "question": "How many main stream browsers whose market share is at least 5 exist?", "question_toks": [ "how", "many", "main", "stream", "browser", "whose", "market", "share", "is", "at", "least", "5", "exist", "?" ], "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, 5, [ 0, [ 0, 8, false ], null ], 5.0, null ] ] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "main", "stream", "browsers", "whose", "market", "share", "is", "at", "least", "5", "exist", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "main" ], [ "stream" ], [ "browser" ], [ "whose" ], [ "market", "share" ], [ "is" ], [ "at" ], [ "least" ], [ "5" ], [ "exist" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "value" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "main", "JJ" ], [ "stream", "NN" ], [ "browser", "NN" ], [ "whose", "WP$" ], [ "market", "NN" ], [ "share", "NN" ], [ "is", "VBZ" ], [ "at", "IN" ], [ "least", "JJS" ], [ "5", "CD" ], [ "exist", "NN" ], [ "?", "." ] ], "values": [ "5" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(3) C(0) T(1) Filter(7) A(0) C(6) T(1) V(0)" }, { "db_id": "browser_web", "query": "SELECT name FROM browser ORDER BY market_share DESC", "query_toks": [ "SELECT", "name", "FROM", "browser", "ORDER", "BY", "market_share", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "browser", "order", "by", "market_share", "desc" ], "question": "List the name of browsers in descending order by market share.", "question_toks": [ "list", "name", "of", "browser", "in", "descending", "order", "by", "market", "share", "." ], "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, 7, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "List", "the", "name", "of", "browsers", "in", "descending", "order", "by", "market", "share", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "browser" ], [ "in" ], [ "descending" ], [ "order" ], [ "by" ], [ "market", "share" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "browser", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "by", "IN" ], [ "market", "NN" ], [ "share", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(1) Order(0) A(0) C(6) T(1)" }, { "db_id": "browser_web", "query": "SELECT id , name , market_share FROM browser", "query_toks": [ "SELECT", "id", ",", "name", ",", "market_share", "FROM", "browser" ], "query_toks_no_value": [ "select", "id", ",", "name", ",", "market_share", "from", "browser" ], "question": "List the ids, names and market shares of all browsers.", "question_toks": [ "list", "id", ",", "name", "and", "market", "share", "of", "all", "browser", "." ], "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 ] ], [ 0, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "List", "the", "ids", ",", "names", "and", "market", "shares", "of", "all", "browsers", "." ], "question_arg": [ [ "list" ], [ "id" ], [ "," ], [ "name" ], [ "and" ], [ "market", "share" ], [ "of" ], [ "all" ], [ "browser" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "id", "NN" ], [ ",", "," ], [ "name", "NN" ], [ "and", "CC" ], [ "market", "NN" ], [ "share", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "browser", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(0) C(1) T(1) A(0) C(2) T(1) A(0) C(6) T(1)" }, { "db_id": "browser_web", "query": "SELECT max(market_share) , min(market_share) , avg(market_share) FROM browser", "query_toks": [ "SELECT", "max", "(", "market_share", ")", ",", "min", "(", "market_share", ")", ",", "avg", "(", "market_share", ")", "FROM", "browser" ], "query_toks_no_value": [ "select", "max", "(", "market_share", ")", ",", "min", "(", "market_share", ")", ",", "avg", "(", "market_share", ")", "from", "browser" ], "question": "What is the maximum, minimum and average market share of the listed browsers?", "question_toks": [ "what", "is", "maximum", ",", "minimum", "and", "average", "market", "share", "of", "listed", "browser", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 1, [ 0, [ 0, 8, false ], null ] ], [ 2, [ 0, [ 0, 8, false ], null ] ], [ 5, [ 0, [ 0, 8, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "maximum", ",", "minimum", "and", "average", "market", "share", "of", "the", "listed", "browsers", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "maximum" ], [ "," ], [ "minimum" ], [ "and" ], [ "average" ], [ "market", "share" ], [ "of" ], [ "listed" ], [ "browser" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "NONE" ], [ "agg" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "maximum", "JJ" ], [ ",", "," ], [ "minimum", "JJ" ], [ "and", "CC" ], [ "average", "JJ" ], [ "market", "NN" ], [ "share", "NN" ], [ "of", "IN" ], [ "listed", "VBN" ], [ "browser", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(2) A(1) C(6) T(1) A(2) C(6) T(1) A(5) C(6) T(1)" }, { "db_id": "browser_web", "query": "SELECT id , market_share FROM browser WHERE name = 'Safari'", "query_toks": [ "SELECT", "id", ",", "market_share", "FROM", "browser", "WHERE", "name", "=", "'Safari", "'" ], "query_toks_no_value": [ "select", "id", ",", "market_share", "from", "browser", "where", "name", "=", "value" ], "question": "What is the id and market share of the browser Safari?", "question_toks": [ "what", "is", "id", "and", "market", "share", "of", "browser", "safari", "?" ], "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, 8, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Safari\"", null ] ] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "market", "share", "of", "the", "browser", "Safari", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "market", "share" ], [ "of" ], [ "browser" ], [ "safari" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "market", "NN" ], [ "share", "NN" ], [ "of", "IN" ], [ "browser", "NN" ], [ "safari", "NN" ], [ "?", "." ] ], "values": [ "Safari" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(1) T(1) A(0) C(6) T(1) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "browser_web", "query": "SELECT name , operating_system FROM web_client_accelerator WHERE CONNECTION != 'Broadband'", "query_toks": [ "SELECT", "name", ",", "operating_system", "FROM", "web_client_accelerator", "WHERE", "CONNECTION", "!", "=", "'Broadband", "'" ], "query_toks_no_value": [ "select", "name", ",", "operating_system", "from", "web_client_accelerator", "where", "connection", "!", "=", "value" ], "question": "What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection?", "question_toks": [ "what", "are", "name", "and", "o", "of", "web", "client", "accelerator", "that", "do", "not", "work", "with", "only", "a", "'", "broadband", "'", "type", "connection", "?" ], "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, 7, [ 0, [ 0, 5, false ], null ], "\"Broadband\"", null ] ] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "name", "and", "os", "of", "web", "client", "accelerators", "that", "do", "not", "work", "with", "only", "a", "'Broadband", "'", "type", "connection", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "o" ], [ "of" ], [ "web", "client", "accelerator" ], [ "that" ], [ "do" ], [ "not" ], [ "work" ], [ "with" ], [ "only" ], [ "a" ], [ "'" ], [ "broadband" ], [ "'" ], [ "type" ], [ "connection" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "o", "NN" ], [ "of", "IN" ], [ "web", "JJ" ], [ "client", "NN" ], [ "accelerator", "NN" ], [ "that", "WDT" ], [ "do", "VBP" ], [ "not", "RB" ], [ "work", "VB" ], [ "with", "IN" ], [ "only", "RB" ], [ "a", "DT" ], [ "'", "''" ], [ "broadband", "NN" ], [ "'", "POS" ], [ "type", "NN" ], [ "connection", "NN" ], [ "?", "." ] ], "values": [ "Broadband" ], "rule_label": "Root1(3) Root(3) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Filter(3) A(0) C(5) T(0) V(0)" }, { "db_id": "browser_web", "query": "SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id = T3.id WHERE T3.name = 'CProxy' AND T2.compatible_since_year > 1998", "query_toks": [ "SELECT", "T1.name", "FROM", "browser", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T1.id", "=", "T2.browser_id", "JOIN", "web_client_accelerator", "AS", "T3", "ON", "T2.accelerator_id", "=", "T3.id", "WHERE", "T3.name", "=", "'CProxy", "'", "AND", "T2.compatible_since_year", ">", "1998" ], "query_toks_no_value": [ "select", "t1", ".", "name", "from", "browser", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "browser_id", "join", "web_client_accelerator", "as", "t3", "on", "t2", ".", "accelerator_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "compatible_since_year", ">", "value" ], "question": "What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?", "question_toks": [ "what", "is", "name", "of", "browser", "that", "became", "compatible", "with", "accelerator", "'", "cproxy", "'", "after", "year", "year", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, 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, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 2, [ 0, [ 0, 2, false ], null ], "\"CProxy\"", null ], "and", [ false, 3, [ 0, [ 0, 11, false ], null ], 1998.0, null ] ] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "browser", "that", "became", "compatible", "with", "the", "accelerator", "'CProxy", "'", "after", "year", "1998", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "browser" ], [ "that" ], [ "became" ], [ "compatible" ], [ "with" ], [ "accelerator" ], [ "'" ], [ "cproxy" ], [ "'" ], [ "after" ], [ "year" ], [ "year" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "browser", "NN" ], [ "that", "WDT" ], [ "became", "VBD" ], [ "compatible", "JJ" ], [ "with", "IN" ], [ "accelerator", "NN" ], [ "'", "''" ], [ "cproxy", "NN" ], [ "'", "''" ], [ "after", "IN" ], [ "year", "NN" ], [ "1998", "CD" ], [ "?", "." ] ], "values": [ "1998", "CProxy" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(2) A(0) C(2) T(0) V(1) Filter(5) A(0) C(9) T(2) V(0)" }, { "db_id": "browser_web", "query": "SELECT T1.id , T1.Name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id GROUP BY T1.id HAVING count(*) >= 2", "query_toks": [ "SELECT", "T1.id", ",", "T1.Name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2.accelerator_id", "=", "T1.id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "=", "2" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value" ], "question": "What are the ids and names of the web accelerators that are compatible with two or more browsers?", "question_toks": [ "what", "are", "id", "and", "name", "of", "web", "accelerator", "that", "are", "compatible", "with", "two", "or", "more", "browser", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [ [ 0, 1, false ] ], "having": [ [ false, 5, [ 0, [ 3, 0, false ], null ], 2.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, 9, 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", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "are", "the", "ids", "and", "names", "of", "the", "web", "accelerators", "that", "are", "compatible", "with", "two", "or", "more", "browsers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "web" ], [ "accelerator" ], [ "that" ], [ "are" ], [ "compatible" ], [ "with" ], [ "two" ], [ "or" ], [ "more" ], [ "browser" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MORE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "web", "NN" ], [ "accelerator", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "compatible", "JJ" ], [ "with", "IN" ], [ "two", "CD" ], [ "or", "CC" ], [ "more", "JJR" ], [ "browser", "NNS" ], [ "?", "." ] ], "values": [ "2" ], "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(2) Filter(7) A(3) C(0) T(2) V(0)" }, { "db_id": "browser_web", "query": "SELECT T1.id , T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1", "query_toks": [ "SELECT", "T1.id", ",", "T1.name", "FROM", "browser", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T1.id", "=", "T2.browser_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "t1", ".", "id", ",", "t1", ".", "name", "from", "browser", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "browser_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ], "question": "What is the id and name of the browser that is compatible with the most web accelerators?", "question_toks": [ "what", "is", "id", "and", "name", "of", "browser", "that", "is", "compatible", "with", "most", "web", "accelerator", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 6, false ], null ], [ 0, 10, 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 ] ], [ 0, [ 0, [ 0, 7, false ], null ] ] ] ], "union": null, "where": [ [ false, 8, [ 0, [ 0, 6, 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": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "is", "the", "id", "and", "name", "of", "the", "browser", "that", "is", "compatible", "with", "the", "most", "web", "accelerators", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "id" ], [ "and" ], [ "name" ], [ "of" ], [ "browser" ], [ "that" ], [ "is" ], [ "compatible" ], [ "with" ], [ "most" ], [ "web" ], [ "accelerator" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "id", "JJ" ], [ "and", "CC" ], [ "name", "NN" ], [ "of", "IN" ], [ "browser", "NN" ], [ "that", "WDT" ], [ "is", "VBZ" ], [ "compatible", "JJ" ], [ "with", "IN" ], [ "most", "JJS" ], [ "web", "NNS" ], [ "accelerator", "NN" ], [ "?", "." ] ], "values": [], "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(8) T(2)" }, { "db_id": "browser_web", "query": "SELECT T1.compatible_since_year FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id WHERE T3.name = 'CACHEbox' AND T2.name = 'Internet Explorer'", "query_toks": [ "SELECT", "T1.compatible_since_year", "FROM", "accelerator_compatible_browser", "AS", "T1", "JOIN", "browser", "AS", "T2", "ON", "T1.browser_id", "=", "T2.id", "JOIN", "web_client_accelerator", "AS", "T3", "ON", "T1.accelerator_id", "=", "T3.id", "WHERE", "T3.name", "=", "'CACHEbox", "'", "AND", "T2.name", "=", "'Internet", "Explorer", "'" ], "query_toks_no_value": [ "select", "t1", ".", "compatible_since_year", "from", "accelerator_compatible_browser", "as", "t1", "join", "browser", "as", "t2", "on", "t1", ".", "browser_id", "=", "t2", ".", "id", "join", "web_client_accelerator", "as", "t3", "on", "t1", ".", "accelerator_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value" ], "question": "When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible?", "question_toks": [ "when", "did", "web", "accelerator", "'", "cachebox", "'", "and", "browser", "'", "internet", "explorer", "'", "become", "compatible", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, 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, 2, false ], null ], "\"CACHEbox\"", null ], "and", [ false, 2, [ 0, [ 0, 7, false ], null ], "\"Internet Explorer\"", null ] ] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "When", "did", "the", "web", "accelerator", "'CACHEbox", "'", "and", "browser", "'Internet", "Explorer", "'", "become", "compatible", "?" ], "question_arg": [ [ "when" ], [ "did" ], [ "web" ], [ "accelerator" ], [ "'" ], [ "cachebox" ], [ "'" ], [ "and" ], [ "browser" ], [ "'" ], [ "internet" ], [ "explorer" ], [ "'" ], [ "become" ], [ "compatible" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "connection" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "when", "WRB" ], [ "did", "VBD" ], [ "web", "VB" ], [ "accelerator", "NN" ], [ "'", "''" ], [ "cachebox", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "browser", "NN" ], [ "'", "''" ], [ "internet", "JJ" ], [ "explorer", "NN" ], [ "'", "POS" ], [ "become", "NN" ], [ "compatible", "JJ" ], [ "?", "." ] ], "values": [ "CACHEbox", "Internet Explorer" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(9) T(2) Filter(0) Filter(2) A(0) C(2) T(0) V(0) Filter(2) A(0) C(2) T(1) V(1)" }, { "db_id": "browser_web", "query": "SELECT count(DISTINCT client) FROM web_client_accelerator", "query_toks": [ "SELECT", "count", "(", "DISTINCT", "client", ")", "FROM", "web_client_accelerator" ], "query_toks_no_value": [ "select", "count", "(", "distinct", "client", ")", "from", "web_client_accelerator" ], "question": "How many different kinds of clients are supported by the web clients accelerators?", "question_toks": [ "how", "many", "different", "kind", "of", "client", "are", "supported", "by", "web", "client", "accelerator", "?" ], "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": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "different", "kinds", "of", "clients", "are", "supported", "by", "the", "web", "clients", "accelerators", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "different" ], [ "kind" ], [ "of" ], [ "client" ], [ "are" ], [ "supported" ], [ "by" ], [ "web", "client", "accelerator" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "different", "JJ" ], [ "kind", "NN" ], [ "of", "IN" ], [ "client", "NN" ], [ "are", "VBP" ], [ "supported", "VBN" ], [ "by", "IN" ], [ "web", "JJ" ], [ "client", "NN" ], [ "accelerator", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(1) N(0) A(3) C(4) T(0)" }, { "db_id": "browser_web", "query": "SELECT count(*) FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser );", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "web_client_accelerator", "WHERE", "id", "NOT", "IN", "(", "SELECT", "accelerator_id", "FROM", "accelerator_compatible_browser", ")", ";" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "web_client_accelerator", "where", "id", "not", "in", "(", "select", "accelerator_id", "from", "accelerator_compatible_browser", ")" ], "question": "How many accelerators are not compatible with the browsers listed ?", "question_toks": [ "how", "many", "accelerator", "are", "not", "compatible", "with", "browser", "listed", "?" ], "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", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, null ] ] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "How", "many", "accelerators", "are", "not", "compatible", "with", "the", "browsers", "listed", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "accelerator" ], [ "are" ], [ "not" ], [ "compatible" ], [ "with" ], [ "browser" ], [ "listed" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "accelerator", "NN" ], [ "are", "VBP" ], [ "not", "RB" ], [ "compatible", "JJ" ], [ "with", "IN" ], [ "browser", "NN" ], [ "listed", "VBN" ], [ "?", "." ] ], "values": [], "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(5) Sel(0) N(0) A(0) C(7) T(2)" }, { "db_id": "browser_web", "query": "SELECT DISTINCT T1.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.market_share > 15;", "query_toks": [ "SELECT", "DISTINCT", "T1.name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2.accelerator_id", "=", "T1.id", "JOIN", "browser", "AS", "T3", "ON", "T2.browser_id", "=", "T3.id", "WHERE", "T3.market_share", ">", "15", ";" ], "query_toks_no_value": [ "select", "distinct", "t1", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "join", "browser", "as", "t3", "on", "t2", ".", "browser_id", "=", "t3", ".", "id", "where", "t3", ".", "market_share", ">", "value" ], "question": "What distinct accelerator names are compatible with the browswers that have market share higher than 15?", "question_toks": [ "what", "distinct", "accelerator", "name", "are", "compatible", "with", "browswers", "that", "have", "market", "share", "higher", "than", "15", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "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, 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, 3, [ 0, [ 0, 8, false ], null ], 15.0, null ] ] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "What", "distinct", "accelerator", "names", "are", "compatible", "with", "the", "browswers", "that", "have", "market", "share", "higher", "than", "15", "?" ], "question_arg": [ [ "what" ], [ "distinct" ], [ "accelerator" ], [ "name" ], [ "are" ], [ "compatible" ], [ "with" ], [ "browswers" ], [ "that" ], [ "have" ], [ "market", "share" ], [ "higher" ], [ "than" ], [ "15" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "MORE" ], [ "NONE" ], [ "value" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "distinct", "VBZ" ], [ "accelerator", "NN" ], [ "name", "NN" ], [ "are", "VBP" ], [ "compatible", "JJ" ], [ "with", "IN" ], [ "browswers", "NNS" ], [ "that", "WDT" ], [ "have", "VBP" ], [ "market", "NN" ], [ "share", "NN" ], [ "higher", "JJR" ], [ "than", "IN" ], [ "15", "CD" ], [ "?", "." ] ], "values": [ "15" ], "rule_label": "Root1(3) Root(3) Sel(1) 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(7) T(2) Filter(5) A(0) C(6) T(1) V(0)" }, { "db_id": "browser_web", "query": "SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'CACHEbox' INTERSECT SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'Fasterfox'", "query_toks": [ "SELECT", "T3.name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2.accelerator_id", "=", "T1.id", "JOIN", "browser", "AS", "T3", "ON", "T2.browser_id", "=", "T3.id", "WHERE", "T1.name", "=", "'CACHEbox", "'", "INTERSECT", "SELECT", "T3.name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2.accelerator_id", "=", "T1.id", "JOIN", "browser", "AS", "T3", "ON", "T2.browser_id", "=", "T3.id", "WHERE", "T1.name", "=", "'Fasterfox", "'" ], "query_toks_no_value": [ "select", "t3", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "join", "browser", "as", "t3", "on", "t2", ".", "browser_id", "=", "t3", ".", "id", "where", "t1", ".", "name", "=", "value", "intersect", "select", "t3", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "join", "browser", "as", "t3", "on", "t2", ".", "browser_id", "=", "t3", ".", "id", "where", "t1", ".", "name", "=", "value" ], "question": "List the names of the browser that are compatible with both 'CACHEbox' and 'Fasterfox'.", "question_toks": [ "list", "name", "of", "browser", "that", "are", "compatible", "with", "both", "'", "cachebox", "'", "and", "'", "fasterfox", "'", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 0 ], [ "table_unit", 2 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"Fasterfox\"", null ] ] }, "limit": null, "orderBy": [], "select": [ false, [ [ 0, [ 0, [ 0, 7, 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", 2 ] ], "conds": [] }, "where": [], "groupBy": [], "orderBy": [], "having": [], "limit": null, "intersect": null, "except": null, "union": null }, null ], "and", [ false, 2, [ 0, [ 0, 2, false ], null ], "\"CACHEbox\"", null ] ] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "List", "the", "names", "of", "the", "browser", "that", "are", "compatible", "with", "both", "'CACHEbox", "'", "and", "'Fasterfox", "'", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "browser" ], [ "that" ], [ "are" ], [ "compatible" ], [ "with" ], [ "both" ], [ "'" ], [ "cachebox" ], [ "'" ], [ "and" ], [ "'" ], [ "fasterfox" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "browser", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "compatible", "JJ" ], [ "with", "IN" ], [ "both", "DT" ], [ "'", "''" ], [ "cachebox", "NN" ], [ "'", "POS" ], [ "and", "CC" ], [ "'", "POS" ], [ "fasterfox", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Fasterfox", "CACHEbox" ], "rule_label": "Root1(0) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(2) T(0) V(1) Root(3) Sel(0) N(0) A(0) C(2) T(1) Filter(0) Filter(18) A(0) C(1) T(0) Root(5) Sel(0) N(0) A(0) C(7) T(2) Filter(2) A(0) C(2) T(0) V(0)" }, { "db_id": "browser_web", "query": "SELECT name , operating_system FROM web_client_accelerator EXCEPT SELECT T1.name , T1.operating_system FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.name = 'Opera'", "query_toks": [ "SELECT", "name", ",", "operating_system", "FROM", "web_client_accelerator", "EXCEPT", "SELECT", "T1.name", ",", "T1.operating_system", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2.accelerator_id", "=", "T1.id", "JOIN", "browser", "AS", "T3", "ON", "T2.browser_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Opera", "'" ], "query_toks_no_value": [ "select", "name", ",", "operating_system", "from", "web_client_accelerator", "except", "select", "t1", ".", "name", ",", "t1", ".", "operating_system", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "join", "browser", "as", "t3", "on", "t2", ".", "browser_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value" ], "question": "Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.", "question_toks": [ "show", "accelerator", "name", "and", "supporting", "operating", "system", "that", "are", "not", "compatible", "with", "browser", "named", "'", "opera", "'", "." ], "sql": { "except": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 9, false ], null ], [ 0, 1, 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, 8, [ 0, [ 0, 1, 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, 7, false ], null ], "\"Opera\"", 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", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "Show", "the", "accelerator", "names", "and", "supporting", "operating", "systems", "that", "are", "not", "compatible", "with", "the", "browser", "named", "'Opera", "'", "." ], "question_arg": [ [ "show" ], [ "accelerator" ], [ "name" ], [ "and" ], [ "supporting" ], [ "operating", "system" ], [ "that" ], [ "are" ], [ "not" ], [ "compatible" ], [ "with" ], [ "browser" ], [ "named" ], [ "'" ], [ "opera" ], [ "'" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "show", "NN" ], [ "accelerator", "NN" ], [ "name", "NN" ], [ "and", "CC" ], [ "supporting", "VBG" ], [ "operating", "NN" ], [ "system", "NN" ], [ "that", "WDT" ], [ "are", "VBP" ], [ "not", "RB" ], [ "compatible", "JJ" ], [ "with", "IN" ], [ "browser", "NN" ], [ "named", "VBN" ], [ "'", "''" ], [ "opera", "NN" ], [ "'", "POS" ], [ ".", "." ] ], "values": [ "Opera" ], "rule_label": "Root1(2) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(3) T(0) Root(3) Sel(0) N(1) A(0) C(2) T(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(7) T(2) Filter(2) A(0) C(2) T(1) V(0)" }, { "db_id": "browser_web", "query": "SELECT name FROM web_client_accelerator WHERE name LIKE \"%Opera%\"", "query_toks": [ "SELECT", "name", "FROM", "web_client_accelerator", "WHERE", "name", "LIKE", "``", "%", "Opera", "%", "''" ], "query_toks_no_value": [ "select", "name", "from", "web_client_accelerator", "where", "name", "like", "value" ], "question": "Which accelerator name contains substring \"Opera\"?", "question_toks": [ "which", "accelerator", "name", "contains", "substring", "'", "opera", "'", "?" ], "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, 9, [ 0, [ 0, 2, false ], null ], "\"%Opera%\"", null ] ] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "Which", "accelerator", "name", "contains", "substring", "``", "Opera", "''", "?" ], "question_arg": [ [ "which" ], [ "accelerator" ], [ "name" ], [ "contains" ], [ "substring" ], [ "'" ], [ "opera" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "which", "WDT" ], [ "accelerator", "NN" ], [ "name", "NN" ], [ "contains", "VBZ" ], [ "substring", "VBG" ], [ "'", "''" ], [ "opera", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Opera" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(2) T(0) Filter(9) A(0) C(2) T(0) V(0)" }, { "db_id": "browser_web", "query": "SELECT Operating_system , count(*) FROM web_client_accelerator GROUP BY Operating_system", "query_toks": [ "SELECT", "Operating_system", ",", "count", "(", "*", ")", "FROM", "web_client_accelerator", "GROUP", "BY", "Operating_system" ], "query_toks_no_value": [ "select", "operating_system", ",", "count", "(", "*", ")", "from", "web_client_accelerator", "group", "by", "operating_system" ], "question": "Find the number of web accelerators used for each Operating system.", "question_toks": [ "find", "number", "of", "web", "accelerator", "used", "for", "each", "operating", "system", "." ], "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", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "Find", "the", "number", "of", "web", "accelerators", "used", "for", "each", "Operating", "system", "." ], "question_arg": [ [ "find" ], [ "number" ], [ "of" ], [ "web" ], [ "accelerator" ], [ "used" ], [ "for" ], [ "each" ], [ "operating", "system" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "find", "VB" ], [ "number", "NN" ], [ "of", "IN" ], [ "web", "JJ" ], [ "accelerator", "NN" ], [ "used", "VBN" ], [ "for", "IN" ], [ "each", "DT" ], [ "operating", "NN" ], [ "system", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(3) T(0) A(3) C(0) T(0)" }, { "db_id": "browser_web", "query": "SELECT T2.name , T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id ORDER BY T1.compatible_since_year DESC", "query_toks": [ "SELECT", "T2.name", ",", "T3.name", "FROM", "accelerator_compatible_browser", "AS", "T1", "JOIN", "browser", "AS", "T2", "ON", "T1.browser_id", "=", "T2.id", "JOIN", "web_client_accelerator", "AS", "T3", "ON", "T1.accelerator_id", "=", "T3.id", "ORDER", "BY", "T1.compatible_since_year", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t3", ".", "name", "from", "accelerator_compatible_browser", "as", "t1", "join", "browser", "as", "t2", "on", "t1", ".", "browser_id", "=", "t2", ".", "id", "join", "web_client_accelerator", "as", "t3", "on", "t1", ".", "accelerator_id", "=", "t3", ".", "id", "order", "by", "t1", ".", "compatible_since_year", "desc" ], "question": "give me names of all compatible browsers and accelerators in the descending order of compatible year", "question_toks": [ "give", "me", "name", "of", "all", "compatible", "browser", "and", "accelerator", "in", "descending", "order", "of", "compatible", "year" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 10, false ], null ], [ 0, 6, false ], null ] ], "table_units": [ [ "table_unit", 2 ], [ "table_unit", 1 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 11, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 7, false ], null ] ], [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "id", "name", "operating system", "client", "connection", "id", "name", "market share", "accelerator id", "browser id", "compatible since year" ], "table_names": [ "web client accelerator", "browser", "accelerator compatible browser" ], "col_set": [ "*", "id", "name", "operating system", "client", "connection", "market share", "accelerator id", "browser id", "compatible since year" ], "col_table": [ -1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2 ], "keys": { "10": 6, "6": 6, "9": 9, "1": 1 }, "origin_question_toks": [ "give", "me", "names", "of", "all", "compatible", "browsers", "and", "accelerators", "in", "the", "descending", "order", "of", "compatible", "year" ], "question_arg": [ [ "give" ], [ "me" ], [ "name" ], [ "of" ], [ "all" ], [ "compatible" ], [ "browser" ], [ "and" ], [ "accelerator" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "compatible" ], [ "year" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "me", "PRP" ], [ "name", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "compatible", "JJ" ], [ "browser", "NN" ], [ "and", "CC" ], [ "accelerator", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "compatible", "JJ" ], [ "year", "NN" ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(1) A(0) C(2) T(0) Order(0) A(0) C(9) T(2)" }, { "db_id": "wrestler", "query": "SELECT count(*) FROM wrestler", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "wrestler" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "wrestler" ], "question": "How many wrestlers are there?", "question_toks": [ "how", "many", "wrestler", "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": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "How", "many", "wrestlers", "are", "there", "?" ], "question_arg": [ [ "how" ], [ "many" ], [ "wrestler" ], [ "are" ], [ "there" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "how", "WRB" ], [ "many", "JJ" ], [ "wrestler", "NN" ], [ "are", "VBP" ], [ "there", "RB" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "wrestler", "query": "SELECT count(*) FROM wrestler", "query_toks": [ "SELECT", "count", "(", "*", ")", "FROM", "wrestler" ], "query_toks_no_value": [ "select", "count", "(", "*", ")", "from", "wrestler" ], "question": "Count the number of wrestlers.", "question_toks": [ "count", "number", "of", "wrestler", "." ], "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": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Count", "the", "number", "of", "wrestlers", "." ], "question_arg": [ [ "count" ], [ "number" ], [ "of" ], [ "wrestler" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "count", "NN" ], [ "number", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(0) A(3) C(0) T(0)" }, { "db_id": "wrestler", "query": "SELECT Name FROM wrestler ORDER BY Days_held DESC", "query_toks": [ "SELECT", "Name", "FROM", "wrestler", "ORDER", "BY", "Days_held", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "wrestler", "order", "by", "days_held", "desc" ], "question": "List the names of wrestlers in descending order of days held.", "question_toks": [ "list", "name", "of", "wrestler", "in", "descending", "order", "of", "day", "held", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "List", "the", "names", "of", "wrestlers", "in", "descending", "order", "of", "days", "held", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "wrestler" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "day", "held" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "day", "NN" ], [ "held", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(0) A(0) C(4) T(0)" }, { "db_id": "wrestler", "query": "SELECT Name FROM wrestler ORDER BY Days_held DESC", "query_toks": [ "SELECT", "Name", "FROM", "wrestler", "ORDER", "BY", "Days_held", "DESC" ], "query_toks_no_value": [ "select", "name", "from", "wrestler", "order", "by", "days_held", "desc" ], "question": "What are the names of the wrestlers, ordered descending by days held?", "question_toks": [ "what", "are", "name", "of", "wrestler", ",", "ordered", "descending", "by", "day", "held", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "the", "wrestlers", ",", "ordered", "descending", "by", "days", "held", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wrestler" ], [ "," ], [ "ordered" ], [ "descending" ], [ "by" ], [ "day", "held" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ ",", "," ], [ "ordered", "VBD" ], [ "descending", "NN" ], [ "by", "IN" ], [ "day", "NN" ], [ "held", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(0) A(0) C(2) T(0) Order(0) A(0) C(4) T(0)" }, { "db_id": "wrestler", "query": "SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "wrestler", "ORDER", "BY", "Days_held", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "wrestler", "order", "by", "days_held", "asc", "limit", "value" ], "question": "What is the name of the wrestler with the fewest days held?", "question_toks": [ "what", "is", "name", "of", "wrestler", "with", "fewest", "day", "held", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "is", "the", "name", "of", "the", "wrestler", "with", "the", "fewest", "days", "held", "?" ], "question_arg": [ [ "what" ], [ "is" ], [ "name" ], [ "of" ], [ "wrestler" ], [ "with" ], [ "fewest" ], [ "day", "held" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WP" ], [ "is", "VBZ" ], [ "name", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "with", "IN" ], [ "fewest", "JJ" ], [ "day", "NN" ], [ "held", "VBD" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(1) A(0) C(4) T(0)" }, { "db_id": "wrestler", "query": "SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1", "query_toks": [ "SELECT", "Name", "FROM", "wrestler", "ORDER", "BY", "Days_held", "ASC", "LIMIT", "1" ], "query_toks_no_value": [ "select", "name", "from", "wrestler", "order", "by", "days_held", "asc", "limit", "value" ], "question": "Return the name of the wrestler who had the lowest number of days held.", "question_toks": [ "return", "name", "of", "wrestler", "who", "had", "lowest", "number", "of", "day", "held", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": 1, "orderBy": [ "asc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Return", "the", "name", "of", "the", "wrestler", "who", "had", "the", "lowest", "number", "of", "days", "held", "." ], "question_arg": [ [ "return" ], [ "name" ], [ "of" ], [ "wrestler" ], [ "who" ], [ "had" ], [ "lowest" ], [ "number" ], [ "of" ], [ "day", "held" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "MOST" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "who", "WP" ], [ "had", "VBD" ], [ "lowest", "JJS" ], [ "number", "NN" ], [ "of", "IN" ], [ "day", "NN" ], [ "held", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(2) Sel(0) N(0) A(0) C(2) T(0) Sup(1) A(0) C(4) T(0)" }, { "db_id": "wrestler", "query": "SELECT DISTINCT Reign FROM wrestler WHERE LOCATION != \"Tokyo , Japan\"", "query_toks": [ "SELECT", "DISTINCT", "Reign", "FROM", "wrestler", "WHERE", "LOCATION", "!", "=", "``", "Tokyo", ",", "Japan", "''" ], "query_toks_no_value": [ "select", "distinct", "reign", "from", "wrestler", "where", "location", "!", "=", "value" ], "question": "What are the distinct reigns of wrestlers whose location is not \"Tokyo,Japan\" ?", "question_toks": [ "what", "are", "distinct", "reign", "of", "wrestler", "whose", "location", "is", "not", "'", "tokyo", ",", "japan", "'", "?" ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 5, false ], null ], "\"Tokyo , Japan\"", null ] ] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "distinct", "reigns", "of", "wrestlers", "whose", "location", "is", "not", "``", "Tokyo", ",", "Japan", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "distinct" ], [ "reign" ], [ "of" ], [ "wrestler" ], [ "whose" ], [ "location" ], [ "is" ], [ "not" ], [ "'" ], [ "tokyo" ], [ "," ], [ "japan" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "distinct", "JJ" ], [ "reign", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "whose", "WP$" ], [ "location", "NN" ], [ "is", "VBZ" ], [ "not", "RB" ], [ "'", "''" ], [ "tokyo", "NN" ], [ ",", "," ], [ "japan", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Tokyo , Japan", "Tokyo,Japan" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(3) A(0) C(5) T(0) V(0)" }, { "db_id": "wrestler", "query": "SELECT DISTINCT Reign FROM wrestler WHERE LOCATION != \"Tokyo , Japan\"", "query_toks": [ "SELECT", "DISTINCT", "Reign", "FROM", "wrestler", "WHERE", "LOCATION", "!", "=", "``", "Tokyo", ",", "Japan", "''" ], "query_toks_no_value": [ "select", "distinct", "reign", "from", "wrestler", "where", "location", "!", "=", "value" ], "question": "Give the different reigns of wrestlers who are not located in Tokyo, Japan.", "question_toks": [ "give", "different", "reign", "of", "wrestler", "who", "are", "not", "located", "in", "tokyo", ",", "japan", "." ], "sql": { "except": null, "from": { "conds": [], "table_units": [ [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [], "select": [ true, [ [ 0, [ 0, [ 0, 3, false ], null ] ] ] ], "union": null, "where": [ [ false, 7, [ 0, [ 0, 5, false ], null ], "\"Tokyo , Japan\"", null ] ] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Give", "the", "different", "reigns", "of", "wrestlers", "who", "are", "not", "located", "in", "Tokyo", ",", "Japan", "." ], "question_arg": [ [ "give" ], [ "different" ], [ "reign" ], [ "of" ], [ "wrestler" ], [ "who" ], [ "are" ], [ "not" ], [ "located" ], [ "in" ], [ "tokyo" ], [ "," ], [ "japan" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "different", "JJ" ], [ "reign", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "who", "WP" ], [ "are", "VBP" ], [ "not", "RB" ], [ "located", "VBN" ], [ "in", "IN" ], [ "tokyo", "NN" ], [ ",", "," ], [ "japan", "NN" ], [ ".", "." ] ], "values": [ "Tokyo , Japan" ], "rule_label": "Root1(3) Root(3) Sel(1) N(0) A(0) C(3) T(0) Filter(3) A(0) C(5) T(0) V(0)" }, { "db_id": "wrestler", "query": "SELECT Name , LOCATION FROM wrestler", "query_toks": [ "SELECT", "Name", ",", "LOCATION", "FROM", "wrestler" ], "query_toks_no_value": [ "select", "name", ",", "location", "from", "wrestler" ], "question": "What are the names and location of the wrestlers?", "question_toks": [ "what", "are", "name", "and", "location", "of", "wrestler", "?" ], "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": [] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "and", "location", "of", "the", "wrestlers", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "wrestler" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "JJ" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(5) T(0)" }, { "db_id": "wrestler", "query": "SELECT Name , LOCATION FROM wrestler", "query_toks": [ "SELECT", "Name", ",", "LOCATION", "FROM", "wrestler" ], "query_toks_no_value": [ "select", "name", ",", "location", "from", "wrestler" ], "question": "Give the names and locations of all wrestlers.", "question_toks": [ "give", "name", "and", "location", "of", "all", "wrestler", "." ], "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": [] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Give", "the", "names", "and", "locations", "of", "all", "wrestlers", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "and" ], [ "location" ], [ "of" ], [ "all" ], [ "wrestler" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "VB" ], [ "name", "NN" ], [ "and", "CC" ], [ "location", "NN" ], [ "of", "IN" ], [ "all", "DT" ], [ "wrestler", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(5) T(0)" }, { "db_id": "wrestler", "query": "SELECT Elimination_Move FROM Elimination WHERE Team = \"Team Orton\"", "query_toks": [ "SELECT", "Elimination_Move", "FROM", "Elimination", "WHERE", "Team", "=", "``", "Team", "Orton", "''" ], "query_toks_no_value": [ "select", "elimination_move", "from", "elimination", "where", "team", "=", "value" ], "question": "What are the elimination moves of wrestlers whose team is \"Team Orton\"?", "question_toks": [ "what", "are", "elimination", "move", "of", "wrestler", "whose", "team", "is", "'", "team", "orton", "'", "?" ], "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, 2, [ 0, [ 0, 9, false ], null ], "\"Team Orton\"", null ] ] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "elimination", "moves", "of", "wrestlers", "whose", "team", "is", "``", "Team", "Orton", "''", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "elimination", "move" ], [ "of" ], [ "wrestler" ], [ "whose" ], [ "team" ], [ "is" ], [ "'" ], [ "team" ], [ "orton" ], [ "'" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "elimination", "JJ" ], [ "move", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "whose", "WP$" ], [ "team", "NN" ], [ "is", "VBZ" ], [ "'", "POS" ], [ "team", "NN" ], [ "orton", "NN" ], [ "'", "POS" ], [ "?", "." ] ], "values": [ "Team Orton", "Orton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "wrestler", "query": "SELECT Elimination_Move FROM Elimination WHERE Team = \"Team Orton\"", "query_toks": [ "SELECT", "Elimination_Move", "FROM", "Elimination", "WHERE", "Team", "=", "``", "Team", "Orton", "''" ], "query_toks_no_value": [ "select", "elimination_move", "from", "elimination", "where", "team", "=", "value" ], "question": "Return the elimination movies of wrestlers on Team Orton.", "question_toks": [ "return", "elimination", "movie", "of", "wrestler", "on", "team", "orton", "." ], "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, 2, [ 0, [ 0, 9, false ], null ], "\"Team Orton\"", null ] ] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Return", "the", "elimination", "movies", "of", "wrestlers", "on", "Team", "Orton", "." ], "question_arg": [ [ "return" ], [ "elimination" ], [ "movie" ], [ "of" ], [ "wrestler" ], [ "on" ], [ "team" ], [ "orton" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "NONE" ] ], "nltk_pos": [ [ "return", "NN" ], [ "elimination", "NN" ], [ "movie", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "on", "IN" ], [ "team", "NN" ], [ "orton", "NN" ], [ ".", "." ] ], "values": [ "Team Orton", "Orton" ], "rule_label": "Root1(3) Root(3) Sel(0) N(0) A(0) C(10) T(1) Filter(2) A(0) C(8) T(1) V(0)" }, { "db_id": "wrestler", "query": "SELECT T2.Name , T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID", "query_toks": [ "SELECT", "T2.Name", ",", "T1.Elimination_Move", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1.Wrestler_ID", "=", "T2.Wrestler_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "elimination_move", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id" ], "question": "What are the names of wrestlers and the elimination moves?", "question_toks": [ "what", "are", "name", "of", "wrestler", "and", "elimination", "move", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, 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 ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "wrestlers", "and", "the", "elimination", "moves", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wrestler" ], [ "and" ], [ "elimination", "move" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "and", "CC" ], [ "elimination", "NN" ], [ "move", "NN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(10) T(1)" }, { "db_id": "wrestler", "query": "SELECT T2.Name , T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID", "query_toks": [ "SELECT", "T2.Name", ",", "T1.Elimination_Move", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1.Wrestler_ID", "=", "T2.Wrestler_ID" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "elimination_move", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id" ], "question": "Give the names of wrestlers and their elimination moves.", "question_toks": [ "give", "name", "of", "wrestler", "and", "their", "elimination", "move", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, 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 ] ], [ 0, [ 0, [ 0, 11, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "Give", "the", "names", "of", "wrestlers", "and", "their", "elimination", "moves", "." ], "question_arg": [ [ "give" ], [ "name" ], [ "of" ], [ "wrestler" ], [ "and" ], [ "their" ], [ "elimination", "move" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "give", "JJ" ], [ "name", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "elimination", "NN" ], [ "move", "NN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(5) Sel(0) N(1) A(0) C(2) T(0) A(0) C(10) T(1)" }, { "db_id": "wrestler", "query": "SELECT T2.Name , T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC", "query_toks": [ "SELECT", "T2.Name", ",", "T1.Team", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1.Wrestler_ID", "=", "T2.Wrestler_ID", "ORDER", "BY", "T2.Days_held", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "team", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id", "order", "by", "t2", ".", "days_held", "desc" ], "question": "List the names of wrestlers and the teams in elimination in descending order of days held.", "question_toks": [ "list", "name", "of", "wrestler", "and", "team", "in", "elimination", "in", "descending", "order", "of", "day", "held", "." ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "List", "the", "names", "of", "wrestlers", "and", "the", "teams", "in", "elimination", "in", "descending", "order", "of", "days", "held", "." ], "question_arg": [ [ "list" ], [ "name" ], [ "of" ], [ "wrestler" ], [ "and" ], [ "team" ], [ "in" ], [ "elimination" ], [ "in" ], [ "descending" ], [ "order" ], [ "of" ], [ "day", "held" ], [ "." ] ], "question_arg_type": [ [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "list", "NN" ], [ "name", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "and", "CC" ], [ "team", "NN" ], [ "in", "IN" ], [ "elimination", "NN" ], [ "in", "IN" ], [ "descending", "VBG" ], [ "order", "NN" ], [ "of", "IN" ], [ "day", "NN" ], [ "held", "VBN" ], [ ".", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(0) A(0) C(8) T(1) Order(0) A(0) C(4) T(0)" }, { "db_id": "wrestler", "query": "SELECT T2.Name , T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC", "query_toks": [ "SELECT", "T2.Name", ",", "T1.Team", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1.Wrestler_ID", "=", "T2.Wrestler_ID", "ORDER", "BY", "T2.Days_held", "DESC" ], "query_toks_no_value": [ "select", "t2", ".", "name", ",", "t1", ".", "team", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id", "order", "by", "t2", ".", "days_held", "desc" ], "question": "What are the names of wrestlers and their teams in elimination, ordered descending by days held?", "question_toks": [ "what", "are", "name", "of", "wrestler", "and", "their", "team", "in", "elimination", ",", "ordered", "descending", "by", "day", "held", "?" ], "sql": { "except": null, "from": { "conds": [ [ false, 2, [ 0, [ 0, 8, false ], null ], [ 0, 1, false ], null ] ], "table_units": [ [ "table_unit", 1 ], [ "table_unit", 0 ] ] }, "groupBy": [], "having": [], "intersect": null, "limit": null, "orderBy": [ "desc", [ [ 0, [ 0, 4, false ], null ] ] ], "select": [ false, [ [ 0, [ 0, [ 0, 2, false ], null ] ], [ 0, [ 0, [ 0, 9, false ], null ] ] ] ], "union": null, "where": [] }, "names": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "wrestler id", "team", "eliminated by", "elimination move", "time" ], "table_names": [ "wrestler", "elimination" ], "col_set": [ "*", "wrestler id", "name", "reign", "days held", "location", "event", "elimination id", "team", "eliminated by", "elimination move", "time" ], "col_table": [ -1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1 ], "keys": { "8": 1, "1": 1, "7": 7 }, "origin_question_toks": [ "What", "are", "the", "names", "of", "wrestlers", "and", "their", "teams", "in", "elimination", ",", "ordered", "descending", "by", "days", "held", "?" ], "question_arg": [ [ "what" ], [ "are" ], [ "name" ], [ "of" ], [ "wrestler" ], [ "and" ], [ "their" ], [ "team" ], [ "in" ], [ "elimination" ], [ "," ], [ "ordered" ], [ "descending" ], [ "by" ], [ "day", "held" ], [ "?" ] ], "question_arg_type": [ [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ], [ "table" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "NONE" ], [ "col" ], [ "NONE" ] ], "nltk_pos": [ [ "what", "WDT" ], [ "are", "VBP" ], [ "name", "NN" ], [ "of", "IN" ], [ "wrestler", "NN" ], [ "and", "CC" ], [ "their", "PRP$" ], [ "team", "NN" ], [ "in", "IN" ], [ "elimination", "NN" ], [ ",", "," ], [ "ordered", "VBD" ], [ "descending", "NN" ], [ "by", "IN" ], [ "day", "NN" ], [ "held", "VBN" ], [ "?", "." ] ], "values": [], "rule_label": "Root1(3) Root(4) Sel(0) N(1) A(0) C(2) T(0) A(0) C(8) T(1) Order(0) A(0) C(4) T(0)" }, { "db_id": "wrestler", "query"